![]() |
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 |
PHP Code:
|
Quote:
Code:
<plugin active="1"> |
youll need to put it into the hook that is inside the constructor for the forum datamanager.
|
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: PHP Code:
|
It can be added via forumdata_start, just like i said :confused:
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]} |
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 |
You obviously didnt do it right :p
PHP Code:
PHP Code:
|
now I get:
Code:
Warning: Cannot use a scalar value as an array in /showthread.php(921) : eval()'d code on line 44 Thanks a bunch for your help thus far, merk :) |
You didnt update the query properly.
It needs both a { and a } around the entire variable (and youve only put a } at the end) |
All times are GMT. The time now is 01:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|