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
Para620
Regular
Regular



Joined: Mar 16, 2004
Posts: 62

PostPosted: Sun Apr 03, 2005 12:40 am Reply with quote

I am trying to get the title of each block to show up automatically. I can get the title to show up on the picture propierties when you right click but the image wont show up it self. Here is the code for it below.

Code:
<TABLE WIDTH=160 BORDER=0 CELLPADDING=0 CELLSPACING=0>

   <TR>
      <TD COLSPAN=3>
      <IMG SRC="themes/ParaRegiment/images/block_01.gif$title" WIDTH=160 HEIGHT=52 ALT="">
      </TD>
   </TR>
   

_________________
[ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Apr 03, 2005 7:58 am Reply with quote

Code:
<IMG SRC="themes/ParaRegiment/images/block_01.gif$title" WIDTH=160 HEIGHT=52 ALT="">
That code will break the image because you are appending the title to the "gif" extension. Is this what you mean?
Code:
<IMG SRC="themes/ParaRegiment/images/block_01.gif" title="&title" WIDTH=160 HEIGHT=52 ALT="">
 
View user's profile Send private message
Para620







PostPosted: Sun Apr 03, 2005 4:08 pm Reply with quote

Code:
<IMG SRC="themes/ParaRegiment/images/block_01.gif" title="$title" WIDTH=160 HEIGHT=52 ALT="">


If i use this above, when I right click the image in Firefox and hit propierties, the correct title shows up under Misc. Propierties, however I am wanting the title to go onto the block/image. For example, your Donate o Meter, the title is automaticaly placed there, I am trying to get it to do this through that blocks.html page and I cant seem to figure it out. If I use flash I can get teh code to work but not with just a .gif file. Here is the test site I am trying to get it to work on, you can see in teh middle that I got it to work with the flash but nothing on the left and right blocks.
[ Only registered users can see links on this board! Get registered or login! ]
 
Raven







PostPosted: Sun Apr 03, 2005 4:34 pm Reply with quote

I'm sorry, but I am totally not understanding what you are trying to do. The titles for the blocks are either derived from the block name or from the customized title field. Maybe it's the med's I'm on, I don't know Laughing
 
Para620







PostPosted: Sun Apr 03, 2005 5:00 pm Reply with quote

I am just trying to get the block title to show. I am probaly going about it all wrong. Sould I just run the blocks totally through my index.php instead of a block.html?
 
Raven







PostPosted: Sun Apr 03, 2005 5:17 pm Reply with quote

The blocks are built off of the block name in the block folder. And/or through the Blocks admin control panel for both html blocks and block files. Whay don't you just use the standard method?
 
Para620







PostPosted: Sun Apr 03, 2005 8:42 pm Reply with quote

I was trying to simple it up by making it editable from a .html file but I guess it didnt get much simpler. I will give the standard method a shot. Thanks for the input Raven. RavensScripts
 
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 ©