[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

Welshcat
Registered User
Posts: 81
Joined: Sat Sep 02, 2006 5:26 pm
Contact:

Post by Welshcat »

Jackanape wrote:
Welshcat wrote: Can you post what those sort edits looked like in viewforum.php and what they should look like so I can see exactly which bits i'm editing? Thanks


The install file cites the following changes"

Code: Select all

#
#-----[ OPEN ]------------------------------------------ 
#
viewforum.php
#
#-----[ FIND ]------------------------------------------ 
#
	ORDER BY t.topic_last_post_id DESC ";
#
#-----[ IN-LINE FIND ]------------------------------------------ 
#
ORDER BY 
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
#
ORDER BY t.topic_priority DESC, 
#
#-----[ 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
#
Make sure that the additional code goes BETWEEN the existing ORDER BY variables. I accidentally placed mine AFTER them at first, and got the same results you did.


Well that actually seems to help. Thanks! That worked after I switched the order. I don't know why it says to paste it in the order it is there because it causes those non-cementing problems. However, it works fine now! :D

keysUK
Registered User
Posts: 5
Joined: Thu Feb 17, 2005 9:44 am
Location: Manchester, UK

Post by keysUK »

The zip file i downloaded just contains an mpg file? Has anyone else had this?
Rob

phxcityslick
Registered User
Posts: 183
Joined: Sat Dec 02, 2006 9:18 pm

Post by phxcityslick »

I have 2 small problems


1) I use acidtechex as my default skin. When i click on the Moderated section I do not see the Priority info... If i personally switch my theme to subsilver then i can see the changes so I know this is a file issue (not sure what though)

2) IF i set topics as

1 Topic a
2 Topic b
3 Topic c

in the listing it shows

3 Topic c
2 Topic b
1 Topic a


If i do

1 Topic c
2 Topic b
3 Topic a

IT shows


3 topic a
2 topic b
1 topic c


what am i doing wrong?

nedd3h
Registered User
Posts: 14
Joined: Tue Apr 25, 2006 12:40 am
Location: Australia

Post by nedd3h »

keysUK wrote: The zip file i downloaded just contains an mpg file? Has anyone else had this?

yes, the file icon says it's an mpeg movie file BUT the extension is still .mod
as far as i can tell this has happened since i updated windows media player to v11

it should work no probs

Ygramul
Registered User
Posts: 41
Joined: Tue Sep 05, 2006 12:30 pm
Contact:

Post by Ygramul »

I've got this working fine now, after having had to reinstall a few times, but I have one problem with it and I'm a bit anxious over it... In a case where I have both stickies and announcements, no matter what numbers I put for each, I cannot get the announcements to come after the stickies. Any way around this besides reassigning the type of post they are, please? Thanks in advance.

User avatar
lotsahair2
Registered User
Posts: 51
Joined: Sat Dec 02, 2006 3:43 pm
Location: Israel

hi guys, a phpbb newbie here (sorry in advance :) )

Post by lotsahair2 »

this MOD is exactly what i need for my newly found forum.
However, i plan to use phpBB3 once it officially comes out.
will this MOD work in phpBB3?
i hope so...

ramit
Registered User
Posts: 49
Joined: Fri Dec 09, 2005 7:56 am

Post by ramit »

Just what I needed to.
Been putting together a forum, and the people that will be using wanted to be able to order the topics.. one for each document and regardless of updates or posted comments.. the order to be like a fixed index.. never too move.. "cemented" in place!

I installed it in about 10 minutes. been playing with it got some sample docs up (using the attachment mod and pix upload mod too) and it works great.

Two Thumbs up!
ImageImage
tnx for the mod and the hardwork.

User avatar
johnson154
Registered User
Posts: 1
Joined: Sat Jan 27, 2007 7:13 pm

AWESOME MOD RENEGADE!!!

Post by johnson154 »

AWESOME MOD RENEGADE!!!

Everbody,

If you follow the instructions exactly as they are, this should work perfectly for you.

I was able to do it by hand and I don't know PHP and have just started playing with phpbb recently.

I didn't use that EasyMod thing that everybody seems to use because I don't trust a program to modify code that I won't be able to fix should it foul something up. I did it by hand since all that's required is carefully finding and replacing per the instructions.

There did seem to be a typo at the end though. It says:


#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
# full line is
# $lang['No_Topics_Moved'] = 'No topics were moved.';
$lang['No_Topics_Moved']
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Topics_Prioritized'] = 'The selected topics have been prioritized.';
$lang['Priority'] = 'Priority';
$lang['Prioritize'] = 'Prioritize';


And i think it should say this:



#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['No_Topics_Moved'] = 'No topics were moved.';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Topics_Prioritized'] = 'The selected topics have been prioritized.';
$lang['Priority'] = 'Priority';
$lang['Prioritize'] = 'Prioritize';


By the way everbody. I have the latest version of phpbb2 so yes it is compatible with newer versions.

Thanks again for this MOD Renegade! You've saved me a huge headache with this. :D
John

http://www.womensexstudy.com/forum
What do women REALLY want in bed?

simple mind
Registered User
Posts: 22
Joined: Wed May 10, 2006 9:05 pm

Post by simple mind »

--------------------------------------------------------------------------------

As any of you that have looked at this mod will recognise these required changes to the named file.

Code: Select all

Code: 
# 
#-----[ 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" 
# 
#-----[ FIND ]------------------------------------------ 
# 
     <td class="spaceRow" colspan="5" align="center"><span class="gensmall">{L_MOD_CP_EXPLAIN}</span></td> 
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
colspan="5" 
# 
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
# 
colspan="6" 
# 
#-----[ FIND ]------------------------------------------ 
# 
     <th width="5%" class="thRight" nowrap="nowrap">&nbsp;{L_SELECT}&nbsp;</th> 
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
     <th width="5%" nowrap="nowrap">&nbsp;{L_SELECT}&nbsp;</th> 
     <th width="10%" class="thRight" nowrap="nowrap">&nbsp;{L_PRIORITY}&nbsp;</th> 
# 
#-----[ FIND ]------------------------------------------ 
# 
     <td class="row2" align="center" valign="middle"> 
      <input type="checkbox" name="topic_id_list[]" value="{topicrow.TOPIC_ID}" /> 
     </td> 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
     <td class="row1" align="center" valign="middle"> 
      <input type="Text" name="topic_cement:{topicrow.TOPIC_ID}" value="{topicrow.TOPIC_PRIORITY}" maxlength="5" size="5" /> 
     </td> 
# 
#-----[ FIND ]------------------------------------------ 
# 
     <td class="catBottom" colspan="5" height="29"> {S_HIDDEN_FIELDS} 
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
colspan="5" 
# 
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
# 
colspan="6" 
# 
#-----[ FIND ]------------------------------------------ 
# 
      <input type="submit" name="unlock" class="liteoption" value="{L_UNLOCK}" /> 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
      &nbsp; 
      <input type="submit" name="cement" class="liteoption" value="{L_PRIORITIZE}" /> 
# 
I am actually using the "cobalt theme"
and due to previous mods my modcp.tpl file looks like this

Code: Select all

Code: 
<script language="JavaScript"> 
<!-- 
function toggle_check_all() 
{ 
   for( var i=0; i < document.topic_ids.elements.length; i++ ) 
   { 
      var checkbox_element = document.topic_ids.elements[i]; 
      if( (checkbox_element.name != 'check_all_box') && (checkbox_element.type == 'checkbox') ) 
      { 
         checkbox_element.checked = document.topic_ids.check_all_box.checked; 
      } 
   } 
} 
--> 
</script> 

<form method="post" name="topic_ids" action="{S_MODCP_ACTION}"> 
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> 
  <tr> 
   <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td> 
  </tr> 
</table> 

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> 
  <tr> 
   <td class="catHead" colspan="7" align="center" height="28"><span class="cattitle">{L_MOD_CP} {L_ENHANCED}</span></td> 
  </tr> 
  <tr> 
   <td class="row3" colspan="5">&nbsp;<span class="genmed">{TOPIC_TYPES}</span></td> 
   <td class="row3" colspan="2" align="right"><span class="genmed">{TOPIC_COUNT}</span>&nbsp;</td> 
  </tr> 
  <tr> 
   <th width="1%" class="thLeft" nowrap="nowrap">&nbsp;</th> 
   <th nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th> 
   <th width="19%" nowrap="nowrap">{L_FIRSTPOST}</th> 
   <th width="8%" nowrap="nowrap">{L_REPLIES}</th> 
   <th width="7%" nowrap="nowrap">{L_VIEWS}</th> 
   <th width="19%" nowrap="nowrap">{L_LASTPOST}</th> 
   <th width="1" class="thRight" nowrap="nowrap"><input type="checkbox" name="check_all_box" onClick="toggle_check_all()" /></th> 
  </tr> 
  <!-- BEGIN topicrow --> 
  <tr> 
   <td class="{topicrow.ROW_CLASS}" align="center" valign="middle"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td> 
   <td class="{topicrow.ROW_CLASS}"><span class="topictitle">{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span></td> 
   <td class="{topicrow.ROW_CLASS}" align="right" valign="middle"><span class="postdetails">{topicrow.FIRST_POST_TIME}<br />{topicrow.FIRST_POST_URL} {topicrow.FIRST_POST_AUTHOR}</span></td> 
   <td class="{topicrow.ROW_CLASS}" align="right" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span>&nbsp;&nbsp;</td> 
   <td class="{topicrow.ROW_CLASS}" align="right" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span>&nbsp;&nbsp;</td> 
   <td class="{topicrow.ROW_CLASS}" align="right" valign="middle"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_URL} {topicrow.LAST_POST_AUTHOR}</span></td> 
   <td class="{topicrow.ROW_CLASS}" align="center" valign="middle"><input type="checkbox" name="topic_id_list[]" value="{topicrow.TOPIC_ID}" /></td> 
  </tr> 
  <!-- END topicrow --> 
  <!-- BEGIN switch_no_topics --> 
  <tr> 
   <td class="row1" colspan="7" height="25" align="center"><span class="gen">{L_NO_TOPICS}</span></td> 
  </tr> 
  <!-- END switch_no_topics --> 
  <tr align="right"> 
   <td class="catBottom" colspan="7" height="25"> {S_HIDDEN_FIELDS} 
      <!-- BEGIN switch_auth_delete --> 
         <input type="submit" name="delete" class="liteoption" value="{L_DELETE}" />&nbsp; 
      <!-- END switch_auth_delete --> 
      <!-- BEGIN switch_auth_poll_delete --> 
         <input type="submit" name="poll_delete" class="liteoption" value="{L_POLL_DELETE}" />&nbsp; 
      <!-- END switch_auth_poll_delete --> 
      <!-- BEGIN switch_auth_move --> 
         <input type="submit" name="move" class="liteoption" value="{L_MOVE}" />&nbsp; 
      <!-- END switch_auth_move --> 
      <!-- BEGIN switch_auth_lock --> 
         <input type="submit" name="lock" class="liteoption" value="{L_LOCK}" />&nbsp; 
      <!-- END switch_auth_lock --> 
      <!-- BEGIN switch_auth_unlock --> 
         <input type="submit" name="unlock" class="liteoption" value="{L_UNLOCK}" />&nbsp; 
      <!-- END switch_auth_unlock --> 
      <!-- BEGIN switch_auth_global_announce --> 
         <input type="submit" name="global_announce" class="liteoption" value="{L_GLOBAL_ANNOUNCE}" />&nbsp; 
      <!-- END switch_auth_global_announce --> 
      <!-- BEGIN switch_auth_announce --> 
         <input type="submit" name="announce" class="liteoption" value="{L_ANNOUNCE}" />&nbsp; 
      <!-- END switch_auth_announce --> 
      <!-- BEGIN switch_auth_sticky --> 
         <input type="submit" name="sticky" class="liteoption" value="{L_STICKY}" />&nbsp; 
      <!-- END switch_auth_sticky --> 
      <!-- BEGIN switch_auth_normalize --> 
         <input type="submit" name="normalize" class="liteoption" value="{L_NORMALIZE}" /> 
      <!-- END switch_auth_normalize --> 
   </td> 
  </tr> 
</table> 

<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> 
  <tr> 
   <td align="left" valign="middle"><span class="nav">{PAGE_NUMBER}</b></span></td> 
   <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span></td> 
  </tr></form> 
  <tr> 
   <td colspan="2" align="right">{JUMPBOX}</td> 
  </tr> 
</table> 
I would really like to have this Topic Cement mod but can not work out what alterations to this file i need to make as it is different from the original.Any ideas?

simple mind
Registered User
Posts: 22
Joined: Wed May 10, 2006 9:05 pm

Post by simple mind »

"deleted double post"

Panthios
Registered User
Posts: 48
Joined: Mon Feb 28, 2005 12:13 am
Contact:

Re: [2.0.10] Topic Cement!

Post by Panthios »

Possible to make it admin only?
The button Prioritize could only be seen by admin? How please?

Great mod!!

delabarra
Registered User
Posts: 1
Joined: Fri Jul 27, 2007 11:19 pm

Re: [2.0.10] Topic Cement!

Post by delabarra »

hi every one there.

y have the following peoblem.

i installed this mode and worked fine, even with the theme (tested)
and the i wanted to install another mod (subf) whitch required xmod.
i installed xmod and it worked perfectly, but since, when hitting
priority button, noyhing happens. by this i mean that the page uptdate its
self but my post are not changed to desired order.any body knows
how can i add it to xmod styles? i havent been able to find aupport about
xmod on this thread ao thats why im asking. PLEASE BE CLEAR, im not a
php editor ;P

PD: very usefull MOD this one. Fully RECOMENDED.

thanxs.

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [2.0.10] Topic Cement!

Post by ChriZathens »

Are there any chances that someone converts this mod for phpbb3 ??

(Since the mod author has said that he won't support phpbb3 ??)
People using this mod has certain forums ordered in a certain way...
After migrating to Olympus, this will mess the order of all forums using this mod, so this is a bit of a problem.... :(
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

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

Re: [2.0.10] Topic Cement!

Post by Renegade88 »

I can see how it would be a problem for phpbb2 forums to migrate to phpbb3 after using the mod.

Truth be told, it's not a very difficult mod to write. I simply have not downloaded phpbb3 and I don't have any plans to do so for quite a while. I'm pretty busy these days and don't really have any time to devote to learning phpbb3 and how it works, and then dealing with the Mod gatekeepers (I've done it twice and it was a painful process -- maybe it was just the couple of folks I dealt with, but I recall a "never again" feeling at the end of it.)

I guess I was hoping that they would build this capability into phpbb natively...
Author of NFL Logos! and Topic Cement! MODs.
Architect of www.synsport.com (Premier Fantasy Football Management)

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [2.0.10] Topic Cement!

Post by ChriZathens »

If you do not wish to migrate this to phpbb3, noone will blame you, of course !! :D
And to be honest, OK, not having this installed after migrating is not such a disaster...
But it is the truth that it messes things a bit... :roll:
Imagine that I have 2-3 forums, 35-40 topics each, which must be ordered in a certain way, which is not by date, nor alphabetical.
In other words, your mod was the only way to order them the way they should be... :(

Anyways, perhaps someone else will try to create this usefull addition for the new version, or maybe - who knows - I will give it a shot myself... :geek:

I must say that your mod has helped me a lot...Thanks for that!!!
Cheers...
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

Post Reply

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