MyBB Community Forums

Full Version: get current url of the page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I get current url of the page.

e.g.
http://example.com/thread-968.html

I want to show something in header for only this thread. I have php template conditional plugin. So what can I use to get the url of the page.

if you want to show the content on a specific thread then you can use {$tid} in showthread template ...

<if {$tid} == xyz then>
// required content
</if>
any other way? if the url is like
http://example.com/misc.php?page=mycustom
Instead of $tid == xyz inside of the if condition, try $mybb->input['page'] == 'mycustom' .

Thanks worked
(2011-11-10, 07:12 PM)2$CoMpLiCaTeD$4u Wrote: [ -> ]Instead of $tid == xyz inside of the if condition, try $mybb->input['page'] == 'mycustom' .