 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
September 4th, 2007, 11:06 PM
|
#1 (permalink)
| | Member Verified Customer
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.
|
| |
September 5th, 2007, 08:10 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
September 9th, 2007, 05:30 AM
|
#3 (permalink)
| | Member Verified Customer
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.
|
| |
September 9th, 2007, 08:28 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
September 9th, 2007, 10:16 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jan 2006
Posts: 209
|
There are no queries in the topmenu function. I think you meant to say the display_gallery function.
|
| |
September 9th, 2007, 10:24 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
yes display_gallery
|
| |
September 9th, 2007, 11:06 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jan 2006
Posts: 209
|
Ok, will try again in the morning using: AND cat != 613
Thanks.
|
| |
September 9th, 2007, 11:21 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Okay enjoy let me know how it works out.
|
| |
September 15th, 2007, 05:34 AM
|
#9 (permalink)
| | Member Verified Customer
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. |
| |
September 15th, 2007, 10:05 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
have a great weekend
|
| |
May 11th, 2008, 07:12 PM
|
#11 (permalink)
| | Member Verified Customer
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.
|
| |
May 11th, 2008, 09:32 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
May 11th, 2008, 10:24 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Jan 2006
Posts: 209
|
Thanks Chuck for your fast reply. Have made the changes. Appreciate your pin-point accuracy.
Cheers.
|
| |
May 12th, 2008, 06:27 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Not a problem glad to help.
|
| | |
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 08:45 AM. | |