Log in

View Full Version : cannot find phrase "blah"


wolfstream
12-01-2003, 05:09 PM
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


/* 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

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:


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