Not Solved User Activity
#1
Not Solved
Something really wrong Confused !!

i have made a certain custome page, with all the headers, footer, navigation ect....

so this page is being as Unkown Location since i set it. and since then i've been trying to find out how to set a user activity ( location) for this page.

I have read several posts, and tried several ways
usually it was like

find

// default
		default:
			$locationname = sprintf($lang->unknown_location, $user['location']);
			break;

and above it

add

 //mypage
		case "mypage":
			$locationname = "Viewing my page";
			break;


and

find

default:
			$user['activity'] = "unknown";
			break;

above it

//mypage
		$user['activity'] = "viewing my page";
			break;

all that didn't work.

some questions:

1- case "mypage":, mypage referes to what ?? the template name, file name or the nav.
2- anything else to be added to that page ? i have tried actually something but also havent worked.


so who have tried that and had it working ???


regards
Reply
#2
Not Solved
Any of the developers :Big Grin???

thanks
Reply
#3
Not Solved
"mypage" referrs to the file name. Example for mypage.php:

Open online.php and search for:
        case "calendar_editevent":
            $locationname = $lang->editing_event;
            break;
Add after:
        case "mypage":
            $locationname = "<a href=\"mypage.php\">My Page</a>";
            break;
Search for:
            else
            {
                $user['activity'] = "calendar";
            }
            break;
Add after:
        case "mypage":
            $user['activity'] = "mypage";
            break;
Greets,
Michael
-------------
[Image: donation_drive_sig.png]
Reply
#4
Not Solved
that thing isn't working i have tried it times and timeConfused and it's like somehow the same i used

many regards and thanks
Reply
#5
Not Solved
That's weired, it's working fine for me...In your code
//mypage
        $user['activity'] = "viewing my page";
            break;
something was missing at the top:
case "mypage":
Have you tried to insert that line into your code?
Greets,
Michael
-------------
[Image: donation_drive_sig.png]
Reply
#6
Not Solved
Hmmmm...
Why is the case "mypage"?
Suppose I want it to be like.

If they are at "gzr.php" I want it to display "Viewing GZR.php" what do I do?
[Image: gzrsig.php]
Reply
#7
Not Solved
case "mypage":
$locationname = "<a href=\"gzr.php\">Viewing GZR.php</a>";
break;
Greets,
Michael
-------------
[Image: donation_drive_sig.png]
Reply
#8
Not Solved
Michael83 Wrote:Have you tried to insert that line into your code?

Yes ofcourse i did!!!!

however , send me ur online!! i might try it without editing !!

many thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)