PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
rmount
New Member
New Member


Joined: Nov 17, 2003
Posts: 10

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

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 Back to top

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.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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-.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-.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-.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-.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++;
   }
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
GanjaUK
Life Cycles Becoming CPU Cycles


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

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

I have the IP tracking module. Could this be doing it?
View user's profile Send private message Visit poster's website
GanjaUK
Life Cycles Becoming CPU Cycles


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

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

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.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Unfortunately the only way to correct this it to manually delete the dupes. If you have the old database, try replacing the tables again.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
GanjaUK
Life Cycles Becoming CPU Cycles


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

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

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?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

I doubt it, but contact scottr and ask him. Is it still happening?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
GanjaUK
Life Cycles Becoming CPU Cycles


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

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

Yeah, Its been happening long before those dupes in the db. I will send scottr a message.
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum