 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
April 15th, 2008, 05:16 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
| Banners on certain pages
I would like to place banners on the index, showgallery, and showphoto pages, in the locations shown below, respectively.
Do I need to place the banner script directly in above mentioned PHP files? If so, where? Or do I need to edit some templates?
Thanks a lot, and sorry if this has been addressed before.
|
| |
April 15th, 2008, 07:49 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
well not really thinking you would need to place it it any php files you would just respectively place the code you want in each of those template files where you wish it to print.
|
| |
April 16th, 2008, 11:17 AM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
|
Thanks Chuck!
Would you be able to show me/point me in the right direction of where in the templates I would add the banner script? I'm having a bit of difficulty interpreting the template code to determine where things are located.
|
| |
April 16th, 2008, 11:41 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Well the categories template towards the bottom before the closing PPPRINT;
The showgallery template maybe somewhere below the <br/> tag here Code: Content visible to verified customers only.
In your showphoto template maybe above the PPPRINT; statement Code: Content visible to verified customers only.
|
| |
April 16th, 2008, 09:38 PM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
|
Worked perfectly, Chuck - thank you!
|
| |
April 17th, 2008, 08:00 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Not a problem
|
| |
January 22nd, 2010, 02:27 PM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
|
Hey,
Sorry to bump an old thread, but I'm having the exact same question again. I'd like to place banners in the same places mentioned in the original post, but since I'm running Photopost 7 now, the template locations you gave me no longer seem to exist in the current version's templates (or rather, they've been renamed). Can you tell me where would be the appropriate places to put the banner code?
|
| |
January 22nd, 2010, 03:29 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Sorry no those locations are still in the templates and valid. |
| |
January 22nd, 2010, 03:57 PM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
|
For some reason I can't find them, though....it's puzzling me. I've copied and pasted the entirety of both the "showgallery" and "showphoto" templates into notepad and tried to use the "find" feature to find any instance of "$ppclose" (to find the locations you mentioned), but it comes up with nothing. This is exactly what I did before and it worked great, so I'm not sure why I'm having so much trouble.
|
| |
January 22nd, 2010, 06:35 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
well what type of install are you doing. For instance on showphoto search for the filmstrip vb template sets may not use ppclose
|
| |
January 22nd, 2010, 10:46 PM
|
#11 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
|
I have it integrated with vbulletin 4.0. Is that what you mean?
|
| |
January 23rd, 2010, 04:46 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
correct your code will not be the same. Try downloading a free program called beyond compare and compare the regular template and the vb4 ones.
|
| |
January 25th, 2010, 03:07 PM
|
#13 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
|
Ok Chuck, I downloaded that and found where to put the code, but now I get the following error whenever I try to save changes to the template:
Warning: fopen(..../public_html/gallery2/templates/vb4enhanced/categories.tmpl) [function.fopen]: failed to open stream: Permission denied in /home/detonate/public_html/gallery2/adm-misc.php on line 2419
Unable to write changes, permissions on categories.tmpl are not set properly.
I've tried setting the templates to 777 and 666 (just to experiment), but none seem to work.
|
| |
January 25th, 2010, 03:43 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Is the actual template 666 as it would appear it is not.
You can always ftp to your template and edit it directly.
|
| |
January 31st, 2010, 07:36 PM
|
#15 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
| Quote:
Originally Posted by Chuck S The showgallery template maybe somewhere below the <br/> tag here Code: Content visible to verified customers only.
| Hi Chuck,
I got Beyond Compare and successfully used it to add the banners to the "categories" and "showphoto" templates, but I'm still having trouble with the one in the "showgallery" template, which you mentioned the fix for above. I use BC to find the appropriate place in showgallery (that corresponds to what you wrote above), which seems to be write after the last <br> and before PPPRINT: Code: Content visible to verified customers only.
However when I save it and try to view a page in my gallery that uses that template, I keep getting this error
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/detonate/public_html/gallery2/templates/vb4enhanced/showgallery.tmpl on line 305
Like I said, I got the exact same banner code to work in categories and showphoto, but this one just isn't working.
Thanks again for your time and patience!
|
| |
January 31st, 2010, 08:16 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
try by the break tags
|
| |
January 31st, 2010, 10:02 PM
|
#17 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
|
I tried putting it between and before before the <br> tags, but it gives me the same error.
|
| |
February 1st, 2010, 09:16 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
You need to make sure before you try editing the templates through the admin that you have correctly set the tmpl files on the server to 666 permissions which is writable.
|
| |
February 1st, 2010, 02:16 PM
|
#19 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2007 Location: Washington
Posts: 15
|
The permissions on all the templates are 666. When I add the banner code, the change actually gets made (I can see this if I go back and try to edit it again). The I view a page with the showgallery template, everything on the page BELOW where I inserted the code is replaced by that error. It doesn't seem to like where I'm putting that code.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 07:51 AM. | |