vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   RPG Integration Hack (https://vborg.vbsupport.ru/showthread.php?t=108790)

Ziki 04-04-2006 06:39 AM

Quote:

Originally Posted by Kingzor
Code:


Parse error: syntax error, unexpected T_STRING, expecting '(' in /xxx/xxx/public_html/vbull/admincp/rpg_maintenance.php on line 394

went to goto do "Maintenance" and got this error.


Code:

                        else if (in_array($cachename, array('items')))
works


but still getting

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

                                        UPDATE `rpg_user`
                                        SET `items` = '',
                                                `inventory` = '';

MySQL Error  : Unknown column 'items' in 'field list'
Error Number : 1054
Date        : Monday, April 3rd 2006 @ 09:53:03 PM
Script      : http://www.hiberniagaming.net/vbull/admincp/rpg_maintenance.php
Referrer    : http://www.hiberniagaming.net/vbull/admincp/rpg_maintenance.php
IP Address  : xxxxxx
Username    : King
Classname    : vb_database

when i tried resetting items.



Run the SQL query in mysql-scheme.php to remake the items

Revan 04-04-2006 08:02 AM

Nah its just a code error in that batch.
PHP Code:

            else if (in_array($cachename, array('items')))
            {
                
// items aren't in user table
                
$db->query_write("
                    UPDATE `" 
TABLE_PREFIX "user`
                    SET `items` = '',
                        `inventory` = ''
                "
);
            } 

That's what happens when you code when in a rush...
I dont think I cba to fix this until I done some other features, all these non-content updates are becoming tiring :p

cayote 04-04-2006 10:31 AM

Just the error:

Parse error: parse error, unexpected T_STRING, expecting '(' in /homepages/26/d1xxxxx824/htdocs/forum/admincp/rpg_maintenance.php on line 394

Otherwise everything seems to work fine...oh..inventory...is that not operational? Clicking on it just gets a page not found error.

Thanks

Revan 04-04-2006 10:34 AM

Edited the code, small mistake.
And no, the Inventory isn't done yet.

cayote 04-04-2006 10:38 AM

Ok..thx for quick reply...so I just paste that code you posted above over what's already in there? (Sorry, kinda newbish at this)

NEVERMIND....I did it and now it works...Thanks again, great game!

Ziki 04-05-2006 11:19 AM

Revan how to unpopulate the tables?I deleted the tables it create but I don't know how to unpopulate

Solitary Seraph 04-05-2006 11:57 AM

Did you run the uninstall.php that comes in the installer folder?

Ziki 04-05-2006 01:28 PM

I don't have the RPG installed anymore so there is no use.I just wanna know how to unpopulate tables....

Revan 04-05-2006 07:17 PM

I do not support methods of removal other than the uninstall.php.

Update 3 released
This takes care of a small problem with the Maintenance functions, file gave a parse error.
And since I hate to increment version numbers without actually adding something, I took care of what used to be #4 in the Known Issues list. User are now able to Reset their RPG Info by clicking the Reset radio button in their Headquarters, then confirm this action before it's finally reset.

What it does:
* Reset everything users chose in the Create Character.
* Reset Battle Statistics.
* Gives the admin the option of resetting Money and/or Items (Equipped as well as Inventory).

What it does not:
* Delete the Clan the user was in. Reason for this is because for larger boards with larger clans, just disbanding the clan might not be a good option. I will make something out of this later.

Revan 04-05-2006 07:33 PM

Whoops... A bit too pre-emptive with the AdminCP Maintenance fix, seems like the file wasn't properly added to the zip.
Fixed now, hopefully not too many downloaded.


All times are GMT. The time now is 07:55 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.01761 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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