Codewiz User Info Module Mod status

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Codewiz User Info Module Mod status
TommyB
CZ Newbie
TommyB has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Aug 11, 2005
0.00 posts per day
Posts: 5
Points: 497
   
How do you get it to show whether a user is a moderator in the user info block where it shows who is online as this is a feature i would like. Also the ' show where users are' bit isnt working i have this set to 1 in the CZUserinfo.php file but it wont show up.

thanks

Tom



Back to top Reply with quote
#2   Re: Codewiz User Info Module Mod status
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   


Originally posted by TommyB @ Thu Aug 11, 2005 3:46 pm:

How do you get it to show whether a user is a moderator in the user info block where it shows who is online as this is a feature i would like. Also the ' show where users are' bit isnt working i have this set to 1 in the CZUserinfo.php file but it wont show up.

thanks

Tom


Hi
this may help

for mod and other staff [ Register or login to view links on this board. ]

for who is where function

after you run czuser.php you should see this
( root/mainfile.php)


user info v5 mainfile settings


find


function online() { global $user, $cookie, $prefix, $db; cookiedecode($user); $ip = $_SERVER["REMOTE_ADDR"];
$uname = $cookie[1]; if (!isset($uname)) { $uname = "$ip"; $guest = 1; } $past = time()-3600; $db->sql_query
("DELETE FROM ".$prefix."_session WHERE time < '$past'"); $result = $db->sql_query("SELECT time FROM ".$prefix."_session
WHERE uname='$uname'"); $ctime = time(); if ($row = $db->sql_fetchrow($result)) { $db->sql_query("UPDATE ".$prefix."_session
SET uname='$uname', time='$ctime', host_addr='$ip', guest='$guest' WHERE uname='$uname'"); } else { $db->sql_query
("INSERT INTO ".$prefix."_session (uname, time, host_addr, guest) VALUES ('$uname', '$ctime', '$ip', '$guest')"); } }


replace



function online() { global $user, $cookie, $prefix, $db, $name; cookiedecode($user); $ip = $_SERVER['REMOTE_ADDR']; $url = $_SERVER['REQUEST_URI']; $uname = $cookie[1]; if (!isset($uname)) { $uname = "$ip"; $guest = 1; } $past = time()-1800; $db->sql_query("DELETE FROM ".$prefix."_session WHERE time < '$past'"); $result = $db->sql_query("SELECT time FROM ".$prefix."_session WHERE uname='$uname'"); $ctime = time(); $custom_title = addslashes($name); $url = ereg_replace("&", "&", $url); if ($uname!="") { $uname = substr("$uname", 0,25); if ($row = $db->sql_fetchrow($result)) { $db->sql_query("UPDATE ".$prefix."_session SET uname='$uname', time='$ctime', host_addr='$ip', guest='$guest', module='$custom_title', url='$url' WHERE uname='$uname'"); } else { $db->sql_query("INSERT INTO ".$prefix."_session (uname, time, host_addr, guest, module, url) VALUES ('$uname', '$ctime', '$ip', '$guest', '$custom_title', '$url')"); } } }




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   re: Codewiz User Info Module Mod status
TommyB
CZ Newbie
TommyB has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Aug 11, 2005
0.00 posts per day
Posts: 5
Points: 497
   
Thanks but the mod bit isnt working. I have my mods all setup through forum admin etc and all i want to do is to get them to show up in the user info block and i'm guessing this is done by editing something to do with the actual module so that it says 'mod' next to their name, i dont see why i need to go into phpmyadmin to change their level to mod when they are already a mod. Could you maybe explain why i would need to do this in phpmyadmin?
For the who is where part that isnt working either. The code you said to change doesnt exist in my mainfile.php and changing it in czuser.php didnt work either. i am using nuke ver 7.7 3.0 patch if this helps.



Back to top Reply with quote
#4   re: Codewiz User Info Module Mod status
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
hey sorry i tho missed this topic

ok can you try this , open block-CZUser-Info

FIND
elseif ($ulevel == 3) {
                 $who_online_now .= "<br />$where<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a></font>&nbsp;<img src=\"images/CZUser/staff.gif\">\n";


change the image fromr staff.gif with mod1.gif or what you have for a moderator image



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum