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)
-   -   Collapsable forums on forum home (https://vborg.vbsupport.ru/showthread.php?t=33961)

TheComputerGuy 04-27-2002 04:07 PM

Invalid SQL: UPDATE forum
SET
styleid='1', title='Military Firearms', description='Sponser of our Military Firearms forums',
active='1', displayorder='5', parentid='-1', parentlist='16,-1',
allowposting='1', cancontainthreads='0',
sponsorname='Tapco',sponsorimg='community.gif',
sponsorurl='http://www.tapco.com/departments.asp?dept=75&rc=GUNGAME',daysprune='30' ,
newpostemail='', newthreademail='',
moderatenew='0', allowhtml='0', allowbbcode='1',
allowimages='0', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='1', countposts='1',
moderateattach='0', 'collapsed='0'
WHERE forumid='16'
mysql error: You have an error in your SQL syntax near ''collapsed='0'
WHERE forumid='16'' at line 12

I get that error when I try to put it to the collapse the forums...I get an error..any idea?

dabean 04-27-2002 07:16 PM

Quote:

Originally posted by TheComputerGuy
Invalid SQL: UPDATE forum
SET
styleid='1', title='Military Firearms', description='Sponser of our Military Firearms forums',
active='1', displayorder='5', parentid='-1', parentlist='16,-1',
allowposting='1', cancontainthreads='0',
sponsorname='Tapco',sponsorimg='community.gif',
sponsorurl='http://www.tapco.com/departments.asp?dept=75&rc=GUNGAME',daysprune='30' ,
newpostemail='', newthreademail='',
moderatenew='0', allowhtml='0', allowbbcode='1',
allowimages='0', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='1', countposts='1',
moderateattach='0', 'collapsed='0'
WHERE forumid='16'
mysql error: You have an error in your SQL syntax near ''collapsed='0'
WHERE forumid='16'' at line 12


I get that error when I try to put it to the collapse the forums...I get an error..any idea?

remove the ' before collapsed

TheComputerGuy 04-27-2002 07:56 PM

I get a java error, is there an idea on what is causing it...

www.gunandgame.com/forums

dabean 04-27-2002 08:07 PM

Quote:

Originally posted by TheComputerGuy
I get a java error, is there an idea on what is causing it...

www.gunandgame.com/forums

Have you changed the "forumhome_forumbit_level2_post" template as described by the readme?

TheComputerGuy 04-28-2002 11:53 AM

I sure have made, went back and did everything twice

dabean 04-28-2002 01:41 PM

Quote:

Originally posted by TheComputerGuy
I sure have made, went back and did everything twice
hmmm, whilst I know one of your templates needs editing could you turn on template names? then attach a snippet of final page in particular something around..
PHP Code:

<tr align="center">
    <
td rowspan="2" bgcolor

as directly before that is the name of the template that will need editing.

TheComputerGuy 04-28-2002 03:11 PM

This
PHP Code:

TEMPLATEforumhome_forumbit_level2_post -->
<
tr align="center">
    <
td rowspan="2" bgcolor="#C3C3C3" colspan="2" align="left">
    <
table cellpadding="0" cellspacing="0" border="0"><tr>
        <
td valign="top"><img src="aftermath/off.gif" border="0" alt=""></td>
        <
td><img src="aftermath/clear.gif" width="9" height="0" border="0" alt=""></td>
        <
td><a href="forumdisplay.php?forumid=59"><font face="verdana" size="1"><b>Forum News</b></font></a><br>
        <
font face="verdana" size="1">Stay updated with the information on the newsposted by the Admin</font></td>
    </
tr></table>
    </
td>
    <
td colspan="2" bgcolor="#C3C3C3"><font face="verdana" size="1"><b>Forum Info:</b></font></td>
</
tr><tr>
    <
td bgcolor="#D7D7D7"><font face="verdana" size="1">
    
Posts: <b>18</b> | Threads: <b>17</b><br>
    
Moderators: <b>&nbsp;</b>
    </
font></td>
    <
td align="right" bgcolor="#D7D7D7"><font face="verdana" size="1"


dabean 04-28-2002 03:32 PM

Quote:

Originally posted by TheComputerGuy
This
[php]TEMPLATE: forumhome_forumbit_level2_post -->
<tr align="center">
<td rowspan="2" bgcolor="#C3C3C3" colspan="2" align="left">
<snip>

open up the "forumhome_forumbit_level2_post" template(s)
and change <tr align="center"> into
<tr id="f$forum[parentid]z$z" $fhomeexpandstyle align="center">


You will need to do this for each/every style.

FleaBag 04-29-2002 01:37 PM

I just upgraded my board from version 2.2.4 to 2.2.5, and have started re-hacking. I cannot find the references made to code in the admin/index.php file? I've tried searching for single words of the lines of code, but no results are found! Has admin/index.php dramatically changed in this version?

FleaBag 04-29-2002 02:15 PM

Now I am confused. I didn't do any of the admin/index.php file changes, but the hack works fine? Check www.gamerforums.com/board for an example. If the admin files aren't required what do they do? Thanks in advance.


All times are GMT. The time now is 05:04 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.01355 seconds
  • Memory Usage 1,762KB
  • 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
  • (4)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