vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Added a new phrase what now? (https://vborg.vbsupport.ru/showthread.php?t=195250)

cono1717 11-02-2008 01:39 PM

Added a new phrase what now?
 
As the title suggests I have added a phrase to my forum but I am having a little trouble implementing it. What I need to know is how to I set up the Album section of vbulletin to have my custom phrase. If it help my phrase name is [elite_only].

Also is there a specific place that the phrase should go?

Please help,

Connor

Lynne 11-02-2008 02:15 PM

To use it in a template, you would put $vbphrase[elite_only]. As for specifically where, we can't really tell you since you haven't said where you want it. If you need to find the template, 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.

cono1717 11-02-2008 02:20 PM

Sorry about that basically when a member clicks on the album section they get the vBulletin error message which is [vbulletin_message] (i think) I basically want to change some coding or whatever so that instead of going to vbulletin_message it goes to elite_only

if that makes sense

again sorry for the lack of info in first post

Connor

Lynne 11-02-2008 02:49 PM

Why don't you just edit the error message?

cono1717 11-02-2008 02:52 PM

Because that error message is a standard error message across the system I want this to be only for elite member sections which is what the album section is.

Lynne 11-02-2008 03:08 PM

I've never played with changing the error messages, but I suppose you can just put a condition in the template:
HTML Code:

<if condition="THIS_SCRIPT == 'album'">
$vbphrase[whatever]
<else />
$vbphrase[other]
</if>


Lynne 11-02-2008 03:17 PM

Actually, the other way would be to use the hook "album_start_precheck" and process your error there. They do a check for the permissions around line 190 in album.php and spit out the error there. What you can do is use the hook to perform that same check only spit out your error instead.

cono1717 11-02-2008 03:29 PM

Quote:

Originally Posted by lynne
Actually, the other way would be to use the hook "album_start_precheck" and process your error there. They do a check for the permissions around line 190 in album.php and spit out the error there. What you can do is use the hook to perform that same check only spit out your error instead.

Sorry I don't understand.

Lynne 11-02-2008 03:52 PM

I was just suggesting that you may be able to use the plugin system - Adding or Editing a Plugin

It's a preference thing.... some people would rather use plugins than edit templates.

cono1717 11-02-2008 04:02 PM

Hmm yes this does seem easier to do rather than edit files, so what code do I enter as the code you provided before is HTML this needs to be in PHP


All times are GMT. The time now is 01:10 AM.

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.01007 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete