The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
ok, I'm done editing templates... it sucks everytime you do an upgrade.
So I'm doing all my newest mods with products & plug-ins. I've done pretty well with all my mods, but I'm having an issue with one of the simplest ones! I use post-bit_legacy format, and under the avatar, or in that general area, I list $post[field8] I can't figure out how to get it to display using the hook. I'm always getting an error. I tried just displaying the variable at the postbit_imicons hook. I tried adding the code to a custom template, and then displaying the template on the postbit_imicons hook. I must be making this wayyy harder than it is. anyone got any help ? Thanks |
#2
|
||||
|
||||
![]()
Let's see what you wrote (and tell us the hook location of the plugin) and then tell us the exact error.
|
#3
|
|||
|
|||
![]()
oh, guess that would have been helpfull.. altho not much code there..
created template list_field8 with code... $post['field8'] created plugin... location postbit_imicons with code... $vbulletin->templatecache['list_field8'] Error is (3 times across top of page) Parse error: syntax error, unexpected $end in /home/public_html/forum/includes/class_postbit.php(1221) : eval()'d code on line 2 |
#4
|
||||
|
||||
![]()
Please use the code tags when writing code in your post, it makes it easier to follow.
You say you created a plugin using the postbit_imicons hook location. Did you look to see where that was evaled in the code? You have done nothing in your code to add anything to the postbit. Have you looked at any other modifications that add code to the postbit templates? I'd suggest taking a look at a couple and seeing how they did it. It will give you a better idea of how to get it done. |
#5
|
|||
|
|||
![]()
I had a hard time finding anything that added to post-bit... that's why I posted for help
![]() normally I would use code tags, but it's just 1 line each ... |
#6
|
||||
|
||||
![]()
There is one regarding adding the gender to the postbit, one for adding country flags.... search for terms regarding those and you can find stuff, I'm sure.
But basically, you have a template hook right in that area - $template_hook[postbit_userinfo_left]. So, you really only need to write a plugin to use that hook (I usually use a postbit_display hook): PHP Code:
PHP Code:
|
#7
|
|||
|
|||
![]()
Thanks Lynne, with the little push you gave me, I was able to write up this...
PHP Code:
I didn't see a real need for a template, so I left it out... |
#8
|
||||
|
||||
![]()
Glad you got it working!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|