ewelin wrote: Dicky,
Any update on getting this to work with the keep unread flags mod as mentioned perviously?
No, there is no update yet.
ewelin wrote: Dicky,
Any update on getting this to work with the keep unread flags mod as mentioned perviously?
I don't have an answer to your question. It is going to take me some time to correct the issue.e-mo wrote: Hi Dicky..
could you please give me some feedback regarding my issue? I already posted this issue on your forum which was unfortunately also not replied :S
would appreciate your feedback a lot,
e-mo
shaykana wrote: I'm assuming that I need to add some code in template/viewforum_body.php in order to get the Subforum to view properly in Glass2. I know Simple Subforums worked, but it had a bunch of code that was removed for Subforums Plus. Is there an IF statement or something that could make it work?
I know you're busy with a lot of other things too Dicky. No rush on this, I'm in no hurry.
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum'];
$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts'];
}
Code: Select all
for ( $j = intval($_sf_cat_first[$cat_id]); $j < $total_forums; $j++)
{
if ( $forum_data[$j]['cat_id'] != $cat_id )
{
break;
}
$forum_id = $forum_data[$j]['forum_id'];
// jump over a non-authorised branch
if ( !$is_auth_ary[$forum_id]['auth_view'] )
{
$j = $_sf_last_child_idx[$forum_id];
continue;
}
// attached to the main object (root, or in viewforum the selected forum)
if ( (!defined('IN_VIEWFORUM') && !intval($forum_data[$j]['forum_parent'])) || (defined('IN_VIEWFORUM') && (intval($forum_data[$j]['forum_parent']) == $_sf_root_forum_id)) )
{
$_sf_prev_forum_id = $forum_id;
$_sf_is_sub = false;
$_sf_first_sub = true;
}
// attached to a viewable forum, so displayed as sub
else if ( intval($forum_data[$j]['forum_parent']) == $_sf_prev_forum_id )
{
$_sf_is_sub = true;
}
// level not displayed: jump over
else
{
if ( !defined('IN_VIEWFORUM') || ($forum_id != $_sf_root_forum_id) )
{
$j = $_sf_last_child_idx[$forum_id];
}
continue;
}
// prepare the display
if ( !$_sf_is_sub )
{
$_sf_rowcolor = !$_sf_rowcolor;
}
$row_color = $_sf_rowcolor ? $theme['td_color1'] : $theme['td_color2'];
$row_class = $_sf_rowcolor ? $theme['td_class1'] : $theme['td_class2'];
// recompute the front icons
$_sf_folder = _sf_get_folder($_sf_is_sub ? 'mini' : 'standard', ($_sf_last_sub_id[$forum_id] == $forum_id ? 'std' : 'has_sub') . ($forum_data[$j]['forum_status'] == FORUM_LOCKED ? '_locked' : '') . ($forum_data[$j]['unread'] ? '_new' : '') . (intval($forum_data[$j]['forum_posts']) ? '' : '_empty'));
$folder_image = $images[ $_sf_folder['img'] ];
$folder_alt = $lang[ $_sf_folder['txt'] ];
if ( $_sf_is_sub && $_sf_first_sub )
{
$template->assign_block_vars('catrow.forumrow.sub', array());
}
{{
Code: Select all
#-----[ REPLACE WITH ]------------------------------------------
#
$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts'];
if($forum_data[$j]['forum_icon_new_post']) {
$folder_image = ( $unread_topics ) ? '<img src="' . $forum_data[$j]['forum_icon_new_post'] . '" alt="'.$forum_data[$j]['forum_name'].' - '.$folder_alt.'" title="'.$forum_data[$j]['forum_name'].' - '.$folder_alt.'">' : '<img src="' . $forum_data[$j]['forum_icon_no_post'] . '" alt="'.$forum_data[$j]['forum_name'].' - '.$folder_alt.'" title="'.$forum_data[$j]['forum_name'].' - '.$folder_alt.'">';
} else{
$folder_image = ( $unread_topics ) ? '<img src="'.$images['forum_new'].'" alt="'.$folder_alt.'" title="'.$folder_alt.'" />' : '<img src="'.$images['forum'].'" alt="'.$folder_alt.'" title="'.$folder_alt.'" />';
};
}
D¡cky wrote: Since you had Simple Subforums, I assume that you are using eXtreme Styles? If that is the case, I will work on the X version of Glass2.
Code: Select all
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod: sf
$images['forums'] = "$current_template_images/{$row['body_background']}/folders_big.gif";
$images['forums_new'] = "$current_template_images/{$row['body_background']}/folders_new_big.gif";
$images['forums_locked'] = "$current_template_images/{$row['body_background']}/folders_locked_big.gif";
//-- mod: sf - end
#
Code: Select all
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search: the full lines are longer
#
<table
<tr>
{L_TOPICS}
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- IF SUBFORUMS -->
<table width="90%" cellspacing="1" cellpadding="3" border="0" class="indextable" align="center">
<tr>
<td colspan="5" class="cellpic3" align="center"><span class="areatitle">Subforums</span></td>
</tr>
<tr>
<td colspan="2" class="navbar" height="25" align="center" nowrap="nowrap"><span class="areatitle"> {L_FORUM} </span></td>
<td width="50" class="navbar" align="center" nowrap="nowrap"><span class="areatitle"> {L_TOPICS} </span></td>
<td width="50" class="navbar" align="center" nowrap="nowrap"><span class="areatitle"> {L_POSTS} </span></td>
<td width="250" class="navbar" align="center" nowrap="nowrap"><span class="areatitle"> {L_LASTPOST} </span></td>
</tr>
<!-- ENDIF -->
{SUBFORUMS}
#
e-mo wrote: hm...
for the future, I think it is necessary for you to have mphpadmin login data, since you sometimes needs to alter the mysql tables for specific mods.
As for subforum plus, I dont think you have to manually alter the table. there is an install_sf folder.
you need to type in your IE root/forum/install_sf/install.php and it should execute the changes. However, you need to login as admin first in order to do that.
Since you have access to FTP so you can replace the files you edited for that mod. But remember to backup your data!
e-mo
shaykana wrote: Here is a list of Mods I have installed on my Forum along with Subforums Plus:
Admin Userlist
Category Descriptions
Easy Registration
Forum Auth by Post Count
Forum Views
Multiple Ranks (with Staff View)
Pagination
Registration Photo-Captcha
Ribbons
eXtreme Styles
All are fully functioning, and only needed tweaking in alternate templates.
TezPatel wrote:shaykana wrote: Here is a list of Mods I have installed on my Forum along with Subforums Plus:
Admin Userlist
Category Descriptions
Easy Registration
Forum Auth by Post Count
Forum Views
Multiple Ranks (with Staff View)
Pagination
Registration Photo-Captcha
Ribbons
eXtreme Styles
All are fully functioning, and only needed tweaking in alternate templates.
think u can help me with adding that stuff to my forums? if so my msn is tez@Pqlbank.com
kraure wrote: Hello Dicky,
I installed Subforums Plus MOD on my board. I'd like to display on the index page and on the viewforum page the last topic title.
So, I tested three differents MODs, but every time I always have the same problem.
I explain :
Forum 1 => post test 1
Sous forum 1 => post test 2
Sous sous forum 1 => post test 3
I posted three messages in this order.
On the index page, we should see "post test 3" but we see "post test 1".
I searched in the topic but nobody seems to have asked for this.
How to do with Subforums Plus to display the last topic title on the right part, with the username and the hour, as weel on the index page as the viewforum page.
Thanks a lot.
You last visited on 04 Apr 2007 05:16 pm
The time now is 04 Apr 2007 06:36 pm
Uber WoW Fansite Forum Forum Index
Subforums: No Posts cafasfa Subforums: No Posts dasfgasgasga