Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 12-01-2003, 05:09 PM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
  #2  
Old 12-01-2003, 05:14 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're not allowed to discuss vB3 hacking until vB3RC1 is released. You'll have to wait until then.
  #3  
Old 12-01-2003, 05:40 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Indeed - vb3 hacking discussion is not allowed until RC1 is released. Please refer to the announcement
  #4  
Old 12-01-2003, 06:57 PM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #5  
Old 12-01-2003, 07:03 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #6  
Old 12-01-2003, 07:10 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:48 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.09198 seconds
  • Memory Usage 2,219KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete