Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post [Mod Release 1.3] Topic Cement 
 
This mod will allow the moderator to set a priority for any topic.
The default priority is zero; all topics with a priority of zero
are sorted as they always have been: First by type, and then by
descending topic id.  This mod inserts a new sort: First by type,
then by priority (Descending), and then topic id (descending).
It adds a text field in the moderator control panel to assign
or remove priority from any topic.
            
The intent of this mod is to be used in a forum of announcements or,
in my case, a forum dedicated to distributing official attachments.
The users can reply to my attachment post, but I don't want the order
of the posts to change, so this mod "cements" the order.  Or think of
it as moderator-definable stickiness!

Please Download Here

Enjoy
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
Hii **
I just would check something : during the installation, I found it for modcp.php :
Code: [Download] [Hide]
  1. #  
  2. #-----[ FIND ]------------------------------------------  
  3. #  
  4.  
  5.             ORDER BY t.topic_type DESC, p.post_time DESC LIMIT $start, " . $board_config['topics_per_page'];  
  6.  
  7. #  
  8. #-----[ AFTER, ADD ]------------------------------------------  
  9. #  
  10.  
  11.             ORDER BY t.topic_type DESC, t.topic_priority DESC, p.post_time DESC LIMIT $start, " . $board_config['topics_per_page']; 


Isn't it :
Code: [Download] [Hide]
  1. #  
  2. #-----[ FIND ]------------------------------------------  
  3. #  
  4.  
  5.             ORDER BY t.topic_type DESC, p.post_time DESC LIMIT $start, " . $board_config['topics_per_page'];  
  6.  
  7. #  
  8. #-----[ REPLACE WITH ]------------------------------------------  
  9. #  
  10.  
  11.             ORDER BY t.topic_type DESC, t.topic_priority DESC, p.post_time DESC LIMIT $start, " . $board_config['topics_per_page']; 


Regards,
 



 
YrosSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
I do not follow you the code you posted is exactly the same both times...

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
Mike where are your glasses ??

the point is in AFTER  and Replace
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
spydie wrote: [View Post]
Mike where are your glasses ??

You are here =D
And yes the difference is that it's not " after, add " but " replace with " ^^
Because when I saw where it was placed, it seemed strange to me to have 2 time that kind of line =/ See : default modcp.php part which is interesting us :
Code: [Download] [Hide]
  1. WHERE t.forum_id = $forum_id  
  2.                 AND p.poster_id = u.user_id  
  3.                 AND t.topic_poster = u2.user_id  
  4.                 AND p.post_id = t.topic_last_post_id  
  5.                 AND p2.post_id = t.topic_first_post_id $where_type  
  6.             ORDER BY t.topic_type DESC, p.post_time DESC LIMIT $start, " . $board_config['topics_per_page']; 


What you tell us to do ( " after, add " ) will does that :
Code: [Download] [Hide]
  1. WHERE t.forum_id = $forum_id  
  2.                 AND p.poster_id = u.user_id  
  3.                 AND t.topic_poster = u2.user_id  
  4.                 AND p.post_id = t.topic_last_post_id  
  5.                 AND p2.post_id = t.topic_first_post_id $where_type  
  6.             ORDER BY t.topic_type DESC, p.post_time DESC LIMIT $start, " . $board_config['topics_per_page'];  
  7.                         ORDER BY t.topic_type DESC, t.topic_priority DESC, p.post_time DESC LIMIT $start, " . $board_config['topics_per_page'];  


What I think is right ( " replace with " ) :
Code: [Download] [Hide]
  1. WHERE t.forum_id = $forum_id  
  2.                 AND p.poster_id = u.user_id  
  3.                 AND t.topic_poster = u2.user_id  
  4.                 AND p.post_id = t.topic_last_post_id  
  5.                 AND p2.post_id = t.topic_first_post_id $where_type  
  6.                         ORDER BY t.topic_type DESC, t.topic_priority DESC, p.post_time DESC LIMIT $start, " . $board_config['topics_per_page']; 


No ? **
 



 
YrosSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
doh.. . yep sorry... was just looking at the code... did not see the replace and after...

thanks for pointing that out i will update the download...

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
Excuse me, translated with Google

Thanks for the MOD

A proved very helpful  

I have a question

This mod is only for administrators?

My moderators can not be used, why?

Thanks

___________________


Me disculpan, traducido con Google

Gracias por el MOD

A sido de mucha utilidad  

Tengo una duda

Este MOD es solo para administradores?

Mis moderadores no lo pueden usar, ¿porque?

Gracias
 



 
AerosmithSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
Hi

I have checked my test site with a moderator and they can use the topic cement feature...

do you moderators have access to that forum..?

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
hi.

Yes, they have access to these forums.

The moderators do not see this option in the forums that control, left two images

panelmoderador

permisos

This option, I see on the panel moderators at the end of each topic.

Thanks for responding


_______________

Hola.

Si, ellos tienen acceso a esos foros.

Los moderadores no ven esta opción, en los foros que controlan, dejo dos imágenes.

Esta opción, yo la veo en el panel de moderadores al final de cada tema.

Gracias por responder.
 



 
Last edited by Aerosmith on Sun 22 Nov, 2009 16:40; edited 1 time in total 
AerosmithSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
so as admin you can see the changes....?
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
hi

Edit all files for third time, got on the FTP, delete the forum cache, delete browser cache (use one for Administrator, one for moderator and one for user, for fast access), check permissions.

And finally seen both as Administrators Moderators.

I think my problem was with the browser and the cache.

Thanks DWho,

I'm sorry for the inconvenience.   
____________________

hola

Edite todos los archivos por tercera ves, los subí a FTP, borre cache del foro, borre cache de exploradores (uso uno para Administrador, uno para Moderador y uno para usuario, para acceso rápido), revise permisos.

Y finalmente se ve tanto para Moderadores como Administradores.

Yo creo que mi problema era con el explorador y el cache.

Gracias DWho.

Discúlpame por las molestias.   
 



 
AerosmithSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
No problem glad you got it sorted    
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Mod Release 1.3] Topic Cement 
 
Hi,

I have installed this mod but for some reason i cant see the priority on the moderate page.

When I click on "moderate this forum" i can set the priority but after I set it and go back into "moderate this forum" to change the priority I can't see the priority I have already set and so I don't know the number i have used.

The Mod works fine but I just can't see the current priority numbers in "moderate this forum".


Can anyone help?
 



 
nazboxSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron