vBulletin Support

Please help, how do I install hooks?

Submitted by Joppen, , Thread ID: 2182

Thread Closed
29-03-2015, 07:01 PM
This post was last modified: 29-03-2015, 07:02 PM by Joppen
#1
How do I install hooks at vbulletin? My ver is 5.1.5, Im know phpbb/ipb more then vbulletin. Im trying to install the vbcredit addon but, it is maybe to old? It says something about the db. It cannot create dbs by the installer thats on my server already.

So Im importing the file but, it wont install at all.

Code:
Importing Product, Please Wait...

[:]


Fatal error: Call to a member function query_write() on a non-object in C:\wamp\www\subdomains\forum\core\dbtech\credits\credits_installer.php on line 35
So here we look at it:
Quote: $db->query_write("CREATE TABLE IF NOT EXISTS `" . TABLE_PREFIX . "credits_action` (

RE: Please help, how do I install hooks?

#2
maybe its write_query()
Do not let your difficulties fill you with anxiety, after all it is only in the darkest nights that stars shine more brightly. - Ali(a.s)

Developer( PHP, Python, C++, HTML+CSS, JS I am available for Hire. Message Me for details.

RE: Please help, how do I install hooks?

OP
#3
29-03-2015, 07:03 PM
AmN Wrote:
maybe its write_query()

nope still not working.

RE: Please help, how do I install hooks?

This post was last modified: 29-03-2015, 08:39 PM by Sozin
#4
I haven't used vBulletin.

I can help you if you post your DB Driver class, that is, like mysqli or mysql, post that here.
Do not let your difficulties fill you with anxiety, after all it is only in the darkest nights that stars shine more brightly. - Ali(a.s)

Developer( PHP, Python, C++, HTML+CSS, JS I am available for Hire. Message Me for details.

RE: Please help, how do I install hooks?

#5
You can also try doing

global $db;

Before that line, write_query

Post your hook file here.
Do not let your difficulties fill you with anxiety, after all it is only in the darkest nights that stars shine more brightly. - Ali(a.s)

Developer( PHP, Python, C++, HTML+CSS, JS I am available for Hire. Message Me for details.

RE: Please help, how do I install hooks?

OP
#6
Another question, where do I find the postbit_legacy in 5.1.5? I looked in styles & templates - style manager then the style I use, but I do not find anything on Postbit in P, nor in U as use postbit legacy. I want to add an code to it.

Users browsing this thread: 1 Guest(s)