php forum
php mysql forum
php mysql smarty
 
Topic Options
#217520 - 05/30/02 12:36 PM Who's Online with "external pages".
casper_dup1 Offline
Member

Registered: 03/10/02
Posts: 175
Loc: Boston, MA
I would like to add pages to the online.php. I have succeeded in doing so but.....<br /><br />When a user shows up as being on one of those pages there is a 0 after the page description on the Who's online page.<br /><br />i.e. Anonymous 05/30/02 01:27 PM Viewing an External page0<br /><br />When using the IIP online.php modification it works fine.<br /><br />What am I missing?<br />
_________________________
http://www.unnecessaryroughness.com

Top
#217521 - 05/30/02 01:43 PM Re: Who's Online with "external pages". [Re: zf98844]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
it's one of those weird bugs noone has tracked down yet...
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#217522 - 05/30/02 02:32 PM Re: Who's Online with "external pages". [Re: beatdown]
casper_dup1 Offline
Member

Registered: 03/10/02
Posts: 175
Loc: Boston, MA
But... The IIP does not show up with a 0 at the end.<br /><br />JustDave. Let me in on your little secret. <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
http://www.unnecessaryroughness.com

Top
#217523 - 05/30/02 04:51 PM Re: Who's Online with "external pages". [Re: zf98844]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL no secret stuff going on there... but if you want to talk about the majestic 7 or the aurora project we might get a bunch of .gov hits around here. <img src="/forum/images/icons/wink.gif" alt="" /><br /><br />I'm not sure if that 0 is being added by specific text editor carriage returns or what. All that is needed is an entry in the online.php file in the related language directory. In the online.php file add a variable that uses the name of the page you wish to show up in the "Who's Online" screen.<br /><br />Example:<br /><br />If your page is named mypage.php you would create a variable such as:<br />$ubbt_lang['mypage'] = "Looking at my page!";<br /><br />or for a page named guestbook.php you would add this variable:<br />$ubbt_lang['guestbook'] = "Reading the Guest Book!";<br /><br />Also, the easiest way for the database to be updated with the online information is to use .threads for sending the header and footer. The ubbt.inc.php script adds the page name to the online data. (also, this way they carry the same look through out too) <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />And, just to note, proabably check the variables in the online.php script and make sure there are no control characters present at the ends of the strings. Maybe backspacing from the double quote a character or two then typing them back in would help?
_________________________
~Dave
ChattersOnline.com

Top
#217524 - 05/30/02 05:12 PM Re: Who's Online with "external pages". [Re: sjsaunders]
casper_dup1 Offline
Member

Registered: 03/10/02
Posts: 175
Loc: Boston, MA
Thanks Dave. <br /><br />That's the method that I have been using. I checked the file and and found nothing different than the other entries there.<br /><br />I even tried manually typing the line in so it wasnt a copy and paste. Top of the file bottom of the file. No luck. <img src="/forum/images/icons/crazy.gif" alt="" />
_________________________
http://www.unnecessaryroughness.com

Top
#217525 - 05/30/02 05:28 PM Re: Who's Online with "external pages". [Re: sjsaunders]
casper_dup1 Offline
Member

Registered: 03/10/02
Posts: 175
Loc: Boston, MA
Ok... Here is some more info for you.<br /><br />I only see the 0 if the user viewing the external page is anonymous.<br /><br />So the "bug" must be somewhere after line 188 of online.php .
_________________________
http://www.unnecessaryroughness.com

Top
#217526 - 05/30/02 05:46 PM Re: Who's Online with "external pages". [Re: zf98844]
casper_dup1 Offline
Member

Registered: 03/10/02
Posts: 175
Loc: Boston, MA
If $What = the page you are viewing and $Extra is what your are doing there i.e.veiwing post "xxxxxxx"<br /><br />Is it possible with the external pages the variable $Extra is being identified(or being undefined which makes more since since a null = 0) as a 0? <br /><br />So now what you are seeing is $What$Extra or "Page you are viewing"0
_________________________
http://www.unnecessaryroughness.com

Top
#217527 - 05/30/02 07:03 PM Re: Who's Online with "external pages". [Re: zf98844]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
That's a good point and it may very well be the case. I'll take a look at things to see if I can find out if that's the case. <img src="/forum/images/icons/smile.gif" alt="" /> (I been currious about this myself)
_________________________
~Dave
ChattersOnline.com

Top
#217528 - 05/30/02 07:39 PM Re: Who's Online with "external pages". [Re: zf98844]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
It's funny how when you go looking for something that's usually there, it's not. I sat and waited for 10 mins for an anonymous user to show up with no avail.. LoL I'll keep looking at things. Maybe it will jump out.
_________________________
~Dave
ChattersOnline.com

Top
#217529 - 05/30/02 08:07 PM Re: Who's Online with "external pages". [Re: zf98844]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I think I found the error and have the fix. I'm posting this in the Bug board too. <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />In the online.php script find this (line 273-276):<br /><br /> $anonrow[$x]['Username'] = $Username;<br /> $anonrow[$x]['Last'] = $Last;<br /> $anonrow[$x]['What'] = $What;<br /> $anonrow[$x]['Extra'] = $Extra;<br /><br />Change that to this:<br /><br /> if (!$Extra) {$Extra = "";}<br /> $anonrow[$x]['Username'] = $Username;<br /> $anonrow[$x]['Last'] = $Last;<br /> $anonrow[$x]['What'] = $What;<br /> $anonrow[$x]['Extra'] = $Extra;<br /><br /><br />You were right about a null or zero value being returned by the query results. The $Extra variable is set to a blank string prior to the while loop but during the loop it is the value of field returned from the query.
_________________________
~Dave
ChattersOnline.com

Top
#217530 - 05/30/02 11:40 PM Re: Who's Online with "external pages". [Re: sjsaunders]
casper_dup1 Offline
Member

Registered: 03/10/02
Posts: 175
Loc: Boston, MA
Cool. That worked. <br /><br />Thanks JustDave.
_________________________
http://www.unnecessaryroughness.com

Top
#217531 - 06/01/02 11:50 AM Re: Who's Online with "external pages". [Re: zf98844]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Can this method be used with non-php pages?<br /><br />for example photos.pl doesn't seem to work.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#217532 - 06/01/02 02:19 PM Re: Who's Online with "external pages". [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I don't think so as that's not a php script. Using a php script you can use ubbt's send_header function to have pages placed in the online table.
_________________________
~Dave
ChattersOnline.com

Top
#217533 - 04/11/03 03:09 PM Re: Who's Online with [Re: sjsaunders]
ChrisBeveridge Offline
Junior Member

Registered: 03/17/03
Posts: 12
Seeing how old this thread is and new versions out since, has the method for adding external pages changed? I'm curious to add some pages, but not sure what I need to do to the existing non-ubbt php page

Top
#217534 - 04/12/03 01:30 PM Re: Who's Online with [Re: Wolfsmutter]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
hmmmm... I believe a mod was written for a WOL Pal, if I se it I'll post a link <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks