vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Online/Offline - First hack ever.. (https://vborg.vbsupport.ru/showthread.php?t=43095)

Webmasta XT 09-01-2002 10:00 PM

Online/Offline - First hack ever..
 
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..

Webmasta XT 09-02-2002 08:05 PM

This post is reserved for addons......
Hope this counts as a hack, lol
Comments and feedback would be apperciated. :banana:

CRego3D, as i mentioned your boards, you should probably install this hack.. :cool:

Webmasta XT 09-02-2002 08:11 PM

just adding offline/online images, for ppl who aren't gonna make there own, upload them to your images folder... :classic:

CRego3D 09-02-2002 08:42 PM

Heee .. I will fix ours :D .. seem you used it as a reference it must look real bad :p

Webmasta XT 09-02-2002 08:43 PM

also click install =P

NTLDR 09-02-2002 08:45 PM

Nice hack ;) No use to me as I only have text but it will make pages like showgroups.php look much better now.

Congrats on your first hack :D

Webmasta XT 09-02-2002 08:47 PM

thank you, and hope it comes in handy for all the ppl

CRego3D 09-02-2002 09:07 PM

Fixed :D http://yaxay.com/yack/showgroups.php

And BTW

Quote:

Originally posted by Webmasta XT

Now create a new template online with the following content
PHP Code:

<img src="images/onlineimage.gif" border="0" alt="$post[username] is offline" align="absmiddle"


That shoudl be :D

PHP Code:

<img src="images/onlineimage.gif" border="0" alt="$post[username] is online" align="absmiddle"

On ours I use

PHP Code:

<img src="{[b][/b]imagesfolder}/onlineimage.gif" border="0" alt="$post[username] is online" align="absmiddle"


Webmasta XT 09-02-2002 09:09 PM

opps my mistake, forgot to replace Offline with online..
First post updated with the fix, and CRego3D can you click install? :)

N9ne 09-02-2002 09:23 PM

you should put:

PHP Code:

{imagesfolder}/onlineimage.gif 

Instead of images/onlineimage.gif ;)

CRego3D 09-02-2002 09:29 PM

Yep, that's what we do :) ..

And clicked install, sorry, furgot :p

Webmasta XT 09-02-2002 10:05 PM

When I put
PHP Code:

{imagesfolder}/onlineimage.gif 

its replaced with
PHP Code:

https://vborg.vbsupport.ru/vbimages/onlineimage.gif 


FleaBag 09-03-2002 01:07 AM

Put the instructions in a zip file.

Webmasta XT 09-03-2002 08:00 PM

I dont like making zip files..

Bison 09-03-2002 08:21 PM

For this code you did, a zip file won't take longer than that!

Rodney 09-03-2002 09:00 PM

nice hack....

Webmasta XT 09-03-2002 09:27 PM

thnx...

sweetmercifulcr 04-27-2003 05:28 PM

how could this be included in the postbit?


All times are GMT. The time now is 04:50 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.01259 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete