Current time: 07-24-2014, 02:14 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optioncode for a select list?
06-06-2010, 10:43 PM (This post was last modified: 06-07-2010 01:38 AM by combus.)
Post: #1
Optioncode for a select list?
Hey guys,

I'm trying to make a plugin, but for the settings, I'd like to have a select-one list. But I can't find what optioncode is, or how to use it. (I actually only know "onoff" Toungue). Can somebody point me?

Thanks Smile
Hmm it seems to be "select", but how do I add the options?
I opened many plugins until I found one that had a select list, so I figured that out. But now, can somebody tell me what's the hook for the headerinclude? (if there is?).
Visit this user's website Find all posts by this user
Quote this message in a reply
06-07-2010, 08:33 PM
Post: #2
RE: Optioncode for a select list?
This user has been denied support. This user has been denied support.
easiest way to find out is browse through the existing options in the database really, I think there's at least one example of everything

what hook for headerinclude do you mean? headerinclude is evaluated last (goes into the main template) so you can modify it pretty much whenever you want (before the output is made).

Google SEO | Gravatar | Hooks | HTMLPurifier | Overview | Patches | PluginLibrary @ GitHub/frostschutz
Find all posts by this user
Quote this message in a reply
06-07-2010, 10:25 PM
Post: #3
RE: Optioncode for a select list?
I don't know much about plugins, so I thought I'd need some sort of special hook for the headerinclude if I wanted to edit it. Though, I think I'll be hooking what I want on pre_output_page.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-08-2010, 12:28 PM (This post was last modified: 06-08-2010 12:28 PM by Nayar.)
Post: #4
RE: Optioncode for a select list?
(06-07-2010 08:33 PM)frostschutz Wrote:  easiest way to find out is browse through the existing options in the database really, I think there's at least one example of everything
Thats what i did when i needed other option codes

Facebook Connect for MyBB
Visit this user's website Find all posts by this user
Quote this message in a reply
06-08-2010, 12:37 PM
Post: #5
RE: Optioncode for a select list?
This user has been denied support. This user has been denied support.
Although it doesn't seem possible to translate the selection strings...

Google SEO | Gravatar | Hooks | HTMLPurifier | Overview | Patches | PluginLibrary @ GitHub/frostschutz
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication