Random Image Block => Help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Random Image Block => Help
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
I was just trying out this new block that was added to the codezwiz downloads section.
I'm having problems. I get an error:


Parse error: parse error, unexpected '<' in /home/sitename/public_html/mobiles/blocks/block-Random_Image.php on line 23


I had replaced


"<!---ADD IMAGE #1 HERE----->"

with


<img src=\"http://www.mysite.com/mob/image/blocks/phones/2600.jpg/">


I just want my site to be ready b4 it can be viewed by the public therefore taken off the name.
I'm really new to php and haven't learnt much. icon_sad.gif
Help Please Again icon_smile.gif



Back to top Reply with quote
#2   
SpLiNteR
CZ Addict
SpLiNteR has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 34
Gender: Male
Fav. Sports Team: Leeds United
Website:
Status: Offline
Joined: Feb 08, 2004
0.05 posts per day
Posts: 397
Points: 206,328
AIM Address Yahoo Messenger MSN Messenger ICQ Number
i know nothing oh PHP-Nuke, but i was just reading the HTML on there. Is it normal to have to back slash on the image source bit for PHP-Nuke? Thats all i can think of right now sorry.




_________________
Back to top Reply with quote
#3   re: Random Image Block => Help
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
Well in html it isn't, even myself am not aware of php-nuke but i used an html to php translater and that's what i got. Anyways tks icon_smile.gif



Back to top Reply with quote
#4   re: Random Image Block => Help
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
It's OK it works now. Found the answer in another script.


"<img src='http://www.mysite.com/mob/images/blocks/phones/2600.jpg' alt='' align='absmiddle' BORDER=0>"



Back to top Reply with quote
#5   
SpLiNteR
CZ Addict
SpLiNteR has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 34
Gender: Male
Fav. Sports Team: Leeds United
Website:
Status: Offline
Joined: Feb 08, 2004
0.05 posts per day
Posts: 397
Points: 206,328
AIM Address Yahoo Messenger MSN Messenger ICQ Number
Glad it worked out in the end.




_________________
Back to top Reply with quote
#6   re: Random Image Block => Help
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   


Is it normal to have to back slash on the image source bit for PHP-Nuke?


In programming languages, the \ is used to escape the " marks around values.

For example, if you were to convert this HTML markup:

<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">

to PHP, you'd have:
<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">



Back to top Reply with quote
#7   re: Random Image Block => Help
malwills
CZ Newbie
malwills has been a member for over 20 year's 20 Year Member
uk.gif
Gender: Male
Website:
Status: Offline
Joined: Aug 14, 2004
0.00 posts per day
Posts: 18
Points: 3,330
   
well i got this on my site and it looks a good thing to have and i cont get it to work

what is the codeing to put in for the Image
i have been on it now for a long time i am new to it all
thx if you can help me



Back to top Reply with quote
#8   re: Random Image Block => Help
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
after case1/2/3/etc there is the line return
my line looks like
return "<img src='http://www.mysite.com/mob/??/bl/phes/football.jpg' alt='' align='absmiddle' BORDER=0>";



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum