PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
mrdude
New Member
New Member


Joined: Sep 30, 2003
Posts: 9

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum