The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Writing First Plug In
I am trying to write a plug in the reads a Single-Selection Menu from the profile fields. I have a scrolling marquee on my forumhome template and want to allow users to disable it. I am using the forumhome_complete hook and the plug in looks like this:
PHP Code:
Can some one tell me where I went wrong? |
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
can't you just do this in the templates by using something like <if condition="whatever"> show marquee </if>
Would be a hell of a lot easier to do... |
#4
|
||||
|
||||
Quote:
Setup your profile field and just add something like this to your postbit somewhere. Code:
<if condition="$post['field15']"> <FONT SIZE="4" FACE="courier" COLOR=white><MARQUEE BEHAVIOR= SCROLL HEIGHT=25 WIDTH=80 BGColor=black>$post[field15]</MARQUEE></FONT> </if> |
#5
|
|||
|
|||
But a plug in would not require any template edits.
Quote:
Secondly the profile field is only there to be able to turn this on or off. That would just make prifle field 15 show up as an announcment wouldnt it? |
#6
|
|||
|
|||
Sorry if this is to n00b of a topics to go in here, but I seen the exact same thing work for the postbit switcher hack, which is what I mostly based this off of.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|