Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version - Icon Select Pull Down Menu 1.2
    Version 1.1 adds support for Table Wrappers - thanks Dalantech
    Version 1.2 adds a preview image when you select an option from the pull down.

Description - Threads does come with an outdated ubbt_icon_select.tmpl file in the ALTERNATE template directory. This gives you the option of selecting only from the standard threads icons. I have reworked that template as well as the showicons.php script and template to read the icons directory and give a true listing of all your post icons in a pull down menu. Also, when clicking the link to see the post icons, it will show them all, not just threads default.

Working Under - UBB.Threads 6.2

Pre-requisites - none

Author - JoshPet - www.joshuapettit.com and Dalantech
for discussions and bug reports come to www.ubbdev.com

Credits - Commissioned by freeconservatives.com - Dalantech for table wrapper tweaks

Files Altered - addpost.php, showicons.php, /templates/default/showicons.tmpl

Database Altered - NO

New Files - a new ubbt_icon_select.tmpl file is included

Any other info - I've given this to Rick to potentially be included in the next version.

Attachments
67241-IconPulldown1.2.zip (0 Bytes, 241 downloads)

Last edited by JoshPet; 02/13/2003 1:15 AM.
Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Very !

I made a couple of changes to make the icon select page use the new table wrappers.

In the showicons.php file look for

Code
<br />// ---------------------<br />// Send the page to them<br />   $html = new html;<br />   $html -> send_header($ubbt_lang['POST_ICON'],$Cat,0,0,0,0); 


And above that add:

Code
<br />// ---------------------<br />// Grab the tablewrapper<br />   $html = new html;<br />   list($tbopen,$tbclose) = $html -> table_wrapper(); 


I've attached a new showicons.tmpl file (too many changes / too lazy to document them all ).
Attachments
67258-showicons.tmpl (0 Bytes, 73 downloads)

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks!

Tweaked the main post above to version 1.1 to include your modifications! Thanks!

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
thanks!

Is there any way to make the note the default in the new post / reply pages? Blush is at the top, and I'm sure a lot of people won't bother to change it, or will complain that they do have to make a selection now.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
My hack to the ubbt_icon_select.tmpl does that.... what I did was leave the default option at the top... otherwise it's alphabetical.

So only take out the code from the blus on.... so that the ubbt_icon_select.tmpl should have the bit like this:

<option value="book.gif">{$ubbt_lang['ICON_NOTE']}</option>
$iconmenu
</select>

Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Perfect

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Updated this to version 1.2.

Version 1.2 adds a preview image.... so you can see a preview of what icon you've selected.

Demo here.


Try selecting a different post icon.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
This work on the quick reply mod? I really only want this for the quick reply.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Added to my site, !

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I did this on a client's site last night.

I'll pull together the tweaking instructions to use the icon select on the quick reply soon.

I wasn't able to include the template, as the layout had to be a little different, but I was able to just include the code.

Stay tuned....

Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
thanks josh wish I had some decent coding skills... fun toys constantly.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Installed and working great. Thanks Josh!

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Will you update this for 6.3? I've noticed a difference in the current version and the one you have installed here. The old version has note at the top, and if you select a different icon, and then go back to note, you get a broken link. It doesn't happen here though

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Will do.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks -your hard work is paing off: Threads Dev looks great!!!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)