PDA

View Full Version : Online/Offline - First hack ever..


Webmasta XT
09-01-2002, 10:00 PM
ok, so people with postbit like
http://www.xtreme-forumz.net/showthread.php?s=&threadid=431

or like this..
http://www.yaxay.com/yack/showthread.php?s=&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:

postbit_offline


Replace with (all of them):

offline


Find this:

postbit_online


Replace with (all of them):

online


Now create a new template online with the following content:

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


Another new template offline with:

<img src="{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

Originally posted by Webmasta XT

Now create a new template online with the following content

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


That shoudl be :D


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


On ours I use


<img src="{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:


{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
{imagesfolder}/onlineimage.gif
its replaced with
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?