[DISC] Improved pseudo sub-forums MOD 1.0.6

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.
niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

Post by niekas »

ultrazero wrote: or would there be no harm in leaving the sql queries the way they are?


You can leave DB as is. It shouldn't cause any problems.
n0obie4life
Registered User
Posts: 232
Joined: Thu Dec 02, 2004 4:33 am

Post by n0obie4life »

Is there going to be any update soon?

Maybe I can request that this one goes another level deeper? Like at viewforum.php currently it displays the subforums on top. Then it works like index.php again..

If that cannnot be done, its okay. I don't like CH :D
yoshikawa
Registered User
Posts: 1
Joined: Fri Jan 09, 2004 11:19 am
Location: [ Gamania ]
Contact:

Post by yoshikawa »

HI !
Anyone can talk me why ?
system message :

Code: Select all

No mode was set
zzz...
Registered User
Posts: 2
Joined: Sun Jul 17, 2005 8:56 pm

Post by zzz... »

i hav prob with SUPER MODERATOR when create a new sub-form

Code: Select all

Couldn't insert row in forums table

DEBUG MODE

SQL Error : 1054 Unknown column 'auth_ban' in 'field list'

INSERT INTO phpbb_forums (forum_id, forum_name, cat_id, attached_forum_id, forum_desc, forum_order, forum_status, prune_enable, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_ban, auth_greencard, auth_bluecard, auth_vote, auth_pollcreate) VALUES ('42', 'test', 7, 28, '', 20, 0, 0, 1, 1, 1, 1, 1, 1, 1, 3, 3, 5, 1, 1, 1)

Line : 513
File : admin_forums.php
TQ
zzz...
Registered User
Posts: 2
Joined: Sun Jul 17, 2005 8:56 pm

Post by zzz... »

2nd question

Image
Pille
Registered User
Posts: 2
Joined: Wed Oct 05, 2005 10:57 am

Post by Pille »

Hey guyz!

Want to change some optical stuff:

1) How can i can i change the bold style of the subforums into plain text style. Have searched in index.php or index_body.tpl for some

Code: Select all

<b> text </b>
but found nothing but some {catrow. forumros NAME} or so.

2) I've installed the Forum Icon Mod on my board, so you can place small icons before a forum. I also want to have an icon in every subforum too. How to do it ? The only way to see Icons before a forum is in the parent forum (as always) and in the single subforum, if you open it. But in the viewforum.php is no Icon unfortunately.

See also here:

http://www.directupload.net/show/d/475/HjMqzqDN.jpg (Main Index)
...and if i open the forum
http://www.directupload.net/show/d/475/EgYCoaGO.jpg (NO Icons!)
...want to have icons here to!

How to do it ?

3) the last pont: :-)

Want show moderators also in Subforums at the bottom of forumdescription. They're not shown in the subforum list. How to do it ?

Plz plz help!

many greetings Pille :)
DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing »

I didn't see this in the screenshots, and I don't know if this has been asked already, but can you display which forum (if there are subforums) the last post was posted in? Because in the screenshot, it shows the subforum having a new topic and then it shows a link to the last topic. That's good if there's only one new topic forum. But if two or more or even the parent forum have a subforum, you don't know which one it's in, and it can get confusing. I don't think it would mess up the layout too much, do you think?

-DKing
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search
User avatar
acoolwelshbloke
Registered User
Posts: 89
Joined: Mon Jun 06, 2005 8:03 pm

Slight problem with this mod

Post by acoolwelshbloke »

Sorted out my previous problem!
Pille
Registered User
Posts: 2
Joined: Wed Oct 05, 2005 10:57 am

Post by Pille »

Ok folks, i fixed some of the optical problems ;)

1) underline in subforum is not shown any longer :)
2) subforums are now shown in plain text and not in bold-style

But i can't solve the problem with the forum_icons. I hope someone has got an idea to handle this prob :):

1) The forum_icon Mod is installed --> fourm_icons are shown in de the main index. you had to make some changes in your database for that. OK.
(see) http://www.directupload.net/show/d/477/I2ktyZ78.jpg
|
2) If i put a parentforum into another parentforum to make it as a child_forum, the icon is not shown correctly! you can not see the correct icon in the viewforum_body.tpl. The only icon you see is the main_icon from the main index. BUT if you open the subforum, the icon is shown correctly before the forum_name.
(see) http://www.directupload.net/show/d/477/hymZZ5Pi.jpg (the marked icon is wrong, it must be another icon !, the first three icons are correct)
|
3) if i click on the last subforum:

http://www.directupload.net/show/d/477/VuXlTUzV.jpg

--> why is the correct icon shown here but not in the subforumlist ?

Is there a special change in the database necessary ?

Any idea to handle this problem ? Plz help :)

many greetings Pille
Turan
Registered User
Posts: 5
Joined: Sat Dec 06, 2003 9:49 pm
Location: Netherlands
Contact:

Post by Turan »

I just applied the Colorize Forum Title MOD to this great mod.

Find on index.php the next

Code: Select all

'sub_name'=>$value['forum_name'],
After add

Code: Select all

'sub_color'=>$value['forum_color'],
Find

Code: Select all

'L_FORUM_IMAGE' => $attached_forums[$k]['sub_alt'],
After add

Code: Select all

'FORUM_COLOR' => ( $attached_forums[$k]['sub_color'] != '' ) ? 'style="color: #'.$attached_forums[$k]['sub_color'].'"' : '',
Now edit your index_body.tpl

Find

Code: Select all

<a class="nav" href="{catrow.forumrow.switch_attached_forums.attached_forums.U_VIEWFORUM}"><img alt="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" border="0" src="{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_IMAGE}" title="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" />{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_NAME}</a>
Replace with

Code: Select all

<a class="nav" {catrow.forumrow.switch_attached_forums.attached_forums.FORUM_COLOR} href="{catrow.forumrow.switch_attached_forums.attached_forums.U_VIEWFORUM}"><img alt="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" border="0" src="{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_IMAGE}" title="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" />{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_NAME}</a>
Enjoy!
porplemontage
Registered User
Posts: 15
Joined: Sun Oct 10, 2004 3:48 am

Post by porplemontage »

edit: I think I found my answer in the thread. Should have read the whole thing first.

BTW, great mod. This is exactly what I was looking for. :)
[porplemontage studios]
>>internet entertainment
Kiba
Registered User
Posts: 12
Joined: Fri Aug 05, 2005 3:27 am

Post by Kiba »

Excuse me:

How to install "Improved pseudo sub-forums 1.06" "keep unread flag" at the same time?
Both of them seemed re-defined "$unread_topics"

As I modified the code below, the unread flags in all subforums disabled.
What can i do?

Code: Select all

#
#-----[ FIND ]------------------------------------------------
#
							else
							{
								$unread_topics = false;
								if ( $userdata['session_logged_in'] )
								{
   // Added by Attached Forums MOD

$unread_topics=check_unread($forum_id);

   // END Added by Attached Forums MOD

}

								$folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum']; 
								$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts']; 
							}

#
#-----[ REPLACE WITH ]---------------------------------------- 
#
 						else
						{
							//MOD Keep_Unread_2 * Forum_unread flags set earlier
							$unread_topic = $forum_unreads[$forum_id];
							$folder_image = ( $unread_topic ) ? $images['forum_new'] : $images['forum'];
							$folder_alt = ( $unread_topic ) ? $lang['New_posts'] : $lang['No_new_posts'];
						}
spectralmyst
Registered User
Posts: 112
Joined: Tue Aug 02, 2005 11:31 pm

Post by spectralmyst »

ok, I am pretty new to this, but I can do all the mods, its like most mods. The only part I dont get to this one is the beginning.

"
#
#-----[ SQL ]-------------------------------------------------
#
# If your phpbb table prefix is different, then change it to
# reflect the correct one.
#
#


ALTER TABLE `phpbb_forums` ADD attached_forum_id MEDIUMINT(8) DEFAULT '-1' NOT NULL;"

Everything after that I am fine with. What is this part telling me, and what do I do? I have to do something in myphpadmin? can I not just make the changes and upload them?

any help is much appreciated.

Thanks
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3542
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer »

Select the appropriate database in phpmyadmin. Then select the SQL tab. Then paste the code in the query windows and hit the first GO button. That's all.
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .
spectralmyst
Registered User
Posts: 112
Joined: Tue Aug 02, 2005 11:31 pm

Post by spectralmyst »

ooo so you mean I dont have to go into the actual forum files, edit them, then FTP them over the old ones the way I usually do?

This method you just said replaces that one right?
Locked

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