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.
Related
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.
I am helping out with a Magento store initially configured by another developer who is now gone from the company, and I have no experience using Magento at all. Instead of using the built-in newsletter tools, he created an HTML form which points to a completely different server (which he owns) and now we no longer get notifications when a customer signs up for it.
Somehow, he embedded the HTML into the front page of the Store's website. I spent hours looking for the HTML and did find it, in a page called "Subscribe.phtml". I got happy, changed the code inside that page to what I want it to be, uploaded it back to the server and... nothing. No change at all to the site. I flushed the cache but that did not help.
The page does not appear to have much code in it. In CMS->Pages->Content, it shows only this:
{{block type="featuredproductslider/featuredproductslider" name="featuredproductslider"
template="magentothem/featuredproductslider/featuredproductslider.phtml"}}{{block
type="newproduct/newproduct" name="newproduct"
template="magentothem/newproduct/newproduct.phtml"}}
Under Design, it shows only that the layout is "3 columns". There is literally nothing else in this section.
Can you help me understand how I can change the HTML in this area to make this work? If this is helpful, here's a picture of the area that I am trying to configure:
Thank you.
On page 44 of the manual, there's a section called "How to find out which layout file to modify". I used Template Hints and figured out where the code lived. This is what Jim was referring to. It would have been nice for someone to instruct me on how to do this.
I set it up and found that the previous developer had modified the template directly rather than use blocks or other parts built-in to the system to modify the front page.
You can enable template hints in the Magento configuration:
Go to System->Configuration
Change "Current Configuration Scope" to "Main Website"
Go to Advanced->Developer
Under the Debug tab, choose "Yes" for the "Template Path Hints"
Save configuration.
Now go to your homepage, refresh the page and you will see paths to all templates used on the homepage. You will then get a good idea of where each block comes from.
It won't solve your problem, but it might help you find the right template to edit.
I am looking to track down the file (and it's location) that generates the 2 buttons on Magento. When I hit "add to basket button" on any product on the homepage a pop-up with 2 buttons appears. I am unable to translate the buttons (not images). I did tried to locate it for a couple of days, but no success. Inspect element/view source/including developer extensions doesnt help me at all. Website: haratoys.ro
thx in advance
Here are a few things you can do:
grep - always useful. Look through templates AND app/code/local, AND app/code/community. Or use an IDE that can search through all the files.
Check the admin panel. Some extensions may use widgets or insert blocks in textareas. Normally, when adding buttons programmatically, there will be an option to edit them
When all fails, search the database directly. First, look in core_config_data, then try searching through the custom tables, and if all else fails, look through the whole database (phpmyadmin has such functionality).
If none of these help, someone screwed up really bad. Check for symlinks or encoded information, maybe even remotely loaded content, javascript generated content (although this should be found with grep).
Also, try searching for identifiers that are not general. Looking for the "Add to cart" text may not find what you need, but searching for the button id will get you some useful information. Also check case sensitivity.
It's probably custom to your theme, but it may be located in
app/design/frontend/theme/default/template/checkout/onepage/link.phtml
This is where I was able to change the content of the links, so it's possible that they are in the same location.
What Vlad said, however, is the best way to find what you're looking for.
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.
Can we have a wiki page -e.g. in a tab- (to collaboratively write and edit a text) inside a javascript page by a PHP server?
What I want is the following: consider you have a website (javascript, php) showing some information, and you want your page to consist of two tabs: one for the information display and one as a single wiki page to collaboratively write something about the information tab. As an alternative to the tab, we may use a link but I don't want the link to direct user to an external page or to another system (like a standalone complete wiki).
I haven't used wiki (as a programmer), if the answer to this question is positive, then I will start using it! So, please consider me as a total beginner. If you know something other than wiki which can support collaborative editing on a single page please let me know, there should be lighter techniques.
EDIT:
I want the page to be dynamically created, so having only one page is not useful, I have n information tabs which are created according to some data and I need n corresponding wiki pages (so, I can't create these pages manually and add them to my system).
Thanks
We are using a similar solution by simply using a IFRAME pointing to a external wiki URL. The URL depends on the item the user is currently working on.
Most Wiki systems allow you to open any inexistent URL/Wiki page and create the page with one click.
In our case we are using MoinMoin wiki, but I guess you could use almost every Wiki system out there.