View Single Post
  #1609  
Old 05-16-2003, 02:33 PM
Bitsys's Avatar
Bitsys Bitsys is offline
 
Join Date: Oct 2002
Posts: 444
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 09:50 PM engquist said this in Post #1608
I am having one issue. My boards run version 2.3.0 and I've tried installing this hack twice just to make sure. both times it installed successfully, but on each occasion, when I go to edit profile in the user CP, all the RPG info appears twice.....once under "required info." and again at the bottom under "additional info."

1) basically I am wondering why?

2) and which category is it supposed to be under?

3) and how can I fix it if it's not supposed to be this way?
See https://vborg.vbsupport.ru/showthrea...143#post390143 about half way down.


Quote:
Yesterday at 09:58 PM CCGENERAL said this in Post #1609
when you add a class it does not show up in the profile but not on the class options in the admin cp

Could you please clarify or explain the problem in a little more detail?

Quote:
Today at 03:35 AM lioncool1589 said this in Post #1611
i cant find bank interest in control panel how do i change percent bank interest 10% too much i want to change to 2%
https://vborg.vbsupport.ru/showthrea...155#post300155

Quote:
Today at 05:27 AM engquist said this in Post #1612
I first got this error when trying to reply to a thread I created on my test board:

Parse error: parse error, unexpected $ in /home/gloriou/public_html/rom/forums2/newreply.php on line (it was the last line of the code)

but there was no unexpected "$" anywhere near there!

so I cleaned up all the spacing and instead I get this error now:

Parse error: parse error, unexpected T_STRING in /home/gloriou/public_html/rom/forums2/newreply.php on line 198

which is roughly in this small peice of code:

PHP Code:
      if ($userinfo=$DB_site->query_first("
              SELECT user.*,userfield.*
              FROM user,userfield
              WHERE     (username='"
.addslashes(htmlspecialchars($username))."' OR
                      username='"
.addslashes(eregi_replace("[^A-Za-z0-9]","",$username))."') AND
                      user.userid=userfield.userid"
)) { 
I notice it is discussing the "userfield" table, maybe it has something to do with my adding the field6 table or something?

I have attached the file...


but for now, it's sleep time! I've been working on this hack for about 14 hours now, I only stopped to see Matrix Reloaded at the movies!

Try the attached newreply.php. You were missing a semi-colon around line 197.

Quote:
Today at 07:27 AM Lord Man said this in Post #1613
Sign Up Points

Can i do that ?, any 1 sign up take 350 points

thx

Some people say they have done this, but I have never done it myself. I recall that they later removed it because people were creating new accounts and donating the money to their main one.


Quote:
Today at 08:01 AM Me! said this in Post #1614
Is there anyway to disable the giving of money when a person runs from battle? It's a bug that can be exploited. If a person runs I'd rather they just lose 2 exp or something.
Could you explain this bug in detail?

Quote:
Today at 08:18 AM Me! said this in Post #1615
I think I may have a quick solution as far as the retreat bug is concerned. Now I'm a novice in PHP so please use this at your own risk.

In battleupdate.php find the following lines:

Code:
 $newmoney = $DB_site->query_first("SELECT bankval FROM items_user WHERE userid='$winnerid'");
                $newmoney = $newmoney[bankval] + $battle[wager] * 2;
                $DB_site->query("UPDATE items_user SET bankval='$newmoney' WHERE userid='$winnerid'");
        } else {
                $newmoney = $DB_site->query_first("SELECT storep FROM user WHERE userid='$winnerid'");
                $newmoney = $newmoney[0] + $battle[wager] * 2;
In both instances where it says $battle[wager] * 2 remove the "* 2"

Like I said I'm still learning PHP so PROCEED WITH CAUTION heh

Removing the 2 makes it so that the winner only gets refunded his money, instead of getting refunded his money and his opponenets money.

Unfortunately, the battle script is not smart enough to know hwo the battle was won/lost, therefore it would be rather difficult to change the outcome if someone retreats as opposed to someone dying. This is my fault since I did not plan this part properly.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01176 seconds
  • Memory Usage 1,808KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete