Skip to content
WJunction - Webmaster Forum

php code help

Status
Not open for further replies.
im running drupal on my site and im trying to install the shadowbox to work with my screenshots. but i know very little php to edit this code for it to work
im trying to add rel="shadowbox" but when i try to add it somewhere all images on my site dissapear or the screenshot link takes me to warezstop.com/rel=
any help would be amazing. thanks

Code:
<div class="view"><a href="<?php echo $base_url.'/'.$node->field_screenshot[0]['filepath']; ?> ">View Screenshot</a></div>


i was also wondering how this can be edited so that when im making a new post and i dont upload a screenshot that the "view screenshot" doesnt show up on the main page
 

2 comments

Code:
<div class="view"><a rel="shadowbox" href="<?php echo $base_url.'/'.$node->field_screenshot[0]['filepath']; ?> ">View Screenshot</a></div>

That?
 
Status
Not open for further replies.

About the author

S
Active Member · Joined
44
Messages
0
Reactions
6
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom