vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   including user name in forum title (https://vborg.vbsupport.ru/showthread.php?t=163472)

attroll 11-23-2007 10:10 PM

including user name in forum title
 
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

Quote:

Originally Posted by Analogpoint (Post 1388744)
$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

Quote:

Originally Posted by Analogpoint (Post 1388810)
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:
Code:

<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

Quote:

Originally Posted by Analogpoint (Post 1388839)
Then edit your SHOWTHREAD and FORUMDISPLAY templates. Add this for the <title> tag:
Code:

<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 [DATE]1195955418[/DATE] at [TIME]1195955418[/TIME] ---------------

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
Code:


<title>$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>

FORUMDISPLAY
Code:

<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?


All times are GMT. The time now is 03:34 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01003 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete