CZuserInfo v5 for phpNuke 8.0

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   CZuserInfo v5 for phpNuke 8.0
Jared_
CZ Newbie
Jared_ has been a member for over 14 year's 14 Year Member
usa.gif virginia.gif
Gender: Male
Fav. Sports Team: New York Giants and New York Yankees
Status: Offline
Joined: Nov 07, 2009
0.00 posts per day
Posts: 4
Points: 0
 Yahoo Messenger  
I am running PHP-Nuke v8.0. I installed CZuserInfo and edited the mainfile.php with the proper code replacement that I was told during installation. Now I am getting



Parse error: syntax error, unexpected '}' in /home/content/61/5195361/html/mainfile.php on line 690


I just recently started getting into the whole php-nuke thing, it has been about 4-5 years. I have had these CZ mods/blocks since I used to run a clan site years ago. I no longer do that. Could it be the version I have won't work for 8.0? or is there a different code for the versions I am using?

Thanks,
Jared.




_________________
Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
You didnt edit the mainfile correctly. Pay close attention to the edit. Try again and let me know. What username did you donate under to get the block?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: CZuserInfo v5 for phpNuke 8.0
Jared_
CZ Newbie
Jared_ has been a member for over 14 year's 14 Year Member
usa.gif virginia.gif
Gender: Male
Fav. Sports Team: New York Giants and New York Yankees
Status: Offline
Joined: Nov 07, 2009
0.00 posts per day
Posts: 4
Points: 0
 Yahoo Messenger  
It was quite a long time ago. I forgot my account info. It was something like webby0104, webby_0104. I'm pretty sure the email for that account I no longer have access to. It's probably with the site I used to work with. icon_sad.gif


I actually even had bought a couple of the themes you have under that account also. I think it was the maserati and um tronix I think it is? Unfortunately I eh lost them over time. lol




_________________
Back to top Reply with quote
#4   re: CZuserInfo v5 for phpNuke 8.0
Jared_
CZ Newbie
Jared_ has been a member for over 14 year's 14 Year Member
usa.gif virginia.gif
Gender: Male
Fav. Sports Team: New York Giants and New York Yankees
Status: Offline
Joined: Nov 07, 2009
0.00 posts per day
Posts: 4
Points: 0
 Yahoo Messenger  
to make sure, this is the code that SHOULD be there...

Replace->

function online() {
  global $user, $cookie, $prefix, $db;
  $ip = $_SERVER['REMOTE_ADDR'];
  $guest = 0;
  if (is_user($user)) {
    cookiedecode($user);
    $uname = $cookie[1];
    if (!isset($uname)) {
      $uname = $ip;
      $guest = 1;
    }
  } else {
    $uname = $ip;
    $guest = 1;
  }
  $past = time()-3600;
  $sql = "DELETE FROM ".$prefix."_session WHERE time < '$past'";
  $db->sql_query($sql);
  $sql = "SELECT time FROM ".$prefix."_session WHERE uname='$uname'";
  $result = $db->sql_query($sql);
  $ctime = time();
  if (!empty($uname)) {
    $uname = substr($uname, 0,25);
    $row = $db->sql_fetchrow($result);
    if ($row) {
      $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')");
    }
  }
  $db->sql_freeresult($result);
}


With->

function online() {
   global $user, $cookie, $prefix, $db, $name;
   cookiedecode($user);
   $ip = $_SERVER['REMOTE_ADDR'];
   $url = $_SERVER['REQUEST_URI'];
   $uname = $cookie[1];
      $guest = 0;
   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);
      $uname = substr("$uname", 0, 25);
   $url = ereg_replace("&", "&", $url);
   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')");
   }
}





_________________
Back to top Reply with quote
#5   
Jared_
CZ Newbie
Jared_ has been a member for over 14 year's 14 Year Member
usa.gif virginia.gif
Gender: Male
Fav. Sports Team: New York Giants and New York Yankees
Status: Offline
Joined: Nov 07, 2009
0.00 posts per day
Posts: 4
Points: 0
 Yahoo Messenger  
I think I got it. It is working. I did what I posted above. I hope it's right. Now 1 question about the block. As a admin, if I login on the block does that log me into the admin panel, too?




_________________
Back to top Reply with quote
#6   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
No. The admin panel for Nuke is different from the Account login.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
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