Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Add Link At Viewonline.php 
 
hello,what can I do for add a link in viewonline.php that when users go to view a link (www.alepczone.it/up/index.php in viewonline appears to the place of home page view hosting image?
screenhunter_2_1230379742_678270
thanks
 



 
AleeeeSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Add Link At Viewonline.php 
 
So say if someone is viewing your DOG page, you want the viewonline.php to show that they are on the DOG page?
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add Link At Viewonline.php 
 
Chaotic wrote: [View Post]
So say if someone is viewing your DOG page, you want the viewonline.php to show that they are on the DOG page?

yes,for example in impressum mod for ip if you go to impressum page in viewonline.php you view "view impressum"
 



 
AleeeeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add Link At Viewonline.php 
 
No problem.  The $lang examples I'm going to use may be different than what you are going to use, but I think you'll get the idea behind this.

For example, I want to add "Viewing Maps" to my Who Is Online which is found here:

http://www.macommunity.net/maps.php

Open: ip_root/language/your_language/lang_main.php

FIND:

Code: [Download] [Hide] [Select]
//====================================================
// Do not insert anything below this line
//====================================================


BEFORE, ADD:

(Don't forget to change some code below!)

Code: [Download] [Hide] [Select]
$lang['Viewing_Maps'] = 'Viewing Maps';


I believe the $lang variable can be anything you want it to be as long as you make sure you call it up correctly in the next file you edit.  Change 'Viewing_Maps' to whatever variable you wish.

$lang['Viewing_Maps']


This will be the text that shows when viewing Who Is Online.  Change it to whatever you want.

= 'Viewing Maps'


Open: ip_root/includes/functions_mg_online.php

FIND:

Code: [Download] [Hide] [Select]
    elseif (strpos($page_id, 'viewonline.' . $phpEx) !== false)
    {
        $location['lang'] = $lang['Viewing_online'];
        $location['url'] = 'viewonline.' . $phpEx;
        return $location;
    }


AFTER, ADD:

(Don't forget to change some code below!)

Code: [Download] [Hide] [Select]
    elseif (strpos($page_id, 'maps.' . $phpEx) !== false)
    {
        $location['lang'] = $lang['Viewing_Maps'];
        $location['url'] = 'maps.' . $phpEx;
        return $location;
    }


Change 'maps.' in:  elseif (strpos($page_id, 'maps.' . $phpEx) !== false) to whatever suits your needs.

Change Viewing_Maps to whatever variable you named it in lang_main.php.

$location['lang'] = $lang['Viewing_Maps'];

The $location['url'] should match the URL you wish to show in Who Is Online:

$location['url'] = 'maps.' . $phpEx;


I hope I didn't make this more complicated than it really is!  Let me know if I need to explain a little better.  If this is explained pretty well, I'll create a topic about this in the DOCS forum.
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add Link At Viewonline.php 
 
why if I went in your web site and with firefox i view maps.php and with opera I view viewonline.php,i view blank?
screenhunter_3_1230454955_723614
I'm user with firefox when i view maps.php
 



 
AleeeeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add Link At Viewonline.php 
 
I have no idea.

I downloaded the Opera internet browser and tried it myself.  Everything works just fine.

After I had Limun try this out, I figured out I didn't add the $lang variables to ALL of my language folders (Spanish, Italian, German...etc.)  I also use the automatic language detection MOD.

Should be working great now!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron