The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding a field into the edit forum menu..
Okay, coming down to the last thing for this mod conversion to vB 3.5.x, was testing it, all code works fine, but when I enable this to work for a specific forum, I get this error:
Quote:
Thanks! - Tyler |
#2
|
|||
|
|||
PHP Code:
|
#3
|
||||
|
||||
Quote:
Code:
<plugin active="1"> <title>Forum Admin Tables</title> <hookname>forumadmin_edit_form</hookname> <phpcode><![CDATA[print_table_header($vbphrase['enable_disable_features_hacks']); print_yes_no_row('Enable Hack Poster', 'forum[hack_poster]', $forum['hack_poster']); print_yes_no_row('Show Uninstall Button', 'forum[hack_poster_private]', $forum['hack_poster_private']);]]></phpcode> </plugin> |
#4
|
|||
|
|||
youll need to put it into the hook that is inside the constructor for the forum datamanager.
|
#5
|
||||
|
||||
thanks for that, but it couldnt be added by a hook, i actually had to add it to includes/class_dm_forum.php
But, everything else is sorted, now i get this: Code:
Database error in vBulletin 3.5.1: Invalid SQL: SELECT userid FROM lockdown_install WHERE threadid=1 AND userid=Array[userid]; 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 '[userid]' at line 1 Error Number : 1064 Date : Monday, November 28th 2005 @ 01:59:14 PM Script : /dev/showthread.php?p=1 Referrer : /dev/index.php? IP Address : xx.xx.xx.xx Username : TwiSteD Classname : vb_database PHP Code:
|
#6
|
|||
|
|||
It can be added via forumdata_start, just like i said
The problem you face is an itchy one, $vbulletin->userinfo is being parsed without the array component after it. Either take it out of quotes (and use . to append) or surround it in braces, like {$vbulletin->userinfo[userid]} |
#7
|
||||
|
||||
i used that hook location, it did nothing, i still recieved that error after trying that.
anyways, the previous post i did, was solved by just appending it in quotes..next error (sheesh, this stinks..so many errors in testing stages, heh!) Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/tyler/public_html/.../showthread.php(921) : eval()'d code on line 25 |
#8
|
|||
|
|||
You obviously didnt do it right
PHP Code:
PHP Code:
|
#9
|
||||
|
||||
now I get:
Code:
Warning: Cannot use a scalar value as an array in /showthread.php(921) : eval()'d code on line 44 Warning: Cannot use a scalar value as an array in /showthread.php(921) : eval()'d code on line 45 Warning: Cannot use a scalar value as an array in /showthread.php(921) : eval()'d code on line 55 Warning: Cannot use a scalar value as an array in /showthread.php(921) : eval()'d code on line 56 Thanks a bunch for your help thus far, merk |
#10
|
|||
|
|||
You didnt update the query properly.
It needs both a { and a } around the entire variable (and youve only put a } at the end) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|