[Beta] Subforums Plus

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
Glaedr
Registered User
Posts: 148
Joined: Tue Jan 02, 2007 11:21 pm

Post by Glaedr »

will no one help me?
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

Glaedr wrote: will no one help me?

Please be patient. The MOD author might not visit this site every day. This is one of the reasons it is not advised to install code from this forum into a "live" board.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
Glaedr
Registered User
Posts: 148
Joined: Tue Jan 02, 2007 11:21 pm

Post by Glaedr »

yeah, i thought i was in the other forum. :?
getalinks
Registered User
Posts: 222
Joined: Wed May 17, 2006 5:16 am
Location: Wisconsin, USA
Contact:

Post by getalinks »

So has anyone figured out how to use this Mod with the Keep Unread Flags Mod? I installed this MOd and it worked great with creating Subs, but now my Main page doesn't show new post icons. If I go into a forum, the topics with new posts light up, though. Anyone? I see a few others really are interested in this answer as well, so I hope there's been a solution found. Thanks! :D
Glaedr
Registered User
Posts: 148
Joined: Tue Jan 02, 2007 11:21 pm

Post by Glaedr »

hmmm.... try re-uploading your new post icons, that might do it.
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Post by D¡cky »

drathbun wrote:
RMcGirr83 wrote:Also I am curious as to why Ptirhiik's name is showing as the mod author in the xml files :?

He started the development, Dicky took it over as Ptirhiik's MODs here on this site already consume quite a bit of his attention. :-) That is my understanding, anyway, Dicky is more than free to speak as to the actual cause...
You are correct.
There was a bug in the MODx version not showing the authors correctly. That has been fixed.

Glaedr wrote: supposed to have sub forums:


but there are no sub-forums :?
Have you created subforums?
Do the subforums show on the subSilver style?
The most likely cause is that you haven't edited index_body.tpl correctly.

getalinks wrote: So has anyone figured out how to use this Mod with the Keep Unread Flags Mod?
Not yet.
Have you hugged someone today?
svennson
Registered User
Posts: 60
Joined: Wed Jun 01, 2005 4:54 pm
Location: Belguim
Contact:

Post by svennson »

If I post in a forum I keep seeing the message

Code: Select all

There are no posts in this forum.
Click on the Post New Topic link on this page to post one.
And im shure there are post in it.

Code: Select all

- level 1
- level 2
    - level 2.1
Only at level 2 are no post viewable.
Organic Angel Alexiel
Registered User
Posts: 262
Joined: Tue Oct 24, 2006 10:30 pm
Location: Sunny Cal, USA
Contact:

Post by Organic Angel Alexiel »

long story short, here is the problem:
Image

I have many mods installed, and this was done with easymod after doing it by hand and getting the same problem.

I appologize for the screenshot and here is a link to my index.php
Last edited by Organic Angel Alexiel on Fri Feb 16, 2007 11:05 pm, edited 1 time in total.
Need help with apache? Visit the Apache Lounge
I would heartily recommend reading through the Knowledge Base. I recently have and it has solved a number of questions I had.
EasyMod is great for a vanilla phpBB. Visit my website and see why I do everything by hand. :P
enderandrew
Registered User
Posts: 71
Joined: Thu Nov 30, 2006 7:55 am
Location: Omaha, NE
Contact:

Post by enderandrew »

Is there a mod(s) other than CH that will allow sub-forums, seperate themes for the subforums, and forum icons?
Nihilism makes me smile.
Organic Angel Alexiel
Registered User
Posts: 262
Joined: Tue Oct 24, 2006 10:30 pm
Location: Sunny Cal, USA
Contact:

Post by Organic Angel Alexiel »

I dug through the code. My problem was caused my Forum Title Link
Code change to fix it anyone else needs if (and if author would add it to contrib dir for others who have this problem)

Code: Select all

#
# open index.php
#

#
# find
#
//-- mod : Forum Title Link ------------------------------------------------------------
//-- add
							if( $forum_data[$j]['link_is'] && !empty($forum_data[$j]['link_url']) )
							{
								$template->assign_block_vars( 'catrow.forumrow.is_link', array() );
							}
							else
							{
								$template->assign_block_vars( 'catrow.forumrow.not_link', array() );
							}
//-- fin mod : Forum Title Link --------------------------------------------------------
#
# replace with
#
//-- mod : Forum Title Link ------------------------------------------------------------
//-- add
							else
							{
								if( $forum_data[$j]['link_is'] && !empty($forum_data[$j]['link_url']) )
								{
									$template->assign_block_vars( 'catrow.forumrow.is_link', array() );
								}
								else
								{
									$template->assign_block_vars( 'catrow.forumrow.not_link', array() );
								}
							}
//-- fin mod : Forum Title Link --------------------------------------------------------
#
# save and close all files
#
Without this change, it shows the post, topics and last topic once for the forum and once for each subforum.
Need help with apache? Visit the Apache Lounge
I would heartily recommend reading through the Knowledge Base. I recently have and it has solved a number of questions I had.
EasyMod is great for a vanilla phpBB. Visit my website and see why I do everything by hand. :P
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Post by D¡cky »

svennson wrote: If I post in a forum I keep seeing the message

Code: Select all

There are no posts in this forum.
Click on the Post New Topic link on this page to post one.

You probably have not edited viewforum.php correctly. Try using the premodified viewforum.php and see if your problem goes away.


enderandrew wrote: Is there a mod(s) other than CH that will allow sub-forums, seperate themes for the subforums, and forum icons?

This does allow for multiple levels of subforums. I have not tested with those two MODs, but you are welcome to try.


@ Organic Angel Alexiel
Thanks for the information.
Have you hugged someone today?
Organic Angel Alexiel
Registered User
Posts: 262
Joined: Tue Oct 24, 2006 10:30 pm
Location: Sunny Cal, USA
Contact:

Post by Organic Angel Alexiel »

This is the first mod that I have had serious trouble with. And I install all of them by hand. One of my mods changes where the session data is inited in view forum. I had to move the subforum plus to above the "// Start auth check" line to get it to show the stuff right.
Need help with apache? Visit the Apache Lounge
I would heartily recommend reading through the Knowledge Base. I recently have and it has solved a number of questions I had.
EasyMod is great for a vanilla phpBB. Visit my website and see why I do everything by hand. :P
Organic Angel Alexiel
Registered User
Posts: 262
Joined: Tue Oct 24, 2006 10:30 pm
Location: Sunny Cal, USA
Contact:

Post by Organic Angel Alexiel »

Sorry to be a bother again, but:
I have username color installed and on a forum that has no posts in at and it has subforums. it doesn't display them in color. The problem is it assumes user_level == USER, but that isn't necessary true. Tested it out and it sends the user value for the color.
for any user name color in index.php, you have to change:

Code: Select all

switch ( $forum_data[$j]['user_level'] )
to:

Code: Select all

switch ( $forum_data[$_sf_root_forum_id]['user_level'] )
to get it to work correctly.
This mod works great on a vanilla install, if you don't want to change much. But I like to change a lot because I am a perfectionist, and I have spent about six hours modifying files after installing this just to get it to work correctly with my other mods and my themes. (subMerged doesn't like to play well with a lot of mods) But definely better in some points than pentapenguins, like I only have to modify index.php to modify forum layout (like forum link as title).

Overall, D¡cky, you have done an awesome job. Just you should probably note for people that they may have mod compatibility issues. And now I can go to bed (2am) because it is working just the way I like it (after heavily modifying yet another mod).

[edit]I hope you get this to a point that it gets validated. It will probably be hard because of noted compatibility, but here's hoping[/edit]
Need help with apache? Visit the Apache Lounge
I would heartily recommend reading through the Knowledge Base. I recently have and it has solved a number of questions I had.
EasyMod is great for a vanilla phpBB. Visit my website and see why I do everything by hand. :P
svennson
Registered User
Posts: 60
Joined: Wed Jun 01, 2005 4:54 pm
Location: Belguim
Contact:

Post by svennson »

*Deleted old post*

I found the problem; it is here :
##############################################################
## MOD Title: Birthdays
## MOD Author: TerraFrost < terrafrost@phpbb.com > (Jim Wigginton) http://www.frostjedi.com/terra/wordpress/
## MOD Description: Adds a Birthday field to the user profile.

#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
while( $row = $db->sql_fetchrow($result) )
{
$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>';
}
$db->sql_freeresult($result);
#
#-----[ AFTER, ADD ]------------------------------------
#

$sql = "SELECT user_id, username, user_birthday, user_level
FROM " . USERS_TABLE . "
WHERE user_birthday >= " . gmdate('md0000',time() + (3600 * $board_config['board_timezone'])) . "
AND user_birthday <= " . gmdate('md9999',time() + (3600 * $board_config['board_timezone']))."
AND user_active = 1
ORDER BY username DESC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query members birthday information', '', __LINE__, __FILE__, $sql);
}

$user_birthdays = array();
while ( $row = $db->sql_fetchrow($result) )
{
$bday_year = $row['user_birthday'] % 10000;
$age = ( $bday_year ) ? ' ('.(gmdate('Y')-$bday_year).')' : '';
$color = '';
if ( $row['user_level'] == ADMIN )
{
$color = ' style="color:#' . $theme['fontcolor3'] . '"';
}
else if ( $row['user_level'] == MOD )
{
$color = ' style="color:#' . $theme['fontcolor2'] . '"';
}
$user_birthdays[] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $color . '>' . $row['username'] . '</a>' . $age;
}
$db->sql_freeresult($result);

$birthdays = (!empty($user_birthdays)) ?
sprintf($lang['Congratulations'],implode(', ',$user_birthdays)) :
$lang['No_birthdays'];

if ( $board_config['bday_lookahead'] != -1 )
{
$start = gmdate('md9999',strtotime('+'.$board_config['bday_lookahead'].' day') + (3600 * $board_config['board_timezone']));
$end = gmdate('md0000',strtotime('+1 day') + (3600 * $board_config['board_timezone']));
$operator = ($start > $end) ? 'AND' : 'OR';
$sql = "SELECT user_id, username, user_birthday, user_level
FROM " . USERS_TABLE . "
WHERE (user_birthday <= $start
$operator user_birthday >= $end)
AND user_birthday <> 0
AND user_active = 1
ORDER BY username DESC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query upcoming birthday information', '', __LINE__, __FILE__, $sql);
}
$upcoming_birthdays = array();
while ( $row = $db->sql_fetchrow($result) )
{
$bday_year = $row['user_birthday'] % 10000;
$age = ( $bday_year ) ? ' ('.(gmdate('Y')-$bday_year).')' : '';
$color = '';
if ( $row['user_level'] == ADMIN )
{
$color = ' style="color:#' . $theme['fontcolor3'] . '"';
}
else if ( $row['user_level'] == MOD )
{
$color = ' style="color:#' . $theme['fontcolor2'] . '"';
}
$upcoming_birthdays[] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $color . '>' . $row['username'] . '</a>' . $age;
}

$upcoming = (!empty($upcoming_birthdays)) ?
sprintf($lang['Upcoming_birthdays'],$board_config['bday_lookahead'],implode(', ',$upcoming_birthdays)) :
sprintf($lang['No_upcoming'],$board_config['bday_lookahead']);
}

if ( !empty($user_birthdays) || !empty($upcoming_birthdays) || $board_config['bday_show'] )
{
$template->assign_block_vars('birthdays',array());
if ( !empty($upcoming_birthdays) || $board_config['bday_show'] )
{
$template->assign_block_vars('birthdays.upcoming',array());
}
}


now I did put it after :

Code: Select all

//
// If you don't use these stats on your index you may want to consider
// removing them
//
//-- mod: sf
if ( !defined('IN_VIEWFORUM') )
{
and it works fine ;)
Last edited by svennson on Sat Feb 17, 2007 1:52 pm, edited 1 time in total.
Liquinn
Registered User
Posts: 296
Joined: Sun Nov 12, 2006 1:14 pm

Post by Liquinn »

Keep up the work, something I can't do. 8)
Post Reply

Return to “[2.0.x] MODs in Development”