Author |
Message |
sqzdog
Involved


Joined: Sep 22, 2003
Posts: 252
|
Posted:
Sun Apr 04, 2004 1:26 pm |
|
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? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Apr 04, 2004 4:52 pm |
|
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. |
|
|
|
 |
rmount
New Member


Joined: Nov 17, 2003
Posts: 10
|
Posted:
Mon Apr 19, 2004 12:16 pm |
|
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. |
|
|
|
 |
GanjaUK
Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004
Posts: 633
Location: England
|
Posted:
Mon Apr 19, 2004 3:56 pm |
|
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. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
Raven

|
Posted:
Mon Apr 19, 2004 5:43 pm |
|
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 107Code: 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: <a href=\"userinfo-.html$session[uname]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of $session[uname]\"></a> <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> <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: <a href=\"userinfo-.html$session[uname]\"><img src=\"images/blocks/icon_mini_profile.gif\" border=\"0\" alt=\"Check the profile of $session[uname]\"></a> <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> <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 toCode: 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: <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> <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> <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: <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> <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> <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

|
Posted:
Mon Apr 19, 2004 9:41 pm |
|
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

|
Posted:
Mon Apr 19, 2004 9:58 pm |
|
I have the IP tracking module. Could this be doing it? |
|
|
|
 |
GanjaUK

|
Posted:
Mon Apr 19, 2004 10:07 pm |
|
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

|
Posted:
Tue Apr 20, 2004 4:04 am |
|
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

|
Posted:
Tue Apr 20, 2004 7:20 am |
|
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

|
Posted:
Tue Apr 20, 2004 7:30 am |
|
I doubt it, but contact scottr and ask him. Is it still happening? |
|
|
|
 |
GanjaUK

|
Posted:
Tue Apr 20, 2004 7:39 am |
|
Yeah, Its been happening long before those dupes in the db. I will send scottr a message. |
|
|
|
 |
|