Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Online/Offline - First hack ever.. Details »»
Online/Offline - First hack ever..
Version: 1.00, by Webmasta XT Webmasta XT is offline
Developer Last Online: Jul 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-01-2002 Last Update: Never Installs: 15
 
No support by the author.

ok, so people with postbit like
http://www.xtreme-forumz.net/showthr...=&threadid=431

or like this..
http://www.yaxay.com/yack/showthread...&threadid=8084

Usually creates a mess in some other files, like this one..
http://yaxay.com/yack/showgroups.php

See the the status image? for online and offline, its from the postbit, that doesn't look good now does it? so i was looking around and thought of doing this hack

Find this in showgroups.php:
PHP Code:
postbit_offline 
Replace with (all of them):
PHP Code:
offline 
Find this:
PHP Code:
postbit_online 
Replace with (all of them):
PHP Code:
online 
Now create a new template online with the following content:
PHP Code:
<img src="{[b][/b]imagesfolder}/onlineimage.gif" border="0" alt="$post[username] is online" align="absmiddle"
Another new template offline with:
PHP Code:
<img src="{[b][/b]imagesfolder}/offlineimage.gif" border="0" alt="$post[username] is offline" align="absmiddle"
Live Demo: http://www.xtreme-forumz.net/showgroups.php

You can do this with all your files (.php files) but the template creation only needs to be done just once..

Show Your Support

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

Comments
  #12  
Old 09-02-2002, 09:29 PM
CRego3D CRego3D is offline
 
Join Date: May 2002
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, that's what we do ..

And clicked install, sorry, furgot
Reply With Quote
  #13  
Old 09-02-2002, 10:05 PM
Webmasta XT's Avatar
Webmasta XT Webmasta XT is offline
 
Join Date: Mar 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I put
PHP Code:
{imagesfolder}/onlineimage.gif 
its replaced with
PHP Code:
https://vborg.vbsupport.ru/vbimages/onlineimage.gif 
Reply With Quote
  #14  
Old 09-03-2002, 01:07 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put the instructions in a zip file.
Reply With Quote
  #15  
Old 09-03-2002, 08:00 PM
Webmasta XT's Avatar
Webmasta XT Webmasta XT is offline
 
Join Date: Mar 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont like making zip files..
Reply With Quote
  #16  
Old 09-03-2002, 08:21 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For this code you did, a zip file won't take longer than that!
Reply With Quote
  #17  
Old 09-03-2002, 09:00 PM
Rodney Rodney is offline
 
Join Date: Apr 2002
Location: Sweden
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack....
Reply With Quote
  #18  
Old 09-03-2002, 09:27 PM
Webmasta XT's Avatar
Webmasta XT Webmasta XT is offline
 
Join Date: Mar 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnx...
Reply With Quote
  #19  
Old 04-27-2003, 05:28 PM
sweetmercifulcr sweetmercifulcr is offline
 
Join Date: Dec 2002
Location: Scottsdale, Arizona
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how could this be included in the postbit?
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 04:46 PM.


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.04105 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
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
  • (8)bbcode_php
  • (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
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_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
  • postbit_imicons
  • 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