Please login to see this link Get registered or Log in |
Well, technically, it never had an online offline image. That was something that I did custom on our site years ago and did it on some other peoples sites as well. If that is something you want to do so its like what I have, I will have to go digging through all the files to figure out where I did that since I do remember that it was several areas that needed to be edited.
yeah i would be interested in finding out which files i need to edit Corpse. However i know that you are always busy so maybe when you have some spare time. I don't mind learning these things myself. Just need pointed in the right direction. I may have to get yourself to have a look at the sentinel and honeypot of my website(just whenever you have some free time) i'm not sure i have it set correctly
Okay, here is how I did it. Just note, there may be other spots that need to be modified later, but for now, this will get you what your looking for.
- You need 3 images, Online, Offline, Hidden. Once you have those 3 images made, go to folder public_html/modules/Forums/images/ and upload them. Name them something like online.png offline.png and hidden.png. No Spaces in the names.
- Open public_html/modules/Forums/viewtopic.php.
Find:PHP: [ Select all ]
<img src="' . $images['icon_online'] . '"
Replace with:PHP: [ Select all ]
<img src="./modules/Forums/images/online.png"
Find:PHP: [ Select all ]
<img src="' . $images['icon_hidden'] . '"
Replace with:PHP: [ Select all ]
<img src="./modules/Forums/images/hidden.png"
Find (Occurs twice):PHP: [ Select all ]
<img src="' . $images['icon_offline'] . '"
Replace with:PHP: [ Select all ]
<img src="./modules/Forums/images/offline.png"
- Now, you want to open public_html/,odules/members_List/index.php
In there you will do find on line 221 - 231:PHP: [ Select all ]
if ($row['user_session_time'] >= (time()-$board_config['online_time']))
    {
      if ($row['user_allow_viewonline'])
        $online_status = '<a href="' . append_sid("viewonline.$phpEx") . '" class="tooltip" title="' . sprintf($lang['is_online'], $username) . '"' . $online_color . '>' . $lang['Online'] . '</a>';
      else if ($userdata['user_level'] == ADMIN || $userdata['user_id'] == $user_id)
        $online_status = '<em><a class="tooltip" href="' . append_sid("viewonline.$phpEx") . '" title="' . sprintf($lang['is_hidden'], $username) . '"' . $hidden_color . '>' . $lang['Hidden'] . '</a></em>';
      else
        $online_status = '<span class="tooltip" title="'.sprintf($lang['is_offline'], $username).'"'.$offline_color.'>'.$lang['Offline'].'</span>';
    }
    else
      $online_status = '<span class="tooltip" title="'.sprintf($lang['is_offline'], $username).'"'.$offline_color.'>'.$lang['Offline'].'</span>';
Just like before, you would link the images so it would look like this:PHP: [ Select all ]
    if ($row['user_session_time'] >= (time()-$board_config['online_time']))
    {
      if ($row['user_allow_viewonline'])
        $online_status = '<a href="' . append_sid("viewonline.$phpEx") . '" class="tooltip" title="' . sprintf($lang['is_online'], $username) . '"' . $online_color . '><img src="./modules/Forums/images/online.png" alt="' . $lang['Online'] . '"</a>';
      else if ($userdata['user_level'] == ADMIN || $userdata['user_id'] == $user_id)
        $online_status = '<em><a class="tooltip" href="' . append_sid("viewonline.$phpEx") . '" title="' . sprintf($lang['is_hidden'], $username) . '"' . $hidden_color . '><img src="./modules/Forums/images/hidden.png" alt="' . $lang['Hidden'] . '"></a></em>';
      else
        $online_status = '<span class="tooltip" title="'.sprintf($lang['is_offline'], $username).'"'.$offline_color.'><img src="./modules/Forums/images/offline.png" alt="'.$lang['Offline'].'"></span>';
    }
    else
      $online_status = '<span class="tooltip" title="'.sprintf($lang['is_offline'], $username).'"'.$offline_color.'><img src="./modules/Forums/images/offline.png" alt="'.$lang['Offline'].'"></span>';
- Now, you want to open public_html/,odules/members_List/index.php
Hi Corpse, I managed to get everything you said above done. However its only the member list thats changed on the forums its still stayed as green online text. Also thanks for the help greatly appreciated
You may need to go into the public_html/module/forums/cache/ and delete everything except attach_config.php and the index.html.
— coRpSE wroteYou may need to go into the public_html/module/forums/cache/ and delete everything except attach_config.php and the index.html.
did this corpse still the same i even cleared cache on the browser and site and cookies on the site
— 2xTaz wrote— coRpSE wroteYou may need to go into the public_html/module/forums/cache/ and delete everything except attach_config.php and the index.html.
did this corpse still the same i even cleared cache on the browser and site and cookies on the site
Well, if you like, I can take a look, you will just need to send me a PM with FTP access and the URL to the site and I will see what I can do.
I doubt I will need admin access so don't have to send that.
Hi Corpse, im currently at work i will send you details in a pm when i get home around 5pm uk time thanks