MyBB Community Forums

Full Version: How can I display the Current page URL and Page Title on My Forum Page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I need to display the page url and page title on my forum pages. How can I achieve on my template pages without editing or making any codes?

Is there any method to insert page title and page url on the forum templates?

Help me please...

I need to display the title and page url on footer template.

I tried with {$tid} and {$thread['subject']}. But it doesn't works.

What should I do?
Clear info i must say =/
What do you mean?

I need to display the url and title on the footer part of template.
What url, what title ... is it that hard to be more specified ?
This will give you the board URL:
{$mybb->settings['bburl']}

This will give you the board title:
{$mybb->settings['bbname']}

Put them where you want in your footer template. (Admin CP -> Templates -> Modify / Delete -> Your Template -> Expand -> footer)
That is I know.

I need the thread ID and Thread title for display.
Thread title:
{$thread['subject']}

Thread URL:
{$mybb->settings['bburl']}/showthread.php?tid={$tid}

That won't return anything unless you are viewing a thread though.
ivenms Wrote:That is I know.

I need the thread ID and Thread title for display.

On what page ? =/ showthread.php ? That will be {$thread['tid']} and {$thread['subject']}

Edit:

And a offtopic question, why do you call yourself a PHP Developer ? A quick look at the code, reveals a lot of secrets.
I need to display it on all pages (footer template part).

I tried {$thread['subject']} and {$tid} on footer template. But both of them are not worked for me.
ivenms Wrote:I need to display it on all pages (footer template part).

I tried {$thread['subject']} and {$tid} on footer template. But both of them are not worked for me.

You can't display $thread['subject'] for ex. on your index ... since there are no threads overthere ... i'm off to bed, this gets my frustrated.
Pages: 1 2