Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Modification Name: DHTML Posting Icons

Author(s): Ian Spence

Description: This mod hides all of the icons except for first one, the user then clicks the icon, and the rest of the icons will appear, where the user will need to click the icon they wish to use. The other choices will disappear, and the selected icon will replace the icon originally clicked.

Demo: http://www.alforadmin.com/cgi-bin/ultimatebb.cgi?ubb=newtopic;f=2

Requirements: UBB.classic 6.7 - Wouldn't be suprised if it worked on 6.6 and earlier. Please test

Download Link: https://www.ubbdev.com/ubb/upload/00020028/messageicon67.txt

login: ubbdev
password: ubbdev


Please think of a better name for this mod

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Very nice work Ian thumbsup

Don't have a better name yet, maybe 'dhtml posting icons'?

One possibly cool modification would be for the box that opens up to just make one row to the right so that the layout doesn't change during selection. smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Allen, that'd be a long row with added message icons lol...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Updated with an even better solution laugh

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Lol, I guess that works :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
nice smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Very nice. I'd suggest making it so clicking on the body would collapse it, but then you get to deal with bubbling issues...


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Updated with some "touchy feely" fixes. Made it so you get the 'pointer' cursor when hover over the images. It's the same pointer you would have seen if it was actually a link.

I also added a tiny link in the bottom of the icon field with "Close [x]" that allows you to hide the window without changing the icon.

Still haven't gotten a way to make it so clicking the body closes it, as there's a whole lot of onclick/bubbling going on on reply pages.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
A little fyi, this allows for a very nice hack that allows you to choose icons with quick reply.

First, install this mod.

Code added to modEnd hack laugh Clear topic cache and enjoy

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
lol, my monkey 'eh?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
looking even betta thumbsup


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I think you can hide it by onUnFocus or something like that...

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I've got bubbling under control in Mozilla firefox (I'll assume it's the same in Mozilla) and IE6. I'm getting someone to test it on Opera now, so I should be able to update this today

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Updated with the following fixes/features.

Table no longer stretches as long as the page in Opera.
Clicking the body of the page hide the table.
It's now added to the quick reply for topics.
And yes, I removed all the bubbling

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Looks awesome ian, thanks smile .


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
The icon box is now showing up in the upper left corner for me rather than where it should. Firebird 0.7...


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
hmmm... Firefox shows it correctly, lemme try something

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Charles, I'm becoming convinced that this was a bug with 0.7, as it works in 0.8.

I've added a check for firebird browsers that, instead of having the position absolute, will have it relative. Care to try it before I release it?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Agreed with Ian, I'm using 0.8 and it all shows up perfectly.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
I think I should start to take over Gizzy's title of being "code breaker" ... when I try to install this hack (on my test site tipsy ) ... I get white pages when I go from the front page of the board to a post ...

For now, I'll stick with Brett's quick fix for my message icon ... even though I think Ian's new hack looks way cool.


Sue
adwoff.com
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Code
		document.getElementById('iconimage').alt = '$escaped_wordlet' + ' ' + iconnumber;
I think it should be
Code
		document.getElementById('iconimage').alt = unescape('$escaped_wordlet') + ' ' + iconnumber;

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Sue, I retried it on a fresh 6.7.1 install and it went flawlessly.

Updated with LK's code

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Quote
Originally posted by Ian Spence:

Sue, I retried it on a fresh 6.7.1 install and it went flawlessly.

Updated with LK's code
I tried it again, Ian. Still get *nothing* when I go to access a page outside of the forum summary page. I'm really beginning to think I'm a jinx on hacks and upgrades! tipsy

Maybe I'll try it again down the road, but for now, I just gotta stick with what is working.


Sue
adwoff.com
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Ian, I had made some mistakes on my end ... I finally figured them out, and now I have this very, very cool mod working on my site.

I do have a question, though ...

Because of my smilie pulldown menu, the first four or five message icons don't appear like they should ... here's a screen shot:

[Linked Image]

If you work really hard, you can still get them ...

I was wondering if there was an *easy fix* to have the icon box pop-up in a different direction. Does that make sense?

If it's not an *easy fix* -- don't worry about it. I'll live with it as it is. smile


Sue
adwoff.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
the easiest fix is to move to Firefox.

The other easy fixes require editing a whole lot of templates

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Quote
Originally posted by Ian Spence:

the easiest fix is to move to Firefox.
Okay, what's *firefox*? confused


Sue
adwoff.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Quote
Originally posted by Ian Spence:

http://www.mozilla.org/products/firefox/

It's a browser tipsy
Oh! LOL


Sue
adwoff.com
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Ian, think of her members wink ...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
uh... link them all to firefox smile

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Sue, in public_topic_page.pl

change
Code
$hf->[0] =~ s/<body/<body onclick="document.getElementById('icondiv').style.display = 'none';"/isg;
to

Code
$hf->[0] =~ s/<body/<body onclick="document.getElementById('icondiv').style.display = 'none';"/isg unless $stat_line[1] =~ m/X/;
That will fix that javascript error.

txt updated

Joined: Dec 2003
Posts: 49
User
User
Offline
Joined: Dec 2003
Posts: 49
Quote
Originally posted by Ian Spence:

Charles, I'm becoming convinced that this was a bug with 0.7, as it works in 0.8.

I've added a check for firebird browsers that, instead of having the position absolute, will have it relative. Care to try it before I release it?
This problem exists in Netscape 7.1 too.

Joined: Sep 2001
Posts: 61
Member
Member
Offline
Joined: Sep 2001
Posts: 61
I just installed it and it works great. Thanks laugh

Joined: Dec 2003
Posts: 49
User
User
Offline
Joined: Dec 2003
Posts: 49
Quote
Originally posted by Nightcrawler:

This problem exists in Netscape 7.1 too.
Has anyone come up with a solution to this one? Thanks in advance for any assistance.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2

Joined: Dec 2003
Posts: 49
User
User
Offline
Joined: Dec 2003
Posts: 49
Quote
Originally posted by Ian Spence:

if only Netscape 8 was out.
Actually, I agree with you. But, I had spent several hours trying to convince one of my users to upgrade and he refuses to use anything but that version of Netscape. If there isn't a solution on the UBB end of things, then I'll gladly tell him. laugh

He's been wanting me to remove this hack just for him for awhile now.


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
isaac
isaac
California
Posts: 1,157
Joined: July 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
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 20221218)