Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-20-2002, 05:42 PM   #1
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 10,600
Smiley Script :)

Hey there... Just thought I'd post this little script in case anyone wants it. It will read the current directory and display all of your pics/smiles in a formatted table w/ the [IMG] tag code to copy/past into your messages.

PHP Code:
[SIZE=1]
<?php
function flist() {
$website="www.YOURSITE.com/smiles";   //No trailing slashes, no [url]http://[/url]
$dirgetcwd();
$d=dir("$dir");
echo 
"<div align=\"center\"><table border=\"0\" cellspacing=\"2\" cellpadding=\"0\">";
 
while (
false !== ($entry=$d->read())) 
{
$x=is_file($entry);
 
if(
$entry[0] !="."
{
if(
$entry != $x) {
 
$path "$entry";
$file basename ($path,".php"); // $file is set to "index"
 
if(($entry != $x)&&($entry != "index.php")) {
echo 
"<tr><td width=\"184\" align=\"right\" valign=\"middle\"><img src=\"$entry\" border=0></td><td
 width=\"516\" align=\"left\" valign=\"middle\"><font size=\"1\" face=\"Verdana\">"
."["."img"."]"."http://$website/$entry"."["."/img"."]"."</font></td></tr>";
}}
else {echo 
"";}}}
echo 
"</table></div>";
$d->close();
}
flist();
?>[/SIZE]


Just copy/paste this into a plain text file, and save as index.php,
upload to your smiles directory, and point your browser to that page.

Hope you like it.
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

Last edited by Voodoo; 10-20-2002 at 05:44 PM..
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2002, 05:43 PM   #2
mrthumbs
salad tossing sig guy
 
mrthumbs's Avatar
 
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
Well now.. finally a useful contribution to gfy..
mrthumbs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2002, 05:44 PM   #3
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 10,600
Hehehe
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2002, 05:48 PM   #4
DrewKole
Confirmed User
 
Join Date: Aug 2001
Posts: 5,193
Lol, what a newb!

DrewKole is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2002, 05:53 PM   #5
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 10,600
Quote:
Originally posted by DrewKole
Lol, what a newb!

That hurts my feelings Drew. LOL
I'm trying to spread smiles, and you call me a NewB.
Would it suit you better if I called it the "Frown Script"? LOL
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2002, 06:02 PM   #6
DrewKole
Confirmed User
 
Join Date: Aug 2001
Posts: 5,193
Lol, yes... Smiley's are for newbs... Frowns are for pimps

Wuzzah
DrewKole is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2002, 06:03 PM   #7
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 10,600
Quote:
Originally posted by DrewKole
Lol, yes... Smiley's are for newbs... Frowns are for pimps

Wuzzah
What about an "O-Face Script"?
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.