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)

Mrpolish 12-18-2002 09:52 PM

I get an error when trying to open itemshop.php

Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

And also an error when i try to open heal.php

Invalid SQL: SELECT items_user.bankval, userfield.field5 FROM items_user, userfield WHERE items_user.userid='1' AND userfield.userid='1'
mysql error: Unknown column 'userfield.field5' in 'field list'

mysql error number: 1054

I installed both rpg and items.
And also it shows i am in battle and that battle does not exist, how i can delete that.

vb ver 2.2.8
hack ver.56

Bitsys 12-18-2002 09:52 PM

Quote:

Originally posted by assassingod
This error when trying to enter battle (0.56, 2.2.9)


Are you on a free/shared server? Did you try re-uploading battlefight.php? The cause of that error is the user item loop. I have never had that error on my forums, but a temporary fix is to do the following (I think):

In battlefight.php, find twice:
PHP Code:

while ($count <= $totalcats[0]) { 

and BELOW it, add:
PHP Code:

if($count 50)
  break; 

There are two places you need to do this. They should be right after one another and should look very similar.

Let me know if that helps.

Bitsys 12-18-2002 09:59 PM

Quote:

Originally posted by Mrpolish
I get an error when trying to open itemshop.php

Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

And also an error when i try to open heal.php

Invalid SQL: SELECT items_user.bankval, userfield.field5 FROM items_user, userfield WHERE items_user.userid='1' AND userfield.userid='1'
mysql error: Unknown column 'userfield.field5' in 'field list'

mysql error number: 1054

I installed both rpg and items.
And also it shows i am in battle and that battle does not exist, how i can delete that.

vb ver 2.2.8
hack ver.56

Something did not go right when you ran install_itemshop_items.php. Either that, or you have not properly filled in the point field name in the "Edit Itemshop Options" menu in the admin cp. To figure out what went wrong, in the admin cp go to the modify user profile fields screen and check for a field called Points. If there is not a field called points, then create a new one called "points" and make it hidden to the user, not required, and not editable. After adding it, use the following instructions to get it working:
Quote:

Originally posted by mli
Mrpolish try this:

1. Go to your admin panel
2. Go to modify user profile fields
3. Find the Point profile field
4. Right click over the edit link and go to copy shortcut
6. Copy it in your browser
7. Near the end there will be a number. Remember that number
8. Go to edit the itemshop options
9. In the top option put in field# and replace number with the number you recorded in step 7.

It worked for me :banana:

If there is already a field called Points, then use the above instructions to get it working. If none of this works, then let me know.

Could you explain a little more about the battle problem?

Mrpolish 12-18-2002 10:09 PM

Oka that fixed the itemshop and heal problem.

Me and my friend decided to battle and when we were on the battle I was going first and i did not have anything so i had to attack with my bare fists and when i clicked attack an error showed up so i reinstalled the hack about 3 times after that and it still shows that im in battle.
I even deleted the battle entries from the sql databas and its still the same =/

Bitsys 12-18-2002 10:11 PM

Quote:

Originally posted by Mrpolish
Oka that fixed the itemshop and heal problem.

Me and my friend decided to battle and when we were on the battle I was going first and i did not have anything so i had to attack with my bare fists and when i clicked attack an error showed up so i reinstalled the hack about 3 times after that and it still shows that im in battle.
I even deleted the battle entries from the sql databas and its still the same =/

You battle status is based on a field in the `user` table called 'inbattle'. To participate in battles again, change it's value back to 0. You can do this in phpmyadmin by going to the `user` table, browsing till you find your name and your opponents name, and changing the 'inbattle' field to 0.

Mrpolish 12-18-2002 10:19 PM

Oka that fixed the battle prob but there is one more in the moderator.php
Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access ./global.php owned by uid 10018 in /usr/local/psa/home/vhosts/ffrealms.net/httpdocs/moderator.php on line 14

Bitsys 12-18-2002 10:27 PM

Quote:

Originally posted by Mrpolish
Oka that fixed the battle prob but there is one more in the moderator.php
Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access ./global.php owned by uid 10018 in /usr/local/psa/home/vhosts/ffrealms.net/httpdocs/moderator.php on line 14

I am not too sure about that error. It might have something to do with your hosts settings. I also notcied that you just installed this hack or another version of it on top of a previous version of it. You have duplicates in you itemshop and your postbit item loop is timing out, indicated by the "Timeout 200" message in the postbits. You would be better off removing the hack and re-applying it on a TEST board, since a test board is easy to delete and re-install.

Strider Xero 12-18-2002 11:19 PM

how do i un-install v .55?

Bitsys 12-18-2002 11:39 PM

Quote:

Originally posted by Strider Xero
how do i un-install v .55?
Umm...install it in reverse?

Seriously though, you have several options:

1. If you want to upgrade to the new version, then get Beyond Compare 2 from www.scootersoftware.com. Then, open up the two install files side-by-side (the ones ending with .hack from version 0.55 and 0.56) and make the necessary changes based on the differences in the two files.

2. If you want to uninstall and re-apply, then replace all of your hacked files with the backup files you were supposed to make when you installed the hack the first time. Then, go in to your database and remove tables that begin with "battle", "items", or "rpg". Next, remove any profile fields you (or the hack) added. Next, delete all templates in your template table that begin with "battle", "itemshop", or "rpg_". Last, remove the added fields from the template "modifyprofile" that were added by the hack. You should then be set to re-apply the hack!

Easy as that!

mli 12-19-2002 12:26 AM

It's not that easy....How are we supposed to tell what files we need to edit? And there's soooo many edits? There is no update file? WHY??!!!


All times are GMT. The time now is 08:47 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.02658 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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