Making your end users do less and less creates the problems we have now. Make your users do the template edits.
|
Quote:
I for one have a hack (CYB - Forum Rules) and he has done this, He have placed the link to the forumrules in my navbar, and I can't change it, or the location of it. Think that's fun when you want to make a custom style? For one: If I change my navbar to the header, that link does not follow.. and so on. Bad, bad, bad bad bad bad bad bad. |
Whether you like automatic editing of templates is a personal choice, not a fact. If you want to discuss the merits of doing it please start a new thread, not clutter up this one.
|
Quote:
|
Nicely done Ziki. :D And as an extra bonus, something I just found out. Namely that you don't need to create or insert a template if all you want to insert is one value from your settings.
Code:
$str = 'findthis'; Code:
if ($vbulletin->options['mysetting']) |
Two small additional notes.
Firstly, templatecache identities are CASE SENSITIVE. So $vbulletin->templatecache['SHOWTHREAD'] will work but $vbulletin->templatecache['showthread'] will not, because the the template is named with capitals. Secondly, if you are doing a find/replace it's slightly more efficient to include what you're finding in the replacement text instead of appending it in the str_replace. So Code:
$find = 'this'; Code:
$find = 'this'; |
there is a very nice product from andreas http://www.vbhacks-germany.org/showthread.php?t=5572
|
Didnt read, but ALL mods should use this! :P I hate editing templates for mods, it means you gota do it for every style, i have alot of styles =/
|
Article was updated.
|
Updated
|
All times are GMT. The time now is 10:06 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|