Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2012
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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>

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    What is wrong with this code?
    That depends upon the expected and the current output of that code.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Mar 2012
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts
    It is set up for six thumbs and six vids.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    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.
    Last edited by Apostropartheid; 04-27-2012 at 01:38 PM.

  • #5
    New Coder
    Join Date
    Apr 2012
    Location
    Netherlands
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •