Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > RPG Integration Hack
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New posts not adding xp Details »»
New posts not adding xp
Version: , by Cyricx Cyricx is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

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

Currently posting is not adding xp. Did you change the new post code from the first V3 you sent out?

Might I suggest that you name them 3.1, 3.2, etc as ya hammer out at the bugs?

Show Your Support

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

Comments
  #2  
Old 03-09-2005, 01:43 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you turned the setting on?
Because I gain EXP just fine and Im using the same code as you (else I wouldn't have anything to compare the v2 and v3 file changes against, eh? )

And naming them 3.1 etc would cause me to end up with 3.1245653434 before it oculd be labelled final
Nah I only increase version number as DB changes are needed
Reply With Quote
  #3  
Old 03-09-2005, 03:48 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Postive it's on.

Set to yes and xp per post is 1.

I doubled checked my code in the newreply and newthread to your last zip, matches. And I even checked my database to ensure the values are there.

Both rpg_givepostexp and rpg_expperpost are set to 1.
Reply With Quote
  #4  
Old 03-09-2005, 05:01 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is utterly weird.
You seem to be the only one having this problem, yet I can't find anything wrong with the setting, be it 1 or 10....

Try removing the "$vboptions['rpg_givepostexp'] == 1 AND " from the if() in newreply, then try to make a post.
If this does not fix it, readd it and remove " AND $vboptions['rpg_expperpost'] > 0" from the if() and try again.

This should get us one step closer to fixing it, at least for your forum.
Reply With Quote
  #5  
Old 03-09-2005, 08:44 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll definately have to run those when I get home.

The weird thing is, it's adding points when you post a new thread..

but not when you reply :ermm:

Fixed. I think it was where the code was being put. I checked out the newthread mod and it put it just above where it started defining the variables, so I moved the newreply code to the same spot and it worked.

Short version to fix this bug if you have it like I did.

Open newreply.php

Find:
Code:
	$newpost['title'] = $_POST['title'];


ABOVE IT PUT:
Code:
	// rpg
	// Itemshop code by Mewtwo and Battle Code by Bitsys 
	if ($vboptions['rpg_givepostexp'] == 1 AND $vboptions['rpg_expperpost'] > 

0) 
	{
		$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET 

xp=xp+$vboptions[rpg_expperpost] WHERE userid='$bbuserinfo[userid]'"); 
	// End Itemshop code by Mewtwo and Battle Code by Bitsys
		if ($bbuserinfo['inbattle'] == 0 AND 

$bbuserinfo['inmonsterbattle'] == 0) 
		{
			process_rpg_stats($bbuserinfo);
		}
	}
	//end auto-update stats add-on for the RPG Integration Hack by Bitsys
Reply With Quote
  #6  
Old 03-10-2005, 01:31 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah good you got it fixed. I never would have guessed to do what you did there
I'm not sure I want to put this in the official version if you are the only one this is happening to, because since it works for everyone else (so far), fixing something that ain't broken...
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 06:06 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.03868 seconds
  • Memory Usage 2,248KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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