The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How can i use my own $template variable?
Hello everyone,
can someone teach me how can i integrate a template with another template? like FORUMHOME template, in the end of it there is a $footer and it shows the footer template in the home page of the board. |
#2
|
|||
|
|||
To add custom templates you would need to write a plugin or edit the files so that it grabs the data from the database about your template and stores it in a variable such as '$footer' and then edit the template you want the data to show up in and place the variable wherever you want the data to be displayed.
|
#3
|
|||
|
|||
Im not really how to do what you did, can some one please writh an article about it?
Im asking it because i wanna add credit to modifcation i build, and i wanna publish it, how can i code an very hard removal credit? like vBCredit does? I used template hook, but its very easy to know where is the hook in the plugins and remove it, does somebuddy have an idea? by the way- sorry for my very bad english. |
#4
|
|||
|
|||
Most credits systems are not actually hard to remove, they are usually just a plugin that inserts it into a template with a call to str_replace.
|
#5
|
|||
|
|||
Quote:
--------------- Added [DATE]1236911056[/DATE] at [TIME]1236911056[/TIME] --------------- Ok thanks for the help, i've learned how to do what i wanted to do. what i was meant is something like this: Code:
$text = " this is the text that will be shown in the board after you added the $text in your template "; if i want to put a MD5 hash, how can i do that it will shows the text [output of the hash] and no the hash himself. for example: $credit = " 54b258dae2756c5b3be4530c2959148c "; ^this will be in the plugin/php file and in the board himself, the client side will see the word "vbulletin" how can i do that? Thanks for the helpers. |
#6
|
||||
|
||||
Output of a hash? The whole point of a hash is that it is one-way...
|
#7
|
|||
|
|||
What your looking for is something like base64_encode() and base64decode()
But personally, I will never use a modification that does such a thing and really no other user should either. You can use those methods to hide malicious code. |
#8
|
||||
|
||||
Also note that no encoded/encrypted code in any modifications are allowed on vB.org. (Minified JS is OK.)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|