The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need fresh eyes to check code
I am updating a mod to 4.0 as I like the mod but it hasn't been updated yet, anyway, I keep getting errors left and right but can't figure out what is wrong with my code to cause it plus I want to make sure there are no other mistakes.
PHP Code:
Thanks |
#2
|
||||
|
||||
If you are getting errors then you need to post them.
Just from a quick look, links are no longer built using TD tags, you have registered cyb_frules_link twice, and also registered cafr_parser which is an object ?, not sure that would work, or why you would need it. Also, why have you used $db->hide_errors(); |
#3
|
|||
|
|||
Generally the only things that need changing are template syntax and then building the template (vB_Template::create())
|
#4
|
|||
|
|||
Paul: So the eval(); lines are fine? Also the $db->hide_errors(); is there because its not my mod, I am just updating it. I plan to remove those. So how are links built now? And the error I get is this:
Quote:
Quote:
Line 7 of the plugin which is parse_templates hook: PHP Code:
|
#5
|
|||
|
|||
As far as I was aware, only links in templates had to be changed from the standard href to {vb:link member|thread|etc}
|
#6
|
|||
|
|||
Seriously? I did not know that, see how much I read? So what about say this href:
HTML Code:
<a href="download.php?do=add">
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|