Hi again ,
I apologise if my question has previously been answered on the forum.
here's my problem:
I want the photo albums to list in the Forum Index page, merged in with the forum listings, so that the Photo Album appear as a Forum on the listing and the Album Categories appear as Forum Categories & the sub-categories appear as Topics.
The reasoning for this is that most of the visitors & members on my forum will be disabled people & I want them to find everything in one listing. Moreover, the existing members themselves are finding it a little difficult to apprecialte that the Album Index and Forum Index are different things - so in effect I want to merge them visibly to enhance usability.
I do not have any undertanding of php (but can follow instructions in mods fairly easily unless they involve changes to sql entries). I have managed to include the Album categories in the forum categories through the ACP Forum Management option by entering album categories as links - so once clicked they lead straight to the album category page. (Have a look at my forum index page at http://accessability.co.in/community/ - the forum categories 'Disability General' and ''Disability Access' in the Forum 'Photo Gallery' are actually Album Categories)
1. But the problem in having done things this way is that the columns 'Topics' & 'Posts' show '0' entries against the Album categories listed on the Forum Index listing. Now this is a problem, as because people dont think there's anything in these categories, & therefore dont visit or post in these categories :cry:
2. For people who have been posting comments in the Pics in Public Galleries, these postings do not add to the total post counts in their profiles.
I will be extremely grateful to your inputs to assist me in sorting out these two problems that have made me pull most of my remaining hair :kid:
My forum : http://accessability.co.in/community/ & Im on phpbb 2.22, FAP 1.2.1 & Linux hosting.
Many Thanks in advance,
Vic
FAP CUSTOMIZATION - [almost Sorted..] Listing Photo Gallery In Main Forum Index
Subject: FAP CUSTOMIZATION - [almost Sorted..] Listing Photo Gallery In Main Forum Index
Last edited by vic2007 on Wed 02 May, 2007 10:25; edited 1 time in total
Last edited by vic2007 on Wed 02 May, 2007 10:25; edited 1 time in total
Subject: Re: Listing Photo Gallery In Main Forum Index Page
thanks felix - that worked like a charm.
any ideas about how i sort out the first issue ?
Ta,
Vic
any ideas about how i sort out the first issue ?
Ta,
Vic
Subject: Re: Listing Photo Gallery In Main Forum Index Page
Any ideas anyone ?
I will be grateful for any suggestions - It will mean a lot to me.
Thanks,
Vic
I will be grateful for any suggestions - It will mean a lot to me.
Thanks,
Vic
Subject: Almost There....
Hello all,
I have managed to list the album contents in the forum index by making additions to index.php & index_body.tpl - mostly by pasting bits from album.php & album_box.tpl - but with my limited skills, I am only able to list the album categories either at the start or the end of the forum listings.
I will appreciate if you can guide me how to place the album categories in between the forum categories - ideally I will like to list the 'Public Photo Gallery' after the first two forum categories.
Pease have a look at http://accessability.co.in/community to better understand the problem as I am not sure if I managed to explain it well.
Thanks in advance.
Vic
PS - If anyone else wants to list the album categories in a similar way to what I have done, please email me & I shall be pleased to share my index.php & index.tpl files with you.
I have managed to list the album contents in the forum index by making additions to index.php & index_body.tpl - mostly by pasting bits from album.php & album_box.tpl - but with my limited skills, I am only able to list the album categories either at the start or the end of the forum listings.
I will appreciate if you can guide me how to place the album categories in between the forum categories - ideally I will like to list the 'Public Photo Gallery' after the first two forum categories.
Pease have a look at http://accessability.co.in/community to better understand the problem as I am not sure if I managed to explain it well.
Thanks in advance.
Vic
PS - If anyone else wants to list the album categories in a similar way to what I have done, please email me & I shall be pleased to share my index.php & index.tpl files with you.
Subject: Re: [almost Sorted..] Listing Photo Gallery In Main Forum In
Now the post count of the person posting the comment on pics does go up but the overall post count of the forum does not :roll:
any suggestions ?
felix968 wrote: [View Post]
Now the post count of the person posting the comment on pics does go up but the overall post count of the forum does not :roll:
any suggestions ?
Subject: Re: [almost Sorted..] Listing Photo Gallery In Main Forum In
Hello Gordon,
First things first - thanks a million for FAP - i absolutely adore it & so do my forum members.
& yup you are right - it's the counter in forum index (the one under 'who is online' box)
cheers,
vic
First things first - thanks a million for FAP - i absolutely adore it & so do my forum members.
& yup you are right - it's the counter in forum index (the one under 'who is online' box)
cheers,
vic
Subject: Re: [almost Sorted..] Listing Photo Gallery In Main Forum In
Vic, I put the public gallery categories on the index page of my photography club... if you still want to have the the gallery after the 2nd forum let me know. havent got time to put it together as a mod right now, sorry
Subject: Re: [almost Sorted..] Listing Photo Gallery In Main Forum In
Thanks Lefty,
yup - im still trying to sort this out.
Will be great if you are able to help me out.
Ta,
Vic
yup - im still trying to sort this out.
Will be great if you are able to help me out.
Ta,
Vic
Subject: Re: [almost Sorted..] Listing Photo Gallery In Main Forum In
ok,
here goes... quick and dirty...
OPEN index.php
FIND
REPLACE WITH
FIND
REPLACE WITH
OPEN templates/subSilver/index_body.tpl
FIND
AFTER ADD
Sorry, this is as good as i can do it ATM.
if you have any problems, let me know....
here goes... quick and dirty...
OPEN index.php
FIND
$template->assign_block_vars('catrow', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
REPLACE WITH
if ( $i < 2)
{
$template->assign_block_vars('catrow', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
}
else
{
$template->assign_block_vars('catrow2', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
}
{
$template->assign_block_vars('catrow', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
}
else
{
$template->assign_block_vars('catrow2', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
}
FIND
$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_FOLDER_IMG' => $folder_image,
'FORUM_NAME' => $forum_data[$j]['forum_name'],
'FORUM_DESC' => $forum_data[$j]['forum_desc'],
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
'LAST_POST' => $last_post,
'MODERATORS' => $moderator_list,
'L_MODERATOR' => $l_moderators,
'L_FORUM_FOLDER_ALT' => $folder_alt,
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
);
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_FOLDER_IMG' => $folder_image,
'FORUM_NAME' => $forum_data[$j]['forum_name'],
'FORUM_DESC' => $forum_data[$j]['forum_desc'],
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
'LAST_POST' => $last_post,
'MODERATORS' => $moderator_list,
'L_MODERATOR' => $l_moderators,
'L_FORUM_FOLDER_ALT' => $folder_alt,
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
);
REPLACE WITH
if ( $i < 2)
{
$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_FOLDER_IMG' => $folder_image,
'FORUM_NAME' => $forum_data[$j]['forum_name'],
'FORUM_DESC' => $forum_data[$j]['forum_desc'],
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
'LAST_POST' => $last_post,
'MODERATORS' => $moderator_list,
'L_MODERATOR' => $l_moderators,
'L_FORUM_FOLDER_ALT' => $folder_alt,
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
);
}
else
{
$template->assign_block_vars('catrow2.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_FOLDER_IMG' => $folder_image,
'FORUM_NAME' => $forum_data[$j]['forum_name'],
'FORUM_DESC' => $forum_data[$j]['forum_desc'],
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
'LAST_POST' => $last_post,
'MODERATORS' => $moderator_list,
'L_MODERATOR' => $l_moderators,
'L_FORUM_FOLDER_ALT' => $folder_alt,
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
);
}
{
$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_FOLDER_IMG' => $folder_image,
'FORUM_NAME' => $forum_data[$j]['forum_name'],
'FORUM_DESC' => $forum_data[$j]['forum_desc'],
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
'LAST_POST' => $last_post,
'MODERATORS' => $moderator_list,
'L_MODERATOR' => $l_moderators,
'L_FORUM_FOLDER_ALT' => $folder_alt,
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
);
}
else
{
$template->assign_block_vars('catrow2.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_FOLDER_IMG' => $folder_image,
'FORUM_NAME' => $forum_data[$j]['forum_name'],
'FORUM_DESC' => $forum_data[$j]['forum_desc'],
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
'LAST_POST' => $last_post,
'MODERATORS' => $moderator_list,
'L_MODERATOR' => $l_moderators,
'L_FORUM_FOLDER_ALT' => $folder_alt,
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
);
}
OPEN templates/subSilver/index_body.tpl
FIND
your album code, think ends with
<!-- BEGIN last_pic -->
<td class="{COL6}" align="center" nowrap="nowrap" onMouseOver="this.style.backgroundColor='{LAST_PIC_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{LAST_PIC_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.last_pic.LAST_PIC_INFO} </span></td>
<!-- END last_pic -->
</tr>
<!-- END catrow -->
<!-- END catmain -->
<!-- BEGIN last_pic -->
<td class="{COL6}" align="center" nowrap="nowrap" onMouseOver="this.style.backgroundColor='{LAST_PIC_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{LAST_PIC_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.last_pic.LAST_PIC_INFO} </span></td>
<!-- END last_pic -->
</tr>
<!-- END catrow -->
<!-- END catmain -->
AFTER ADD
<!-- BEGIN catrow2 -->
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow2.U_VIEWCAT}" class="cattitle">{catrow2.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow2.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow2.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow2.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow2.forumrow.U_VIEWFORUM}" class="forumlink">{catrow2.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow2.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow2.forumrow.L_MODERATOR} {catrow2.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow2.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow2.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow2.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow2 -->
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow2.U_VIEWCAT}" class="cattitle">{catrow2.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow2.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow2.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow2.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow2.forumrow.U_VIEWFORUM}" class="forumlink">{catrow2.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow2.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow2.forumrow.L_MODERATOR} {catrow2.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow2.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow2.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow2.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow2 -->
Sorry, this is as good as i can do it ATM.
if you have any problems, let me know....
Subject: Re: [almost Sorted..] Listing Photo Gallery In Main Forum In
thanks mate.
i shall give this a go tonight & report back.
cheers,
vic
i shall give this a go tonight & report back.
cheers,
vic
Page 1 of 1
You cannot post new topicsYou 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
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.2312s (PHP: 10% SQL: 90%)
SQL queries: 13 - Debug Off - GZIP Enabled