https://www.icyphoenix.com/viewtopic.php?f=26&t=2183 ----------------------------------- felix968 Fri 01 Jun, 2007 22:46 FAP SUPPORT - Full Album Pack Portal Block ----------------------------------- Hallo, in fap contrib there is this mod that adds a block to ez Portal for showing last and random pic in Album. Can I show more than one picture in ezportal? Thanks ----------------------------------- jz Sun 03 Jun, 2007 01:35 Re: Full Album Pack Portal Block ----------------------------------- Yes, as many as you like ----------------------------------- felix968 Sun 03 Jun, 2007 08:06 Re: Full Album Pack Portal Block ----------------------------------- [quote user="jz" post="15890"]Yes, as many as you like[/quote] How can I do? ----------------------------------- jz Sun 03 Jun, 2007 11:44 Re: Full Album Pack Portal Block ----------------------------------- [quote user="felix968" post="15832"] in fap contrib there is this mod that adds a block to ez Portal for showing last and random pic in Album.[/quote] :arrow: just follow the instructions ----------------------------------- felix968 Sun 03 Jun, 2007 11:54 Re: Full Album Pack Portal Block ----------------------------------- [quote user="jz" post="15905"][quote user="felix968" post="15832"] in fap contrib there is this mod that adds a block to ez Portal for showing last and random pic in Album.[/quote] :arrow: just follow the instructions[/quote] I'm sorry jz, i've this one DIY: [code linenumbers=false] ############################################################## ## MOD Title: Full Album Pack Portal Block ## MOD Author: Mighty Gorgon < mightygorgon@mightygorgon.com > (Luca Libralato) http://www.mightygorgon.com/ ## MOD Description: This MOD adds a block to ez Portal for showing last and random pic in Album ## ## MOD Version: 1.0.1 ## ## Installation Level: Easy ## Installation Time: 5 minutes ## Files To Edit: (3) ## portal.php ## language/lang_english/lang_main.php ## templates/subSilver/portal_body.tpl ## ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/ ############################################################## ## Author Notes: ## ## N/A ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]------------------------------------------------ # portal.php # #-----[ FIND ]------------------------------------------------ # $page_title = $lang['Home']; # #-----[ AFTER, ADD ]------------------------------------------ # // For pictures in personal galleries add // AND c.cat_user_id > 0 // Mighty Gorgon - Full Album Pack - BEGIN // Newest Pic $sql = "SELECT * FROM " . ALBUM_TABLE . " AS a, " . ALBUM_CAT_TABLE . " AS c WHERE c.cat_id = a.pic_cat_id AND c.cat_view_level = -1 ORDER BY pic_time DESC LIMIT 1"; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not query album information', '', __LINE__, __FILE__, $sql); } $newpicrow = $db->sql_fetchrow($result); // Random Pic $sql = "SELECT * FROM " . ALBUM_TABLE . " AS a, " . ALBUM_CAT_TABLE . " AS c WHERE c.cat_id = a.pic_cat_id AND c.cat_view_level = -1 ORDER BY RAND() LIMIT 1"; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not query album information', '', __LINE__, __FILE__, $sql); } $randpicrow = $db->sql_fetchrow($result); // Mighty Gorgon - Full Album Pack - END # #-----[ FIND ]------------------------------------------------ # 'L_VOTE_BUTTON' => $lang['Vote'], # #-----[ AFTER, ADD ]------------------------------------------ # // Mighty Gorgon - Full Album Pack - BEGIN 'L_NEWEST_PIC' => $lang['Newest_pic'], 'NEW_PIC_IMAGE' => append_sid('album_thumbnail.'. $phpEx . '?pic_id=' . $newpicrow['pic_id']), 'NEW_PIC_TITLE' => $newpicrow['pic_title'], 'NEW_PIC_DESC' => $newpicrow['pic_desc'], 'NEW_PIC_POSTER' => $newpicrow['pic_username'], 'U_NEW_PIC_LINK' => append_sid('album_showpage.' . $phpEx . '?pic_id=' . $newpicrow['pic_id']), 'NEW_PIC_TIME' => create_date($board_config['default_dateformat'], $newpicrow['pic_time'], $board_config['board_timezone']), 'L_RANDOM_PIC' => $lang['Random_pic'], 'RANDOM_PIC_IMAGE' => append_sid('album_thumbnail.'. $phpEx . '?pic_id=' . $randpicrow['pic_id']), 'RANDOM_PIC_TITLE' => $randpicrow['pic_title'], 'RANDOM_PIC_DESC' => $randpicrow['pic_desc'], 'RANDOM_PIC_POSTER' => $randpicrow['pic_username'], 'U_RANDOM_PIC_LINK' => append_sid('album_showpage.' . $phpEx . '?pic_id=' . $randpicrow['pic_id']), 'RANDOM_PIC_TIME' => create_date($board_config['default_dateformat'], $randpicrow['pic_time'], $board_config['board_timezone']), // Mighty Gorgon - Full Album Pack - END # #-----[ OPEN ]------------------------------------------------ # # #-----[ OPEN ]------------------------------------------------ # language/lang_english/lang_main.php # #-----[ FIND ]------------------------------------------------ # ?> # #-----[ BEFORE, ADD ]----------------------------------------- # // Mighty Gorgon - Full Album Pack - BEGIN $lang['Newest_pic'] = 'Last Pic'; // Album Addon $lang['Random_pic'] = 'Random Pic'; // Album Addon // Mighty Gorgon - Full Album Pack - END # #-----[ OPEN ]------------------------------------------------ # templates/subSilver/portal_body.tpl # #-----[ FIND ]------------------------------------------------ # {TOTAL_USERS}
{NEWEST_USER}

{TOTAL_POSTS} {TOTAL_TOPICS}
  # #-----[ AFTER, ADD ]------------------------------------------ # {L_NEWEST_PIC}
{NEW_PIC_TITLE}

{NEW_PIC_POSTER}
{NEW_PIC_TIME}
{L_RANDOM_PIC}
{RANDOM_PIC_TITLE}

{RANDOM_PIC_POSTER}
{RANDOM_PIC_TIME}
# #-----[ SAVE/CLOSE ALL FILES ]-------------------------------- # # EoM [/code] And I'm not able to understand where I've to change for showing more than one pic in ezportal... ----------------------------------- jz Sun 03 Jun, 2007 18:01 Re: Full Album Pack Portal Block ----------------------------------- felix, I am not a coder but if I was you I'd duplicate this part in templates/subSilver/portal_body.tpl [code syntax=php]
{RANDOM_PIC_TITLE}

{RANDOM_PIC_POSTER}
{RANDOM_PIC_TIME}
[/code] try it and see if it works ----------------------------------- Artie Sun 03 Jun, 2007 18:49 Re: Full Album Pack Portal Block ----------------------------------- Portal block is limited to 1 photo (each) .... use the FAP [highlight=#FFFFAA]pictures[/highlight] block. ----------------------------------- felix968 Sun 03 Jun, 2007 22:57 Re: Full Album Pack Portal Block ----------------------------------- [quote user="Artie" post="15923"]Portal block is limited to 1 photo (each) .... use the FAP [highlight=#FFFFAA]pictures[/highlight] block.[/quote] I say thank you to jz and Artie. FAp pictures block works fine... ----------------------------------- Artie Mon 04 Jun, 2007 03:03 Re: Full Album Pack Portal Block ----------------------------------- You are welcome 8) ----------------------------------- xmenfile Mon 24 Sep, 2007 07:41 Re: Full Album Pack Portal Block ----------------------------------- [color=#000000]it works fine in horizontal, but how can I make Random block shows vertical in left side of ezportal. Thank you,[/color] ----------------------------------- Artie Fri 28 Sep, 2007 00:16 Re: Full Album Pack Portal Block ----------------------------------- [quote user="xmenfile" post="20035"][color=#000000]it works fine in horizontal, but how can I make Random block shows vertical in left side of ezportal. Thank you,[/color][/quote] Should be able to by modifying this part of the code to display as you like: [codeblock]
{L_RAND_PICS}
{L_NO_PICS}
{random_pics_block.rand_pics.rand_col.DESC}
{L_POSTER}: {random_pics_block.rand_pics.rand_detail.POSTER}
{L_PIC_TITLE}: {random_pics_block.rand_pics.rand_detail.TITLE}
{L_PIC_ID}: {random_pics_block.rand_pics.rand_detail.PIC_ID}
{L_POSTED}: {random_pics_block.rand_pics.rand_detail.TIME}
{L_VIEW}: {random_pics_block.rand_pics.rand_detail.VIEW}
{random_pics_block.rand_pics.rand_detail.RATING} {random_pics_block.rand_pics.rand_detail.COMMENTS} {random_pics_block.rand_pics.rand_detail.IP}

[/codeblock]