![]() |
Sorry to tell you this...
There is an obscure bug when this hack is installed, a user forgets his password and he requests a new one. One ends up with a PHP parse error. The bug is as follows: VBulletin uses $a as a global variable in the reset password code (around line 174 of member.php). This messes up use of $a as the command argument in advanced_templates. Solution: use a variable in advanced_templates which does not have global scope. (e.g. replace $a by $basictemplate) |
Quote:
Since you wisely noticed the bug and its cause, I'm sure you already fixed it in your board but if you didnt, you can get the updated file and correct the problem.. :) Thx for the feedback though.. |
You're too quick for me, Logician - or rather I'm too slow and bleary eyed by this time of day
Have now clicked on install, so that you can duly tell me the next wonderful things you achieve |
i am seeing
[[(6==6)]] Advanced Templates Hack has been successfully installed! By the way this remark is visible to Site Admins only.. ;) Enjoy.. Logician \\=^)) [[/(6==6)]] in the index.php page. how do i get rid of the [[(6==6)]] and [[/(6==6)]] so i will only see the message? just checked and seeing [[(2==6)]] Advanced Templates Hack has been successfully installed! By the way this remark is visible to Site Admins only.. ;) Enjoy.. Logician \\=^)) [[/(2==6)]] in the index.php page. how do i get rid of the [[(6==6)]] and [[/(6==6)]] anyone else having this problem? |
Quote:
As for technical details: 1. You can do if/else constructs 2. The conditionals are parsed at the time you edit your templates since we now store two copies of every template. One with the conditionals asis, and one with any conditionals converted to accompanying php code so that there is no overhead when the templates are called by the forum. |
Quote:
|
Quote:
Quote:
Of course I'm sure you have a nice algorithm either.. :) |
perhaps you've read that already, but if not:
http://www.vbulletin.com/forum/showt...3&pagenumber=2 |
Quote:
It's just a "substr_count" that's saved (which I intend to add to my hack too) but IMO it does not effect running time so significiantly.. Or I still didnt get how it will work? lol |
what is this like on server load? it seems to be pretty hard on my site. any ideas?
|
All times are GMT. The time now is 01:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|