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 April 28th, 2006, 02:36 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2006
Posts: 18
<head> in between modification

I need to add something like this in the
<head>ADD THIS</head>

ADD THIS Being
<?php
putenv ( "REMOTE_ADDR=".$HTTP_SERVER_VARS["REMOTE_ADDR"] ) ;
if( $HTTP_SERVER_VARS["HTTP_REFERER"] ) {
putenv ( "HTTP_REFERER=".$HTTP_SERVER_VARS["HTTP_REFERER"] ) ;
} else { putenv("HTTP_REFERER=noref"); }
PassThru("./cgi-bin/ucj/protect/ucjref.cgi");
?>

How do I do that?
mukoh is offline   Reply With Quote
Old April 28th, 2006, 08:39 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
You can make a headtags.php file and link to it in the Admin => Global Options head tags spot put the server path to the file containing head tags and save. The program will then load that file just like the header and footer in the appropriate spot. If using the vb3 integration then you would add this to your header include template in vb.
__________________
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 April 28th, 2006, 11:23 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2006
Posts: 18
Chuck that puts <head> element that photopost already has, and then <head> element that is coded from headtags.php

How can I do it in the first one?
mukoh is offline   Reply With Quote
Old April 28th, 2006, 11:36 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
If you use the headtags.php file the code is indeed printed in the head portion of the photopost header.

You dont use <head> tags in the file itself. The code would insert your code in the proper portion of the page for the headtags.
__________________
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 April 28th, 2006, 11:54 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2006
Posts: 18
Chuck I put the code in as is into the headtags.php and got all the settings up. But the code doesn't get executed as PHP.
mukoh is offline   Reply With Quote
Old April 28th, 2006, 12:27 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Well I can not tell you if your code is valid but it definately is being included as it is being included.

http://omegatron.net/index.php

Have you tried using javascript instead of 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 April 28th, 2006, 01:10 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2006
Posts: 18
Chuck as you can see in your example the code is being put into the page as text but not executed period.
mukoh is offline   Reply With Quote
Old April 28th, 2006, 01:38 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Okay well you need to go to the support site for your code your using and ask them how to include it in the head tags are and get it to execute. From our program perspective you can include tags in the various portions of the page as noted and what your trying to place in the headtags area is being included. I can not answer why it does not work. I have never heard of anyone placing php code in a head tags portion of a page. I know java will work in the headtags portion of a page.
__________________
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
<head> Description InterFX ReviewPost How do I...? 2 January 30th, 2006 04:53 PM
clientscript error raises its head again... ConqSoft Bugs - vBulletin 3.5.X 1 July 31st, 2005 10:06 AM
Head tags file firstrebel Photopost Pro Installation & Upgrades 1 June 2nd, 2005 03:25 PM
head-inc question Steve_C Photopost Pro Installation & Upgrades 4 June 22nd, 2004 10:47 AM


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

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