Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
mrdude
New Member
New Member



Joined: Sep 30, 2003
Posts: 9

PostPosted: Wed Oct 29, 2003 5:32 am Reply with quote

Hi guys!

i have a forum with many categories/forums så its just too long, i wan it to show only the categories instead of categories and forums in them. One way of doing that is by linking to forum like this:

phpBB/index.php?c=333

instead of:

phpBB/index.php

the problem is: form wich file does phpNuke link to the phpBB forum module?

it seems not to be the file in block:
blocks/blocks-Forums.php

if not that file, wich one is it then?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Nov 05, 2003 7:08 am Reply with quote

This should work for you. Edit blocks/block-Modules.php. Find this section
/* Now we make the Modules block with the correspondent links */
Then find this code
Code:
   if ($m_title != $main_module) {

       if ((is_admin($admin) AND $view == 2) OR $view != 2) {
      $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
       }
   }
Modify it to read
Code:
   if ($m_title != $main_module) {

       if ((is_admin($admin) AND $view == 2) OR $view != 2) {
      $cat = '';
      if ($m_title2=='Forums') $cat = '&c=333';
      $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title$cat\">$m_title2</a><br>\n";
       }
   }

Note that $m_title2=='Forums' assumes your title is Forums. If not, change it for your verbiage. There are also 2 other sections that you might want to change in a similar fashion. They are the invisible and admin links. Then, in your theme you may have a header link to Forums. You will need to make a similar change there too.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©