Current time: 03-18-2010, 08:31 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add a custom location to Who's Online List? - Comprehensive Tutorial
02-04-2009, 05:46 PM
Post: #21
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
(02-02-2009 07:34 PM)flash.tato Wrote:  Well my solution is pretty raw i've to say.
Because it doesn't check proper URL (that code with index.php?id=ok will fail because it isn't handled properly) but hey it was meant as proof of concept. Wink

And good work for a guide also if i highly suggest users to learn PHP or better programming Big Grin
maybe an strpos? or parse_str?
(02-03-2009 08:33 AM)aglioeolio Wrote:  this was very usefull to me, thanks dvb Smile
no problem Toungue

Creativity is a drug I cannot live without.

Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2009, 12:14 AM
Post: #22
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
hmm, i get this:
Quote:Parse error: syntax error, unexpected T_CASE in /home/johnp/public_html/inc/functions_online.php on line 893

am i suppose to change something or did i miss something?

http://admincentralforums.com

http://graphiczcentral.net
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2009, 12:16 AM
Post: #23
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
(02-12-2009 12:14 AM)indigored Wrote:  hmm, i get this:
Quote:Parse error: syntax error, unexpected T_CASE in /home/johnp/public_html/inc/functions_online.php on line 893

am i suppose to change something or did i miss something?
Please paste line 893 of functions_online.php

The CMS is currently being moved to http://elite-area.com/!
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2009, 12:36 AM (This post was last modified: 02-12-2009 12:36 AM by JonP.)
Post: #24
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
Quote:case "customfile": //that's the custom page filename without the '.php'
$user_activity['activity'] = "custom"; //that's the parameter to the 'build_friendly_wol_location($user_activity)'
break; return $user_activity;

i think i missed something

http://admincentralforums.com

http://graphiczcentral.net
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2009, 01:00 AM (This post was last modified: 02-12-2009 01:02 AM by dvb.)
Post: #25
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
The problem should be in the line before line 893, please post about 10-20 lines around line 893 if you don't know where exactly the problem

---------

Quote:
PHP Code:
case "customfile":   //that's the custom page filename without the '.php'
            
$user_activity['activity'] = "custom"//that's the parameter to the 'build_friendly_wol_location($user_activity)'
            
break; return $user_activity
There is no reason to put 'return' statement after the 'break' statement, it will never execute.

Creativity is a drug I cannot live without.

Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2009, 01:55 AM (This post was last modified: 02-12-2009 01:56 AM by JonP.)
Post: #26
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
PHP Code:
$plugins->run_hooks_by_ref("fetch_wol_activity_end"$user_activity);
    
    
line 434: case "customfile":   //that's the custom page filename without the '.php'
            
$user_activity['activity'] = "custom"//that's the parameter to the 'build_friendly_wol_location($user_activity)'
            
return $user_activity; break; 

i get that error on line 434, idk what im doing wrong.

http://admincentralforums.com

http://graphiczcentral.net
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2009, 03:33 PM (This post was last modified: 02-12-2009 05:26 PM by dvb.)
Post: #27
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
In the post before you've said it's a line 893, now it's 434? if you've changed things please update us.

Please post the whole 'switch' or the even the whole file, since I can't see any problem in the posted code. and also the exact error.

Creativity is a drug I cannot live without.

Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2009, 05:09 PM
Post: #28
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
just forget it, i dont need this now

http://admincentralforums.com

http://graphiczcentral.net
Visit this user's website Find all posts by this user
Quote this message in a reply
02-24-2009, 07:24 PM
Post: #29
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
do i get a simple plugin for doing that instead

Electrical mechanical computer science electronics civil engineering seminar topics
Visit this user's website Find all posts by this user
Quote this message in a reply
02-24-2009, 08:19 PM
Post: #30
RE: How to add a custom location to Who's Online List? - Comprehensive Tutorial
(02-24-2009 07:24 PM)remshad Wrote:  do i get a simple plugin for doing that instead

this is the simplest way, if you want a plugin you can request that in the "MyBB Resources" -> "Plugins & Code Modifications" -> "Requests" forum

Creativity is a drug I cannot live without.

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: