The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hack for the word "Not" in functions.php
If you are running a board with just one language, then changing the word "Not" in functions.php will do the trick....
But, what if you are running a board with two different styles, one for English and one for another language? Then your English language style will have the translated version of the word "Not" and this causes a problem! Does anyone know a good Hack for a situation like this? Can anyone write a condition for functions.php where if the language is English, then the word is "Not" and if the language is French then the word is "?????". |
#2
|
||||
|
||||
not tested but should work:
Find: --- function getforumrules($foruminfo,$permissions) { // array of foruminfo and permissions for this forum global $offtext,$ontext,$forumrules,$session; --- Replace it AS: --- function getforumrules($foruminfo,$permissions) { // array of foruminfo and permissions for this forum global $offtext,$ontext,$forumrules,$session, $styleid; --- Find: ---- $notword = 'not'; ---- Replace it AS: --- if ($styleid==X) {$notword = 'whateeveryouwordis';} else {$notword = 'not';} --- Substitute X with your non-english style's id.. Enjoy.. Logician |
#3
|
||||
|
||||
Thank you Logician.
It works like a charmer! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|