Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
xplicit
New Member
New Member


Joined: Apr 02, 2006
Posts: 14

PostPosted: Sat Jul 15, 2006 7:37 am Reply with quote

I was wondering, How do you put images in a block? I am running Php Nuke 7.8.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Sat Jul 15, 2006 8:23 am Reply with quote

like this..

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* Only registered users can see links on this board! Get registered or login! */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}

$content = "<img border=\"0\" src=\"images/just-an-images.jpg\">";

?>
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Sat Jul 15, 2006 8:28 am Reply with quote

Or, if you're using an HTML block, just add the img tag to the HTML.

Hitwalker's suggestion is great, but you might want to put a period before the = (e.g. .=) if the image isn't the first thing in your content...

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
xplicit
PostPosted: Sat Jul 15, 2006 12:17 pm Reply with quote

Thank you guys for the replies, I will keep practicing.
 
thunderbird
Hangin' Around


Joined: Jul 13, 2005
Posts: 38

PostPosted: Mon Jul 31, 2006 4:51 pm Reply with quote

If I may ask a question here, how do you add a URL to the image? I am looking on just having one image in the block and have the link point to a particular forum, say Cars?

Thanks
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon Jul 31, 2006 7:51 pm Reply with quote

$content = "<a href=\"http://mysite.com.wherever\"><img border=\"0\" src=\"images/just-an-images.jpg\"></a>";

I didn't actually try this so experiment and let us know.
 
View user's profile Send private message Visit poster's website
thunderbird
PostPosted: Tue Aug 01, 2006 7:57 am Reply with quote

Works perfect, thanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©