Login
User Name:

Password:



Register
Forgot your password?
Template missing: ADMIN_MEMBER_DELETE
Aug 30, 2010, 9:45 pm
By Kline
Making Messes
Aug 5, 2010, 8:46 pm
By Conner
Personal CSS substitution
Aug 5, 2010, 7:00 pm
By Conner
No preview on post edits?
Aug 5, 2010, 11:17 am
By Conner
Video BBCode Buttons
Aug 3, 2010, 11:12 am
By Conner
QSF Portal 1.5
Author: QSF Portal Team
Submitted by: Samson
Ashlander 3 for QSFP 1.4.6
Author: Samson
Submitted by: Samson
QSF Portal 1.4.6
Author: QSF Portal Team
Submitted by: Samson
Ashlander 3 for QSFP 1.4.5
Author: Samson
Submitted by: Samson
QSF Portal 1.4.5
Author: QSF Portal Team
Submitted by: Samson
CommonCrawl, Yandex

Members: 0
Guests: 0
Stats
Files
Topics
Posts
Members
Newest Member
31
197
873
59
norby500
Affiliates
Arthmoor Quicksilver Forums
View our reviews on Hot Scripts
» QSF Portal » Development » QSF Portal » Friendlier URLS
Forum Rules | Mark all | Recent Posts

Friendlier URLS
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Feb 12, 2010, 12:22 am
Go to the bottom of the page Go to the top of the page
kiasyn
Newbie
GroupMembers
Posts24
JoinedOct 11, 2006

Add this to the bottom of your .htaccess file:

RewriteRule ^download:(\d+):(\d+)/u/.*$ index.php?a=files&s=download&cid=$1&fid=$2&u=1
RewriteRule ^download:(\d+):(\d+)/.*$ index.php?a=files&s=download&cid=$1&fid=$2


Then update your templates so that they show something like

/download:$cid:$fid/$filename

this will give a filename like,

/download/123:92/mygame.tgz

which can be friendlier than using stuff like index.php?a=files&s=download&cid=123:92 in shells etc
       
Post is unread #2 Mar 20, 2010, 7:02 pm
Go to the bottom of the page Go to the top of the page


Samson
Administrator
GroupAdministrators
Posts315
JoinedOct 9, 2006
WWW

Missed this post before, but it's definitely an improvement. The files.php code also needs to define the $filename variable or just changing the templates will bomb. We've deployed this on SmaugMuds.org now after a user requested it. .........................
PDNS-Admin | Sandbox | Arthmoor MUD Hosting Services | The Truth About Medievia: A Saga of Code Theft.

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
       
Post is unread #3 Mar 20, 2010, 7:21 pm
Go to the bottom of the page Go to the top of the page


Conner
Droplet
GroupMembers
Posts152
JoinedFeb 19, 2007
WWW ICQ AIM Yahoo MSN GT

Thankfully, neither of my forums are the type that see frequent downloads so I'll just wait to see how this got implimented in the next release of QSFP rather than bother y'all to explain where in the templates you'd make the change Kiasyn mentioned or how yo'd go about defining the $filename variable in files.php... on the other hand, those might be helpful info for someone else... ;) .........................
-=Conner=-

Administrator/Coder Primary SysOp
Land of Legends The Castle's Dungeon BBS

telnet://tcdbbs.zapto.org:4000 telnet://tcdbbs.zapto.org:23
       
Pages:<< prev 1 next >>