The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Auto edit templates?
Hi guys can you help me with auto editing templates?
I've tried to use PHP Code:
If you have some examples will be great. Thx in advance! |
#2
|
||||
|
||||
Can you give a bit more info on what you're doing or trying to do?
|
#3
|
||||
|
||||
Hi
I'm trying to edit template reputationbit So i put this in hook global start: PHP Code:
(of course $search = 'test' is just an example) |
#4
|
||||
|
||||
Personally I use something like this;
PHP Code:
--------------- Added [DATE]1269224776[/DATE] at [TIME]1269224776[/TIME] --------------- Also the hook is important. I put mine on showthread_start. If you put it on global_start, it will be running even when it is not needed, this impacts upon performance, however if you hook it into showthread_start, then it will only run on threads, which is where it is needed. :up: |
#5
|
||||
|
||||
Quote:
[HOW TO - vB4] Rendering templates and registering variables - a short guide I think a better hook would be reputation_start |
#6
|
||||
|
||||
heh. didn't see this was vb4 discussions, haha.
|
#7
|
||||
|
||||
Quote:
Anyway I tested all possible but no result. So if anyone has some practical examples or know existing hack for vb4 using auto editing will be appreciated! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|