Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vbBux / vbPlaza
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Deleting points when I delete posts/threads Details »»
Deleting points when I delete posts/threads
Version: , by Nova99 Nova99 is offline
Developer Last Online: Nov 2018 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-11-2006 Last Update: Never Installs: 0
 
No support by the author.

First of all I just have to say: Great hack!!
I've been waiting for one like this since I switched over from phpbb to vBulletin 3.5...


I haven't been able to go through the 3,000+ post long thread, so I don't know if this has been answered before or not, so here we go:

When I delete posts/thread by members, is it possible to make it so they automatically loose points for that as well?
Now they can just "spam away" to get more points, and I have to manually delete the appropriate number of points every time I delete posts/threads...

Thanks.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-11-2006, 12:13 PM
X-Files's Avatar
X-Files X-Files is offline
 
Join Date: Sep 2005
Location: VA
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have asked. Search for post from me here and the main thread.

Short answer no!

https://vborg.vbsupport.ru/showthrea...hreadid=106953
Reply With Quote
  #3  
Old 03-11-2006, 12:29 PM
Nova99 Nova99 is offline
 
Join Date: Dec 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by X-Files
Short answer no!
Then I hereby officially kindly request it to be included in future releases..
Reply With Quote
  #4  
Old 03-11-2006, 01:12 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could probably do it, but its a very complex calculation and I have thought of a way to get it down to reduce the number of quer2 queries, but it still could be per number of users that replied in the thread because they may or may not have more than 1 reply to the thread and it would have to remove the number of points individually for each user. So if u have a thread where 1000 posts are there and there was 300 users who posted in there and some posted once and some posted 6 times, it would not properly take off the number of points per each user properly without a separate query for each user.

-CMX
Reply With Quote
  #5  
Old 03-13-2006, 04:38 PM
Nova99 Nova99 is offline
 
Join Date: Dec 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's very rare that I have to delete long threads, so that's not the most important thing.

But is it possible (and easy?) to implement deduction of points when we delete single posts in a future version?

A couple of other requests for future releases:
- Points for each reply in a thread, to the thread starter (a "bonus" for creating popular threads)
- Allow admins and moderators (optional) to edit members points through the user profile
(similar as the Admin Donate, but also possible to remove points there)
- "spam prevention" by setting how many posts a member can make within a given time period and be able to gain points for them. (ex. 40 posts pr 24 hours)

I used the cash hack for phpBB before, and I really liked those features there..
http://www.phpbb.com/phpBB/viewtopic.php?t=94055#664549
Reply With Quote
  #6  
Old 03-14-2006, 01:02 AM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deleting points is very tricky as it has to calculate again the size of the message to know exactly how many points to delete. This will be at least 1 query. It also is assuming there is a hook before it 'deletes' a post from a thread, there probably is one available somewhere, but this has to be researched.

There is already a bonus for the thread starter in they get points anytime someone views a thread. If you add it to give points to the thread starter when someone replies to the thread to, that will mean there is 1 more query on every reply as well. If thats an acceptible option, I can add that sure.

I'd like to add some AJAX features in the future, maybe that could be done to edit user points live like the vb lets u edit thread titles by double clicking in the area.

To prevent spam would be harder to accomplish, you'd basically have to store a history of every time the user has posted/replied a thread to be accurate. A simple counter that resets daily with another cron job could suffice, but I know on my forums a single query to set all users in 1 query takes about 5 seconds alone. (I have 200,000+ users on my site.)

Always dont forget, vbPlaza has a lot of hooks, u could take over entirely how the lottery works with using such a hook.

-CMX
Reply With Quote
  #7  
Old 05-23-2006, 02:05 AM
northernstar northernstar is offline
 
Join Date: May 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering, when you edit your own post and reduce the character count, your points go down, but why doesn't that work when a mod/admin edits someone else's post? Will this be easier to implement?

I was thinking I could do this.. so I was gonna edit someone's post (spam) by removing the text in the post (their points go down) THEN delete it.

I understand that's troublesome for deleting an entire long thread, but that's also rare for me to do (rationale: the thread has lasted long enough without a mod deleting it, so it must have some merit). Spam threads are usually deleted right away when there's only 2-3 posts.
Reply With Quote
  #8  
Old 06-20-2006, 04:52 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, it is possible to do, just time consuming to get it right without any exploits.

This is on my "Todo when I have more time" list already.

-CMX
Reply With Quote
Reply


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 05:17 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.04731 seconds
  • Memory Usage 2,265KB
  • Queries Executed 21 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (7)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