FAP SUPPORT - User Gallery Picture On Album Index »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP SUPPORT - User Gallery Picture On Album Index



sympatico [ Sat 02 Jun, 2007 00:55 ]
Post subject: FAP SUPPORT - User Gallery Picture On Album Index
hi,

thank you for a great mod!

i would like to have the pics in personal user galleries show up in "recent" "most viewed" etc... blocks like all other pics in other public albums.

i know about a piece of code that will do that:

Code: [Hide] [Select]

member pics on index mod

You should modify the 4 SQL queries in album_hierarchy_sql.php. in album_mod

I think it should be enough doing this:

FIND

WHERE p.pic_cat_id IN ($cats) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 )


REPLACE WITH

WHERE ( p.pic_approval = 1 OR ct.cat_approval = 0 )


This should be done for all 4 functions.


the problem with this code is that it insterts all other pics in "recent pics" box in the user galleries.
example: if i go to gallery of user xyz, in the recently added pics box i also find pictures of other galleries.

is there a little fix for that?

thank you for your help!




Powered by Icy Phoenix