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 September 4th, 2007, 11:06 PM   #1 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
Random Images Pal - certain galleries only

Hello,

Does anyone know how I can select only certain galleries only to being displayed in the Random Images Pal?

Thank you.
aacircle is offline   Reply With Quote
Old September 5th, 2007, 08:10 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Hello

There is not specific functionality within photopost to do this secifically so it comes down to modifying your code. if you want to do this.

We do offer a modification forum if you wish to discuss specific modifications to the Photopost code here

http://www.photopost.com/forum/photopost-pro-mod-discussions/

Now if your confortable editing code you can edit your pp-inc.php file find your top_menu function and edit the specific queries adding something like this to the queries

AND cat NOT IN (501,502,504)

Now it would say look like this in the queries when you hack things and of course replace with your direct category numbers you do not wish.

It would look like this as an example

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 online now   Reply With Quote
Old September 9th, 2007, 05:30 AM   #3 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
Thanks for your reply Chuck. Just tried adding:

Code:
Content visible to verified customers only.
but without luck.

Am not sure what you meant I was to do with the function topmenu(). I didn't make any changes to this function.

I am assuming though, even if a usergroup doesn't have access to a certain gallery, they can still see it in the random images pal.

Last edited by aacircle; September 9th, 2007 at 05:43 AM.
aacircle is offline   Reply With Quote
Old September 9th, 2007, 08:28 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
In the topmenu function as long as your editing the proper query for random you should be fine and you can also use

AND cat = 613

Other than that I dont know how else I can assist in your code modification question there buddy. That would definately work to pull images only from car 613.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 9th, 2007, 10:16 AM   #5 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
There are no queries in the topmenu function. I think you meant to say the display_gallery function.
aacircle is offline   Reply With Quote
Old September 9th, 2007, 10:24 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
yes display_gallery
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 9th, 2007, 11:06 AM   #7 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
Ok, will try again in the morning using:

AND cat != 613

Thanks.
aacircle is offline   Reply With Quote
Old September 9th, 2007, 11:21 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Okay enjoy let me know how it works out.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 15th, 2007, 05:34 AM   #9 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
All done and thanks a million Chuck for your help. The reason it wasn't showing immediately was because I had:
Minutes to cache index page data for featured photos, statistics and PALs?
set at 10 minutes.

Thanks again! Much appreciated.
aacircle is offline   Reply With Quote
Old September 15th, 2007, 10:05 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
have a great weekend
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old May 11th, 2008, 07:12 PM   #11 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
Hi Chuck,

I upgraded to 6.1 on the weekend and like the new release very much. Thanks for that.

I have though received about 150 email alerts stating:

Quote:
MySQL error: "SELECT * FROM pp_photos WHERE cat IN (576,Array) ORDER BY date DESC LIMIT 50."
The code I have edited in pp-inc.php is bolded below:

Quote:
default:
if ( !$cat && !$showuser && !$catquery )
{
if ( $updatecache || empty($cacheq['randomcache']) )
{
$group_title = "{$Globals['pp_lang']['random']}";
$query = "SELECT id,user,userid,cat,storecat,title,ismature,bigimage,height,width, id*0+RAND() as rand_col FROM {$Globals['pp_db_prefix']}photos WHERE approved=1 AND cat IN (627,628,629,575,576,577) AND storecat=0 ORDER BY rand_col DESC LIMIT $grabnum";
Category 576 does exist. So do you know why I'm getting this SQL error?

Thanks again.
Cheers.
aacircle is offline   Reply With Quote
Old May 11th, 2008, 09:32 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Your external.php file try making sure the lines noted here are exactly as I type here replace what you have.

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 online now   Reply With Quote
Old May 11th, 2008, 10:24 PM   #13 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
Thanks Chuck for your fast reply. Have made the changes. Appreciate your pin-point accuracy.

Cheers.
aacircle is offline   Reply With Quote
Old May 12th, 2008, 06:27 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Not a problem glad to help.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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
Changing Random Pal to Most recent pal kisii Photopost Pro How Do I...? 2 October 17th, 2006 01:16 PM
Random Products PAL InterFX ReviewPost How do I...? 1 January 8th, 2006 05:04 PM
Random Image PAL on v5.03 hype901 Photopost Pro Installation & Upgrades 1 May 12th, 2005 12:41 PM


All times are GMT -5. The time now is 08:45 AM.

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