Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-15-2001 Last Update: Never Installs: 0
 
No support by the author.

This is a small (very small) Hack i made today. Its like ubb's UBonline.cgi hack. so small anyone could install it

Step 1
Open showthread.php/php3 and find
Code:
$userid=$post[userid];

  if ($userid!=0) {
    $userinfo=$post;
and UNDER it add
Code:
// User Online Icon Hack by Chris Boulton
$status = $DB_site->query_first("SELECT session.userid,user.username,user.receivepm FROM session, user WHERE session.userid=user.userid AND session.userid='".intval($userinfo[userid])."'");
if ($status) {
$usersstatus = "<img src=\"images/online.gif\" border=0 alt=\"$userinfo[username] is Online\">";
} else {
$usersstatus = "<img src=\"images/offline.gif\" border=0 alt=\"$userinfo[username] is Offline\">";
}
// User Online Icon Hack by Chris Boulton
Step 2
save and upload

Step 3
open your postbit template
and instert $usersstatus where you want to display if the threads poster is online or offline

Step 4
download or make 2 images (offline.gif and online.gif)
I use the ones that ubbdev.com use

Please be nice on me, this is the first hack i have made for vBulletin. If someone has already done it sorry.

BTW - does anyone want to help me with a Instant Message Hack, i am crap at php but i have done the templates etc etc.


If you have trouble with this hack reply or contact me

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-16-2001, 04:45 PM
Guest
 
Posts: n/a
Default

well I dunno y all these peeps r dissing it, but i happen to like it a lot! thanks!
Reply With Quote
  #13  
Old 01-17-2001, 03:31 AM
Guest
 
Posts: n/a
Default

i don't know if it's just me.......but this hack doesn't seem to to work in vbb1.15......whenever i add it it shows a database error.....has anyone using vbb1.15 get this hack to work??
Reply With Quote
  #14  
Old 01-17-2001, 04:06 AM
Guest
 
Posts: n/a
Default

No one is dissing it. I think its a great hack...but I'm all for improving it and making it easier on my server load.

Reply With Quote
  #15  
Old 01-17-2001, 04:31 AM
Guest
 
Posts: n/a
Default

works great on 1.14, will try on 1.15 later.

whats the error you get
Reply With Quote
  #16  
Old 01-17-2001, 05:52 AM
Guest
 
Posts: n/a
Default

Anyway to Optimize this like Ed Sullivan suggested?
Reply With Quote
  #17  
Old 01-17-2001, 01:39 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by VirtueTech
Anyway to Optimize this like Ed Sullivan suggested?
Sure you could do it like I have done it in v2.0
Reply With Quote
  #18  
Old 01-18-2001, 12:53 AM
Guest
 
Posts: n/a
Default

well......everything works fine until i click on one of the threads, then it showed up a page that said there was some database error......
Reply With Quote
  #19  
Old 01-21-2001, 08:11 AM
Guest
 
Posts: n/a
Default

I get same error with 1.1.5

Unless anything here is wrong

$userid=$post[userid];

if ($userid!=0) {
$userinfo=$post;
// User Online Icon Hack by Chris Boulton
$status = $DB_site->query_first("SELECT session.userid,user.username,user.receivepm FROM session, user WHERE session.userid=user.userid AND session.userid='".intval($userinfo[userid])."'");
if ($status) {
$usersstatus = "<img src=\"images/online.gif\" border=0 alt=\"$userinfo[username] is Online\">";
} else {
$usersstatus = "<img src=\"images/offline.gif\" border=0 alt=\"$userinfo[username] is Offline\">";
}
// User Online Icon Hack by Chris Boulton
$username=htmlspecialchars($userinfo[username]);
$searchuser=urlencode($userinfo[username]);
//star hack
if ($userinfo[usertitle]=="Administrator") {
Reply With Quote
  #20  
Old 01-24-2001, 02:02 AM
Guest
 
Posts: n/a
Default

Hey Scaramanga

I like the addition but here is your problem for the all offline problem

PS

This work for 1.1.5
just make sure you have the whos online hack.

Code:
// User Online Icon Hack by Chris Boulton 
$status = $DB_site->query_first("SELECT session.userid,user.username,user.receivepm FROM session, user WHERE session.userid=user.userid AND session.userid='".intval($user[userid])."'"); 
if ($status) { 
$usersstatus = "<a href=\"whoisonline.php3?action=onlineusers\"><img src=\"images/online.gif\" border=0 alt=\"$user[username] is Online\"></a>"; 
} else { 
$usersstatus = "<img src=\"images/offline.gif\" border=0 alt=\"$user[username] is Offline\">"; 
} 
// User Online Icon Hack by Chris Boulton
Reply With Quote
  #21  
Old 01-24-2001, 03:02 AM
Guest
 
Posts: n/a
Default

Quote:
Sure you could do it like I have done it in v2.0 [/B]
How would that be freddie?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 05:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04049 seconds
  • Memory Usage 2,275KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete