View Single Post
Old 02-03-2009, 01:10 AM   #10 (permalink)
Edwin
The Wanderer
 
Edwin's Avatar
 
Join Date: Jan 2008
Posts: 10
Thanks: 1
Edwin is on a distinguished road
Default

Quote:
Originally Posted by Wildhoney View Post
Hehe. That is a lot code to look through. What is it you want doing exactly in this follow-up?
I only need this part edited i tried a couple of times =/ but dont get nothing

PHP Code:
'<textarea cols="'.$t_cols.'" rows="'.$t_rows.'" onclick="this.focus(); this.select();">'."\n".

'<img src="'.$imgURL.'" alt ="'.$alt.'">'."\n".

'<p><a href="'.$site_url.'">Spaceskillz Myspace Comments</a></p>'."\n".

'</textarea>'."\n"
with

HTML Code:
<style type="text/css">
body {background-image: url(.$imgURL.); 
background-repeat: repeat; 
background-attachment: fixed;}
</style>
<div style="position:absolute; top:0; right:0"><a href=".$site_url." target="_blank"><img src="http://i309.photobucket.com/albums/kk366/spaceskillz/spaceskillz.gif" border="0"></a></div>
Quote:
Originally Posted by Krik View Post
Well I can guess why it didn't working. Trying to change the body style after the body tag has been loaded will do nothing.

Put
HTML Code:
<style type="text/css">
body {background-image: url('<?php echo $imgURL; ?>'); 
background-repeat: repeat; 
background-attachment: fixed;}
</style>
In the <head> .. </head> of the page or at least before the <body> loads

And the "$imgURL" will need to be defined before that

PHP Code:
<?php
include("config.php");

$cat $_GET['id'];
$img $_GET['img'];

$imgURL = ($PBloc == '1') ? $PBURL.'cat/'.$cat.'/'.$img $site_url.'cat/'.$cat.'/'.$img;
?>
<style type="text/css">
body {background-image: url('<?php echo $imgURL?>'); 
background-repeat: repeat; 
background-attachment: fixed;}
</style>
I do hope that the config.php defines $PBURL and/or $site_url otherwise that will cause you issues as well

Next, this
PHP Code:
'<script type="text/javascript">'."\n".
'<!-- //'."\n".
'document.write(\'<div\'+\' class="js-kit-rating" starColor="Blue" view="combo" path="/'.$uniqueID.'"><\/di\'+\'v>\')'."\n".
'//-->'."\n".
'</script>'."\n"
First, path="/'.$uniqueID.'" should be path="\'.$uniqueID. \'"

Second, <\/di\'+\'v>\' should be <\/div>\'

But worse yet you are going to have javascript write that second <div> in stead of PHP, that is a lot of unneeded code I would say
PHP Code:
if($rate == 1){
echo 
'<div align="center">
<div class="js-kit-rating" starColor="Blue" view="combo" path="\'.$uniqueID. \'"></div>
</div>
<script src="http://js-kit.com/ratings.js"></script>'
;

And as that last line, was called at the end in another "if", identical to the one above so I moved in to clean up your code

Lastly get rid of all the ."\n" they serve no purpose.
the script all works fine i just need a certain part edited as i listed below =] but thanx for helping me fix up the script =D

Quote:
Originally Posted by Village Idiot View Post
Edwin, why are you just asking us to do particular tasks? I would be more than glad to help you with questions, but do your own basic work. What good are we actually doing for you by making simple edits? I'd suggest learning HTML so you can do these little tasks.
I know some php but not alot thats why i came here for the help


Quote:
Originally Posted by CoryMathews View Post
Agreed.

PHP Code:
<?php
$Freelabor 
"bad";

if(
$problemExists true) { //yes only 1
  
echo "Try it then ask specific help questions";
} else while(
$Freelabor == "bad") { //good luck changing that
  
echo "Go learn it yourself! try google.com";
  if(
2) break; //prove me wrong
}
?>
go run that if you need to see what it does.
just thought i let you know your code wont work your gonna receive an syntax error -_-
Edwin is offline  
Reply With Quote