Changing Joomla component content - php

I have been installed a free "Joomla" component and I want to edit that component's relative module content.
For example, I want to change button writing from (for example) "vote" to word in my language like "رای دادن" also I want to remove some unnecessary lines.
I can do my change with inspector but I cant find and change source.
I have search all my site for <div> that my content is in it with Dreamweaver but it's not finding anything.
I want to know where that component's contents come from and how can I change it.

There is not content, there are language files, you can find more infos here
Not: You should install your language and set it in backend as default, after this work you should see all default joomla things in your language.

Related

Joomla Extension AcySMS Need to modify source code

hello all i need to change the style of Joomla extension AcySMS but
unable to find where i need to change
here is actual problem i need to change the style so that button must
in front of text box and in country code selection i need to add
county code with the flag of country Thanks :)
I don't know this specific Joomla-extension, but you seem to need two changes:
change the markup of the button
place the button before the input
The first can be done by changing your own custom css-file. Use firebug or developer tools to find out which classes are used and override or extend them in your own css-file.
For the second one, you need to know whether you're using a plugin, a module or a component. The answer to this question leads you to the right Joomla-subfolder. There you will probably find a acysms-folder. Then you'll have to look (even in subfolders) for a file called default.php.
You should use template overrides to manipulate these files, otherwise your changes will be lost with the next regular update of this extension. You can search the Joomla website for help on template overrides. It's not very complicated. https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
If (for example) you want to make changes to the mod_login module then you would have to copy the file default.php from
PATH_TO_JOOMLA/modules/mod_login/tmpl/
to
PATH_TO_JOOMLA/TEMPLATE_NAME/html/mod_login/
and apply your changes there.
I hope this will get you started.

Mediawiki add rel "nofollow" in anchor tag of every Header of Template Page

<a title="Template:CompanyProfile" href="/wikiinvestor /index.php?title=Template:CompanyProfile&action=edit&section=T-1">edit</a>
and i want to create like
<a title="Template:CompanyProfile" rel="nofollow" href="/wikiinvestor/index.php?title=Template:CompanyProfile&action=edit&section=T-1">edit</a>
it's possible using Skin.php file of mediawiki software. and if possible then how to done that please give me answer.
It's not entirely clear what link you are referring to. As for the page content, MediaWiki by default adds nofollow to all external links, but no internal. If you want to add custom attributes to internal links (e.g. if you are referring to a link in a template in your question) , you can use one of the extensions LinkAttributes or Link Attributes (easily confused names, yes).
If you are talking about a link printed out by the skin (I cant' figure out which one that would be from your question, but you are talking about Skin.php, so I guess that might be the case), e.g. “edit”, “history”, etc, or something in the toolbox, your best option is to write your own extension, using the appropriate hook (see https://www.mediawiki.org/wiki/Manual:Hooks for a full list). All built in skins will execute all of the skin related hooks, though some custom made ones might not.

Joomla add/edit article and section screens blank

I'm using Joomla v1.5.26 and for whatever reason when I navigate to MYSITE.com/administrator/index.php?option=com_content&task=add or if I try to edit any already existing articles (or sections) I get a screen with an empty body tag.
The other pages in the administrator part seem to be working.
It seems to be the same (or very similar) problem as this: http://www.justanswer.com/computer-programming/32fo1-when-hit-new-button-article-manager-joomla.html but this is the only instance I could find of the problem, and it isn't resolved at the end of the article.
Thank you for your help.
My suggestion:
1- Try to disable the editor you are using (Set it to no editor on global settings or on the user you are trying to edit with)
2- Try to reupload components/com_content from Joomla 1.5.26 source to your website and overwrite the existing file. There might be something missing.

Find the PHP/HTML file containing DIV container shown in FireBug

I'm editing an existing template in Joomla and I need to change the menu icons text. In Joomla Administrator, I cannot find the place where I can do this. So, in FireBug I found DIV container that I was searching for. But if I change the text in FireBug, my changes are obviously not saved. Now very basic question is: how can I know the name of PHP or HTML file, where this DIV container is located? Or how can I save my changes?
FireBug will only change web browsers content, it will not affect files on the server. If you know DIV's id you can search for files with this string on the server. To save changes - edit file and save - but on the server.
I use TestWrangler app (I'm on a mac) - open blank TW, click on Search, browse to target a folder to search through. I always search through a copy of my website folders on my hard drive rather than live site files. Search for the text string you're wanting to find which file contains it. Give TW a few seconds or more and it will tell you exactly which file contains the string.
http://www.barebones.com/products/textwrangler/
When you right click on an HTML element and select "Inspect with firebug", on the right hand side of the firebug screen you will see the styles applied to that element, and where it says the line number, if you just hover your mouse over it it will show you the exact location of the file.
Use a file search tool, it is included in most IDE's, if your editor doesn't have such a feature try a file grep tools like wingrep (http://www.wingrep.com/)
I just thought I'd share this as a possible 'answer' as well.
there is a joomla extension that enables you to search through your source code within joomla itself.
Here is the link:
http://extensions.joomla.org/extensions/miscellaneous/development/22858
I'm sure it will come in handy instead of going through the hassle of a complex setup on localhost.

Test custom header in Drupal before publishing

I'm quite new to Drupal and want do some editing of the header. I want a custom toolbar to appear on every page. I've already created that toolbar in a file called toolbar.php. It has a layer which is fixed and will appear on top of every page.
How do I include the toolbar.php in the header template of drupal?
The toolbar refers to $user which is a global Drupal variable and I want to test toolbar.php before publishing it to the site. Is there anyway I can do that?
Regards,
Dasith
Of the two methods above the first is easier if you understand the basic idea of html and CMS templates, the second will be easier if you are a programmer.
First thing to check is that you really need to do this! Can't you restyle one of the existing menus (Primary or secondary) to do this - will make your life (and anyone who works on the site in the future) a lot easier.
The other thing you can do is look into adding an output region, basically something where you put the php into a drupal friendly format and then effectively do a 'drupal print'. This is how the toolbar, search box etc are done. You still need to alter the templates as above.
Yes for sure. If you want to have the html produced by your function/file appear on every page of the site then you will need to over-ride the page.tpl.php file in the theme you are using and essentually add the html to that file.
To gain access to the $user variable, just declare it in your script.
global $user;
open page.tpl.php file in a code editor and save as page-front.tpl.php (with two dashes if you are using Drupal 7.. one dash with Drupal 6) and upload it to your theme's directory. Clear your cache by going to configuration->Performance->Clear All Cache. Then referesh the page. Now your homepage is using page-front.tpl.php as it's template file. Every page will need its own template file. The page machine name comes after the hyphen so the user page template uses page-user.tpl.php. You can edit it as you want. The proper way to really do this is to use hook_theme() to pass variables to the template file. One variable could be the html which creates your custom header.
See also http://drupal.org/node/457740 Beginners Guide to over riding theme output

Categories