vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Add options per forum (https://vborg.vbsupport.ru/showthread.php?t=93445)

Logikos 03-10-2006 01:08 PM

Opps, fixed post #39. :)

masterross 04-01-2006 09:29 PM

hello,

i used:

PHP Code:

$db->query("ALTER TABLE " TABLE_PREFIX "user ADD maxthread INT( 10 ) DEFAULT '0' NOT NULL");
$db->query("ALTER TABLE " TABLE_PREFIX "user ADD maxpost INT( 10 ) DEFAULT '0' NOT NULL"); 

and

PHP Code:

<plugin active="1">
<
title>Maximum New Threads/Replies</title
<
hookname>useradmin_edit_start</hookname
<
phpcode>
<![
CDATA
$this->validfields['maxthread'] = array(TYPE_STRREQ_NO); 
$this->validfields['maxtpost'] = array(TYPE_STRREQ_NO); 
]]> 
</
phpcode
</
plugin

PHP Code:

 <plugin active="1">
<
title>Max New Threads/Replies</title>
<
hookname>useradmin_edit_column1</hookname>
<
phpcode><![CDATA[global $getperms$user$vbulletin$forum;
print_table_header($vbphrase['max_user_threads_desc']);
print_input_row($vbphrase['max_thread'], 'forum[maxthread]'$forum['maxthread']);
print_input_row($vbphrase['max_post'], 'forum[maxtpost]'$forum[maxpost]);]]>
</
phpcode>
 
</
plugin

PHP Code:

 <phrasetype name="Control Panel User Management" fieldname="cpuser">
<
phrase name="max_user_threads_desc"><![CDATA[Threads/Posts Limists]]></phrase>
<
phrase name="max_thread"><![CDATA[Maximum Threads]]></phrase>
<
phrase name="max_post"><![CDATA[Maximum Posts]]></phrase>
</
phrasetype

but i've got these errors:
PHP Code:

WarningProblem with method call please report this bug in \acp\user.php on line 554
 
Warning
Problem with method call please report this bug in \includes\class_hook.php on line 92
Warning
Problem with method call please report this bug in \acp\user.php on line 649
 
Warning
Problem with method call please report this bug in \includes\class_hook.php on line 92 

any hints?

thanks,
Ross

akanevsky 05-14-2006 12:48 PM

Nice tutorial, but it does not provide for using bitfields xml and/or multiple settings within one db field.
I know how to do use bitfield xml with forum settings, if anyone wants a tutorial - I can post one.

Logikos 05-18-2006 05:30 AM

I would acually like to read that myself. Would you post a tutorial on how one can use bitfields per forum setting? Thanks!

vietkieu_cz 10-10-2006 09:37 PM

Thanks I've done it

Blaine0002 04-15-2007 03:39 PM

Ive followed your code down to the pixel and whenever i try to post using a custom foruminfo in the hook newpost_complete, i get a 'you have already posted this message in the last 5 minutes' thing.

tehQspm 04-23-2007 10:59 PM

I have a problem with this. I can change the option but it doesn't actually store the data.

Where does the SQL query come in each time you change the option?

vuiveclub 01-22-2008 08:17 PM

This runs on vbb 3.6x only? I've tried on vbb 3.7 but didnt work!

EnIgMa1234 02-20-2008 01:54 PM

Works fine on 3.7 for me

Blaine0002 04-17-2008 12:29 PM

figgerd' it out.


All times are GMT. The time now is 02:43 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.12085 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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