Welcome to Geeklog, Anonymous Wednesday, April 24 2024 @ 08:14 pm EDT

Geeklog Forums

odd item appearing in right blocks


Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
i had a corrupted lib-common.php file a few days ago and after it was restored i noticed that in the end of all my right blocks there is a lower case 'n' appearing - including at the end of links in native gl blocks like new links, stories, etc.

you can see here

scroll down and look at all the blocks. i have searched the easy files such as blockheader / footer, my phpadsnew code, etc but when i realized it was also in the native gl blocks i figured it must be in the lib-common.php file....??? very odd. help!
 Quote

Status: offline

ByteEnable

Forum User
Full Member
Registered: 10/20/03
Posts: 138
Text Formatted Code

<td class="block-info-right" width="100%">
<script language="JavaScript"
type="text/javascript" src="http://www.goadserver.com/adx.js"></script>
<script language="JavaScript"
type="text/javascript">
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.goadserver.com/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:15&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script>
<noscript><a
href='http://www.goadserver.com/adclick.php?n=a38654e3'
target='_blank'><img
src='http://www.goadserver.com/adview.php?what=zone:15&n=a38654e3'
border='0' alt=''></a></noscript>
n</td>

 


Look at the "n" just besides the closing Its either in your block, .thtml file or that goadserver is doing it.

Byte
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
thanks for the reply, but that code isn't actually in the block itself - as viewed thru the admin/block moderator

and it is not coming from my adserver. i wish it was but it wouldn't explain how the n is coming up at the end of the native blocks as well.

i have checked all the block files in the layout, where else are the blocks referenced that could be the problem?
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Do you have the same issue if you use the standard professional theme ?

If not it is surely a theme issue.
I couldn´t spot it directly in the .thtml files but really do check if you have the issue with the professional theme.

Best Regards,
Boris
Vanrillaer.com - our Family Portal
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
it does still appear.
i changed the default them to professional for a moment to check and the f*(#@# was still there.

it must be in my lib-common.php or similar type file that includes the functions although i am not sure where to look next.



this is a weird one for sure. thanks for your reply.
j
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
probably has something to do with a new line return having its slash stripped out somehow and leaving the 'n'

I've seen this problem once or twice in the forums here, and I remember it was fixed at least once (probably by Dirk), but I cant seem to find the thread--sorry. It's here somewhere.
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
this new line return with its slash missing - in what file is that most likely? lib-common, etc

thanks!

jonathan
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I guess what Machinari was thinking about was magic_quotes_runtime. But if that were on, you would see a lot more of those 'n' characters all over the place.

Since it doesn't seem to be in the templates and it appears in every(?) block, the only file left is lib-common.php. Either try uploading yet another fresh copy of that file or inspect all the functions in there that have "Block" in their name ...

bye, Dirk
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
i have ruled out lib-common.php by using a fresh copy from the tarball.

it is in all blocks btw - both ones i have created and native gl blocks like 'recent stories, etc.'
where is this majic quotes thing you mentioned?

thanks,
j
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by greenhil: where is this majic quotes thing you mentioned?

It's a PHP setting, so it's in PHP's php.ini file. If you create a PHP file that contains only
Text Formatted Code
<?php phpinfo(); ?>
 
and call that up in your browser, it's one of the many PHP options displayed then. It should be set to "off".

bye, Dirk
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
it's off

any other ideas about his n ?

thanks,
jonathan
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
just noticed that i get numerous n's on my failed login page if that is a clue

here
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
i have ruled out:
lib-custom.php
lib-common.php
admin folder/files
theme (layout) folder/files

i have also found "n's" in another odd place in additon to the blocks, etc., on story admin edit under permissions as seen below:


Permissions:
R = read, E = edit, edit rights assume read rights
nnnnnnnnnnnnnnnnn

please help by suggesting other files/folders to investigate. thanks!!
jonathan
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
What about this piece of code, near the end of config.php?
Text Formatted Code
if (!defined ('LB')) {
    define('LB',"\n");
}
 

There's supposed to be a backslash before the "n" in that define statement. Is it there in your config.php?

bye, Dirk
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
THANK YOU! That was it.

fantastic.

jonathan
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
so was your config.php file corrupt or had you edited that bit of code?
 Quote

Status: offline

greenhil

Forum User
Chatty
Registered: 07/20/04
Posts: 51
corrupted somehow i guess.
i don't know enough to edit that line. i suppose i might have done it by accident closing out the file or something but i don't think so. i am pretty careful in that regard.

thanks again.

j
 Quote

All times are EDT. The time is now 08:14 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content