Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
Update the "Who's Online" viewing location for new PHP files & Hacks
!!!
Join Date: Nov 2002
Posts: 70

by !!! !!! is offline 25 Nov 2002

This is simple, and I apologize for it being a pathetic one...but it's useful.

Open up online.php (in your root folder), and search for this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Place below it the following code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

MAKE SURE YOU REPLACE "TITLEOFPAGE" WITH THE NAME OF THE PAGE (JUST LETTERS; NO FANCY CHARACTERS OR SPACES) -- a good idea might be to end it with "funfun" or something so that you don't replicate an already existing title.

The "DESCRIPTION OF PAGE..." part will be what shows up in the location menu on the "Who's Online" page.

Now, to add the final altering to make the whole thing work, find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After it, add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Make sure you replace "TITLEOFPAGE" with the one you used above. Then, replace "NAMEOFPHPFILE" with the name of the file that the viewer is actually at.

I did it on my boards for "toplist.php" & "attach.php." Their codes were:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I'm going to do it for the shoutbox as well, but I think you get the idea. So, have fun.
Views: 3223
Reply With Quote
Comments
  #2  
Old 25 Nov 2002, 00:07
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Real name: Matthew Gordon
I personally consider this more of a reference than a hack. But hey, it qaulifies.
__________________
Along with Zachery, I make releases as GeekyDesigns. Please do not PM or IM me for support.
Reply With Quote
  #3  
Old 25 Nov 2002, 00:09
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Or you can just install Firefly's "Who's Online Location via Admin CP" hack, and do all this via your Admin CP without needing to hack your online.php each time you have a new file.
Reply With Quote
  #4  
Old 25 Nov 2002, 00:10
LOD-squa's Avatar
LOD-squa LOD-squa is offline
 
Join Date: Aug 2002
Real name: Jean Carlos
I knew about this but it's a good idea to tell users how to do it.
Reply With Quote
  #5  
Old 25 Nov 2002, 01:22
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Real name: Matthew Gordon
Originally posted by Erwin
Or you can just install Firefly's "Who's Online Location via Admin CP" hack, and do all this via your Admin CP without needing to hack your online.php each time you have a new file.
I prefer hand-editing the file to tell you the truth. That way I have more control over it
__________________
Along with Zachery, I make releases as GeekyDesigns. Please do not PM or IM me for support.
Reply With Quote
  #6  
Old 25 Nov 2002, 16:21
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Real name: James Covey
hand editing something like this is only 2 lines that need not be custminzed, otehr than the name, so fireflys hack is rather good even if you like to have more control.
Reply With Quote
  #7  
Old 25 Nov 2002, 17:49
Brad Brad is offline
 
Join Date: Nov 2001
Fireflys hack would never work for me, so ive always done it by hand.
Reply With Quote
  #8  
Old 26 Nov 2002, 16:26
SpeedStreet SpeedStreet is offline
 
Join Date: Aug 2002
Im in agreement with Anime-Loo. For quick and dirty and easy, say if you only have one page or so to add, this is a useful tool. Thanks!
__________________
Charity Organization Charity Coder
Reply With Quote
  #9  
Old 27 Nov 2002, 23:43
John's Avatar
John John is offline
 
Join Date: Mar 2002
Real name: John Warwick
This method is great when you need to add different names for different GET strings
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

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


New To Site? Need Help?

All times are GMT. The time now is 20:37.

Layout Options | Width: Wide Color: