![]() |
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? :confused: |
Quote:
|
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... |
Quote:
Setup your profile field and just add something like this to your postbit somewhere. Code:
<if condition="$post['field15']"> |
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? :confused: |
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.
|
All times are GMT. The time now is 05:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|