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

Recent

Welcome to TinyPortal. Please login or sign up.

July 16, 2024, 07:48:17 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,319
  • Total Topics: 21,233
  • Online today: 79
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 72
  • Total: 72

Random Smilie Box

Started by Tee, December 10, 2005, 02:01:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tee

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

IchBin

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:
include('path/to/random.php');

Ray

Quote from: IchBinâââ,¬Å¾Ã,¢ on December 10, 2005, 04:56:16 AM
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

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?

IchBin


Tee

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

IchBin

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

#7
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

Ray

#8
Im getting this error now a lot ogf them

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


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

IchBin

Doug you try this:
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?