Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Get Points by Posting (Points Add-On) Details »»
Get Points by Posting (Points Add-On)
Version: 1.00, by Iguacu Iguacu is offline
Developer Last Online: Aug 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-09-2002 Last Update: Never Installs: 72
 
No support by the author.

This hack adds to Shinra Points hack by PalmeroftheTurks. I take no credit for his great hack. You do need it installed for mine, though.Mine adds to the field you used for that hack for each post or new reply. You can have different values for new threads and new replies. I was originally told that someone had already posted this, but after receiving quite a few IMs and PMs I am reposting it.
So anyways, tweak it if you want, I'm a PHP newbie and it's my first hack.

Tested on:
2.2.4
2.2.1
I don't see any reason why it shouldn't work on any other vB above 2.0

Show Your Support

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

Comments
  #12  
Old 03-30-2002, 12:15 AM
Iguacu Iguacu is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, i have a mac, and i could only save the TextEdit file as RTF. download his. thnx austin for posting that
Reply With Quote
  #13  
Old 03-30-2002, 02:00 AM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack but they dont work with the quick thread and quick reply's is there someway u can make them work with it
Reply With Quote
  #14  
Old 03-30-2002, 03:28 AM
Iguacu Iguacu is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've been working on that... and i havent found a solution yet
if anyone knows of a way, please tell me!
or just post your revised version
Reply With Quote
  #15  
Old 04-01-2002, 03:23 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I have been wondering this for awhile to since I got the hack from Iguacu. Somebody please make it so quick reply and quick thread give you points
Reply With Quote
  #16  
Old 04-02-2002, 01:55 AM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I don't know about quick thread, but i fixed the quick reply box...but I have another problem...when someone edits a post, it adds too....i have no idea how to fix that, and i don't think it was because of what i did...


anyways....



Find in root/showthread:
PHP Code:
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
  
show_nopermission();

Add under it
PHP Code:
// start gil
$pointfield="field5"// set this to the point field you used for the points hack
$giladd=3// set this to the amount of gil you want a user to receive per newthread
$gilstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$gil=$gilstr[$pointfield];
$gilamt=$gilstr[$pointfield];
if (
$gil='') {
$gil=0;

}else {
$postgil = ($gilamt $giladd);
$DB_site->query("UPDATE userfield SET field5='$postgil' WHERE userid='$bbuserinfo[userid]'");

with your values set, etc...

That fixes the quick reply box problem, but I don't know why it adds when you edit too...
Reply With Quote
  #17  
Old 04-03-2002, 02:43 AM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, undo what I said above if you did it, cuz now when you refresh a page, it adds on, and when you re-visit a thread you've posted in, it adds 15(in my case, 3x the reg amount)

So, take out [php]// start gil
$pointfield="field5"; // set this to the point field you used for the points hack
$giladd=3; // set this to the amount of gil you want a user to receive per newthread
$gilstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$gil=$gilstr[$pointfield];
$gilamt=$gilstr[$pointfield];
if ($gil='') {
$gil=0;

}else {
$postgil = ($gilamt + $giladd);
$DB_site->query("UPDATE userfield SET field5='$postgil' WHERE userid='$bbuserinfo[userid]'");
}
[\php From your showthread.php.
Reply With Quote
  #18  
Old 04-03-2002, 02:43 AM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, undo what I said above if you did it, cuz now when you refresh a page, it adds on, and when you re-visit a thread you've posted in, it adds 15(in my case, 3x the reg amount)


So, take out
PHP Code:
// start gil
$pointfield="field5"// set this to the point field you used for the points hack
$giladd=3// set this to the amount of gil you want a user to receive per newthread
$gilstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$gil=$gilstr[$pointfield];
$gilamt=$gilstr[$pointfield];
if (
$gil='') {
$gil=0;

}else {
$postgil = ($gilamt $giladd);
$DB_site->query("UPDATE userfield SET field5='$postgil' WHERE userid='$bbuserinfo[userid]'");

From your showthread.php.
Reply With Quote
  #19  
Old 04-03-2002, 03:05 AM
Iguacu Iguacu is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you could have used

PHP Code:
if ($HTTP_POST_VARS['action']!=="editpost") { 
but yeah, the reload thing is a problem... as i said, i'm new to PHP, ill try to learn more and find a solution...
Reply With Quote
  #20  
Old 04-03-2002, 03:17 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys, it's so much easier than all that crap you posted. All you have to do is add 2 lines of code, 1 to reply.php and newthread.php

I can give you the code if you want.
Reply With Quote
  #21  
Old 04-03-2002, 03:19 AM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LMAO.
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:20 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.05244 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete