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

Reply
 
Thread Tools
Merged Headquarters and RPGCP Details »»
Merged Headquarters and RPGCP
Version: , by Chief Corn Chief Corn is offline
Developer Last Online: Jan 2018 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-06-2005 Last Update: Never Installs: 0
 
No support by the author.

i know rpg v3.0 is still in beta, but i figured template calls should relatively stay the same. well i never had any reason to use the RPGCP, and with the rpg options now seperated from the user cp I thought i'd try to merge the two for my site.

i'm sure there's an easier way to do this like how it calls global.php but i don't know php, so i just took all the code in rpgcp.php and inserted into headquarters.php. since my site already has a navigation menu for the rpg, i replaced the location menu in headquarters with the stats from rgpcp into that table. not sure if there's any security problems or exploits doing this though..

here's a demo...

site: http://www.TreeThugs.com /forum/headquarters.php
user: vBorg
pass: test

the html is a bit messy since it was done in notepad. i'm still trying to find a place to put items. but the nice thing is when you update your character you can view your new stats from the same page.

i'll share the template with everyone once rpg 3.0's close to finalizing, since it requires combining rpgcp.php and headquarters.php...and i'm sure those files are still being tweaked.


other attempts: i'm trying to bring the Top 10 Player stats and the Browse Battles page into the main Battles login page for a more integrated feel.

Show Your Support

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

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

DeMiNe0 just mentioned this to me here the other day, so it should definetely be possible.
And yes, the template calls and major parts of the coding will stay the same for v3 Final, since all there is left to it is weed out bugs and complete the Monster Arena, which is a seperate file and does not require editing of any other files than admincp/index.php

I just took a look at your file, and it looks cool indeed
I think the items should be placed below everything you have so far, because since admins can add more item categories at will, it would be bad if the items were placed somewhere else thus maybe stretching the page.
Reply With Quote
  #3  
Old 03-06-2005, 11:02 AM
Chief Corn Chief Corn is offline
 
Join Date: Nov 2002
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks glad you like it. i updated the template with items in the bottom. i believe this is the first hack for 3.0? :nervous:

this is made for rpg 3.0 beta 2... so i can't guarantee it will work for future releases. also it was made for a fixed width 800x600 site...not sure how it looks in liquid (aka %).

attached i have my modified rpg_modifyrpg template to use with the combined rpgcp.php/headquarters.php file. not sure if i left anything hardcoded. everything "looks" fine when i view it in firefox...but i know the tables are screwed, and w3c is going to cry. just replace everything in your rpg_modifyrpg template with mine, and upload this headquarters.php into your forum. remember to back up. also change any links that point to rpgcp.php to headquarters.php.

i don't have enough users to have clans so i removed the option for it. and since i'm using a modified postbit i didn't have a need for the option on how to display stats in the postbit. PP isn't used at the moment so i removed it as well. in the 3rd file "removed_bits" is instructions on how to put them back in.

enjoy.
Attached Files
File Type: (21.3 KB, 9 views)
File Type: (21.3 KB, 9 views)
File Type: (21.3 KB, 6 views)
Reply With Quote
  #4  
Old 03-06-2005, 11:28 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes PP will be coming back, for Summons and Weapon Skills if I get around to doing those.
I'll tes those abit later, right now its KotOR II time
Thanks

Hm ok now testing it, and I see the table widths are abit off.
First of all let me say Im running 1280x1024
The Character Information and Create Character bits are abit wider than the header saying RPG Information.
Secondly, when first entering headquarters, the Character Battle Type is blank, it won't show itself until I select (not choose) a different class then go back.
I'm gonna attempt to fix both these bugs myself, then go wipe w3c's tears

Weird... the Battle Type thingy seems to work fine on my live forum yet not on my localhost
Reply With Quote
  #5  
Old 03-06-2005, 03:44 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah bugger, nice work, but alot of hardcoded font colors and widths

I'll try to find some time this week to change those to $stylevar, unfortunately I have about 7 or 8 skins on my site so having any colors hardcoded always makes one style look like crap :P
Reply With Quote
  #6  
Old 03-06-2005, 04:17 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Cyrix, you shouldnt work on that template
I have fixed it all.
Here's the revamped one, attached

Thanks for all your work, both o ye


Oh, and general update:
I reduced the query load in the new file by 3, so it is back down to an acceptable level.
I will look it over again later too
Attached Files
File Type: (21.3 KB, 11 views)
Reply With Quote
  #7  
Old 03-06-2005, 04:49 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome!! Thanks tons!!
Reply With Quote
  #8  
Old 03-06-2005, 07:35 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Btw when you are done "vBising" it, you gonna make it XHTML compliant?
Because if you cant be bothered, then I *can* do it lol.
Reply With Quote
  #9  
Old 03-06-2005, 09:50 PM
Chief Corn Chief Corn is offline
 
Join Date: Nov 2002
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i won't really be doing much else to the compliancy of this template...using notepad from a 30" widescreen hdtv drives me crazy. wasn't thinking about the query load this template would pull...what was removed from the updated template? feel free to revise it any...i'm pretty much content with the look and feel of it on my site.
Reply With Quote
  #10  
Old 03-07-2005, 06:44 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I fixed: Remember how the Character image and level stats would be pushed down, like there was a <td> with an nbsp in there?
I moved that up, and cleaned the 4 nested tables that were used to provide the first thead class info line.
I'll go make a SS of the new one, then update this post

Erm the new template looks quite fkd up in IE, I redesigned it on Firefox.
In short, bugger...
Reply With Quote
Reply


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 05:38 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.06949 seconds
  • Memory Usage 2,317KB
  • Queries Executed 24 (?)
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
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete