Please help, how do I install hooks?

by Joppen - 29-03-2015, 07:01 PM
Lurker
Posts:
7
Joined:
Mar 2015
Likes:
0
Credits:
13
Reputation:
0
2 Years of Service
#1
OP
Posted: 29-03-2015, 07:01 PM (This post was last modified: 29-03-2015, 07:02 PM by Joppen.)
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` (
Nan Ihier Gelair Mordor
Posts:
2,636
Joined:
Jan 2015
Likes:
298
Credits:
8,073
Reputation:
89
2 Years of Service
#2
Posted: 29-03-2015, 07:03 PM
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.
Lurker
Posts:
7
Joined:
Mar 2015
Likes:
0
Credits:
13
Reputation:
0
2 Years of Service
#3
OP
Posted: 29-03-2015, 08:20 PM
(29-03-2015, 07:03 PM)AmN Wrote: maybe its write_query()

nope still not working.
Nan Ihier Gelair Mordor
Posts:
2,636
Joined:
Jan 2015
Likes:
298
Credits:
8,073
Reputation:
89
2 Years of Service
#4
Posted: 29-03-2015, 08:28 PM (This post was last modified: 29-03-2015, 08:39 PM by Sozin.)
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.
Nan Ihier Gelair Mordor
Posts:
2,636
Joined:
Jan 2015
Likes:
298
Credits:
8,073
Reputation:
89
2 Years of Service
#5
Posted: 29-03-2015, 08:40 PM
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.
Lurker
Posts:
7
Joined:
Mar 2015
Likes:
0
Credits:
13
Reputation:
0
2 Years of Service
#6
OP
Posted: 30-03-2015, 09:35 AM
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.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)