Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post FAP CUSTOMIZATION - [almost Sorted..] Listing Photo Gallery In Main Forum Index 
 
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  

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  


My forum : http://accessability.co.in/community/ & Im on phpbb 2.22, FAP 1.2.1 & Linux hosting.


Many Thanks in advance,

Vic
 



 
Last edited by vic2007 on Wed 02 May, 2007 10:25; edited 1 time in total 
vic2007Send private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Listing Photo Gallery In Main Forum Index Page 
 
vic2007 wrote: [View Post]


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.


See here: http://www.icyphoenix.com/viewtopic.php?t=1217&highlight=
 



 
felix968Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Listing Photo Gallery In Main Forum Index Page 
 
vic2007 wrote: [View Post]
thanks felix - that worked like a charm.

any ideas about how i sort out the first issue ?

Ta,

Vic


No....I'm sorry.
 



 
felix968Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [almost Sorted..] Listing Photo Gallery In Main Forum In 
 
felix968 wrote: [View Post]
vic2007 wrote: [View Post]


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.


See here: http://www.icyphoenix.com/viewtopic.php?t=1217&highlight=


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  

any suggestions ?
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [almost Sorted..] Listing Photo Gallery In Main Forum In 
 
vic2007 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  

any suggestions ?

Which counter are you referring to?

The counter on your forum index?
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
lefty74Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [almost Sorted..] Listing Photo Gallery In Main Forum In 
 
ok,

here goes... quick and dirty...

OPEN index.php

FIND
Code: [Download] [Hide] [Select]
            $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"))
            );

REPLACE WITH
Code: [Download] [Hide] [Select]
            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"))
            );
            }



FIND
Code: [Download] [Hide] [Select]
$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"))
                            );

REPLACE WITH
Code: [Download] [Hide] [Select]
            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"))
                            );
            }

OPEN templates/subSilver/index_body.tpl
FIND
Code: [Download] [Hide] [Select]
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}&nbsp;</span></td>
        <!-- END last_pic -->
    </tr>
    <!-- END catrow -->
<!-- END catmain -->

AFTER ADD
Code: [Download] [Hide] [Select]
  <!-- 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">&nbsp;</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....
 



 
lefty74Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [almost Sorted..] Listing Photo Gallery In Main Forum In 
 
thanks mate.

i shall give this a go tonight & report back.

cheers,

vic
 



 
vic2007Send private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron