vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   cannot find phrase "blah" (https://vborg.vbsupport.ru/showthread.php?t=58940)

wolfstream 12-01-2003 05:09 PM

cannot find phrase "blah"
 
ok, I posted this one on vbulletin.com, maybe can get a bit better help here:

I'm working with tweaking functionality a bit in vb3, trying to make it so that users can not create threads in certain forums if their rating is below a certain point. Here's what I've managed to do so far:
in includes/functions.php

PHP Code:

/* merely a hack of print_no_permission */
function print_no_dice()
{
        global 
$vboptions$logincode$url$bbuserinfo$session$stylevar;
        
$postvars construct_post_vars_html();
        
$bbuserinfo['badlocation'] = 1// Used by exec_shut_down();
         
                
eval(print_standard_error('error_nopermission_lowr  ating'));


in newthread.php, only the beginnings so far
PHP Code:

if ($forumid==12)
{
print_no_dice();


now , my understanding is that print_no_dice will execute an sql query, grab nopermission_lowrating from the table and throw the phrase out to the user. Am I wrong here? Obviously so, because it's just not clicking somewhere. What I get
instead is:

Quote:

Could not find phrase 'nopermission_lowrating'.
The sql entry nopermission_lowrating DOES exist, and is as follows:
phraseid = 4207
languageid = -1
varname = nopermission_lowrating
text =
Quote:

<p>The administrators have required that all advertisement threads be started by an individual with a rating of 250 or higher. You will need to raise your rating in order to make this post. This was done in an effort to encourage community involvement.
</p>
I'm not sure at all what is being done wrong here. Any thoughts or ideas on what I missed?

assassingod 12-01-2003 05:14 PM

You're not allowed to discuss vB3 hacking until vB3RC1 is released. You'll have to wait until then.

Dean C 12-01-2003 05:40 PM

Indeed - vb3 hacking discussion is not allowed until RC1 is released. Please refer to the announcement :)

wolfstream 12-01-2003 06:57 PM

And by the time that slow group of individuals gets around to RELEASING something I'll have it figured out. Thanks for nothing, the last time I turn to THIS community for help.
It's a question that does NOT specifically cover vb3, but fine, be that way, close the thread, I don't really care. I'll do it myself.

assassingod 12-01-2003 07:03 PM

Quote:

Originally Posted by wolfstream
And by the time that slow group of individuals gets around to RELEASING something I'll have it figured out. Thanks for nothing, the last time I turn to THIS community for help.
It's a question that does NOT specifically cover vb3, but fine, be that way, close the thread, I don't really care. I'll do it myself.

Well you clearlyu state that you are editing vB3 files, and editing files means hacking. Whether its a hack or not, its still modifying vB3 files which isnt permitted.

feldon23 12-01-2003 07:10 PM

Quote:

Originally Posted by assassingod
Well you clearlyu state that you are editing vB3 files, and editing files means hacking. Whether its a hack or not, its still modifying vB3 files which isnt permitted.

wolfstream,

vB3 hacking is going on at www.vBulletin.nl


All times are GMT. The time now is 01:33 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.01987 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_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