vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   RPG Integration Hack /w Battle (BETA) (https://vborg.vbsupport.ru/showthread.php?t=46417)

Zalastri 05-15-2003 11:13 PM

My forums are www.zalastri.com :)

engquist 05-16-2003 01:50 AM

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?

CCGENERAL 05-16-2003 01:58 AM

when you add a class it does not show up in the profile but not on the class options in the admin cp

engquist 05-16-2003 03:17 AM

(my last question still is unanswered)

I have one more question:

4) In the postbit template, I have $rpname displaying N/A and $rpcash showing my character name

see it at: http://rom.gloriousff.com/forums2/sh...?s=&threadid=1

edit:
I figured out why, it was because I had to go to Battle edit options and change the RPG name field from 6 to 5...

and I had to change the item edit options point field from field5 to field6

but.......

after I did this, I kept getting database errors when trying to click my "donate" link in the postbit.

so, I found out why....there is no "field6" that then existed in the userfield table, so I created it and now I get no more errors..

so I guess that when an admin changes those values like I did, they will get similar errors and that's how I fixed it...

the only problem I have for now is duplication of all RPG fields in the user CP profile. One set appears in the "Required" fields, and the other in "optional" info....I am running VBulletin 2.3.0

lioncool1589 05-16-2003 07:35 AM

i cant find bank interest in control panel how do i change percent bank interest 10% too much i want to change to 2%

engquist 05-16-2003 09:27 AM

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!

Lord Man 05-16-2003 11:27 AM

Sign Up Points

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

thx

Bitsys 05-16-2003 02:33 PM

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.

MindTrix 05-16-2003 05:58 PM

c next post (soz board made double post after i got a error)

MindTrix 05-16-2003 05:59 PM

having trouble :( i chmod my files etc etc but some reason it still didnt edit them so now i gotta do it manually, it says

in showthread.php find ---

FROM post
".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid

replace with--

FROM post, battle_options, items_options
".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN items_user ON items_user.userid=user.userid
LEFT JOIN battle_stats ON battle_stats.userid=user.userid
LEFT JOIN rpg_classf ON rpg_classf.id=user.rpgclass
LEFT JOIN rpg_classm ON rpg_classm.id=user.rpgclass
LEFT JOIN rpg_element ON rpg_element.elementid=user.element
LEFT JOIN rpg_race ON rpg_race.raceid=user.rpgrace AND rpg_race.alignmentid=user.alignment

thennnn it says find---

LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid = '$postid'
");

and replace it with some other code. Thing is its telling me to find the same bit of code there twice, but its givin meh too different things to replace it with. Now i noticed the code that its sayin to find exists twice in that php file, so do i replace the 1st bit of code i find with the 1st one it says to replace, and 2nd with 2nd bit etc etc :S


Heck should i just try the install again?? but only select template parts?? i dont see why it didnt make the changes even tho i chmod the files to 777


All times are GMT. The time now is 04:02 PM.

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.02445 seconds
  • Memory Usage 1,797KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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