phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Forumbased rules


 
Search this topic... | Search MOD Requests... | Search Box
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Author Message
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Mon Jan 18, 2010 12:16 pm 
Post subject: Forumbased rules

Hi, I would like to show different rules for my different kategories/forums.
Is there a mod out there doing this?

/Holger
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 656
Location: North West UK


flag
PostPosted: Mon Jan 18, 2010 3:16 pm 
Post subject: Re: Forumbased rules

Add a rules page.

Jim



rules_page_1_0_1.zip
 Description:

Download
 Filename:  rules_page_1_0_1.zip
 Filesize:  39.94 KB
 Downloaded:  1464 Time(s)

Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Tue Jan 19, 2010 4:09 am 
Post subject: Re: Forumbased rules

No, I mean, like in phpBB3 there are forumbased rules, shown above the topics-list.
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Wed Jan 20, 2010 9:36 am 
Post subject: Re: Forumbased rules

Hm, basically it should be something like text that can be inputted in the forum-managament (different for every forum) and then be shown with a variable in viewforum (and maybe when creating a new topic).

Like in phpBB3:



phpbb3_forum_rules.jpg
 Description:
 Filesize:  47.68 KB
 Viewed:  1543 Time(s)

phpbb3_forum_rules.jpg


Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Wed Jan 20, 2010 12:27 pm 
Post subject: Re: Forumbased rules

Hello Holger,

I think Secondary Forum Descriptions MOD will suit your needs.

YouŽll have to tweak the styling a bit but that shouldn't be a problem. If I'm not mistaken you can use html in the description textarea box in your acp.

_________________
phpBB2 will never die, I hope!
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Wed Jan 20, 2010 2:54 pm 
Post subject: Re: Forumbased rules

Yesssss ... thank you! I will try that one!
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Fri Jan 22, 2010 9:09 am 
Post subject: Re: Forumbased rules

My board is so heavy modded that I cannot find the places to modify. icon_sad.gif

I will maybe search for another solution.
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Fri Jan 22, 2010 9:30 am 
Post subject: Re: Forumbased rules

Where are the problem pieces, maybe I can help you find the right places?

This MOD is exactly what you are looking for so I feel it would be a pity to not continue trying.

_________________
phpBB2 will never die, I hope!
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Fri Jan 22, 2010 9:34 am 
Post subject: Re: Forumbased rules

Thank you very much for trying to help me!

Here we go:
Code:
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------------
#
            $forumdesc = $row['forum_desc'];
#
#-----[ AFTER, ADD ]----------------------------------------
#
            $forumdesc_long = $row['forum_desc_long'];


My admin_forums.php with SIMILAR code (commented out):
Code:
        // BEGIN MOD Alternative Description Language
   if( $HTTP_GET_VARS['dellang'] != '')
        {
          if( $HTTP_GET_VARS['dellang'] != 'english' )
          {
            $sql = "DELETE FROM ". DESC_LANGUAGE_TABLE ."
              WHERE id = ". $HTTP_GET_VARS[POST_FORUM_URL] ."
              AND language = '". $HTTP_GET_VARS['dellang'] ."'";
            if( !$result = $db->sql_query($sql) )
       {
         message_die(GENERAL_ERROR, "Couldn't delete forum information!", "", __LINE__, __FILE__, $sql);
       }
            $message = $lang['Forums_updated'] . "<br /><br />" . sprintf($lang['Click_return_forumadmin'], "<a href=\"" . append_sid("admin_forums.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
          }
          else
          {
            $message = $lang['Cannot_delete_english'] . "<br /><br />" . sprintf($lang['Click_return_forumadmin'], "<a href=\"" . append_sid("admin_forums.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
          }
          message_die(GENERAL_ERROR, $message);
        }
   // END MOD Alternative Description Language

            $forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]);

            $row = get_info('forum', $forum_id);

            $cat_id = $row['cat_id'];
            // Begin Simple Subforums MOD
            $parent_id = $row['forum_parent'];
            // End Simple Subforums MOD
            // $forumname = $row['forum_name'];
            // $forumdesc = $row['forum_desc'];
            $forumstatus = $row['forum_status'];
            $cst_yes = ($row['cst'] == TRUE) ? 'checked="checked"' : '';
            $cst_no = ($row['cst'] == FALSE ) ? 'checked="checked"' : '';
            $forum_enable_archive = $row['forum_enable_archive'];
            $forum_default_archive = $row['forum_default_archive'];
        // BEGIN MOD Alternative Description Language
        $sql_lang = "SELECT * FROM ". DESC_LANGUAGE_TABLE ." WHERE id = $forum_id";
        if( !$result = $db->sql_query($sql_lang) )
   {
     message_die(GENERAL_ERROR, "Couldn't select forum informations", "", __LINE__, __FILE__, $sql);
   }
        $forumdata = array();
        $i = 0;
        while( $row2 = $db->sql_fetchrow($result) )
        {
          $forumdata[$i]['forumname'] = $row2['title'];
          $forumdata[$i]['forumdesc'] = $row2['description'];
          $forumdata[$i]['desc_language'] = $row2['language'];
          $template->assign_block_vars('desc_loop',array(
            'FORUM_NAME' => $forumdata[$i]['forumname'],
            'FORUM_DESC' => $forumdata[$i]['forumdesc'],
            'DESC_LANGUAGE' => $forumdata[$i]['desc_language'],
            'DEL_DESC_LANG' => append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=$forum_id&dellang=". $forumdata[$i]['desc_language'])
          ));
          $i++;
        }
        // END MOD Alternative Description Language
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Fri Jan 22, 2010 10:08 am 
Post subject: Re: Forumbased rules

Maybe you can do this
Code:
      $forumdata[$i]['forumdesc_long'] = $row2['forum_desc_long'];

inserted right after
Code:
      $forumdata[$i]['forumdesc'] = $row2['description'];


I'm not at all sure of course, but that is what I would try as a first possibility.

See if it's any good.

And if it doesnŽt work you would have to look at the code of the MOD that goes with
Code:
  // BEGIN MOD Alternative Description Language


I guess. icon_wink.gif

_________________
phpBB2 will never die, I hope!
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Fri Jan 22, 2010 12:23 pm 
Post subject: Re: Forumbased rules

I will have to try ... I guess icon_wink.gif

Thank you!
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 4 Hours
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.1006 seconds using 18 queries. (SQL 0.0191 Parse 0.0132 Other 0.0684)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo