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)

akanevsky 08-02-2005 02:20 PM

Quote:

When i said incorrect, I meant not to your coding standards.
Jeez. Not mine... Jelsoft's.

Quote:

Wort Case scenario: Your Hack uses the next available Bit in forumoptions for "Show Quick Stats for this Forum".
Now the next vBulletin Version comes and redifines this Bit to "Prune this Forum every 24 hours".
Now all users of this Hack have the Bit set ...
The hack was not tested on the new version therefore it should not be installed.

Quote:

Well, what does adding a custom field do?
It adds a record to Table profilefield and alters table userfield to have a new MEDIUMTEXT columd fieldxx.
This is just an easy-to-use frontend to alter the Database, so where is the difference?
Difference is the errors on the user side.

Quote:

Keeping the Product Manager in mind, such DB alterations can be done easily, without the User having to know anything about running queries.
That's true. :) I still have to get used to the existence of that manager.

Oh, there is an array called $vbulletin->bf_misc_forumoptions, but I cannot find out how is it populated. :(

Andreas 08-02-2005 02:32 PM

Quote:

Originally Posted by Dark Visor
The hack was not tested on the new version therefore it should not be installed.

You don't seem to see the Problem:
The Hack was installed on the previous Version, which means the Bit is currently set.
No matter if the Users reinstalls it on the new Version (without verified compatiablilty or not), the Bit is still set.[/QUOTE]

Quote:

Oh, there is an array called $vbulletin->bf_misc_forumoptions, but I cannot find out how is it populated.
Refer to my Usergroup Permissions How-To ;)

akanevsky 08-02-2005 02:45 PM

Quote:

The Hack was installed on the previous Version, which means the Bit is currently set.
No matter if the Users reinstalls it on the new Version (without verified compatiablilty or not), the Bit is still set.
[/QUOTE]

Ahhh... Crap. Yes, you are right. Solution:
Upon upgrade, let upgrade.php remove all the new bits from the data storage.

Andreas 08-02-2005 02:57 PM

That would mean Jelsoft taking responsiblity for custom Code - this won't happen :)
It's our responsibility to avoid such things.

akanevsky 08-02-2005 03:01 PM

Quote:

That would mean Jelsoft taking responsiblity for custom Code - this won't happen
It's our responsibility to avoid such things.
No, it would mean Jelsoft taking the measures to avoid the possible negative outside influence of any previously installed hackware. :P

Would you please change the thread's title and prefix it with [How-To]? That way all the how to threads stand out :) Thx.

Revan 08-02-2005 05:15 PM

[sql]var smallint(3) not null default ''[/sql]shouldnt it be[sql]var smallint(3) unsigned not null default ''[/sql]?

Marco van Herwaarden 08-02-2005 07:29 PM

Unsigned woul be better, since you will be able to store more options.

Chris M 08-02-2005 10:54 PM

Quote:

Originally Posted by Dark Visor
No, it would mean Jelsoft taking the measures to avoid the possible negative outside influence of any previously installed hackware. :P

Would you please change the thread's title and prefix it with [How-To]? That way all the how to threads stand out :) Thx.

Jelsoft do not support modified boards - This would come under such a heading, therefore since you do not need to alter the bitfields with a standard installation of vBulletin, unless they alter their own bitfields in an upgrade they should not have to cater for such an scenario :)

Satan

Logikos 08-02-2005 11:18 PM

Quote:

Originally Posted by Dark Visor
Would you please change the thread's title and prefix it with [How-To]? That way all the how to threads stand out Thx.

Read the first 2 words in the thread title. How to add options per forum. :rolleyes:

Thanks Revan, fixed first post.

akanevsky 08-03-2005 12:06 AM

How-To without braces tho :(


All times are GMT. The time now is 02:36 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.01161 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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