|
Page 1 of 1
|
Overburn
Joined: May 2007
Posts: 5
|
 FAP SUPPORT - FAP V 1.4.1 - Display All Categories Everywhere
Hello,
if there's any post covering that problem i'm sorry. I tried now for about 6 hours to get it solved.
I want to have a Box on the left Side which displays all categories. Works fine for the album_index. I'm using the album_box.tpl. But when I click on a gallery the box disappears. The box has to stay visible, even when a picture is displayed. Can I solve it with the album_box.tpl?
I think I have to edit something in the 'album_hierarchy_functions.php' but I don't get it.
Any ideas?
Thank you,
and appoligise again.
Stefan
|
#1 Sun 20 May, 2007 17:38 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: FAP V 1.4.1 - Display All Categories Everywhere
Are you using Icy Phoenix or FAP in phpBB?
If you are using Icy Phoenix I can code a block for this... if you are using standard phpBB it is a bit more difficult... and currently I don't have the time to implement it.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#2 Sun 20 May, 2007 20:03 |
|
Overburn
Joined: May 2007
Posts: 5
|
 Re: FAP V 1.4.1 - Display All Categories Everywhere
I'm using the standard phpbb.
Can you give me a hint? Maybe i can code it myself. And post it here.
Overburn
|
#3 Sun 20 May, 2007 21:16 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: FAP V 1.4.1 - Display All Categories Everywhere
Do you have a link to check what you did so far?
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#4 Fri 25 May, 2007 03:07 |
|
luckyou03 
Joined: March 2007
Posts: 30
Location:
|
 Re: FAP V 1.4.1 - Display All Categories Everywhere
I also have played with album_hierarchy_functions.php and not really sure how to do this. I was wanting a little menu over to the side on all of my album pages for quick browsing. i am using icy pheonix thanks.
I can handle all of the template modifications if you tell me how to get {ALBUM_BOARD_INDEX} to display album_box on the ablum_index as well as all other album pages. The forum doesn't need anything.
|
#5 Sat 22 Dec, 2007 06:30 |
|
luckyou03 
Joined: March 2007
Posts: 30
Location:
|
 Re: FAP V 1.4.1 - Display All Categories Everywhere
I think it's something to do with this code:
//-----------------------------------------------
// Display the album hierarchy index table
// IF there is anything to display
//-----------------------------------------------
function album_display_index($user_id, $cur_cat_id = ALBUM_ROOT_CATEGORY, $show_header = false, $show_public_footer = false, $force_display = false)
{
global $lang, $board_config, $template, $images, $album_data, $album_config, $phpEx, $userdata;
$keys = array();
// for testing ONLY
if (album_is_debug_enabled() == true)
{
if (strcmp($cur_cat_id,'Root') == 0)
{
die('WRONG ROOT VALUE');
}
}
$is_personal_gallery = ($user_id != ALBUM_PUBLIC_GALLERY)? true : false;
// if we are showing a personal gallery AND we are at the root of personal gallery
// then ignore the root folder of the personal gallery, since it's 'hidden'
if ($is_personal_gallery && $cur_cat_id == ALBUM_ROOT_CATEGORY)
{
$cur_cat_id = album_get_personal_root_id($user_id);
}
$template->set_filenames(array('album' => 'album_box.tpl'));
$keys = album_get_auth_keys($cur_cat_id, ALBUM_AUTH_VIEW);
$display = album_build_index($user_id, $keys, $cur_cat_id, ALBUM_ROOT_CATEGORY, ALBUM_ROOT_CATEGORY);
if ( ($force_display) && (!$is_personal_gallery) && (count($album_data) == 0) )
{
$template->assign_block_vars('catmain', array());
$template->assign_block_vars('catmain.catrow', array(
'CAT_TITLE' => $lang['No_Public_Galleries'],
'CAT_IMG' => $images['forum_locked']
)
);
$display = true;
}
// lets do some debugging..
if (album_is_debug_enabled() == true)
{
album_debug('$user_id = %d<br />$cur_cat_id = %d<br />$display = %d<br />album data = %s<br />authentication keys = %s',
$user_id, $cur_cat_id, intval($display), $album_data, $keys);
}
if ($display || album_is_debug_enabled() == true)
{
if ($show_header)
{
// create header and send it to template
$template->assign_block_vars('catheader', array(
'L_CATEGORY' => $lang['Category'],
'L_PUBLIC_CATS' => (!$is_personal_gallery) ? $lang['Public_Categories'] : sprintf($lang['Personal_Gallery_Of_User'], album_get_user_name($user_id)),
'U_YOUR_PERSONAL_GALLERY' => append_sid(album_append_uid('album.' . $phpEx . '?user_id=' . $userdata['user_id'])),
//'U_YOUR_PERSONAL_GALLERY' => append_sid(album_append_uid('album_cat.' . $phpEx . '?cat_id=' . album_get_personal_root_id($userdata['user_id']) . 'user_id=' . $userdata['user_id'])),
'L_YOUR_PERSONAL_GALLERY' => $lang['Your_Personal_Gallery'],
'U_USERS_PERSONAL_GALLERIES' => append_sid(album_append_uid('album_personal_index.' . $phpEx)),
'L_USERS_PERSONAL_GALLERIES' => $lang['Users_Personal_Galleries']
)
);
$cols_span = album_generate_index_columns($username);
// but we need to specific ly specify if we want to show the public gallery header
if ($show_public_footer == true)
{
$template->assign_block_vars('catfooter.cat_public_footer', array(
'U_YOUR_PERSONAL_GALLERY' => append_sid(album_append_uid('album.' . $phpEx . '?user_id=' . $userdata['user_id'])),
//'U_YOUR_PERSONAL_GALLERY' => append_sid(album_append_uid('album_cat.' . $phpEx . '?cat_id=' . album_get_personal_root_id($userdata['user_id']) . 'user_id=' . $userdata['user_id'])),
'L_YOUR_PERSONAL_GALLERY' => $lang['Your_Personal_Gallery'],
'U_USERS_PERSONAL_GALLERIES' => append_sid(album_append_uid('album_personal_index.' . $phpEx)),
'L_USERS_PERSONAL_GALLERIES' => $lang['Users_Personal_Galleries'],
'FOOTER_COL_SPAN' => $cols_span
)
);
if ($album_config['show_otf_link'] == 1)
{
$template->assign_block_vars('catfooter.cat_public_footer.show_otf_link', array());
}
if ($album_config['show_all_pics_link'] == 1)
{
$template->assign_block_vars('catfooter.cat_public_footer.show_all_pics_link', array());
}
if ($album_config['show_personal_galleries_link'] == 1)
{
$template->assign_block_vars('catfooter.cat_public_footer.show_personal_galleries_link', array());
}
}
}
$template->assign_var_from_handle('ALBUM_BOARD_INDEX', 'album');
}
return $display;
}
Edited by buldo, Thu 03 Jan, 2008 16:48: Added spoiler |
#6 Wed 02 Jan, 2008 01:55 |
|
luckyou03 
Joined: March 2007
Posts: 30
Location:
|
 Re: FAP V 1.4.1 - Display All Categories Everywhere
I'll paypal to anyone that gets this working.
|
#7 Tue 08 Jan, 2008 00:47 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|