vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Phrase Edit: needing some help (https://vborg.vbsupport.ru/showthread.php?t=230701)

Speysider 12-21-2009 03:52 PM

Phrase Edit: needing some help
 
When you make a new thread in a forum, instead of it reading:
Code:

Post New Thread
I want it to read:
Code:

New Scroll in Forum : (forumname here)
What do I use to make that work?

Lynne 12-21-2009 04:10 PM

You'd need to change the way the phrase is called and change the phrase to have {1} in place of the forum name (New Scroll in Forum : {1}). And then in the template, instead of:
HTML Code:

{vb:rawphrase your_phrase}
You would have:
HTML Code:

{vb:rawphrase your_phrase, {vb:raw forumname_variable}}

Speysider 12-21-2009 04:16 PM

That sounds very complicated. I'm not great with that kind of coding yet. Could you go through each step that I should do?

Lynne 12-21-2009 05:32 PM

I basically did. You need to Find the Phrase and replace it with this:
Code:

New Scroll in Forum : {1}
Then, in the template where it is called, replace it with something like this:
Code:

{vb:rawphrase your_phrase, {vb:raw forumname_variable}}
(You'll need to replace those variables with the correct ones from the template as I didn't look up the phrase names for you or look in the template to see what the phrase was called.)

Speysider 12-21-2009 05:33 PM

Okay.
I'll try that out and post back here the result.

--------------- Added [DATE]1261424138[/DATE] at [TIME]1261424138[/TIME] ---------------

Is it in the style templates in the admin panel or in the files on the server?

Lynne 12-21-2009 09:12 PM

I said in the template, so that is from the admin cp in the Styles & Templates > Style Manager > find style > Edit Templates


All times are GMT. The time now is 10:54 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.01086 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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