Re: Sub Forum Mod 1.0
@binjured,
Thanks for the effort.
Neeed to follow i++ with a ;
Code should be corrected to
i++;
Now I'm going to try it out ;^)
Cheers,
Love is the Function
No Form is the Tool
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Sub Forum Mod 1.0
@binjured,
Thanks for the effort.
Neeed to follow i++ with a ;
Code should be corrected to
i++;
Now I'm going to try it out ;^)
Cheers,
Hi,
it still doesnot work.
I go to the
adminstration area
Forums
will edit a forum
and get
this message:
Bad request. The link you followed is incorrect or outdated.
What could I do to run the subforum mod.
I'm using 1.2.14
and subforum 1.0.4
I had checked all settins now twice.
All other forums functions are working,
only the edit function
there should be something wrong in the admin_forums.mod but I'm block to see it.
Could somebody give advice ?
I have an other fault:
If I will open a forum following message oped up:
An error was encountered
Error: Unable to fetch sub forum info.
in Viewforum.php line 83
$subforum_result = $db->query('SELECT forum_desc, forum_name, id, last_post, last_post_id, last_poster, moderators, num_posts, num_topics, redirect_url FROM '.$db->prefix.'forums WHERE (parent_forum_id='.$id.' ORDER BY disp_position, id', true) or error('Unable to fetch sub forum info',__FILE__,__LINE__,$db->error());
is responsible for his
Is there a working link to this mod in action somewhere?
Also, has anyone gotten it to work, specifically with 1.2.14?
I've seen working subforums on several PunBB forums, although I have forgotten which and I am unsure whether they were using pabb's mod or nico_somb's improved derivative of it.
Hi Notch,
here you can see the subforums mod working
http://galopp-sport.eu/forumgalopp/upload/forum.php in combination with collapse [klick here] of categories like "Throughbred Racing" you find the topics "race tracks" and below that are the subforums for different countries.
Have a look at jump to at the foot und you will see the levels at which category you will find subforums
Is there a working link to this mod in action somewhere?
Also, has anyone gotten it to work, specifically with 1.2.14?
Ye. A working version for 1.2.14 without the need to apply 392847923874 rows of random code written in this forum.
It would be rely nice....
History:
Fixed by Timpa
in version 1.0.5
- Correctly sorting subforums
- Now showing last post as it should
Fixed by NeoTall (Rus):
in version 1.0.4
- Fixed items in combobox "Select where to search"
in version 1.0.3
- Fixed search in SubForum when using "Non-MultiByted" language
in version 1.0.2
- Correctly displaying Last Post, Last Poster and Last Posted Time
- Correctly displaying Total Topics and Total Posts
in version 1.0.1
- Correctly creating Last Post link
- Correctly displaying word "Topics" on SubForum header
I suggest a sorting style like this:
Parent forum 1 [disp_position=100]
Child forum 1 [disp_position=101]
Child forum 2 [disp_position=102]
Child forum 3 [disp_position=103]
Child forum 4 [disp_position=104]
Parent forum 2 [disp_position=200]
Child forum 1 [disp_position=201]
Child forum 2 [disp_position=202]
Child forum 3 [disp_position=203]
Child forum 4 [disp_position=204]
Makes a easy overview...
History:
Fixed by naitkris
in version 1.0.6
- Fixed items in the quickjump so sub forums are indented (like fix in 1.0.4 by NeoTall for search)
Fixed by Timpa
in version 1.0.5
- Correctly sorting subforums
- Now showing last post as it should
Fixed by NeoTall (Rus):
in version 1.0.4
- Fixed items in combobox "Select where to search"
in version 1.0.3
- Fixed search in SubForum when using "Non-MultiByted" language
in version 1.0.2
- Correctly displaying Last Post, Last Poster and Last Posted Time
- Correctly displaying Total Topics and Total Posts
in version 1.0.1
- Correctly creating Last Post link
- Correctly displaying word "Topics" on SubForum header
Sub Forum Mod is copyright of pabb.
You will need to re-generate your quickjump cache after applying this mod for the quickjump to indent. The Clear Cache administration plugin can do this for you easily and is available from the PunBB Downloads page.
Sub Forum Mod 1.0.6 w/ Index View
1.0.6 w/ listing of sub forums on Forum Index, like at le forum du SOMB.
All credit to nico_somb for this feature as it is just taken from his version and modified a tiny bit to work with this one. Sub Forum Mod is copyright of pabb.
To make this change manually after you have applied the 1.0.6 (posted earlier without this), do the following:
#
#---------[ 1. OPEN ]---------------------------------------------------------
#
index.php
#
#---------[ 2. FIND (line: 47) ]---------------------------------------------
#
$forums_info = $db->query('SELECT num_topics, num_posts, parent_forum_id, last_post_id, last_poster, last_post FROM '.$db->prefix.'forums WHERE id='.$i) or error('Unable to fetch sub forum info',__FILE__,__LINE__,$db->error());
#
#---------[ 3. REPLACE WITH ]---------------------------------------------
#
$forums_info = $db->query('SELECT num_topics, num_posts, parent_forum_id, last_post_id, last_poster, last_post, id, forum_name FROM '.$db->prefix.'forums WHERE id='.$i) or error('Unable to fetch sub forum info',__FILE__,__LINE__,$db->error());
#
#---------[ 4. FIND (line: 51) ]---------------------------------------------
#
$sfdb[$i][0] = $current['parent_forum_id'];
$sfdb[$i][1] = $current['num_topics'];
$sfdb[$i][2] = $current['num_posts'];
$sfdb[$i][3] = $current['last_post_id'];
$sfdb[$i][4] = $current['last_poster'];
$sfdb[$i][5] = $current['last_post'];
#
#---------[ 5. AFTER, ADD ]-------------------------------------------------
#
$sfdb[$i][6] = $current['id'];
$sfdb[$i][7] = $current['forum_name'];
#
#---------[ 6. FIND (line: 176) ]---------------------------------------------
#
<tr<?php if ($item_status != '') echo ' class="'.$item_status.'"'; ?>>
<td class="tcl">
<div class="intd">
<div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo $icon_text ?></div></div>
<div class="tclcon">
<?php echo $forum_field."\n".$moderators ?>
#
#---------[ 7. AFTER, ADD ]-------------------------------------------------
#
<?php
$sub_forums_list = array();
if(!empty($sfdb)) {
foreach ($sfdb as $sub_forums) {
if($cur_forum['fid'] == $sub_forums[0]) {
$sub_forums_list[] = '<a href="viewforum.php?id='.$sub_forums[6].'">'.pun_htmlspecialchars($sub_forums[7]).'</a>';
}
}
if(!empty($sub_forums_list)) {
$sub_forums_list = "\t\t\t\t\t\t\t\t".'<em>Sub Forums:</em> '.implode(', ', $sub_forums_list)."\n";
if ($cur_forum['forum_desc'] != NULL) {
echo "<br />";
}
echo "$sub_forums_list";
}
}
?>
hi!
the list of subforums is allready available in the subforum ZIP on punbb.fr
Nico
yeah, i am aware of that but that is a different version to this Sub Forum Mod i believe? it is also in French and not updated since May last year it appears.
Huge thanks to all the people who have kept/brought this mod up to date.
It's very useful for an old site of mine that has a huge no. of forums.
--Alan
I searched for some time but can't find the answer to something everybody seems to know:
In the readme.txt it says at the end: "You should also re-generate your quickjump cache!"
How do I do that? Seems that without this regeneration the changes are not visible.
wobo
How do I do that? Seems that without this regeneration the changes are not visible.
You can delete the files from your cache folder manually, or grab the "Clear Cache" plugin from the downloads page.
Ah, that simple? ;D
ok, done that, works.
wobo
wobo wrote:How do I do that? Seems that without this regeneration the changes are not visible.
You can delete the files from your cache folder manually, or grab the "Clear Cache" plugin from the downloads page.
Yes, BUT DO NOT DELETE the undex.html or the .htaccess files! ;^)
I didn't
I can't seem to find a file called cache.php as per the readme.txt file. Any ideas?
Thanks
Bingiman
the readme file says "include\cache.php" did you check in the include folder? it should be there, at least the official punbb-1.2.14.zip release has it in there.
wow! It is actually in there and I looked over and over. Thank you!
Bingiman
no problem, i have been in the same situation so many times before, it can get frustrating but a good sign that we're still human
Something is not quite right with this mod. I created (2) sub-forums and made myself moderator of 1 but yet when I check it, I am listed as moderator of both. However, if I go my profile under "Administration" the box is not checked. Has anyone noticed this before or is there a way to resolve this issue?
Update: What I have noticed in my case is this: I have 2 sub-forums. If I check off #1 as moderator it then makes me moderator of #1 and #2. If I check off just sub-forum #2, then it does not check off sub-forum #1 so there definitely is a bug here. Hope I explained myself properly.
Thanks
Bingiman
Can some please help me out with this problem?
Thanks
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Sub Forum Mod 1.0
Powered by PunBB, supported by Informer Technologies, Inc.