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 August 12th, 2009, 08:24 PM   #1 (permalink)
Senior Member
Verified Customer
 
Join Date: Dec 2002
Location: San Francisco
Posts: 603
How to add Both Recent and Featured Photos on VB page?

I tried create two modules, one is Featured Photo and the other Recent Photo to add on VB portal page. But I got this error:

"Fatal error: Cannot redeclare pp_get_ext() (previously declared in /home/photozo/public_html/album/inc_features.php:41) in /home/photozo/public_html/album/inc_features_recent.php on line 44"


How can I fix this and make it work?

Thanks in advance for your kind help!
pengrus is offline   Reply With Quote
Old August 12th, 2009, 09:43 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
You can not load the same functions in two different files so from your second file if they are al based after the same code remove the functions in that second file thats all you should need to do.
__________________
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 August 12th, 2009, 10:23 PM   #3 (permalink)
Senior Member
Verified Customer
 
Join Date: Dec 2002
Location: San Francisco
Posts: 603
Thanks Chuck. I still do not fully understand how to do it.

Here is what I am doing now:

in inc_features.php, I select
$q_switch = "random";

Then I renamed inc_features_recent.php, in which I select
$q_switch = "latest";

Then I made two .php files to call these two files
for example:
pp_recent.php

Code:
Content visible to verified customers only.
and pp_featured.php
Code:
Content visible to verified customers only.

Apparently, use pp_featured.php and pp_recent.php file at the same time failed.

What should I change?

Thanks again!

Sean
pengrus is offline   Reply With Quote
Old August 13th, 2009, 08:21 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Sean both of the php files contain functions. You need to remove this from the pp_recent.php file

Code:
Content visible to verified customers only.
__________________
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 August 13th, 2009, 02:11 PM   #5 (permalink)
Senior Member
Verified Customer
 
Join Date: Dec 2002
Location: San Francisco
Posts: 603
You meant to remove it from inc_features_recent.php, right?
pengrus is offline   Reply With Quote
Old August 13th, 2009, 05:05 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
remove all that from the second file you created yes.
__________________
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 August 14th, 2009, 06:39 PM   #7 (permalink)
Senior Member
Verified Customer
 
Join Date: Dec 2002
Location: San Francisco
Posts: 603
Thank you Chuck. That worked. So every time I need to call one of the features like "Random", "Latest", I need to make additional file to call from?
pengrus is offline   Reply With Quote
Old August 14th, 2009, 07:12 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
well yes if your calling things externally or you create one file with different print variables and queries etc.

The point really is you cant include functions twice in a page which is why you got that error.
__________________
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
How to add a link and text in the heading of featured photos rareclownfish Photopost Pro How Do I...? 5 December 26th, 2008 09:58 PM
Featured Photos on vB Page pgowder Photopost Pro How Do I...? 5 August 23rd, 2005 10:20 AM


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

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