![]() |
dropdown for icons
ok, the posticons() function doesnt need to be modified, so this is considered more like a template mod...
here it is what i want to do: i modified forumdisplay.php so it can act in certain forum id's as a news forum and list the content of the first post only beside the thread title. i also use a customized set of icons for that specific forum (i hacked the vb options to list an array there, so is easy to set whatever forums you want to display the news articles). when it comes to post a new thread i use a iif condition to select the correct forum array so the newthread.php file displays correctly the right set of icons. now, i need a little piece of java code to display the news icons in a dropdown menu, in newthread template. while selecting the dropdown, on the right side it will display the image, so if i have 285 icons for my news, it will not make it look like 5 pages long the newthread.php (like the way it is now). i really like the idea so i was wondering if kier or anyone else good with jave could help me on this matter. i searched the web for a relevant piece of code, but we need to keep the iconid values not the iconpaths, to display correctly the selection. so is a little more complicated. any help will be greatly apreciated. :) |
problem fixed.. thanks to chen the wise arse. :)
sorry guys, the code is removed... hihi |
I'm not sure if you still need help, but in my vBmoods hack when selecting a mood smiliey from the drop down menu, it displays it on the right. Is that what you mean? I'm not sure what you meant by pages though..like, if it has a lot of elements I'm not sure how you can avoid making it look like a very long list.. ;)
|
PHP Code:
|
What's the exact HTML you got? You can use the title attribute and assign the image the src from that.
|
Try this:
Code:
<option value="[high]$icon[iconid]" title="[/high]$icon[iconpath]"$iconselected>$icon[title]</option> Code:
<tr> |
What you did, only the other way around.
|
Shouldn't $selicon be global inside the function?
|
the problem we are fighting with is this chen:
the values are called in the <select> not in the <option>... so that's why it cant see the option to assign the "selected".. i dont think there is a way arround.. it's not the end of the world after all there are no icons for replies so is no need to be checked in the database for values. :) let me know what you think. |
What's the problem? Icons are not pre-selected? Where? Which should be selected?
|
All times are GMT. The time now is 10:05 PM. |
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:
|