vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Get Points by Posting (Points Add-On) (https://vborg.vbsupport.ru/showthread.php?t=35926)

Iguacu 03-30-2002 12:15 AM

sorry, i have a mac, and i could only save the TextEdit file as RTF. download his. thnx austin for posting that

BigJohnson 03-30-2002 02:00 AM

nice hack but they dont work with the quick thread and quick reply's is there someway u can make them work with it

Iguacu 03-30-2002 03:28 AM

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:p

Velocd 04-01-2002 03:23 AM

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 :)

Austin Dea 04-02-2002 01:55 AM

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...

Austin Dea 04-03-2002 02:43 AM

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.

Austin Dea 04-03-2002 02:43 AM

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.

Iguacu 04-03-2002 03:05 AM

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...

Vivi Ornitier 04-03-2002 03:17 AM

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.

Scrub 04-03-2002 03:19 AM

LMAO. :D


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01241 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete