PHP Web site Linking Problem

General chat area for anything whatsoever

Moderator: Core Staff

Post Reply
steveuk
CJ G0D!
CJ G0D!
Posts: 1330
Joined: November 21st, 2006, 12:51 pm

PHP Web site Linking Problem

Post by steveuk » March 25th, 2008, 9:41 pm

Ok here one For topher.... :wink:

ive got this block im using ya can view it on my site. http://cod4domain.net its the last one on the left showing scrolly links.

Anyways the code is.

Code: Select all

<script type="text/javascript" src="includes/visible.js"></script>
<?php
if ( !defined('BLOCK_FILE') ) {

	die("Illegal Block File Access");

}
global $prefix, $db, $nukeurl, $sitename;

$row = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_linkus"));
$conf = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_linkus_conf"));


/****[ Settings Start ]****/
$height = $conf['height'];
$amount = $conf['amount'];
$direction = $conf['direction'];
$fade = $conf['fade'];
$marquee = $conf['marquee'];
$seperation = $conf['seperation'];
$site_image = $conf['site_image'];

if($fade == 1){
$settings = 'width="88" height="31" border="0" style="filter:alpha(opacity=60);-moz-opacity:0.6" onMouseOver="makevisible(this,0)" onMouseOut="makevisible(this,1)"';
}else{
$settings = 'width="88" height="31" border="0"';
}

$ourlink = '<a href="'.$nukeurl.'" target="_blank"><img border=0 src="'.$site_image.'" alt="'.$sitename.'" title="'.$sitename.'" width=88 height=31></a><br>';
/****[ Settings End ]****/

$content .= '<center><img src="'.$site_image.'"></center><br />';
$content .= '<center><span class="content"><textarea name="text" rows="4" cols="15">'.$ourlink.'</textarea></span></center><br><hr noshade>';

if($marquee == 1){
$content .= "<marquee direction='".$direction."' scrollamount='".$amount."' height='".$height."' onMouseover='this.stop()' onMouseout='this.start()'>";
}

$sql = "SELECT id, image, link FROM ".$prefix."_linkus";
$result = $db->sql_query($sql);
while (list($id, $image, $link) = $db->sql_fetchrow($result)) {

$content .= "<br><center><a href='".$link."'><img src='".$image."' ".$settings."></a><br>".$seperation."</center>";}

if($marquee == 1){
$content .= "</marquee>";
}
$content .= "<br><div align='right'>&copy;&nbsp;<a href='http://www.darkforgegfx.com' alt='DarkForge GFX' title='DarkForge GFX' target='_blank'>DarkForgeGFX</a></div>";
$content .= "<br><div align='right'>&copy;&nbsp;<a href='<a href="http://www.codjumper.com" target="_blank"><img src="http://www.codjumper.com/images/codjumper_88x31.gif" border="0" alt="CoDJumper.com - For all your CoDJumping needs!"></a><br>



?>

When i tried to add CodJumper Link

Code: Select all

<a href="http://www.codjumper.com" target="_blank"><img src="http://www.codjumper.com/images/codjumper_88x31.gif" border="0" alt="CoDJumper.com - For all your CoDJumping needs!"></a>
My center blocks and right side blocks all disappear, even if i remove CJ's link they still dont come back, only way to get my site back fully is to over write the block with the original.

Do you know of any good working PHP-Block Link scripts i can use.??? IVer tried several myself and each one i use does the same thing.
Hope ya can help :?: :wink:

Steve

steveuk
CJ G0D!
CJ G0D!
Posts: 1330
Joined: November 21st, 2006, 12:51 pm

Re: PHP Web site Linking Problem

Post by steveuk » March 26th, 2008, 5:51 pm

Well Mr KillerSam, tried it you way and still it dont work.? dont know why. think i may just have to make a seperate block without it scrolling,and see if it works that way, but will do that tomorrow doing other stuff tonite.

Steve

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest