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)
-   -   Close threads after X replies (https://vborg.vbsupport.ru/showthread.php?t=60059)

koon 04-25-2004 06:04 PM

Database error in vBulletin 3.0.1:

Invalid SQL: SELECT fermeture FROM forum WHERE forumid =
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 '' at line 1

mysql error number: 1064

Script: profile.php?do=editsignature


My users are getting this error when trying to edit there profile signature from the User CP. I tested it and get the same error, everything else works fine in the UserCP except the "Edit Signatures" link which gives the above error.

koon 06-06-2004 03:59 PM

Hi, can you make it so that when the threads are closed, they are moved to a specified forum?

As in this example: if forumid=1 or forumid=2 and its closed then move to forumid=3

This would be a great since it lessens the burden on having to manually move closed threads ourselves.

Killahbyte 07-15-2004 10:47 PM

installl worked perfect thanks alot!!!

KB

Tombstone 09-25-2004 12:16 AM

Invalid SQL: SELECT fermeture FROM vb_forum WHERE forumid =
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 '' at line 1

Get this when I try and send a PM :(

cinq 12-09-2004 12:53 AM

Have the problems been resolved on this great idea ?
I checked your support forum but it seems no solutions were given too.
Do keep us in the loop vbdev :D

sjaakie 01-22-2005 06:54 PM

Quote:

Originally Posted by Tombstone
Invalid SQL: SELECT fermeture FROM vb_forum WHERE forumid =
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 '' at line 1

Get this when I try and send a PM :(

I have this problem after upgrading to 3.0.6. Reinstalled hack and then problems with sending pm's and opening topics in certain forums.

GeoffE 02-21-2005 06:21 PM

Same thing when I upgraded to 3.6 .. anyone got any ideas?

PET 02-21-2005 08:16 PM

it don't works anymore on 3.0.7

~rc~ 04-18-2005 04:14 PM

In the file includes/functions_newpost.php

replace :

PHP Code:

//Fermeture apres X posts Grog6 VBulletinDEV 
           
$fermeture $DB_site->query_first("SELECT fermeture FROM forum WHERE forumid = $foruminfo[forumid]"); 

           if (
$fermeture[fermeture] != "x") { 
           
$reponses $DB_site->query_first("SELECT replycount FROM thread WHERE threadid = $threadinfo[threadid]"); 

           if (
$fermeture['fermeture'] <= ($reponses['replycount'])) 
            
$DB_site->query("UPDATE thread SET open= '0' WHERE threadid = '$threadinfo[threadid]'"); 
           } 



PHP Code:

//Fermeture apres X posts Grog6 VBulletinDEV 
    
$fermeture $DB_site->query_first("SELECT fermeture FROM " TABLE_PREFIX "forum WHERE forumid = $foruminfo[forumid]"); 

    if (
$fermeture[fermeture] != "x" and $threadinfo[threadid] != '') { 
    
$reponses $DB_site->query_first("SELECT replycount FROM " TABLE_PREFIX "thread WHERE threadid = $threadinfo[threadid]"); 

    if (
$fermeture['fermeture'] <= ($reponses['replycount'])) 
    
$DB_site->query("UPDATE " TABLE_PREFIX "thread SET open= '0' WHERE threadid = '$threadinfo[threadid]'"); 
    } 

or Newthread will not work for any forums with set limit on replies

dimdan 05-16-2005 05:55 AM

Fatal error: Call to a member function on a non-object in /home/virtuald/public_html/new/forum/includes/functions_newpost.php on line 705

Got This Error


All times are GMT. The time now is 08:24 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.01125 seconds
  • Memory Usage 1,754KB
  • 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_php_printable
  • (1)bbcode_quote_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