View Full Version : including user name in forum title
attroll
11-23-2007, 10:10 PM
Does anyone know hot to include the users name in the forum title?
I thought you use to be able to use $username, but that does not work.
Analogpoint
11-24-2007, 05:25 PM
$bbuserinfo[username]
attroll
11-24-2007, 06:06 PM
$bbuserinfo[username]
This does not work. I tried this already. Let me clarify this a little more. I am referring to the forum title and not the thread title. I want to go into my ADMINCP and put a code in the forum title so that when a user views the forum listing it will display there username in that forum title.
Analogpoint
11-24-2007, 08:01 PM
You can probably do a find and replace in templates
find: </title>
replace: $bbuserinfo[username]</title>
That would add the username at the end of the title.
attroll
11-24-2007, 08:51 PM
You can probably do a find and replace in templates
find: </title>
replace: $bbuserinfo[username]</title>
That would add the username at the end of the title.
Yes this would work I am sure but I only want to do it for one forum not all of them.
What I did is created one forum and set the permissions so that only the users that post in that forum can see there own posts and no one else can see them. Then I titled that forum "My to do list". What I want to do is replace "My" with the users name that is viewing the forum titles. So if I am viewing the forum listing it will show "attroll to do list".
Analogpoint
11-24-2007, 08:57 PM
Then edit your SHOWTHREAD and FORUMDISPLAY templates. Add this for the <title> tag:
<title>
<if condition="$foruminfo['forumid'] == YOURFOURMID">
$bbuserinfo[username]'s to do list
<else />
// the current contents of the title tag in the template here
</if>
</title>
attroll
11-24-2007, 09:03 PM
Then edit your SHOWTHREAD and FORUMDISPLAY templates. Add this for the <title> tag:
<title>
<if condition="$foruminfo['forumid'] == YOURFOURMID">
$bbuserinfo[username]'s to do list
<else />
// the current contents of the title tag in the template here
</if>
</title>
Great I will give it a try. I am on the way out the door right now I will try it when I get back.
Thanks
--------------- Added 1195955418 at 1195955418 ---------------
Well I tried it but there is already a few <if> statements in the code and I can not seem to get it working. I may be doing something wrong or am screwing up the <if> commands. This is the code that is in the two you said to change but to place the code you sent I can not get it working properly. Could you direct me where to place to code please.
SHOWTHREAD
<title>$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
FORUMDISPLAY
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
Forum Lover
07-03-2008, 07:52 PM
If you can get it done, can u please show us a screen shot please?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.