The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to place {vb:raw poll} in a different template?
I want to place {vb:raw poll} into a custom template, in this case 'postbit1'
I created a plugin: Product: vBulletin Hook Location: postbit_display_complete Title: postbit1 poll Execution Order: 5 Plugin PHP Code: PHP Code:
I know i've almost got it, because when I do this PHP Code:
I think the problem is just that poll is already a declared variable. Can you help with the correct syntax? |
#2
|
||||
|
||||
Preregistering a variable only works if you have actually defined the variable. Is $poll a variable that is actually defined where the hook is placed?
|
#3
|
|||
|
|||
Nope, how exactly would I do that? I want $poll to equal the generic vBulletin poll, the same way it's currently being called in the showthread template. So it would probably look something like this, but I'm not sure what to put in the 'X'
PHP Code:
To give you an idea what I'm trying to do, here's a link to a thread on my site with a poll: http://www.wonderfulwaterloo.com/sho...219&styleid=56 I want to make the poll part of that first post, on the right hand side, where it currently says 'testing this'. You can see a concept idea on the attached image, although I realize it still has styling work to do. |
#4
|
|||
|
|||
PHP Code:
|
#5
|
|||
|
|||
Thanks!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|