Offline/online
Select messages from # through # Forum FAQ
[/[Print]\]
Goto page 1, 2  Next  :| |:
HeadShot Extreme -> Nuke Blocks / Modules Support

#1: No icon Offline/online Author: Tazzy PostPosted: Wed Jul 17, 2019 3:08 pm
    —
Sorry if this has been posted before, i guess im just too lazy to browse your website haha.

Which file do i edit to change the offline and online image as in my attachment for the forums on the new evo?



Expand

#2: No icon Re: Offline/online Author: Tazzy PostPosted: Wed Jul 17, 2019 3:09 pm
    —
Please login to see this link
Get registered or Log in

#3: No icon Re: Offline/online Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu Jul 18, 2019 7:19 pm
    —
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.

#4: No icon Re: Offline/online Author: Tazzy PostPosted: Fri Jul 19, 2019 6:55 am
    —
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

#5: No icon Re: Offline/online Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat Jul 20, 2019 5:54 pm
    —
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.

  1. 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.

  2. 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" 



  3. 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>'

     

#6: No icon Re: Offline/online Author: Tazzy PostPosted: Sun Jul 21, 2019 12:24 pm
    —
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

#7: No icon Re: Offline/online Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun Jul 21, 2019 11:37 pm
    —
You may need to go into the public_html/module/forums/cache/ and delete everything except attach_config.php and the index.html.

#8: No icon Re: Offline/online Author: Tazzy PostPosted: Mon Jul 22, 2019 10:33 am
    —
— coRpSE wrote
You 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

#9: No icon Re: Offline/online Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Mon Jul 22, 2019 8:25 pm
    —
— 2xTaz wrote
— coRpSE wrote
You 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.

#10: No icon Re: Offline/online Author: Tazzy PostPosted: Tue Jul 23, 2019 12:53 am
    —
Hi Corpse, im currently at work i will send you details in a pm when i get home around 5pm uk time thanks



HeadShot Extreme -> Nuke Blocks / Modules Support


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Goto page 1, 2  Next  :| |:
Page 1 of 2