PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   How do I make this code work? (http://www.photopost.com/forum/photopost-pro-how-do-i/124554-how-do-i-make-code-work.html)

jfreundn April 21st, 2006 08:28 PM

How do I make this code work?
 
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); ?>

Thanks

Chuck S April 21st, 2006 09:25 PM

Hello

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?

jfreundn 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.

Thanks

Chuck S April 22nd, 2006 07:57 AM

I would simply try this

Edit your custompal template in admin template editor

Place this in there

Code:

Content visible to verified customers only.

jfreundn 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.

Chuck S 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.

jfreundn April 22nd, 2006 08:39 PM

The software works just not in my photo gallery Help
 
Hi Chuck,

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.

Chuck S April 22nd, 2006 09:07 PM

Code:

Content visible to verified customers only.
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.

jfreundn April 23rd, 2006 01:55 PM

Hi Chuck,

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.

Thanks

Chuck S April 23rd, 2006 06:58 PM

Yes you would apply the correct path to the file.

Maybe this?

include_once("../msa/mysimpleads.php");


All times are GMT -5. The time now is 05:04 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97