|
||
|
|||||||
| Script Languages Perl/PHP/Python/Ruby so on and so forth. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
Ok I have a problem.... I created a script that generates images but I cant show them in the forums using BBCode or on websites. Is there a way that I can make links like
http://nottnetworks.com/gamertag/gts1.php/gamertag.png (so if people replace gamertag in front of .png it would show their info....) instead of http://nottnetworks.com/gamertag/gts1.php?tag=Nott32 Image Generator: PHP Code:
PHP Code:
__________________
Everytime a puppy gets hit by a car from me smoking I take another drag, point, and laugh. Last edited by Nott32; 01-28-2007 at 03:13 AM. |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
I just tried using it in a website and it worked fine when I linked to your example, are you sure it doesnt work?
Anyways, hopefully you are able to use htaccess and have an apache host and then this will work for you ![]() Your .htaccess file Code:
Options +FollowSymlinks RewriteEngine on RewriteRule ^gamertag/(.+).png gts.php?tag=$1 [nc] Lets say you add this to: "http://nottnetworks.com/" then when people go here : "http://nottnetworks.com/gamertag/Nott32.png" it will actually go to : "http://nottnetworks.com/gts.php?tag=Nott32" To see it in action, I made a script call gts.php in my root folder (www.mordero.com) and when you go to "http://www.mordero.com/gamertag/{insert stuff here}.png" it will print what you put in there, like this http://www.mordero.com/gamertag/test.png will print "test" the only limitation I noticed was you cant have a question mark in the stuff you insert edit: damn that stupid automatic titles, its so annoying
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial Last edited by mordero; 01-28-2007 at 03:46 AM. |
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
yep, no problem
![]()
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
lol its no problem, still have problems with the other link thing?
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
No actually I figured out it was because I wasnt using the BBCode so the script didnt automatically parse http:// links and then when I tried yours it was messing with my images and I didnt need it anyways so theres no use working on it lol. But your help is greatly apreciated...sorry if im sound rude its 1AM and im cranky...
__________________
Everytime a puppy gets hit by a car from me smoking I take another drag, point, and laugh. |
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
haha its fine
![]()
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|