TinyPortal

Development => Block Codes => Topic started by: akulion on May 02, 2006, 03:22:27 PM

Title: Random Comic Strip
Post by: akulion on May 02, 2006, 03:22:27 PM
Hi

Nothing much to it...

1. Create a directory on your server anywhere you want

2. Download this file (rightclick and save as) (http://path-to-peace.net/misc/random_cartoon.zip)

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 (http://path-to-peace.net/forum/index.php)

- 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 (http://automaticlabs.com/products/rotator)

PS: All copyrights on images belong to their respective authors
Title: Re: Random Comic Strip
Post by: deadpoeticstar on May 02, 2006, 03:25:41 PM
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
Title: Re: Random Comic Strip
Post by: akulion on May 02, 2006, 03:37:21 PM
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
Title: Re: Random Comic Strip
Post by: deadpoeticstar on May 02, 2006, 03:40:23 PM
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
Title: Re: Random Comic Strip
Post by: akulion on May 02, 2006, 03:41:42 PM
well maybe one of the experts could do it - they know their scripting :D
Title: Re: Random Comic Strip
Post by: deadpoeticstar on May 02, 2006, 03:43:09 PM
lol thats SO true
Title: Re: Random Comic Strip
Post by: akulion on May 02, 2006, 04:12:51 PM
added peanuts series
Title: Re: Random Comic Strip
Post by: deadpoeticstar on May 02, 2006, 04:14:24 PM
ok...does this script automatically update each comic each day or no?
Title: Re: Random Comic Strip
Post by: akulion on May 02, 2006, 04:18:41 PM
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
Title: Re: Random Comic Strip
Post by: deadpoeticstar on May 02, 2006, 04:24:28 PM
well i think it should be where it shows the comic for that day
Title: Re: Random Comic Strip
Post by: akulion on May 02, 2006, 04:29:23 PM
More comics added : B.C. (look at 1st post)
Title: Re: Random Comic Strip
Post by: akulion on May 02, 2006, 05:08:08 PM
Big Nate added to collection
Title: Re: Random Comic Strip
Post by: akulion on May 02, 2006, 09:46:53 PM
Additional calvin & Hobbes Added
Title: Re: Random Comic Strip
Post by: akulion on May 02, 2006, 09:55:47 PM
And thats the end of it :P

I think 192 comics is more than anyone will read :P

Have fun
Title: Re: Random Comic Strip
Post by: Ray on May 03, 2006, 04:14:38 AM
Thanks - i am using it on my game site
Title: Re: Random Comic Strip
Post by: akulion on May 03, 2006, 01:30:08 PM
ur welcome :D Im just glad I was able to do something for u guys - u work so hard to bring us TP and smfarcade :D
Title: Re: Random Comic Strip
Post by: ashari on June 08, 2006, 08:10:46 PM
I have a quick question: I added a few comics to the file that was already provided. Akulion said that for additional comics we should add the comic images to the file and change the NUMBER in the code. can someone tell me which number he/she is referring to please? Thanks!
Title: Re: Random Comic Strip
Post by: IchBin on June 08, 2006, 08:48:11 PM
I don't think that you have to do that ashari. Did you try it yet?
Title: Re: Random Comic Strip
Post by: ashari on June 08, 2006, 09:45:00 PM
no I haven't altered any codes because I have no idea which code to change. I did add the comics as a paintshop pro image (which the other comics are) and was not able to see them. So now I have changed them to .jpg extensions and I'm trying it out to see if it works. Any ideas?
Title: Re: Random Comic Strip
Post by: IchBin on June 08, 2006, 10:15:30 PM
If you're not seeing anything it's probably because your path isn't right. Play with the path setting to see if anything works.
Title: Re: Random Comic Strip
Post by: nikita on August 17, 2006, 02:59:42 PM
Hi akulion...

This is one of the best mods for my site so far... don kno how to say more :)

Regards.
Title: Re: Random Comic Strip
Post by: G6Cad on August 17, 2006, 04:11:18 PM
I want this one to, but with Swedish comics, and with the most boring swedish people, no one will give me the permissions to use the comics they have for free  :'(
Title: Re: Random Comic Strip
Post by: greenman on April 07, 2007, 10:59:31 AM
Pretty cool..

Is there any way of making this into a "Comic Strip of the Day"?
I know it's not that simple to, but would be perfect if there would be a way.
Title: Re: Random Comic Strip
Post by: akulion on April 07, 2007, 11:48:36 AM
for pic of the day i would recommend u try one of these scripts

http://usefulclasses.com/index.php?prc=readArticle&aid=potd (a lil more intennsive)

http://www.tomsnewbiebooster.com/resources/picture-of-the-day/script.html (a simple one)

Title: Re: Random Comic Strip
Post by: greenman on April 07, 2007, 11:22:11 PM
Awesome, thanks! :)

I used the bigger script because the simple one you need to input the filenames of the images to be used.

Works perfect. ;D
Title: Re: Random Comic Strip
Post by: arrisje on July 09, 2007, 01:57:33 AM
Love it. Got it on my forum :) Thanks.
Title: Re: Random Comic Strip
Post by: Reality12 on March 25, 2008, 01:58:04 AM
this is a good addition. thanks for the post. :)