help/trophies

DarkVodka

Formerly Wuebit
hmm is there any examples anywhere (or an addon as you say?) looks abit silly after I have just renamed all trophies to something else :(
 

Brogan

XenForo moderator
Staff member
Check out Darkimmortal's chat add-on.

He has coded the ability to change the primary route so that will give you some pointers.
 

Brogan

XenForo moderator
Staff member
Unless you're fairly proficient at php, it's not something you'll be able to do easily.

As Mike said, it's not a trivial change.
 

DarkVodka

Formerly Wuebit
Unless you're fairly proficient at php, it's not something you'll be able to do easily.
As Mike said, it's not a trivial change.
What about something like a .htaccess ?
I miss vbseo for things like this was soo easy :coffee: (never thought I would say that)
 

Luke F

Well-known member
If you want to change trophies to 'achievements' for example:

In library/XenForo/ControllerPublic/Help, replace:
PHP:
public function actionTrophies()
with:
PHP:
public function actionAchievements()
In the template 'navigation', replace:
HTML:
<li><a href="{xen:link help/trophies}">{xen:phrase trophies}</a></li>
with:
HTML:
<li><a href="{xen:link help/achievements}">{xen:phrase trophies}</a></li>
Obviously you'd need to edit the phrase(s) too ;)
 

Brogan

XenForo moderator
Staff member
Heh, easier than I imagined (clever sod) :LOL:

Don't forget you'll need to redo that edit every time you upgrade.
 

DarkVodka

Formerly Wuebit
Also for anyone else doing this. Remmber these templates to

help_index
help_wrapper
member_trophies (two in here)

to replace
PHP:
{xen:link help/trophies}
with
PHP:
{xen:link help/achievements}
 
Top