TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 348
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Random Banners

Started by gerrymo, October 21, 2006, 01:12:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerrymo

This is not exactly a block code snippet, but can be used in a block. This zip will give you randomly selected banners from a text file. Everything needed is in the zip.

G6Cad


akulion

Thanks gerry - hey I tried using this with the PHP include function earlier on my site but ran into some issues.

I am guessing it is directly related to myserver since the script uses Fopen URL's and my server dosent allow it :(


gerrymo

This works simpoly by using an iFrame to display the php file that runs it all. It couldn't be simpler.

I'm still trying to get it to display random html files, but no success yet.

akulion

I was looking at it and it should work with random html files as well

but u will have to put the ENTIRE code for the file in a single line in the txt file

the instructions said: this will display anything you put in it so you can use basic html as well.

however there amy be issues with the height and width of the frames :up:

rctxtreme

I'll be happily using Ad Management until I can think of some way that the block will appear on all pages...

gerrymo

Quote from: rctxtreme on October 21, 2006, 09:29:26 PM
I'll be happily using Ad Management until I can think of some way that the block will appear on all pages...

You can code it into your site files to show on all pages. I simply add the code into atricles where I want the ads to show. Pretty simple really.

This website is proudly hosted on Crocweb Cloud Website Hosting.