https://www.icyphoenix.com/viewtopic.php?f=26&t=1408
-----------------------------------
pepi
Fri 23 Mar, 2007 11:44

FAP SUPPORT - FAP Personal Pic In Portal
-----------------------------------
Hi

I can switch in CMS only show pictures from public but its shows also from personal 
[img]http://cool-lighter.at/pepi/files/posted_images/user_2_album_block.gif[/img]

Can anyone help me ???

Pepi


-----------------------------------
Artie
Fri 23 Mar, 2007 17:50

Re: FAP Personal Pic In Portal
-----------------------------------
I'm not that familar with Icy Phoenix, but I think this may help

OPEN [b]blocks/blocks_imp_album.php[/b]

FIND
[codeblock]'WHERE cat_id <> 0'[/codeblock]

REPLACE WITH
[codeblock]'WHERE cat_user_id = 0'[/codeblock]


-----------------------------------
pepi
Sat 24 Mar, 2007 00:06

Re: FAP Personal Pic In Portal
-----------------------------------
Hi Artie
and many thanks it [color=darkred][b]works[/b][/color] [img]http://web19.is-server.de/modules/gtchat/images/etsch.gif[/img]

for normal phpbb EZ protal album block
OPEN [b]when installed portal.php[/b]
FIND
[codeblock]// Build Categories Index
$sql = "SELECT c.*
      FROM ". ALBUM_CAT_TABLE ." AS c
         LEFT JOIN ". ALBUM_TABLE ." AS p ON c.cat_id = p.pic_cat_id
      WHERE cat_id <> 0
      GROUP BY cat_id
      ORDER BY cat_order ASC";
if ( !($result = $db->sql_query($sql)) )[/codeblock]
IN LINE FIND
[codeblock]WHERE cat_id <> 0[/codeblock]
REPLACE WITH
[codeblock]WHERE cat_user_id = 0[/codeblock]

Pepi


-----------------------------------
Mighty Gorgon
Tue 27 Mar, 2007 01:17

Re: FAP Personal Pic In Portal
-----------------------------------
I should have already fixed it... but glad to see that there is another solution here! :wink:


