MyBB Community Forums

Full Version: redirect links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi friends, i need a little help. i need any thing which makes my download links in my forum redirection links imean:
http://www.download-site.com/file.format to http://www.myforum.com/id=www.download-s...ile.format

something like dat
plz i really need ur help
Download links?
Could you please clarify more?


Do you mean you want all links posted on your forum to be prefixed with something else?
It wouldn't be a direct link. Like MySpace, for example... msplinks.com/id?=32048 is used instead of www.mybboard.net. He wants each url posted to have an id, in his case he wants the actual url as the id.

Sorry, if I wasn't clear enough... just trying to lend a hand in the explanation process.
i mean dat link would be like:
www.mysite.com/blah.id?www.downloadsite.com/file.format

i couldnt clarify more then dat but u'd seen hidden redirection on vb forums.
You could try this. Note that I haven't tested it myself, so can't guarantee it'll work, but it should.

In inc/class_parser.php, find:
$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";
Replace with
$link = "<a href=\"http://www.mysite.com/blah.id?".urlencode($fullurl)."\" target=\"_blank\">$name</a>";
buddy it changed but it lead to a 404 error page, i think that blah.id is to be explained somewhere else too
this was da error:



Not Found

The requested URL /blah.id was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
blah.id shouldn't exist, as far as I know of. You could try index.php I guess... Personally I don't know if that'll work. What makes sense to me is that a redirect.php would have to be made and a specific script inserted. I don't know that for sure, just my guess.
Yes, I'm presuming you already have a redirect script set up.

If you don't, well, why do you want one?
FYI, it's only just going to add load to your server, and make it slower for users to access external pages. Unless you want to track users who click on links posted on your boards, or something else, this will do no good to either party.