vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Limit number of threads in a Forum for a Usergroup (https://vborg.vbsupport.ru/showthread.php?t=74800)

007 04-08-2005 12:12 AM

Hey the installer brings up SQL errors. Does this work on 3.07?

Marco van Herwaarden 04-08-2005 06:15 AM

Quote:

Originally Posted by 006
Hey the installer brings up SQL errors. Does this work on 3.07?

Yes it should work on 3.0.7.
Could you be a bit more specific about the error?
PS No database changes made by the installer, only some settings/phrases inserted IIRC

007 04-10-2005 05:47 PM

Here is what I get on 3.07:

Code:

Hack Installer System
Limit Number of Threads in Forum


templates.php (Save This File)
<?php

// Templates

Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php on line 160
?>

phrases.php (Save This File)
<?php

// Phrases
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php on line 202
?>


Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in .../includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in .../includes/db_mysql.php on line 389

 

There seems to have been a slight problem with the AuctionSightings.com database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT varname, text FROM phrase WHERE varname IN () ORDER BY languageid DESC
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY languageid DESC' at line 1

mysql error number: 1064

\

Any ideas? I would love to use this hack. Thanks!

boeserwolf 04-10-2005 06:11 PM

Hallo


Would you mind if I would translate your hack into german??

2.) Would it be okay for you if I would post the translation then at www.vbhacks-germany.com ??

Only licensed users may download hacks in this community.


If this is not okay for you, I will post the translation here.


Yours


Markus

Marco van Herwaarden 04-10-2005 06:15 PM

@006
You selected "Generate Files" on the installer screen? That is only for developing a hack, not for installing.

Marco van Herwaarden 04-10-2005 06:16 PM

Quote:

Originally Posted by boeserwolf
Hallo


Would you mind if I would translate your hack into german??

2.) Would it be okay for you if I would post the translation then at www.vbhacks-germany.com ??

Only licensed users may download hacks in this community.


If this is not okay for you, I will post the translation here.


Yours


Markus

Yes i do mind at this time. You can ask me again in 1 month time using PM.

007 04-10-2005 07:39 PM

Oh sorry Marco! I thought I needed to select that. Will try it again now. Thanks!

That worked. I have an idea for future versions.

Instead of having this be setting based, it would be much better if it was forum permission based.

That way each forum could have individual maxes set, with individual error messages (entered through a field), and would be specific to usergroups.

That would be a lot harder, but also a lot cooler!

It's awesome now though, don't get me wrong. Only thing is there are some other forums I'd want to limit too, but not the same amount.

Marco van Herwaarden 04-22-2005 05:57 AM

Quote:

Originally Posted by 007
Oh sorry Marco! I thought I needed to select that. Will try it again now. Thanks!

That worked. I have an idea for future versions.

Instead of having this be setting based, it would be much better if it was forum permission based.

That way each forum could have individual maxes set, with individual error messages (entered through a field), and would be specific to usergroups.

That would be a lot harder, but also a lot cooler!

It's awesome now though, don't get me wrong. Only thing is there are some other forums I'd want to limit too, but not the same amount.

I will think about this for a future version. Maybe it would be even a seperate hack or a Lite and a Full version.

The reason for this is that I think the strenght of the current hack is it's simplicity. Adding settings per forum, would make the hack much more complicated (not a real problem), and much more important it would require many more file edits. So a Lite version like it is now (maybe add maximum replies), and a full version with forum based settings.

pipin 05-13-2005 02:06 PM

Im wondering if this hack could be used as a basis to write a "Limit number of posts in Thread (depending on forumid)" hack.

Marco van Herwaarden 05-13-2005 03:50 PM

Yes it could with some tweaking. But i don't have the time right now to look into it.


All times are GMT. The time now is 06:58 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.01131 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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