Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 12, 2022, 08:24:17 AM

Login with username, password and session length
Members
  • Total Members: 3842
  • Latest: Kokoro
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 50
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 0
Guests: 45
Total: 45

Author Topic: Random Smilie Box  (Read 24380 times)

0 Members and 1 Guest are viewing this topic.

Tee

  • Guest
Random Smilie Box
« on: December 09, 2005, 07:01:13 PM »
Can someone help me set up a random smilie box that would show a new smilie each time the page is clicked.  I have 960 + in my default smilie directory.

Also, can we have a box for tiny portal that would show current posts here at Tiny Portal?

Thanks

jaxdoug
http://jaxdoug.com
« Last Edit: December 09, 2005, 07:12:51 PM by Doug »

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Random Smilie Box
« Reply #1 on: December 09, 2005, 09:56:16 PM »
You can get an rss feed of recent posts from any SMF forum AFAIK. Just add this to the forum link.
index.php?action=.xml;type=rss
So for TinyPortal you could try this for a recent post/rss feed:
http://www.tinyportal.net/smf/index.php?action=.xml;type=rss

As for a random smilie box. I would do a google search for random image script. You'll find a script that you can add to your smilie directory. Then all you need to do is add a php block and include the script like so:
Code: [Select]
include('path/to/random.php');

Offline Ray

  • Sr. Member
  • ****
  • Posts: 446
Re: Random Smilie Box
« Reply #2 on: December 09, 2005, 11:05:54 PM »
You can get an rss feed of recent posts from any SMF forum AFAIK. Just add this to the forum link.
index.php?action=.xml;type=rss
So for TinyPortal you could try this for a recent post/rss feed:
http://www.tinyportal.net/smf/index.php?action=.xml;type=rss


Ok that is nice -- works really great


[attachment deleted by admin]

jdougher

  • Guest
Re: Random Smilie Box
« Reply #3 on: December 10, 2005, 08:37:42 AM »
I created an rss feed box and used the URL above (replacing string as necessary), but no headlines show up in the box. Why is that?

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Random Smilie Box
« Reply #4 on: December 10, 2005, 08:53:34 AM »
You used this line?
http://www.tinyportal.net/smf/index.php?action=.xml;type=rss

You get any errors for this in your log?

Tee

  • Guest
Re: Random Smilie Box
« Reply #5 on: December 10, 2005, 09:35:19 AM »
Hey IchBin can you check out my rss block and maybe tell me why one of the links is spilling outside the frame where I have the rss for tiny portal (My Favorite Forum Block on the Left side).

Thanks
Doug

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Random Smilie Box
« Reply #6 on: December 10, 2005, 09:42:50 AM »
In your TPsettings for the block you chose not to use the title AND frame. I think maybe because you're not using the frame it's not being confined to a certain amount of space.

Tee

  • Guest
Re: Random Smilie Box
« Reply #7 on: December 10, 2005, 11:06:21 AM »
Ichbin, I found a script and if you call it up, it word in the browser, but will not work in a php block when call by include

http://jaxdoug.com/smf/Smileys/default/rotator.php

maybe I am putting the wrong information in the php box, but it shows text for the graphic and not image.

Doug
« Last Edit: December 10, 2005, 11:08:09 AM by Doug »

Offline Ray

  • Sr. Member
  • ****
  • Posts: 446
Re: Random Smilie Box
« Reply #8 on: December 10, 2005, 11:15:38 AM »
Im getting this error now a lot ogf them

Code: [Select]
http://www.rranderson.com/dvd/index.php?action=viewErrorLog;desc 
8: Undefined index: HTTP_SERVER_VARS
File: D:\RRAnderson\DVD\Sources\TPortal.php
Line: 65

Code: [Select]
http://www.rranderson.com/dvd/index.php?type=rss;action=.xml 
8: Undefined index: HTTP_SERVER_VARS
File: D:\RRAnderson\DVD\Sources\TPortal.php
Line: 65
« Last Edit: December 10, 2005, 11:21:58 AM by Ray »

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Random Smilie Box
« Reply #9 on: December 10, 2005, 11:57:30 AM »
Doug you try this:
Code: [Select]
include('http://jaxdoug.com/smf/Smileys/default/rotator.php');
or this:
include('Smileys/default/rotator.php');

Ray, are those errors a result of this random script?