Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
sqzdog
Involved
Involved



Joined: Sep 22, 2003
Posts: 252

PostPosted: Sun Apr 04, 2004 1:26 pm Reply with quote

I changed themes. I am using a theme called "classic" from web-forums.co.uk. Everything works, but my site info block keeps expanding in width. Doesn't do it on every page load, but most. Any fixes for this?
 
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Apr 04, 2004 4:52 pm Reply with quote

It's not my site info block, per se. Try any site info block, the standard one that comes with nuke, and you will se the same thing. Some text in your block is forcing the margins out, probably a username or label.
 
View user's profile Send private message
rmount
New Member
New Member



Joined: Nov 17, 2003
Posts: 10

PostPosted: Mon Apr 19, 2004 12:16 pm Reply with quote

I'm having the same issue. I had the issue with a Game server block and was able to truncate to a max # of characters. Is this possible to do? I'm using the site info block that came with Raven's custome 7.0 distro.
 
View user's profile Send private message
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Mon Apr 19, 2004 3:56 pm Reply with quote

While on the topic of the Site Info block, I tried using it but I noticed it shows a totally different page view number to the page view number in the stats section.

And while on the page view subject, I noticed that the counter on my site in stats section goes up 2 every page view, I refresh the page and bam another 2 views. I assume this is not normal.

_________________
Image
Need a quality custom theme designed? PM me!
 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Mon Apr 19, 2004 5:43 pm Reply with quote

rmount wrote:
I'm having the same issue. I had the issue with a Game server block and was able to truncate to a max # of characters. Is this possible to do? I'm using the site info block that came with Raven's custome 7.0 distro.
I have made many changes to my own copy of the block, but I believe this is what I do. If you notice, I truncate any name > 12. I accomplish it like this. Find this code on or about line 107
Code:
    if (is_admin($admin)) {

      $sql1 = "SELECT host_addr FROM $prefix"._session." WHERE uname='$memberinfo[username]'";
      $result1 = $db->sql_query($sql1);
      mysql_fetch_row($result1);
      $zi = "<a href=\"http://www.samspade.org/t/lookat?a=".$session[host_addr]."\" target=\"_blank\">".$zi."</a>";
   }
    if (!$memberinfo[user_allow_viewonline]&&!is_admin($admin)) {
      $hiddenTotal++;
   }
    elseif (!$memberinfo[user_allow_viewonline]&&is_admin($admin)) {
      $hiddenTotal++;
      $who_online_now .= "$zi:&nbsp;<a href=\"userinfo-.html$session[uname]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of $session[uname]\"></a>&nbsp;<a href=\"messages-post-.html$memberinfo[user_id]\"><img src=\"images/blocks/nopm.gif\" border=\"0\" alt=\"Send a quick private message to $session[uname]\"></a>&nbsp;<A HREF=\"forums.html?file=profile&mode=viewprofile&u=$memberinfo[user_id]\">$session[uname]</a>(H)<br />\n";
       $who_online_now .= ($i != $member_online_num ? "  " : "");
       $i++;
   }
    else {
      $who_online_now .= "$zi:&nbsp;<a href=\"userinfo-.html$session[uname]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of $session[uname]\"></a>&nbsp;<a href=\"messages-post-.html$memberinfo[user_id]\"><img src=\"images/blocks/nopm.gif\" border=\"0\" alt=\"Send a quick private message to $session[uname]\"></a>&nbsp;<A HREF=\"forums.html?file=profile&mode=viewprofile&u=$memberinfo[user_id]\">$session[uname]</a><br />\n";
       $who_online_now .= ($i != $member_online_num ? "  " : "");
       $i++;
   }
and modify it to
Code:
    if (is_admin($admin)) {

      $sql1 = "SELECT host_addr FROM $prefix"._session." WHERE uname='$memberinfo[username]'";
      $result1 = $db->sql_query($sql1);
      mysql_fetch_row($result1);
      $zi = "<a href=\"http://www.samspade.org/t/lookat?a=".$member_result[host_addr]."\" target=\"_blank\">".$zi."</a>";
   }
   $sessionNameModified = strlen($member_result[username])<13?$member_result[username]:substr($member_result[username],0,10)."...";
    if (!$member_result[user_allow_viewonline]&&!is_admin($admin)) {
      $hiddenTotal++;
   }
    elseif (!$member_result[user_allow_viewonline]&&is_admin($admin)) {
      $hiddenTotal++;
      $who_online_now .= "$zi:&nbsp;<a href=\"userinfo-.html$member_result[username]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of $member_result[username]\"></a>&nbsp;<a href=\"messages-post-.html$member_result[user_id]\"><img src=\"images/blocks/nopm.gif\" border=\"0\" alt=\"Send a quick private message to $member_result[username]\"></a>&nbsp;<A HREF=\"forums.html?file=profile&mode=viewprofile&u=$member_result[user_id]\">".$sessionNameModified."</a>(H)<br />\n";
       $who_online_now .= ($i != $member_online_num ? "  " : "");
       $i++;
   }
    else {
      $who_online_now .= "$zi:&nbsp;<a href=\"userinfo-.html$member_result[username]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of $member_result[username]\"></a>&nbsp;<a href=\"messages-post-.html$member_result[user_id]\"><img src=\"images/blocks/nopm.gif\" border=\"0\" alt=\"Send a quick private message to $member_result[username]\"></a>&nbsp;<A HREF=\"forums.html?file=profile&mode=viewprofile&u=$member_result[user_id]\">".$sessionNameModified."</a><br />\n";
       $who_online_now .= ($i != $member_online_num ? "  " : "");
       $i++;
   }
 
Raven







PostPosted: Mon Apr 19, 2004 9:41 pm Reply with quote

GanjaUK wrote:
While on the topic of the Site Info block, I tried using it but I noticed it shows a totally different page view number to the page view number in the stats section.

And while on the page view subject, I noticed that the counter on my site in stats section goes up 2 every page view, I refresh the page and bam another 2 views. I assume this is not normal.
This sounds like you may have another block/module that is incrementing your stats. Maybe a hit tracker or something?
 
GanjaUK







PostPosted: Mon Apr 19, 2004 9:58 pm Reply with quote

I have the IP tracking module. Could this be doing it?
 
GanjaUK







PostPosted: Mon Apr 19, 2004 10:07 pm Reply with quote

I just noticed in my detailed access statistics page most of the stuff is doubled up. I have 2 lots of year 2004 stats, and in the daily stats bit, each day, there is 2 of each.

Code:


Yearly Stats

Year Page Views
2003  (432)
2004  (19341)
2004  (94991)



Daily Stats for April, 2004

Date Page Views
1  0% (0)
1  1.872% (860)
2  0% (0)
2  1.726% (793)
3  0% (0)
3  1.605% (737)
4  0% (0)
4  1.774% (815)


(Typo on that page too: Montly stats for 2004)

I will check the db, I recently moved this site to a new server and had to spoon feed the database for about 4 hours... There was so many errors it refused to import it all, so I had to break it down bit by bit.
 
Raven







PostPosted: Tue Apr 20, 2004 4:04 am Reply with quote

Unfortunately the only way to correct this it to manually delete the dupes. If you have the old database, try replacing the tables again.
 
GanjaUK







PostPosted: Tue Apr 20, 2004 7:20 am Reply with quote

Its ok I did it manual in the end, I had 4 sets of dupes for the stats_date. I was a little un sure how much to delete, but I left in only the dates for 2004. I assume on jan 1st of every new year is when it writes the whole year to nuke_stats_dates?

Also do you think IP tracking module is what is causing double page views?
 
Raven







PostPosted: Tue Apr 20, 2004 7:30 am Reply with quote

I doubt it, but contact scottr and ask him. Is it still happening?
 
GanjaUK







PostPosted: Tue Apr 20, 2004 7:39 am Reply with quote

Yeah, Its been happening long before those dupes in the db. I will send scottr a message.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©