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

Recent

Welcome to TinyPortal. Please login or sign up.

May 19, 2024, 07:29:41 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 128
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 47
  • Total: 48
  • @rjen

Random Comic Strip

Started by akulion, May 02, 2006, 03:22:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

Hi

Nothing much to it...

1. Create a directory on your server anywhere you want

2. Download this file (rightclick and save as)

3. Unzip and Upload the file you downloaded to your directory

4. add this code to a SCRIPT / HTML block



<img src="http://www.mysite.com/myfolder/rotate.php" alt="A Random Image" />



Be sure to change www.mysite.com/myfolder to your website addy and folder path!

And thats all - enjoy :)

Demo: Here

- Currently 192 Comic Strips in Archive
- Garfeild
- Calvin & Hobbes
- Peanuts (snoopy)
- B.C.

NOTE: Dont put it as a side block or your site will look like frankenstine's nostrils

Details of how this thing works and its homepage can be found HERE

PS: All copyrights on images belong to their respective authors

deadpoeticstar

looks good but i think it should be modified where it inserting the image file paths in every spot. make it to where the script pulls the images from the root folder and just add in the last part of the file, comic.gif

akulion

lol u will have to do that :p I dont know much about the script :D

I just like to collect thos comics (or atleast used to) so I had a bunch of them and got the idea

deadpoeticstar

lol i dont know much as to how to do it either :P but i do know some ideas just not how to implement them

akulion

well maybe one of the experts could do it - they know their scripting :D

deadpoeticstar


akulion

#6
added peanuts series

deadpoeticstar

ok...does this script automatically update each comic each day or no?

akulion

it automatically updates on ever page load
So if a person keeps loading the TP main page they can eventually read all the comics :D

oh and for additional comics addition..simply copy the image tag and just increase the number in the code above

deadpoeticstar

well i think it should be where it shows the comic for that day