vBulletin 4 PHP help!

CMSVisuals

Up-and-Coming Sensation
Joined
Sep 23, 2010
Messages
320
Reaction score
0
FP$
694
Hey everyone! I am having a little problem.

I own a forum and everything is working correctly with what I am trying to do. I can access the database with the php scripts just fine and the custom tables I created work just as planned. However, I ran into one problem...Implementation into the vBulletin templates. What I will end up needing to do is to make it so I can run my php scripts, then feed the output back into the templates of the forum styles. I had edited the postbit_legacy template in the forum theme and tried to add under the avatar another column that would say Credits: then the number of credits you have. To do this I would use this and this.

So I followed that guide and creating a hook named credits and made it save the output from my php file to the hook variable. Then in the postbit_legacy template I added to that column the variable, as you have to use them in vb4, this is explained in those links. When I did this, nothing was displayed next to Credits: and then Join Date got popped up to the right, since that was empty. So I decided to try something simpler, to see where the problem was. I created a new hook, myplugin_output like the guide says to, then put in the hook simple text to the variable, and it still doesn't work.

I'm wondering if the problem is in the hook location. When creating the hook plugin, it asks for the hook location, I've tried global_start and post_display_start, neither have worked, maybe it is supposed to be something else, I'm not sure. That is really the only thing I can think of, unless the php code I'm putting into the code is wrong, but i basically copied that guide. It may be possible to use phrases, but I don't know much about them. Hopefully a solution will come out for this. Until this, no store/credits/inventory direct implementation.

Thanks,
Coleman
 
There are plenty of highly customizable credit systems that are on vbulletin.org. It would be way easier to just get one from there. There are some there that are basic and then some modifications that have an option for almost anything you wish to do.
 
ChrisG2010 said:
There are plenty of highly customizable credit systems that are on vbulletin.org. It would be way easier to just get one from there. There are some there that are basic and then some modifications that have an option for almost anything you wish to do.

Yes, I understand this. However, what we are trying to do with our system would be unthinkable with those systems. So, it would actually be easier just to make it from scratch.

-Coleman
 
Back
Top Bottom