vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Warnings System Hack v2.1 (https://vborg.vbsupport.ru/showthread.php?t=43265)

Larz 09-08-2002 10:55 AM

Has anybody had this running on 2.2.6 with the Lesane Store Hack?

wooolF[RM] 09-08-2002 10:57 AM

]right now under table "setting" under settinggroup 40 I have Chan's hack called vbPad ( think so )

Code:

Edit  Delete  171 40 Maximum Characters per note maxpadsize 250 The maximum number of characters that you want to ...  1
Edit  Delete  172 40 Maximum Notes maxpadnum 10 Enter the maximum number of notes a user can keep....  2
Edit  Delete  173 40 Allow vB IMG code in notes? padimgcode 1  yesno 3
Edit  Delete  174 40 Allow vB code in notes? padvbcode 1  yesno 4
Edit  Delete  175 40 Allow smilies in notes? padsmilies 1  yesno 5
Edit  Delete  176 40 Allow HTML in notes? padhtml 0  yesno 6
Edit  Delete

removed it as I don't use it anyway... :) trying to import setting again...

wooolF[RM] 09-08-2002 11:03 AM

]same sh*t... :/

something wrong with query
PHP Code:

INSERT INTO setting VALUES (NULL,140'No Warning Usergroups''NOwarn''6''The usergroupids for the usergroups that cant be warned! (seperate each usergroupid by a comma)'''5,) 

cause all queries BEFORE this query works and they are imported in the database

weird...

TECK 09-08-2002 12:29 PM

the query should be like that:
Code:

$DB_site->query("INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL,32,'No Warning Usergroups','NOwarn','6','The usergroupids for the usergroups that cannot be warned! (seperate each usergroupid by a comma)','','5')");
but.. dont use the group 40!!!!!!! but 32 or whatever is your next number up after the last groupid, as it suppose to follow one after the other...
to check what is ur last group, just go to admin/setting.php and look at the last groupid.

wooolF[RM] 09-08-2002 12:37 PM

]mmkay...

now everything is imported, all templates edited, all files edited, admin panel visited and settings saved and...

still nothing... empty place...

:( :( :( :( :( :( :( :( :(

TECK 09-08-2002 01:08 PM

i will look on your board when i wakeup.. as you see i'm still awake. :)

wooolF[RM] 09-08-2002 01:09 PM

]LOL, go to bed!!! NOOOOOOOOOOW! :p

TECK 09-08-2002 01:11 PM

Quote:

Originally posted by Erwin
One tip - for those with many hacks that uses the settingid's, you may want to use a higher settingid than 40 - otherwise you get a db error. You don't actually have to set a settingid - the variables are auto-incremental. If people are getting errors, replace all the 40 with 140 which shouldn't interfere with other hacks that uses settingids.

Otherwise, the hack is brilliant. I just had to tidy up the profile a bit, but it works great. Thanks!

Erwin, you must use it in order. just go to admin/setting.php and check what is your last group ID, then use the next value up. dont give some wierd values just like that. if you check is alot easier and better...
i installed on wooolf's board everything and it worked ok with my method of queries listed above...

Mephisteus 09-08-2002 01:29 PM

Using 2.2.6, had an db error when i viewed the logs but when I created the usergroup Banned by Warnings and set it in vb options to the right usergroup id no probs at all.

This will definetly get my vote for HoTM

wooolF[RM] 09-08-2002 02:16 PM

Thanx to TECK I got it fixed...

I think g-force2k should really think of how to put queries for execution in the installer...

And the file with installer is not so easy to read cause it's kinda big... Try to make another format next time or make it morevisible

The idea itself is great!

Thanx to g-force2k and TECK


All times are GMT. The time now is 03:38 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.05188 seconds
  • Memory Usage 1,741KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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