Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2010, 05:00 AM
Thr33's Avatar
Thr33 Thr33 is offline
 
Join Date: Sep 2008
Location: Manchester, UK
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Threads/Posts to add/remove reputation

Hey, on an old VBulletin forum board i used to moderate for they had a system set up where creating a thread would gain a user 1 reputation point, and posting a reply would deduct 1 reputation point. This was only active in a certain category. Does anyone know how to do this?
Reply With Quote
  #2  
Old 03-02-2010, 01:55 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am unaware of a mod that would do it. Sounds like a silly idea. Discourage people from responding to threads???
Reply With Quote
  #3  
Old 03-03-2010, 02:02 AM
Thr33's Avatar
Thr33 Thr33 is offline
 
Join Date: Sep 2008
Location: Manchester, UK
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i run a site where we have shares. i would to require them to keep a share ratio and to do this have 20 reputation to access the shares category. when you post a new thread (share) you are granted a reputation credit, when posting a post/reply (enabling hide hack function to reveal hidden content) it will cost you a rep credit.

understand what i mean? it wouldnt be a product, it would have to be a template edit.
Reply With Quote
  #4  
Old 03-04-2010, 08:37 AM
Thr33's Avatar
Thr33 Thr33 is offline
 
Join Date: Sep 2008
Location: Manchester, UK
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

someone must know the template edit to add reputation on new thread???
Reply With Quote
  #5  
Old 03-04-2010, 12:02 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you checked the reputation settings? AdminCP > User Reputation ?
Reply With Quote
  #6  
Old 03-04-2010, 03:00 PM
Thr33's Avatar
Thr33 Thr33 is offline
 
Join Date: Sep 2008
Location: Manchester, UK
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea ive looked around in all the user reputation areas and no options for what im looking for. looks like im gunna have to spend a good few hours studying the functions_reputation.php and try to duplicate the addreputation into newthread
Reply With Quote
  #7  
Old 03-04-2010, 03:13 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think the reputation system is what you want for this; it just wasn't designed with this in mind. Have you looked at other mods, like the various "thank you" hacks?

Just seems to me it would be easier to code this from the start than to try to mangle the rep system.
Reply With Quote
  #8  
Old 03-05-2010, 05:04 AM
Thr33's Avatar
Thr33 Thr33 is offline
 
Join Date: Sep 2008
Location: Manchester, UK
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i assumed it should really be as simple as grabbing the code from the form buttons where you add positive and negative reputation... but i cant seem to find the actual code that increases/decreases the rep level by one.. surely cant be as hard as im making it out...
Reply With Quote
  #9  
Old 04-15-2010, 10:11 PM
djdrey djdrey is offline
 
Join Date: Mar 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd say you should be able to do this with a 2 plugins.. One after newthread and another on reply.. That said, looking at the code, it seems like all the repuation add is handled in reputation.php, so you'd have to duplicate some of that code rather than call functions etc, which is a bit sucky (I'm still on 3.6.x, so later versions might vary).

eg.. this bit from reputation.php seems to do the adding
PHP Code:
    // init user data manager
    
$userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
    
$userdata->set_existing($userinfo);
    
$userdata->set('reputation'$userinfo['reputation']);
    
$userdata->set('reputationlevelid'intval($reputationlevel['reputationlevelid']));

    (
$hook vBulletinHook::fetch_hook('reputation_add_process')) ? eval($hook) : false;

    
$userdata->pre_save();

    
/*insert query*/
    
$db->query_write("
        INSERT IGNORE INTO " 
TABLE_PREFIX "reputation (postid, reputation, userid, whoadded, reason, dateline)
        VALUES (
$postid$score$userid, " $vbulletin->userinfo['userid'] . ", '" $db->escape_string(fetch_censored_text($vbulletin->GPC['reason'])) . "','" TIMENOW "')
    "
); 
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 09:29 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.04469 seconds
  • Memory Usage 2,245KB
  • 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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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