vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Prefix to appear WITHIN The title? This possible if so help me out :( (https://vborg.vbsupport.ru/showthread.php?t=213161)

Wonksta 05-08-2009 12:49 PM

Prefix to appear WITHIN The title? This possible if so help me out :(
 
Fellas - I just found out about Prefixes in vBulletin.

At the moment they appear like you see them by default.

{PREFIX} [ACTUAL TITLE]

This does not show up in my Live Topic or normal New Posts Today.

I want it so that Prefix is before the Title but inside it if you know what I mean.

[ {PREFIX} ACTUAL TITLE]

So that way it looks like its been added manually

[PREFIX] USER TITLE

Cheers!

Lynne 05-08-2009 02:35 PM

I'm not sure exactly what you mean, but you can change the template to put it however you want.

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

Wonksta 05-08-2009 02:56 PM

Quote:

Originally Posted by Lynne (Post 1806983)
I'm not sure exactly what you mean, but you can change the template to put it however you want.

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

https://vborg.vbsupport.ru/external/2009/05/133.jpg


In Picture 1:

That is what it looks like when the Forum members manually add a prefix in their title by typing it out before the first word for instance [WA] The Title Goes Here

Picture 2:

This is what it looks like when a user SELECTS a prefix from the Prefix drop down menue. Can you see how it does not look 'natural' from Picture 1?

Basically I want the Prefix from the drop down menu to appear exactly as in Picture 1.

Let me know if that makes sense please. Thanks for the prompt reply ;)

Lynne 05-08-2009 03:10 PM

And like I said, modify the template to put it right next to the thread title so it looks like it is part of it.

Wonksta 05-08-2009 03:21 PM

Alright I've done that here is what I can see in the source Code

PHP Code:

<td class="alt1" id="td_threadtitle_1186" title="Test Thread"####HERE IS THE ACTUAL TITLE?####

        
<a rel="vB::AJAX"></a>
        <
div>
            
            
            
            
            
            
##HERE IT IS ###<span style="color: black"><b>[WA]</b></span>

            
<a href="showthread.php?t=1186" id="thread_title_1186">Debugging</a>
             <
img src="images/redbar/statusicon/thread_livetopic.gif" alt="live topic" />
        </
div>

        

        <
div class="smallfont"

I've added #### Notes pointing out where the Title is and where the Prefix is

Lynne 05-08-2009 05:52 PM

OK, so did you find the template and change it to how you want?

Wonksta 05-08-2009 10:19 PM

Quote:

Originally Posted by Lynne (Post 1807080)
OK, so did you find the template and change it to how you want?

-I thought it was SHOWTHREAD Template did some moving around but isn't :(

Lynne 05-08-2009 10:47 PM

It is not the showthread template. Did you do what I said in post 2?

Wonksta 05-09-2009 05:24 AM

Quote:

Originally Posted by Lynne (Post 1807196)
It is not the showthread template. Did you do what I said in post 2?

Hi Lynne I enabled that setting and saved it.

When to the forum CTRL + Refreshed the page and viewed the source. I couldn't see anything different with the setting enabled. Am I Looking in the wrong place?

I managed to find $thread[thread_prefix] and $thread [thread_title]?

Thank you Lynne


All times are GMT. The time now is 10:26 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.01160 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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