Joomla Extension AcySMS Need to modify source code - php

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.

Related

How to create custom content elements in typo3 using a sitepackage?

I'm using the sitepackage builder to create website in Typo3 9.5. Right now i need to create a custom content element and i just can't get it to work.
I followed several tutorials, including the official doc (https://docs.typo3.org/typo3cms/extensions/fluid_styled_content/7.6/AddingYourOwnContentElements/Index.html) and it seems like there's always missing an obvious part i don't get. For example the first part in the doc "PageTsconfig", where exactly am i supposed to put this code?
If anyone can provide a dummy step by step manual to create and use a custom content element, it would be much appreciated.
The Page TS Config Part goes for example into the page properties resources (Edit page in page tree). Usually you place this TS part into your custom extension and just add it as a file in the mentioned section. The Page TS Config for custom elements is responsible for displaying your content element options when clicking "Add new" content element on a page.
You can have a look at my extension at Github which is just a base content element "Text with image on left". There you should find all necessary steps in order to create your own content element. I have just adjusted the extension in order to have v9 compatibility. If any questions or you get stuck somewhere, just let me know.
https://github.com/paravista/custom_content_element
Another advice it to check out the mask extension and mask exporter extension. The generated exported code can also be a good source in order to see how it has been done here.

Changing Joomla component content

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.

customizeToolbar in mediawiki

In my project i need to customize the toobar section of mediawiki editor.
I read the article: Extension:WikiEditor/Toolbar customization on mediawiki.org.
In the basic step they specified like:
"So, to customizing the toolbar, put in your User:YourUserName/common.js a code such as this:.."
I didn't get the idea regarding this...
So please help me in order to customize the toolbar
Users can define custom javascript code in MediaWiki by editing the wiki page User:<username>/common.js (you need to enable $wgAllowUserJs for it to work). For sites that you administer, you don't want to do that; instead place the script in the wiki page MediaWiki:Common.js, which affects every user and visitor.
You need to do two steps:
Edit the file mediawiki\includes\EditPage.php. It is a good idea first to make a copy of it. The function to edit is getEditToolbar. Edit the $toolarray. You can find plenty of example code via Google, here is one example for various common edit buttons.
Add images to mediawiki\skins\common\images. These are the images for the buttons. You can find example images here.
Please remember - if you upgrade your software you will need manually to merge the EditPage.php file.

WYSIWYG way to work with xyz.tpl.php/CSS files?

I recently purchased a script that I'm trying to change the CSS to pimp it up :)
However since I'm fairly new to CSS/PHP (I've done ASP before), I'm trying to use the "Live view" feature Dreamweaver 5.5 to edit the tpl.php files. I have setup the site as instructed in DW and it's working with basic PHP files, however when I try to open a tpl.php file it doesnt seem to handle all the includes or something, so essentially it doesnt know how to retrieve all the related CSS etc in order to show me what the site looks like.
It has the following code structure:
www.xyz.com -> this calls the index.php
Within index.php, it calls include_once ('global_mainpage.php');
Within global_mainpage.php it then calls $template_output .= $template->process('mainpage.tpl.php');
mainpage.tpl.php is the file that I need to change the layouts/CSS class reference etc.
My ideal way to work with the site is:
Say if I want to change something on index.php
I just click on one of the elements in live view
It would automatically launch the tpl.php file being used
I can then examine the CSS used and make a change to it
hit save and be able to view the change I just made
If this is not possible, do I have no choice but to use Aptana? I've used it before editing PHP code, but not tpl.php - I was hoping to have a WYSIWYG editor for tpl.php...
Many thanks for your help gurus! :)
Why don't you use FireBug on Firefox and hook it up with cssUpdater?

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