Clan Adverts

PHP Web Host - Quality Web Hosting For All PHP Applications

www.clan-themes.co.uk :: View topic - Placing single graphiic in block?

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Placing single graphiic in block?

8 Replies / 2035 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » Blocks

View previous topic :: View next topic


Kosmic
Reputation: 461.5
Local time: 11:15 AM

usa.gif

Status: Offline
0.01 posts per day
Medals: 0

Joined: Jul 08, 2007
Last Visit: 04 Aug 2007
Posts: 6
Points: 506 

Post Placing single graphiic in block? Posted: Sun Jul 15, 2007 6:27 am   

Does anyone know how to place a single graphic in a block?

I tried in the overview messsages to place a graphic which was inserted in with the html but it won't show up in the page?
Is there a graphic mod or something that I need to put in.

I am using PHPNuke 7.9

Very Happy
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 1794.6
votes: 10
Local time: 11:15 AM
Location: Jackson Mississippi
usa.gif

Status: Offline
2.77 posts per day
Medals: 1 (View more...)
Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 01 Dec 2008
Posts: 2074
Points: 4338 

Post Posted: Sun Jul 15, 2007 10:36 am   

Shop Purchases:
Clan Roster 2.0

I am kinda confused about what you want.

If you would like to build a block with a single graphic you could use these tools

http://www.clan-themes.co.uk/php-nuke-tools.html

If your trying to edit all your blocks and add a graphic to them. You need to refer to your theme folder and you should find a block.html file or something in there.

 

 
View user's profileSend private messageVisit poster's website Reply with quote

Noto
Reputation: 493.6
votes: 1
Local time: 4:15 PM
Location: Sunny UK !
uk.gif

Status: Offline
0.49 posts per day
Medals: 2 (View more...)
Dedicated User (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: May 03, 2007
Last Visit: 01 Dec 2008
Posts: 286
Points: 13639 

View user's profileSend private message Reply with quote




eeyuk69
Reputation: 425.9
votes: 1
Local time: 4:15 PM
Location: Lincoln
uk.gif

Status: Offline
0.12 posts per day
Medals: 0

Joined: Apr 22, 2007
Last Visit: 28 Nov 2008
Posts: 70
Points: 2055 

Post Posted: Sun Jul 15, 2007 12:59 pm   

Shop Purchases:
Battlefield 2 Splash Screen · Battlefield 2 Splash Screen · Clan Themes Green PhpNuke Theme

If you mean you just want to display a graphic inside a block I use this piece of code

Code:
</a>


Just change "block-welcome.php" to "block-NAME OF YOUR BLOCK.php" and point the <img src=\ to the location of the graphic you want to display
 

 
View user's profileSend private messageVisit poster's website Reply with quote

eeyuk69
Reputation: 425.9
votes: 1
Local time: 4:15 PM
Location: Lincoln
uk.gif

Status: Offline
0.12 posts per day
Medals: 0

Joined: Apr 22, 2007
Last Visit: 28 Nov 2008
Posts: 70
Points: 2055 

View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 1794.6
votes: 10
Local time: 11:15 AM
Location: Jackson Mississippi
usa.gif

Status: Offline
2.77 posts per day
Medals: 1 (View more...)
Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 01 Dec 2008
Posts: 2074
Points: 4338 

Post Posted: Sun Jul 15, 2007 4:10 pm   

Shop Purchases:
Clan Roster 2.0

Testing html input

Code:
<a href="http://www.clan-themes.co.uk"><img src="http://www.clan-themes.co.uk/rockin.gif" alt="Clan Themes ROCKS!"></a>


See what the forum does if you post html code (not php code huge difference there) is it actually trys to display the html output. By turning off html in General Admin in your forum ACP. You can eliminate the problem.

Also adds more security as hackers can't use html to hack your forums.
 

 
View user's profileSend private messageVisit poster's website Reply with quote




eeyuk69
Reputation: 425.9
votes: 1
Local time: 4:15 PM
Location: Lincoln
uk.gif

Status: Offline
0.12 posts per day
Medals: 0

Joined: Apr 22, 2007
Last Visit: 28 Nov 2008
Posts: 70
Points: 2055 

Post Posted: Sun Jul 15, 2007 5:23 pm   

Shop Purchases:
Battlefield 2 Splash Screen · Battlefield 2 Splash Screen · Clan Themes Green PhpNuke Theme

Thanx floppy

This is the code that was missing

Code:
<?php
if (eregi("block-welcome.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content = "";
$content .="<center><img src=\"images/custom/welcome.jpg\" border=\"0\" /></a></center>";

?>


Just change "block-welcome.php" to "block-NAME OF YOUR BLOCK.php" and point the <img src=\ to the location of the graphic you want to display
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Bitterman
Reputation: 461.4
Local time: 11:15 AM

canada.gif

Status: Offline
0.01 posts per day
Medals: 0

Joined: Oct 13, 2007
Last Visit: 04 Nov 2007
Posts: 4
Points: 364 

Post Posted: Sat Oct 20, 2007 7:19 pm   

Shop Purchases:
Clan PhpNuke Theme · FEAR Theme (Aviator) for PHP Nuke

Hi there,

I'm also trying to add an image to a block on the main page of our php-nuke 7.9 clan site so I searched the forums for this thread. I've followed the format shown below and can get the image to appear in the Edit HTML Source preview window but when I save the block and test it no image appears. When I go back to check the html I see that the <img reference is automatically removed from the code. Do I need to activate/allow images somewhere? I've checked my Admin prefs but I can't see anything.

Again, this isn't a forum problem (works fine there) but a main page block problem.

Any help would be greatly appreciated!

Thanks.

Bitterman

----


floppy wrote:
Testing html input

Code:
<a href="http://www.clan-themes.co.uk"><img src="http://www.clan-themes.co.uk/rockin.gif" alt="Clan Themes ROCKS!"></a>


See what the forum does if you post html code (not php code huge difference there) is it actually trys to display the html output. By turning off html in General Admin in your forum ACP. You can eliminate the problem.

Also adds more security as hackers can't use html to hack your forums.
 

 
View user's profileSend private message Reply with quote

DoC
Reputation: 168.1
votes: 4
Local time: 5:15 PM
Location: Wiltshire, UK
uk.gif

Status: Offline
0.56 posts per day
Medals: 1 (View more...)
Dedication (Amount: 1)
Very Important Person
Very Important Person
Joined: Feb 07, 2007
Last Visit: 29 Nov 2008
Posts: 373
Points: 400 

Post Placing single graphiic in block? Posted: Thu Nov 01, 2007 10:52 pm   

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Easiest way I found to do this was go into admin and then block, in the make a new block area u can add html content direct into it.

Then just put the following:

Code:
<img src="http://YOUR_SITE_URL/IMAGE_FOLDER/NAME_OF_IMAGE.jpg" width="468" height="50"/>


Making sure the spelling is correct and there are no spaces and CaPiTalS are where they are meant to be... for XHTML compliance don't use capitals at all ;)

Thats it! Nerd

DoC
 

Play EVE Online? Go To: www.go-pdi.com & Join The Best Corp In The Universe!  
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » Blocks


 
8 Replies / 2035 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
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 can download files in this forum