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

Closed Thread
 
Thread Tools
RPG Integration Hack - Old Support Thread Details »»
RPG Integration Hack - Old Support Thread
Version: , by MindTrix MindTrix is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-17-2004 Last Update: Never Installs: 0
 
No support by the author.

Nice conversion there mate, lot of work has gone into it so well done and thanks for sharing it

Show Your Support

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

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

Quote:
Originally Posted by deathemperor
I tested and found two errors:


1st is database error:
you said that you cant make the posting results, so I wonder what is this for

Code:
".TABLE_PREFIX."rpg_battle_options.postresults,".TABLE_PREFIX."rpg_battle_options.battleforum,
it should be removed or when opening rpg.php it will show db error.
one more thing with this script

Code:
LEFT JOIN ".TABLE_PREFIX."user ON ".TABLE_PREFIX."user.userid=$userid
it doesn't understand $userid, if I replace it with 1, it's fine of course, I think the solution is replace $userid with $bbuserinfo['userid'], didn't test yet
This is bogus, because there has been a vital change in the way rpg.php and rpgcp.php acts.

rpg.php is to display the stats of an user, using the arg "?userid=".
rpgcp.php is to display the user browsing the file ONLY.
Why?
Because even if you were not the same user as the user you viewed rpgcp.php for, you would get the "sell" link if he owned an item.
This would either cause you to sell your own item, or create DB errors.

But I have made some small fixes to avoid this sorta thing happening again, I will update the zip.

Quote:
Originally Posted by deathemperor
and:

when I came to clans.php, it show a blank page, came to clans.php?action=view it show a database error ( cant remember, I'm away from my PC).l
This is also bogus, because clans.php is to view a specific clan with the arg "?clanid=".
I have made a similar fix as the above file to prevent this from happening again

Quote:
Originally Posted by deathemperor
and the templates as far as I've seen they weren't well-made, this could be easy changed. The manner things should be verify is the code since I'm not sure what to do when errors occurs.
Please continue to report these holes in the code because I consider them to be
a) annoying
2) spamming the admins email
d) all of the above

And I didnt make the templates, I simply took out the obvious "non-XHTML" stuff in them, and put them in an XML file.
If you know anyone/want to help me with the templates (as requested in the first post), do let me know


Quote:
Originally Posted by deathemperor
The spells, apart from causing HP/MP, is it possible to causes status ?
No, not yet.

Quote:
Originally Posted by deathemperor
I think you should have made it a beta testing board, problems occurs this way it's hard for you to verify --> fix all
You sayin I should create a beta board?
I already do have one, on my localhost and I have this live on my 3.0.3 (currently down btw ), and no errors was found during my test runs.

*zip updated*
  #43  
Old 08-18-2004, 02:26 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
This is bogus, because there has been a vital change in the way rpg.php and rpgcp.php acts.

rpg.php is to display the stats of an user, using the arg "?userid=".
rpgcp.php is to display the user browsing the file ONLY.
I know this, but it doesn't work, that's the case
  #44  
Old 08-18-2004, 02:34 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the rpg.php, it works with the arg ?userid=1
(example)
why I am sure? Because:
a) in the code it says "$userid = $_GET['userid']"
b) it works on all my test runs

and I KNOW the rpgcp.php works because theres no $userid in that code
  #45  
Old 08-18-2004, 02:38 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know, I didn't say rpgcp.php has something wrong, just rpg.php

how about letting me make the template ? I know HDJ I think I can make it at least look like the old vb2 RPG hack.
  #46  
Old 08-18-2004, 02:46 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What template do you mean?
If you mean the rpg.php's template then no because I spent ages on tweaking that file and its template to make it contain all the info the rpgcp.php contains (since I blocked people from viewing the rpgcp of anyone but themselves)
  #47  
Old 08-18-2004, 06:03 PM
SB2002 SB2002 is offline
 
Join Date: Dec 2002
Location: United States
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, i'm having a bit of a problem, only a small one tho, all the rpg names are displaying as the users location as opposed to users name, is there something I am missing here? I've been through the thread 4 times now and can't find anyone else with this problem..... anyone?

EDIT:

I can change the name through the admincp and it sticks, but the when the user edits it is does not change, i have tested this several times now and it keeps doing the same thing. WHen they first create it it takes on their location as their name, and then when you try to edit it after it has been changed through the user edit users function in the rpg section of the admin cp it stays with what the admin set it as, any ideas?

EDIT 2:

Nevermind, i know Read the f**king manual.......

And yes, I actually am an IT technician, we NEVER read the manual, lol
  #48  
Old 08-18-2004, 07:55 PM
Deimos Deimos is offline
 
Join Date: Oct 2002
Posts: 529
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I to can't get the battles to work
I request a battle, I get a PM, so does the other person, when he clicks to approve/confirm it, it says invalid password/battle
But the page before DOES have the correct battle/password in the URL.
  #49  
Old 08-18-2004, 07:58 PM
Dark Dragon Dark Dragon is offline
 
Join Date: May 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deimos
I to can't get the battles to work
I request a battle, I get a PM, so does the other person, when he clicks to approve/confirm it, it says invalid password/battle
But the page before DOES have the correct battle/password in the URL.
Same problem here, I thought it was just me though.
  #50  
Old 08-18-2004, 08:15 PM
Deimos Deimos is offline
 
Join Date: Oct 2002
Posts: 529
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The fix you posted above didn't work for me
When I went to run the sql query..

ALTER TABLE `user` ADD `rpgstats` CHAR(1) NOT NULL DEFAULT '1' AFTER `limitlevel`;

It came up with..

An error occurred while attempting to execute your query. The following information was returned.
error number: 1054
error desc: Unknown column 'limitlevel' in 'user'

And if I now try and save the updated profile/update RPG info page, it says.

Database error in vBulletin 3.0.3:

Invalid SQL: UPDATE user SET element='2', rpgrace='3', alignment='3', rpggender='2', rpgclass='32', rpgtype='0', limitlevel='', rpgstats='0' WHERE userid='1686'
mysql error: Unknown column 'limitlevel' in 'field list'

***************

Edit
I just removed that fix and put the profile.php changes back that were listed in the zip file and it doesn't do it anymore
But I don't then get the option in usercp to choose wether to display stats or not, which is a shame, but I still can't use the battle system
  #51  
Old 08-18-2004, 08:16 PM
SB2002 SB2002 is offline
 
Join Date: Dec 2002
Location: United States
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Dragon
Same problem here, I thought it was just me though.

I'm gettin the same here too
Closed Thread


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:17 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.05699 seconds
  • Memory Usage 2,332KB
  • Queries Executed 26 (?)
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
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete