vBulletin Modifications

on/offline status before threads

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Closed Thread
 
LinkBack Thread Tools
Old 09-19-2004, 09:34 AM   #1
Junior Member
Join Date: Sep 2004
inter is on a distinguished road

Lightbulb on/offline status before threads

In TV's (GREAT) Lockdown hack there's an implemted on/offline checker that shows online/ofline status. Problem as user/mod/admin is that you first have to look at the thread before you can see the status. Wouldn't it be great that for example the green or red light (for on/offline users) is in an extra row in front of the thread (in the threadlisting)?

OK, i hear you coming ;), it will only change when someone checks the status. Maybe an extra mod/admin option to check all threads in forum?

If someone could fix this i think a lot of people would be happy with this.

Thx in advance

Inter




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 09-19-2004, 02:50 PM   #2
Charter Member
Join Date: Apr 2004
Hyper is on a distinguished road

Default

The reasoning for it be only check online/offline when you view a thread, is soo that the web server isnt bouncing out ping requests to all the threads it would have to check every time a mod/amin was to view a forum..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-19-2004, 03:36 PM   #3
Junior Member
Join Date: Sep 2004
inter is on a distinguished road

Default

the on/offline pic in front of thread doesn't need extra ping

for the second part, i don't think mods/admins will check on/offline status five times a day




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-19-2004, 04:04 PM   #4
Niels
Support Staff
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

inter search the forum I already talked with fury about placing extra info before the thread ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-20-2004, 02:58 PM   #5
Junior Member
Join Date: Sep 2004
inter is on a distinguished road

Default

if i only could do the changes niels 999 ...
i'm a real n00b so i'm asking for help




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-20-2004, 04:13 PM   #6
Niels
Support Staff
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

Found it for you.
There is an link in the Forumdisplay template to:
threadbit template (Threadbit Templates)

Code:
<tr>
<td class="alt1"><img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" /></td>
<if condition="$show['threadicons']">
<td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
</if>
<td class="alt1Active" id="t$thread[threadid]" title="$thread[preview]">
That is what you where searching for I think
Btw.
An online/offline for the thread would be a cool feature going to code that
AND THE THREADLINK:
http://www.vbhacks.us/forum/showthread.php?t=554

What to do:
update the lockdown table with 1 extra row: working
Insert by the
ftp_connect();
code in tv's hack an extra sql query.
if online add 1 to working if offline set it to 0

Then you see the template it's easy ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-20-2004, 07:58 PM   #7
Coder
Join Date: Aug 2004
Fury is on a distinguished road

Default

well no need in update anything

just threadbit template modification and some addons in forumdisplay.php.

Go To Forumdisplay.php
Search for =>

You must first be a registered member to view any code.
add under what ever you want

for example

$statusinfo = $DB_site->query_first(.. get info from the table ..);

if ($statusinfo[online_table] == "up") {
$status = "<img src=\"images\up.gif\">";
} else {
$status = "<img src=\"images\down.gif\">";
}

as you can see i wrote it with alot of blank places, just fill them according to the hack you are using, get the status about the ftp if its online or offline.
add it to where ever you want in threadbit template, and you got it

have fun,
Fury
__________________
The Brave Ones Doesnt Live Forever, But The Cowards Doesnt Live At All..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-20-2004, 11:00 PM   #8
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

You will first have to modify your lockdown to store the status. You cant call for status info from a dbase table if it doesnt exist in the first place and to my knowledge that is no lockdown that does this atm. My manual ftp checker does store status in the dbase however and if your already using that then the above hack will work if not then you will have to modify your existing status checker to update the dbase.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-21-2004, 12:27 PM   #9
Coder
TheProphet's Avatar
Join Date: Apr 2004
Location: Holland
TheProphet is on a distinguished road

Default

Quote:
Originally Posted by ShavedApe
You will first have to modify your lockdown to store the status. You cant call for status info from a dbase table if it doesnt exist in the first place and to my knowledge that is no lockdown that does this atm. My manual ftp checker does store status in the dbase however and if your already using that then the above hack will work if not then you will have to modify your existing status checker to update the dbase.
Isnt it possible to copy the info from the thread like the flag and the online text (i made a picture) Like for online and :mad: for offline.
Attached Images
File Type: gif thread-status.gif (3.4 KB, 55 views)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-21-2004, 12:39 PM   #10
Coder
Join Date: Aug 2004
Fury is on a distinguished road

Default

Ill write addon to it, to TV's hack




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Expired Threads (Auto Close Threads) Ken Iovino vBulletin 3.5 / 3.6 Hack Releases 34 12-04-2006 05:03 PM
New Threads since last visit Snatch vBulletin Modification Requests 0 01-17-2006 02:18 PM
[REQ]Close new threads, but not new posts. DvilleStoner vBulletin Modification Requests 7 06-08-2005 02:26 PM
Online/Offline status in last 10 races CMD vBulletin Modification Requests 3 09-30-2004 07:14 PM


All times are GMT -3. The time now is 11:51 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)