php forum
php mysql forum
php mysql smarty
 
Topic Options
#268992 - 02/08/04 11:20 PM Add image and link to chat Who's Online page
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Since most of my users like to look in the who's online page to see who's in the chat room I added an image that links directly to it. Here is the code that I am using, some of you can probably work out a more dynamic method and maybe some tables but this works. (sorry for the scroll) <br /> <br />
Code:
 <br />$ubbt_lang['chat']  = 	"In Chat Room &lt;a href=\"chat.php\" target=\"_blank\"&gt;&lt;img src=\"{$config['imageurl']}/chat.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Go to chat room\" /&gt;&lt;/a&gt;"; <br />$ubbt_lang['chatheader']  =  "In Chat Room &lt;a href=\"chat.php\" target=\"_blank\"&gt;&lt;img src=\"{$config['imageurl']}/chat.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Go to chat room\" /&gt;&lt;/a&gt;"; <br />$ubbt_lang['chatroom']  =  "In Chat Room &lt;a href=\"chat.php\" target=\"_blank\"&gt;&lt;img src=\"{$config['imageurl']}/chat.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Go to chat room\" /&gt;&lt;/a&gt;"; <br />
<br />Here is the image that I am using (chat.gif) []http://www.vhfans.com/boards/images/chat.gif[/] <br /> <br />This is what it looks like:


Attachments
107450-Untitled-1.gif (60 downloads)



Edited by ericgtr (02/08/04 11:22 PM)

Top
#268993 - 02/09/04 12:24 AM Re: Add image and link to chat Who's Online page [Re: BlarC]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
<img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" /> !<br /><br />Off topic: Would you post the script you use for your menu? I like the way you changed you ubbt_registerednav.tmpl and ubbt_unregisterednav.tmpl files!
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#268994 - 02/09/04 01:30 AM Re: Add image and link to chat Who's Online page [Re: BlarC]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Nice. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#268995 - 02/09/04 09:38 AM Re: Add image and link to chat Who's Online page [Re: jacksonm99]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
[]Dalantech said:<br /> <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" /> !<br /><br />Off topic: Would you post the script you use for your menu? I like the way you changed you ubbt_registerednav.tmpl and ubbt_unregisterednav.tmpl files! [/]<br /><br />Thanks, I made the menu using DHTML Menu Builder and it generates two .js files. If you would like, PM me and I will send them to you but it's extremely proprietary to your site and I can imagine it would be a huge pain to manually edit. I also had to make a couple of board changes to get it to work because of javascript conflicts.

Top
#268996 - 02/09/04 03:28 PM Re: Add image and link to chat Who's Online page [Re: BlarC]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Be careful with DHTML menu's. Ask Josh, they tend to annoy mac users.
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#268997 - 02/09/04 03:42 PM Re: Add image and link to chat Who's Online page [Re: chrisX]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
I had a lot of trouble with it in the beginning but with the proper changes to the DHTML javascript and the board it can work out nicely. The drawback is that there are some limitations to certain Threads extras (mods) but not too hard to work around. The two mac users on my board said it was working okay for them, maybe Josh can stop by and see if it's working okay on his mac.

Top
#268998 - 02/09/04 04:06 PM Re: Add image and link to chat Who's Online page [Re: BlarC]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Thats good, I like the theme you're using.. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#268999 - 02/09/04 04:24 PM Re: Add image and link to chat Who's Online page [Re: chrisX]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Yes, it rocks dude! <img src="http://www.ubbdev.com/forum/images/graemlins/yay.gif" alt="" /> I have to make everything work with black but it's way worth it. I think my users would freak if I ever changed it on them. []http://www.vhfans.com/boards/images/graemlins/nunu.gif[/]

Top
#269000 - 02/09/04 07:11 PM Re: Add image and link to chat Who's Online page [Re: BlarC]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Hehehehehe
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#269001 - 02/16/04 03:20 AM Re: Add image and link to chat Who's Online page [Re: BlarC]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
Very nice...thank you for sharing. <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
F-Body Hideout
Project Speedy

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks