Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Nov 2014, 20:36
AndrewSimm's Avatar
AndrewSimm AndrewSimm is offline
 
Join Date: Sep 2006
Textarea in admincp to dropdown in template

I have an option in the admin panel that uses a textarea to display a list of teams. I am trying to insert it into a drop down menu. Here is what I have. If I just put {vb:raw vboptions.cisteamlogo} into the template it list everything separated by a comma.

<select name="team_logo" class="primary" title="team_logo" tabindex="1" />{vb:raw vboptions.cisteamlogo}</select>
Reply With Quote
  #2  
Old 27 Nov 2014, 21:08
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
first you're gonna need to explode the setting and register it to the template you're trying to use


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

if the template you're using is a stock vb template, pre-register the variable in a plugin using the parse_templates hook

then in you're template you can do something like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
PM me for Custom Mod Requests/Work

Last edited by vBNinja; 27 Nov 2014 at 21:13.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Large Edit Box & Button for Newthread.php/NewRepy.php (with /admincp/textarea.php) h75 vBulletin 3.0 Full Releases 6 12 Jan 2005 02:55



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:22.

Layout Options | Width: Wide Color: