Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-26-2012, 04:42 AM   PM User | #1
AlexG
New Coder

 
Join Date: Mar 2012
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
AlexG is an unknown quantity at this point
What is wrong with this code?

<div style="text-align:center; margin-top:10px;">
<a href="http://www.eyedollchatter.com/sites/default/files/video/<?php print $node->field_video_video[0]['filename'] ?>" rel="shadowbox;height=338;width=600"><img src="http://www.eyedollchatter.com/sites/default/files/video/<?php print $node->field_video_thumb[0]['filename'] ?>"></a>
</div>
AlexG is offline   Reply With Quote
Old 04-26-2012, 08:54 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
What is wrong with this code?
That depends upon the expected and the current output of that code.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 04-26-2012, 02:30 PM   PM User | #3
AlexG
New Coder

 
Join Date: Mar 2012
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
AlexG is an unknown quantity at this point
It is set up for six thumbs and six vids.
AlexG is offline   Reply With Quote
Old 04-26-2012, 11:59 PM   PM User | #4
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
Quote:
Originally Posted by AlexG View Post
It is set up for six thumbs and six vids.
Give us the parsed code and/or tell us what exactly is wrong. We are not telepathic.
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!

Last edited by Apostropartheid; 04-27-2012 at 01:38 PM..
Apostropartheid is offline   Reply With Quote
Old 04-27-2012, 08:59 AM   PM User | #5
Annihlator
New Coder

 
Join Date: Apr 2012
Location: Netherlands
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Annihlator is an unknown quantity at this point
so you try to reference to a list of six thumbs in a single href?
then i would have expected a for-statement to be honest.

I'm not sure what you are trying to print here,
<?php print $node->field_video_video[0]['filename'] ?>

but what does this single line show if you would put this PHP in the body of your page? this can quite likely help you or atleast us also in debugging, right now we have no idea what output this will give.

also, your php is missing a semicolon in the end which can muck up it's execution, though not always (so that's a gamble there).

is the definition $node->field_video_video[0]['filename'] a single variable? else you will need to use a comma between. (i.e. $node->field_video_video[0],['filename'] ) side note: i am horrible with any type of array as of yet, so i may be judging this wrongly.
Annihlator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:42 PM.


Advertisement
Log in to turn off these ads.