PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old January 8th, 2010, 04:56 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question Include PHP-Code

Hello,

I want to include some php-code in photopost for a statistical application. I rename the headtags.htm to headtags.php, configure the filename in photopost and put the php-code in the file headtags.php.

But the php-code is not executed. Could I use a php-file as headtags-file? When not: Where can I put some php-code otherwise?

Thank you in advance.

Regards,
Frank
vFranky is offline   Reply With Quote
Old January 8th, 2010, 06:54 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
head tags file is an actual file you use to input meta link tags stuff like that that gets inserted into the head portion of an html page.

If your trying to do some code why not use a custom pal box to show it on the sidebar. you know it all depends on what your trying to do and show where.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 10th, 2010, 01:14 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question

Quote:
Originally Posted by Chuck S View Post
If your trying to do some code why not use a custom pal box to show it on the sidebar. you know it all depends on what your trying to do and show where.
Yes, but I not have anything to "show". It's only invisble statistics code. I for design purposes, I have deactivated the pals. What's about the header or footer file? Can this be an .php-file?
vFranky is offline   Reply With Quote
Old January 10th, 2010, 01:31 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
well your header or footer can be php files sure you just need to escape any html correctly
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 10th, 2010, 04:14 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question

Quote:
Originally Posted by Chuck S View Post
well your header or footer can be php files sure you just need to escape any html correctly
Okay, I tested the footer als .php, but my php code snippet says "I am not able to read my configuration data. This is likely because you embedded the code snippet into a function".

It seems, the php-code is executed, but cannot be executed this way. Is there another way to include a php code snippet?
vFranky is offline   Reply With Quote
Old January 10th, 2010, 08:19 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
You might need to contact the people making your code snippet.

You can include php code in a php file no problem but any problems you have with that code would have to be directed to the makers of that code snippet. I have no idea what your doing or what code your using so not like I can really comment here.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 11th, 2010, 09:12 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question

Quote:
Originally Posted by Chuck S View Post
You might need to contact the people making your code snippet.
No, this is freeware. I think they do not know PhotoPost.

Question: Can I put the four lines of my statistic code at the beginnung of PhotoPost's index.php in the root directory? Or is this an "illegal modification"?

Because this might be a perfect place. But I have to insert this code-snippet after each PhotoPost update.

Regards,
Frank
vFranky is offline   Reply With Quote
Old January 11th, 2010, 10:43 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
Frank if this is merely a php code snippet what is it doing. I really cant give you any advise without knowing what your trying to achieve.

If it is merely php code that say prints something in the footer then you use a php footer and place it at the end of the footer.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 11th, 2010, 12:16 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question

Quote:
Originally Posted by Chuck S View Post
Frank if this is merely a php code snippet what is it doing. I really cant give you any advise without knowing what your trying to achieve.

If it is merely php code that say prints something in the footer then you use a php footer and place it at the end of the footer.
It is a code snippet that collects statistical informations (like Google Analytics) and writes this informations to a file in a separate directory. That's all. Would be no technical problem on top of PhotoPost index.php.

Is it a licencse probleme? The code snippet modifies no functions of PhotoPost. It's already finished after the first line of code in PhotoPosts index.php is executed.


Edit: You can find more informations about this statistic software here

Last edited by vFranky; January 11th, 2010 at 12:21 PM.
vFranky is offline   Reply With Quote
Old January 11th, 2010, 01:05 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
well place it in the index.php file above the closing ?> if you want to try or if you want it on every page bottom of pp-inc.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 11th, 2010, 01:22 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question

Quote:
Originally Posted by Chuck S View Post
well place it in the index.php file above the closing ?> if you want to try or if you want it on every page bottom of pp-inc.php
Thank you, okay I am now in the pp-inc.php.
Is there any variable where I can extract the "<title>" of each page?
vFranky is offline   Reply With Quote
Old January 11th, 2010, 01:41 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
The title of every page is defined in the printheader function in pp-inc.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 11th, 2010, 05:07 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question

Quote:
Originally Posted by Chuck S View Post
The title of every page is defined in the printheader function in pp-inc.php
Good idea. But how to use this very complex function?

Info: The statistic code is now at the end of pp-inc.php. I want to write the <title> of every visited page to this statistic application.

When pp-inc.php is executed every time a PhotoPost page is displayed, I need the <title> of each page. How to use the printheader function in this context?

Code:
Content visible to verified customers only.
vFranky is offline   Reply With Quote
Old January 11th, 2010, 05:23 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
well it would get very complex there to do that. the titlereplace is defined by each script so no easy way you could do that for all pages unless you rewrite things.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 12th, 2010, 01:45 AM   #15 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question

Quote:
Originally Posted by Chuck S View Post
well it would get very complex there to do that. the titlereplace is defined by each script so no easy way you could do that for all pages unless you rewrite things.
No way to get the actual page name, category or picture the easy way?
vFranky is offline   Reply With Quote
Old January 12th, 2010, 06:23 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
globally all these variables are different per page. we feed stuff to our code through the use of functions.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 12th, 2010, 08:29 AM   #17 (permalink)
Member
Verified Customer
 
Join Date: Dec 2009
Location: Germany
Posts: 163
Question

Quote:
Originally Posted by Chuck S View Post
globally all these variables are different per page. we feed stuff to our code through the use of functions.
Okay, thank you.

Does PhotoPost have some integrated statistics? Most visited categories, for example?
vFranky is offline   Reply With Quote
Old January 12th, 2010, 12:55 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,946
Our statistics are basic number of users number of photos comments views etc stuff basic to the gallery.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
php include ? bbhunt Photopost Pro How Do I...? 1 November 22nd, 2009 07:16 AM
to include in a php file pilot ReviewPost Suggestions 0 August 27th, 2005 12:06 PM


All times are GMT -5. The time now is 09:18 PM.

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