How do I change the name of the help link that appears in the top menu of the forum? I want to rename it: Help & Rules
Please note that I do not want to change the address of the help page just the name of the link that appears in the top navigation menu.
I hope this is the right place to ask questions about modifying the default look of MyBB 1.6.3
Thank you for your help.
Edit : Irreligious's response appears to be more precise. so IGNORE this
____________________________________________________________
in general, it is at
admin panel --> templates --> active template set --> header templates --> header
find below code or similar
<li><a href="misc.php?action=help>Help</a></li>
change to :
<li><a href="misc.php?action=help>Help & Rules</a></li>
Admin CP -> Templates & Style -> Templates -> Your Theme -> Header Templates -> header
Find:
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
Replace it with:
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />Help & Rules</a></li>
(2011-07-05, 04:20 PM)Irreligious Wrote: [ -> ]Admin CP -> Templates & Style -> Templates -> Your Theme -> Header Templates -> header
Find:
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
Replace it with:
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />Help & Rules</a></li>
That worked good, thank you.
@All
I’m trying to learn and I have some curiosity questions. If they go unanswered that’s OK.
I took a slightly different route to the header template: Templates & Style > Templates > Default Templates > Header Templates > header. Does it make any difference where I edit the header template?
Also I note that if I click on “Global Templates” I see a message stating that there are no global templates. If there are no global templates then why is there a link for them?
I saw the option to create a custom template so I edited the default header template and saved it as “headerGC” but after getting the “successfully saved” message I was unable to find my new template. I had hoped I could use it and not edit the original but no joy so I edited the original again and saved it. So where is “headerGC” and how do I select / use it?
Why is it OK to replace {$lang->toplinks_help} with Help & Rules? I would’ve guessed (incorrectly) that some part of {$lang->toplinks_help} was needed and just putting Help & Links would probably fail.
Thank you all again.
1. Template Edits :
if you have a single theme , that is the default theme. then there is only one place where you look for editing
if you install other themes then one theme will be active, others inactive. The active theme's templates need
editing to get required modifications on current viewable forums. I hope this is clear.
2. Global templates :
Global templates are used by all themes. generally used by plug-ins so that required modifications
available to all themes. if you have not installed any plug-ins then there may not be global templates
3. your custom template "headerGC"
admin panel --> templates --> search/replace (tab on right side) --> Search Template Titles
search for your headerGC
4. editing words & phrases
most of the terminology comes from language files. language files are used to change the display
language of the forums. {$lang->toplinks_help} shows Help and it will be better to change the
value of toplinks_help variable to Help & Rules
Look at admin panel --> configuration --> languages
(2011-07-05, 08:43 PM)Puppyite Wrote: [ -> ]Why is it OK to replace {$lang->toplinks_help} with Help & Rules? I would’ve guessed (incorrectly) that some part of {$lang->toplinks_help} was needed and just putting Help & Links would probably fail.
Going off of ranjani said, {$lang->toplinks_help} is telling MyBB to look for the variable $l['toplinks_help'] in "./inc/languages/YOURLANGUAGE/YOURLANGUAGE.lang.php". The correct way to change the Help to Help & Rules would be to edit $l['toplinks_help'] in your board's default language file.
(2011-07-06, 03:32 AM)ranjani Wrote: [ -> ]1. Template Edits :
if you have a single theme , that is the default theme. then there is only one place where you look for editing
if you install other themes then one theme will be active, others inactive. The active theme's templates need
editing to get required modifications on current viewable forums. I hope this is clear.
2. Global templates :
Global templates are used by all themes. generally used by plug-ins so that required modifications
available to all themes. if you have not installed any plug-ins then there may not be global templates
3. your custom template "headerGC"
admin panel --> templates --> search/replace (tab on right side) --> Search Template Titles
search for your headerGC
Everything is clear except that after finding headerGC I don't know how to enable it such that it would overide (replace?) the default header template, if that's possible.
Quote:4. editing words & phrases
most of the terminology comes from language files. language files are used to change the display
language of the forums. {$lang->toplinks_help} shows Help and it will be better to change the
value of toplinks_help variable to Help & Rules
Look at admin panel --> configuration --> languages
IIUC then IMO that would be both better and easier than manually editing the header template as I previously did. I'll test my method and report what I find. If what I think is true then I won't need to replace the default header template with headerGC but it would be good to know how anyway especially since I already have a modified header template to test with
^ header template is inserted as {$header} wherever we need it (logo + top links)
your custom headerGC template's code is {$headerGC}
on index template try replacing {$header} with {$headerGC}
OR just for experiment, put {$headerGC} above {$header} and check what happens
(2011-07-06, 03:50 AM)fizz Wrote: [ -> ] (2011-07-05, 08:43 PM)Puppyite Wrote: [ -> ]Why is it OK to replace {$lang->toplinks_help} with Help & Rules? I would’ve guessed (incorrectly) that some part of {$lang->toplinks_help} was needed and just putting Help & Links would probably fail.
Going off of ranjani said, {$lang->toplinks_help} is telling MyBB to look for the variable $l['toplinks_help'] in "./inc/languages/YOURLANGUAGE/YOURLANGUAGE.lang.php". The correct way to change the Help to Help & Rules would be to edit $l['toplinks_help'] in your board's default language file.
Your post made it easier to understand what ranjani said. This is how I changed Help link name to Help & Rules:
Configuration > Languages > Installed Language Packs > English American > Click “Options” button and select: “Edit Language Variables” > global.lang.php > toplinks_help: Change "Help" to "Help & Rules" (without double quotes)
(I can't get used to automatically merging posts, it's the first thing I turned off on my forum.)
(2011-07-06, 03:11 PM)ranjani Wrote: [ -> ]^ header template is inserted as {$header} wherever we need it (logo + top links)
your custom headerGC template's code is {$headerGC}
on index template try replacing {$header} with {$headerGC}
OR just for experiment, put {$headerGC} above {$header} and check what happens
To start with a clean slate I reverted the change I made to: global.lang.php
Then I went to:
Templates & Style > Templates > Default Templates > Index Page Templates > index: Click “Options” button and select “Full Edit” and replace {$header} with {$headerGC} That broke the front-end such that the header disappeared and the forum was generally mangled.
Then I reverted the change and instead added {$headerGC} above {$header} and that did nothing at all to the front-end.
My observation is that replacing {$lang->toplinks_help} with {Help & Rules} in header template will not work when using {$headerGC} in index template. FWIW my wild guess as to why it doesn’t work is that it’s some kind of syntax error.
In any event I have learned a great deal and am very grateful for all the help I have received. I’ve come a long way in my understanding of how to modify MyBB since yesterday thanks to the help I received in this forum.
(2011-07-06, 03:16 PM)Puppyite Wrote: [ -> ]Your post made it easier to understand what ranjani said. This is how I changed Help link name to Help & Rules:
Configuration > Languages > Installed Language Packs > English American > Click “Options” button and select: “Edit Language Variables” > global.lang.php > toplinks_help: Change "Help" to "Help & Rules" (without double quotes)
Yep, that's the correct,
proper way to change language variables in MyBB.
(2011-07-06, 03:16 PM)Puppyite Wrote: [ -> ]In any event I have learned a great deal and am very grateful for all the help I have received. I’ve come a long way in my understanding of how to modify MyBB since yesterday thanks to the help I received in this forum.
Glad I could help, good luck on your forum!