Previous Thread
Next Thread
Print Thread
Rate Thread
#284538 03/28/2005 8:08 AM
Joined: Mar 2005
Posts: 13
Newbie
Newbie
Offline
Joined: Mar 2005
Posts: 13
Running threads 6.3.
We have some banners but we want to make them clickable to link to our other sites.
I've created a clickable banner using Imageready which creates a *.html and a *.jpg.
The jpg is displaying but it needs to be the html file that's used to make the banner clickable.
How do I make it load the html file as the banner?
Or is there an easier way to do this?
Thanks in advance
Mike

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
in a sidebar? in the IIP front entrance? in the header or footer? need a little more clarification.

234234 #284540 03/28/2005 8:30 AM
Joined: Mar 2005
Posts: 13
Newbie
Newbie
Offline
Joined: Mar 2005
Posts: 13
Whoops
Above the header.
Similar to on here where it says THREADSDEV above the header.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
okay so then you want a clickable link in the header.. so go to your header-insert.php or header. depends where you define YOUR header and make

<a href = "http://spike.com><img src = "blah.gif></a>

234234 #284542 03/28/2005 2:05 PM
Joined: Mar 2005
Posts: 13
Newbie
Newbie
Offline
Joined: Mar 2005
Posts: 13
Apologies as I'm learning as I go along here.
Having recently inherited an established forum.
We are using
MD Random Image Generator
Version 1.0.0
It includes the line
$pattern="\.(gif|jpg|jpeg|png|bmp|swf)$";
I've tried adding HTML but I just get the dreaded red cross.
So I suppose my question is can I modify this to work with HTML or can I make a file in one of the above formats that is clickable?
Thanks again

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
okay that sheds more light onto the subject.. I would have to see the exact script.

234234 #284544 03/29/2005 3:15 AM
Joined: Mar 2005
Posts: 13
Newbie
Newbie
Offline
Joined: Mar 2005
Posts: 13
Have received a message from the author who says it is not possible with that utility.
He has suggested a couple of other utilities that may work so I'll give them a go and see how I get on.
Thanks

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
I use this
Multiple Random Banners v1.1 (No Duplicates)
By Twisty


It works for 6.5 but I don't see why it wouldn't work for 6.3

You can see it at my site

Last edited by ChAoS; 03/30/2005 2:16 AM.
Joined: Mar 2005
Posts: 13
Newbie
Newbie
Offline
Joined: Mar 2005
Posts: 13
Thanks again guys.
I've installed Multiple Random Banners v1.1 (No Duplicates)
By Twisty and it's displaying the linkable banners.
My question now is how do I get the image to center and also the link opens in the current window but I'd prefer it to open in a new window.
Any ideas guys?
Thanks

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
In your image lines try; target = new (not sure if that syntax is correct but it seems to work)

ex:
$image_html[11] = "<a href="http://www.leetgamers.org"target = new ><img src="/ubbthreads/images/banners/leetness.png" border="0"></a>";

As for centering it depends. I have my banner.inc in the html section of header.php file so it looks like this
Code
 <br /><center>Welcome To The Forest</center> <br /><?PHP include "$thispath/includes/banners.inc.php"; ?> <br /><center><b>Quote of the Moment</b></center> <br /><center>"XML is like violence: if it doesn't solve your problem, you aren't using enough of it." - Chris Maden</center> <br />


I would think this would work also

<center>
<?PHP include "$thispath/includes/banners.inc.php"; ?>
</center>

Last edited by ChAoS; 04/02/2005 6:03 PM.
Sponsored Links
Joined: Mar 2005
Posts: 13
Newbie
Newbie
Offline
Joined: Mar 2005
Posts: 13
Chaos thanks again the target = new works perfectly.

I added this
<center>
<? include "$thispath/includes/banners.inc.php"; ?>
</center>

But still no joy.
If I add this though
<center>
align = "center"
<? include "$thispath/includes/banners.inc.php"; ?>
</center>
The banner now centres but the line of code align - "center" appears in the top left corner of the header.
Obviously something simple but as my php is very limited not to me.

Joined: Mar 2005
Posts: 13
Newbie
Newbie
Offline
Joined: Mar 2005
Posts: 13
Sorted.
<td align="center"> was the solution.
Wish I could claim credit but it wasn't me that fixed it.

Thanks for the help guys.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)