MyBB Community Forums

Full Version: how can i define internal url linking
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how can i define inner url's and outher urls?

i mean the difference between internal url's (topics, posts, members pages, anything under that url) and outer url's (links to other domains).

For example those "screen shot" things you see on a lot of sites, they are usually only made to work for url's that lead offsite.
Your question is a bit unclear, but if your intent is to link locally you will use something like "/YourSubDirectory/MyScript.php"; for another domain you will use "http://OtherDomain.com/HisSubDirectory/HisScript.php".

I just hope this is what you need to know... Wink
(2009-09-07, 03:33 PM)exdiogene Wrote: [ -> ]Your question is a bit unclear, but if your intent is to link locally you will use something like "/YourSubDirectory/MyScript.php"; for another domain you will use "http://OtherDomain.com/HisSubDirectory/HisScript.php".

I just hope this is what you need to know... Wink
so lets make it clear Big Grin for example http://community.mybboard.net/thread-561...99306.html is a internal url and i can post it here but if i post google.com here its outer an link and i want to define thoose link schemas for a plugin
So you will have to test if "http://community.mybboard.net" is at position 0 of your URL string to know if it is local. Use your $_SERVER[] informations to know your actual domain... Wink

P.S. Be aware that local links may not have "http:" at its begining...