View Full Version : How do I make this code work?
April 21st, 2006, 08:28 PM
I want to make this code work in the custom2.tpl file do I need some type of variale to make it work if so what is the code that I need to insert in additon to this code?
<?php include_once("/msa/mysimpleads.php");show_ad_group(1); ?>
April 21st, 2006, 09:25 PM
I would have no idea what else you would need to make your code work. This would depend on your code. You would include the file you need to and then any variable(s) needed to print the output.
Is the show_ad_group your variable used to print the output of the mysimpleads script?
April 21st, 2006, 11:30 PM
yes this is a script that will geo target my ad campaign and when it is added to my html pages outside of vbulletin it works great but for some reason it will not register at all. In other words it does not show my ads in header as it should.
Does the header register php coding or only html.
I am so confused by why it just doesn't work inside thest templates.
I need some help b/c I am not very experienced in this area.
April 22nd, 2006, 07:57 AM
I would simply try this
Edit your custompal template in admin template editor
Place this in there
April 22nd, 2006, 02:43 PM
I added the above line of code and it is still not working. What else do I need to do?
I need very specific direction as I don't normally work with php.
Thank you in advance for your help.
April 22nd, 2006, 06:27 PM
Sorry but this issue does not involve a support issue with our software. You would need to debug or ask for support from that software's manufacturer you are trying to get working.
April 22nd, 2006, 08:39 PM
I'm confused here. This software works perfectly on html sites but with the templates in ppp it is not working the developer said that will depend on how to make ppp execute the code so it seems as if there must be some way to make this php code work on my photo gallery.
April 22nd, 2006, 09:07 PM
Based on what your posting as long as the custom template contents are this it should work based on what your telling me as long as the path to the file is correct. The only advise I can give is what I am posting above because based on your html php include thats what the code would look like in our custom template since it is already a php file format. You would want to make sure in the Admin => Sidebar Options the sidebar and custompal are turned on.
Otherwise if this continues not to work since this is dealing with a software that is not manufacturered by us any support on that code or why it would not print would come from the manufacturer of that specific software. They would probally be able to tell you why it would not work if this continues to be an issue.
April 23rd, 2006, 01:55 PM
I just am wondering that since both gallery and msa are subdir of the root.
Do I need to instruct pp to look ouside of its dir gallery to make the php work?
I asked b/c u mentioned correct path.
April 23rd, 2006, 06:58 PM
Yes you would apply the correct path to the file.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.