[2.0.10] Topic Cement!

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
28
78%
Very Good
7
19%
Good
0
No votes
Fair
0
No votes
Poor
1
3%
 
Total votes: 36

simulationcity
Registered User
Posts: 107
Joined: Tue Jun 21, 2005 1:34 pm

Post by simulationcity »

I like it. I'ts good for a Rules topic.
Stéphanas
Registered User
Posts: 3
Joined: Sun Sep 19, 2004 4:58 pm

Post by Stéphanas »

Hi...

Any news about a futur compatibility with CH 2.1.1 ?
(http://www.phpbb.com/phpBB/viewtopic.ph ... 90#1609590)
C2
Registered User
Posts: 76
Joined: Tue Nov 15, 2005 10:58 pm

Post by C2 »

skaloumbakas wrote: ATTENTION!!!
skaloumbakas wrote:...It seems it doesn't matter so i ended up with your proposition and so the total section of this group of snippets is as follows in the modcp.php file:

Code: Select all

			if( ( $total_posts = $db->sql_numrows($result) ) > 0 )
			{
				$postrow = $db->sql_fetchrowset($result);
				$template->assign_vars(array(
					'L_SPLIT_TOPIC' => $lang['Split_Topic'],
					'L_SPLIT_TOPIC_EXPLAIN' => $lang['Split_Topic_explain'],
					'L_AUTHOR' => $lang['Author'],
					'L_MESSAGE' => $lang['Message'],

					'L_SELECT' => $lang['Select'],

			'L_PRIORITY' =>   $lang['Priority'],
			'L_PRIORITIZE' => $lang['Prioritize'],

					'L_SPLIT_SUBJECT' => $lang['Split_title'],
					'L_SPLIT_FORUM' => $lang['Split_forum'],
					'L_POSTED' => $lang['Posted'],
					'L_SPLIT_POSTS' => $lang['Split_posts'],
					'L_SUBMIT' => $lang['Submit'],
					'L_SPLIT_AFTER' => $lang['Split_after'],
					'L_POST_SUBJECT' => $lang['Post_subject'],
					'L_MARK_ALL' => $lang['Mark_all'],
					'L_UNMARK_ALL' => $lang['Unmark_all'],
					'L_POST' => $lang['Post'],
					'FORUM_NAME' => $forum_name,
					'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"),
					'S_SPLIT_ACTION' => append_sid("modcp.$phpEx"),
					'S_HIDDEN_FIELDS' => $s_hidden_fields,
					'S_FORUM_SELECT' => make_forum_select("new_forum_id"))
				);
				for($i = 0; $i < $total_posts; $i++)


I want to correct the above with the following:

I ended up with the following correct position of the 2 new snippets of the cement MOD in the modcp.php file

Code: Select all

	default:
		$page_title = $lang['Mod_CP'];
		include($phpbb_root_path . 'includes/page_header.'.$phpEx);
		$template->assign_vars(array(
			'FORUM_NAME' => $forum_name,
			'L_MOD_CP' => $lang['Mod_CP'],
			'L_MOD_CP_EXPLAIN' => $lang['Mod_CP_explain'],
			'L_SELECT' => $lang['Select'],
			'L_PRIORITY' =>   $lang['Priority'],
			'L_PRIORITIZE' => $lang['Prioritize'],
			'L_DELETE' => $lang['Delete'],
			'L_MOVE' => $lang['Move'],
			'L_LOCK' => $lang['Lock'],
			'L_UNLOCK' => $lang['Unlock'],
			'L_TOPICS' => $lang['Topics'], 
			'L_REPLIES' => $lang['Replies'],
			'L_LASTPOST' => $lang['Last_Post'], 
			'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"), 
			'S_HIDDEN_FIELDS' => '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '">',
			'S_MODCP_ACTION' => append_sid("modcp.$phpEx"))
		);
THE PROBLEM of the vieforum.php not working (no topic prioritizing) REMAINS :cry:


This post also fixed the problem I had with the Aeolus theme.
I also had disregard the first colspan="5" replacement.

Working good in 2.0.18 so far.
great mod.

Code: Select all

#
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/modcp_body.tpl
#
#-----[ FIND ]------------------------------------------ 
#
	<td class="catHead" colspan="5" align="center" height="28"><span class="cattitle">{L_MOD_CP}</span>
#
#-----[ IN-LINE FIND ]------------------------------------------ 
#
colspan="5"
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
#
colspan="6"
SpacePower
Registered User
Posts: 66
Joined: Wed Mar 16, 2005 9:04 pm
Location: Berlin, EU
Contact:

Post by SpacePower »

Thanks for this great mod. It seems exactly the mod I was searching for my phpBB2 forum. :lol: :lol: :lol:
Power to the Peaceful
My forum(s):
http://www.stayhuman.org/phpBB2
http://www.spearhead-home.com/phpBB2
My website:
Image
frodita
Registered User
Posts: 5
Joined: Fri Dec 30, 2005 10:34 pm

Topics sorted by initial topic date

Post by frodita »

Hi,

I tried asking this question in the MODs discussion but got no replies. Your MOD is as close to what I am looking for as I can find, so I will ask again here. Is there a way to "fix" topic location in forum based on initial topic date? In other words, I would prefer topics NOT shift to the top of the forum with each new post. Will your MOD do that automatically with me having to manually prioritize each one?

I realize I could go in and prioritize them with your MOD, but I have quite a few topics in my forum already and renumbering them by hand would be a lot of work. I don't know anything about writing PHP script, but looking at the database, it occurred to me that if topic priority was automatically set based on topic id this would accomplish the same thing? Would it be possible to do that? Sorry if this is a completely stupid question and thanks.

:)
scotty1999
Registered User
Posts: 71
Joined: Tue Feb 21, 2006 4:26 pm

Post by scotty1999 »

does this mod work with v2.0.19 and CH 2.1.4

'cause i can't find the find&replace lines in modcp_body.tpl
Renegade88
Registered User
Posts: 73
Joined: Tue Jun 18, 2002 8:57 am
Contact:

Re: Topics sorted by initial topic date

Post by Renegade88 »

frodita wrote: ...it occurred to me that if topic priority was automatically set based on topic id this would accomplish the same thing? Would it be possible to do that? Sorry if this is a completely stupid question and thanks.

:)


Hi Frodita, if your goal is cement topics in place by post order, the best thing to do is simply change the the algorithm that phpbb uses to list the posts. I realize that you don't have PHP much experience. It would still be better than trying to brute force it with topic cement. Of course, it would require that all forums behave the same way unless you further specialized the code to work with particular forums.

None of that is particularly hard, but there's probably not an existing mod already as it's a fairly unique request.
scott wrote: Does this mod work with v2.0.19 and CH 2.1.4


I don't think it's compatible with CH mod (whatever that is) because other post above complain about an incompatibility.
Author of NFL Logos! and Topic Cement! MODs.
Architect of www.synsport.com (Premier Fantasy Football Management)
igami
Registered User
Posts: 79
Joined: Fri Jun 17, 2005 6:49 pm

Post by igami »

Code: Select all

#-----[ FIND ]------------------------------------------ 
#
	ORDER BY t.topic_type DESC, t.topic_last_post_id DESC 
#
#-----[ IN-LINE FIND ]------------------------------------------ 
#
t.topic_type DESC
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
#
, t.topic_priority DESC
Shouldnt that be IN-LINE BEFORE, ADD so that it first looks at priority then the others?
Renegade88
Registered User
Posts: 73
Joined: Tue Jun 18, 2002 8:57 am
Contact:

Post by Renegade88 »

No, because cement will not override STICKY OR ANNOUNCEMENTS.

You can prioritize one announcement over another, but you can not elevate a normal post higher than an announcement.

Thus Announcements and stickies will always be first on the topics, even with cement.

This mod has a few years under it's belt, so if it was wrong, the error would have been caught a long time ago.
Author of NFL Logos! and Topic Cement! MODs.
Architect of www.synsport.com (Premier Fantasy Football Management)
mike duron
Registered User
Posts: 31
Joined: Thu Mar 03, 2005 10:05 am
Location: Monster Island
Contact:

Post by mike duron »

Renegade, This looks like a great mod and I'd love to use it but I'm having the same problem scotty1999 mentioned above.

I'm using phpBB 2.0.20 with the Cobalt 2.0 theme and I can't find the line:

Code: Select all

<td class="catHead" colspan="5" align="center" height="28"><span class="cattitle">{L_MOD_CP}</span>
(in modcp_body.tpl)

I found the download page on your site for the mod, but there it only says the mod "works with php 2.0.6 --- 2.0.10"

Do you have an easy workaround for phpBB 2.0.20? If you don't plan to write an update, can you recommend another mod that does approximately the same thing but works with 2.0.20?

Thanks.
Renegade88
Registered User
Posts: 73
Joined: Tue Jun 18, 2002 8:57 am
Contact:

Post by Renegade88 »

The mod works fine with 2.0.20. It was only designed for subsilver, clearly it would not be possible to update it for every theme out there.

Easymod makes all the necessary changes for you, but only to the subsilver template. If you want to use it with other themes, you have to make the necessary changes manually to the theme you want.

The changes are very basic HTML changes -- and the instructions (for subsilver) are listed in a TO/FROM format in the mod file. With basic skill, you should be able to see what is being changed on subsilver and apply the similar changes to the cobalt template.

If you lack the HTML skill for that sort of thing, then I really recommend that you don't modify PHPBB at all. Each update of PHPBB will wipe out a mod if it replaces a file the mod changed, so unless you have to skill to selectively apply PHPBB patches, PHPBB shouldn't be modified.

I'm not being flippant, I just see lots of people with no knowledge of HTML happily heavily modifying PHPBB and then come yelling at the mod author that their mod "isn't compatible" with the latest phpbb when the truth is the user wiped out the mod carelessly when updating phpbb. So my conclusion: Unless someone knows PHP and HTML (really know it), they should not be modifying PHPBB at all.
Author of NFL Logos! and Topic Cement! MODs.
Architect of www.synsport.com (Premier Fantasy Football Management)
User avatar
KevC
Support Team Member
Support Team Member
Posts: 70216
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Post by KevC »

Apologies if this has been asked already but are there any plans to write this great MOD for phpbb3?
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"
Renegade88
Registered User
Posts: 73
Joined: Tue Jun 18, 2002 8:57 am
Contact:

Post by Renegade88 »

Sorry, I'm not planning on supporting PHPBB3.
Author of NFL Logos! and Topic Cement! MODs.
Architect of www.synsport.com (Premier Fantasy Football Management)
nedd3h
Registered User
Posts: 14
Joined: Tue Apr 25, 2006 12:40 am
Location: Australia

Post by nedd3h »

Hello,

I'm using:
-phpBB v2.0.21
-EasyMOD v0.3.0
-Topic Cemment v1.0.3


here's what i did:
re-instlled subSilver and set
installed easymod (said successfully installed)
installed/processed topic cemment (said process successful)

but, when i select 'moderate this forum', i have no option to prioritize
(no errors occur - i just don't get the option)


is this a phpBB v2.0.21 issue?
any way to sort this?

i'm confident it's installed correctly


thanks in advance for any help
Renegade88
Registered User
Posts: 73
Joined: Tue Jun 18, 2002 8:57 am
Contact:

Post by Renegade88 »

do you have proof the easy made changes to the template? It stores the pre-mod version in a subdirectory. I sounds as if the template itself was not modified. The template changes basically add one column full of edit fields and a button next to the others that says "prioritize". If you see neither, then either your re-installation of subsilve didn't go right, or the template was never updated.
Author of NFL Logos! and Topic Cement! MODs.
Architect of www.synsport.com (Premier Fantasy Football Management)
Post Reply

Return to “[2.0.x] MOD Database Cleanup”