| View previous topic :: View next topic |
| Author |
Message |
leke LXF regular

Joined: Mon Oct 22, 2007 6:45 pm Posts: 479 Location: Oulu, Finland
|
Posted: Sun Apr 11, 2010 3:15 pm Post subject: How sloganizer changes the sig image each time it's reloaded |
|
|
A few of us are using sloganizer in our sig (check out mine)
I've just coded (ok just finishing) my own version which will change the image every time the page (a python script) is called. I can't figure out how sloganizer knows how to change the users slogan image each time it is requested in the sig?
Any ideas?
Thanks. _________________ I codes here: http://notsure.tk |
|
| Back to top |
|
 |
ollie Moderator

Joined: Mon Jul 25, 2005 12:26 pm Posts: 2749 Location: Bathurst NSW Australia
|
Posted: Mon Apr 12, 2010 4:02 am Post subject: |
|
|
Sloganizer uses a PHP script to connect to the Sloganizer server and write the slogan.
| Code: | | <?php readfile("http://www.sloganizer.net/en/outbound.php?slogan=Sloganizer"); ?> |
PHP code is processed every time a page is sent from the server, just like these forums using phpBB. |
|
| Back to top |
|
 |
leke LXF regular

Joined: Mon Oct 22, 2007 6:45 pm Posts: 479 Location: Oulu, Finland
|
|
| Back to top |
|
 |
ollie Moderator

Joined: Mon Jul 25, 2005 12:26 pm Posts: 2749 Location: Bathurst NSW Australia
|
Posted: Wed Apr 14, 2010 12:32 pm Post subject: |
|
|
OK, Sloganizer.net use a BBCode style URL to call the PNG image file:
| Code: | | [url=http://www.sloganizer.net/en/][img]http://www.sloganizer.net/en/image,Sloganizer,white,black.png[/img][/url] |
On the Sloganizer.net server they just put a new PNG file every so often with a new slogan, or that URL calls a script on their server that generates a new PNG file that is sent back for each request. How often do the "slogans" change? |
|
| Back to top |
|
 |
leke LXF regular

Joined: Mon Oct 22, 2007 6:45 pm Posts: 479 Location: Oulu, Finland
|
Posted: Wed Apr 14, 2010 3:34 pm Post subject: |
|
|
| ollie wrote: | OK, Sloganizer.net use a BBCode style URL to call the PNG image file:
| Code: | | [url=http://www.sloganizer.net/en/][img]http://www.sloganizer.net/en/image,Sloganizer,white,black.png[/img][/url] |
On the Sloganizer.net server they just put a new PNG file every so often with a new slogan, or that URL calls a script on their server that generates a new PNG file that is sent back for each request. How often do the "slogans" change? | Yep, I did some refreshing of the page and it looks like it changes every 30 secs or so. It would look like a cron job that uses values in the .png url.
The first part [url=http://www.sloganizer.net/en/] is not influenced by the script since I have it linked to my website instead. _________________ I codes here: http://notsure.tk |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|