Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 04-25-2009, 10:18 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [SOLVED] Prevent bumping on selected THREADS before X days

I would like to have an installable Mod that would allow me to set the minnimum time (hours or days) before the author could reply (bump) his/hers thread.


In my board, there are some sections where people can post some classifieds and bump them to bring them up.

The problem is that the board rules state that bumps are allowed for the classieds only when 15 days (2 weeks) have passed.


I would like to set the minnimum ammount of time before the author can reply to his won thread (bump it) on the Admincp -> Forums and Moderators -> Manage Forums -> [Edit My Forum]


Basically I want users to be allowed to make (start) the thread(s) but won't be able to reply until it has been 15 days since they started the thread(s).


Thank you so very much. :up:
Reply With Quote
  #2  
Old 05-06-2009, 02:59 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basically I want users to be allowed to start threads but won't be able to reply until it has been 15 days since the last post/first post!

Anyone?
Reply With Quote
  #3  
Old 05-18-2009, 12:36 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really believe that this should be a very easy Mod to code, for someone who has the skills...
Reply With Quote
  #4  
Old 05-22-2009, 03:09 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'll try to code this one

EDIT:
I guess there could be 2 ways of making this:
1. an easy way: just add code to post hook to check if allowed, and if not, redirect with error.
2. bit more user-friendly, but more code invovled: making sure the user that cannot bump has no option to get into any sort of reply screen (either quick reply, reply or qoute buttons)

Are one of these options what you had in mind or you meant different in your request ?
Reply With Quote
  #5  
Old 05-23-2009, 08:44 AM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Woa!! Thank you IdanB! I was getting a bit desperate...

Ok, I forgot to mention that I'm using CyberRanger's 'Throttle Posts/Threads (restrict number of posts/threads by usergroup/forum by time)' wich does the trick to prevent posting more that X threads, but FAILS in this quest to prevent replying to the THREADS in less than X days (or hours, etc...)

Ok, so now, replying your suggestions:
Quote:
Originally Posted by IdanB View Post
i'll try to code this one

EDIT:
I guess there could be 2 ways of making this:
1. an easy way: just add code to post hook to check if allowed, and if not, redirect with error.
2. bit more user-friendly, but more code invovled: making sure the user that cannot bump has no option to get into any sort of reply screen (either quick reply, reply or qoute buttons)

Are one of these options what you had in mind or you meant different in your request ?
Well, the above CyberRanger's Mod, does something close to your first option, so my users are a bit used to it, and that would be just fine for my board! :up: :up:

I believe that if the error message could inform the X ammount of days (or hours - although in my case I would like to have it in 'days') that are still remaining until the user can reply, the members could get more informed about the board rules, as the error message could be a reminder for those rules! :up:


Well, but let me tell you that your second option seems very good to me too. You would simply not have the Reply button there, so it would look a bit more... professional? :up:


hummm... But I wonder... Imagine that a newbie posted on those sub-sections that won't allowd to reply before X days... He/she won't see the Reply buttons, that could create another problem in this way: The user could simply guess that there is no way to reply at any time (if he/she does not read the board rules) and then, before the X days have passed, he/she would create ANOTHER thread with the same message as the first one (thus duplicating threads)

Ok, so the first option would be more useful! The error message would be the "Rules Reminder" for the user that did not read the board rules...


Thank you so very much IdanB! :up: :up: :up:
Reply With Quote
  #6  
Old 05-23-2009, 09:24 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea, there is that little dilemma as described by you, that's why i asked.

Allright, will code that mod. Might be useful to other folks on community as well, so worth coding
If i'll have time today in the afternoon, it might even be posted tonight. If i wont have time for it today then it will have to wait for next weekend (weekends for me are Friday-Saturday, i work on Sundays).

regards,
Idan.
Reply With Quote
  #7  
Old 05-30-2009, 01:13 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just letting you know i havent forgot about this request. This weekend i was kept bit too much busy with another modification (Alt Last Post) that had alot of unforeseen factors, made me work extra to fix multi bugs found by users.
I'll try to work on it now

--------------- Added [DATE]1243701856[/DATE] at [TIME]1243701856[/TIME] ---------------

Modification coded, tested & now online here
You can grab it here: https://vborg.vbsupport.ru/showthread.php?t=214916
Hope this helps your request.

regards,
Idan.
Reply With Quote
  #8  
Old 05-31-2009, 01:27 AM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear IdanB,

THANK YOU SO VERY VERY MUCH!!!


:up: :up: :up: :up:



(Moderators: You can close this thread now! )
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05282 seconds
  • Memory Usage 2,227KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete