vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Portal Software - MMO Recruitment (EQ, EQ2, LotR, Vanguard, WoW, Matrix Online, SWG, FFO) (https://vborg.vbsupport.ru/showthread.php?t=150449)

turnipofdoom 07-07-2007 01:50 AM

zip file was updated, this should fix your SQL error above, as well as some template issues all around. additionally we added everquest to the package so people can use it for that now. all templates use the module shell template. so setting a link, collapsing and what not can be set to defaults.

Arminios 07-13-2007 01:45 PM

Quote:

Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /home/victrixg/public_html/forum/modules/cls_warcraft_recruit.php on line 26
I installed it like I were supposed to, but got this up when trying to access my page afterwards.

Anyone know what's wrong? Latest version of vBulletin and CMPS

impreza 07-20-2007 08:01 AM

Parse error: parse error, unexpected T_ARRAY, expecting ')' in /homepages/1/d143342951/htdocs/vb367/modules/cls_warcraft_recruit.php on line 26

I followed the directions to the T. That's the error I get. I've tried fresh installs, and tried all of the different cls_game_php files.

Unless I just keep missing it, I'm not sure where the problem is exactly.

Let me clarify too, that the error only occurs when I add the "Recruitment" module on the portal page. If I remove it, I can see the portal page again.

Also, the module for "Updating Recruitment" causes no issues if I add it to the portal page.

turnipofdoom 07-20-2007 08:23 AM

Quote:

Originally Posted by impreza (Post 1296339)
Parse error: parse error, unexpected T_ARRAY, expecting ')' in /homepages/1/d143342951/htdocs/vb367/modules/cls_warcraft_recruit.php on line 26

I followed the directions to the T. That's the error I get. I've tried fresh installs, and tried all of the different cls_game_php files.

Unless I just keep missing it, I'm not sure where the problem is exactly.

Let me clarify too, that the error only occurs when I add the "Recruitment" module on the portal page. If I remove it, I can see the portal page again.

Also, the module for "Updating Recruitment" causes no issues if I add it to the portal page.

I've seen these parse errors before with GZIP compression or output buffering (ob_begin() calls somewhere else) enabled.

line 26 in all the cls_*_game files is a function definition.
i've gone through the cls files in this zip here to make sure there are no parse errors. Zend Studio and my own web server run these just fine..

Do either of you guys have gzip enabled in the vbulletin options ?

can you guys email me the files you have sitting on your server jzakhar at gmail dot com ? I wonder if control characters are being added, how are you copying them to the web server? ?

impreza 07-20-2007 04:40 PM

Sorry for the late reply. just got a chance to break away to get on the PC.

Yeah, last night when I was up late working on this, I didn't happen to see anything wrong with your code, I was really tired though.

Right now my VB forum has it's GZIP set to 1, enabled, as the default option. I haven't tried installing this addon with it set to 0, but I can give it a try.

I had been uploading the files set on auto from my FTP program, but I can also try that in ascii for the php & other non-image files if you'd prefer.

I'll try that first and if it's no dice, I'll send you the files.

turnipofdoom 07-20-2007 05:46 PM

yeah I would start with that, if in fact it is a gzip issue (totally disable it). Then I will look into fixing it, otherwise. I will send ya a new file with some debug print statements and debug_stacktrace() calls to see what is going on.

impreza 07-20-2007 06:53 PM

Alright, just had a chance to try everything with gzip disabled and still no luck. :( I've enclosed all the files (other than the images) that your package contains, from my webhost.

My host is running PHP 4.4.7 with Zend 1.3. If you need any other server info, I can supply that if it would help. For some reason I'm beginning to think it might be some setting my host has setup that's causing the altercation. I'm not extremely savvy on all of that though.

Sorry for all this trouble. =/ This is an awesome addon though.

Finger78 07-20-2007 08:21 PM

I'm having a small issue, I got everything installed and what appears to be working. I'm using the WoW portion of the hack

Prior to putting in the code for the Ajax when I would try and update the numbers in the Updater after hitting the submit button it would simply load me to my main website page (not the forums, but my default home page). And it would not update the numbers at all, they stayed at 1 for all

After placing in the Ajax code the updater seems to work properly and updates the numbers but those numbers dont reflect in the viewable module for the general public/users. They all still say 1 next to each class.

Any ideas on how to fix this?

turnipofdoom 07-20-2007 11:33 PM

Quote:

Originally Posted by impreza (Post 1296809)
Alright, just had a chance to try everything with gzip disabled and still no luck. :( I've enclosed all the files (other than the images) that your package contains, from my webhost.

My host is running PHP 4.4.7 with Zend 1.3. If you need any other server info, I can supply that if it would help. For some reason I'm beginning to think it might be some setting my host has setup that's causing the altercation. I'm not extremely savvy on all of that though.

Sorry for all this trouble. =/ This is an awesome addon though.


oh PHP 4 are you positive of that ? if so there is the problem, no support for abstract classes.

damnit... maybe i should redo this for php4 support... too many ppl still seem to be running it.

turnipofdoom 07-20-2007 11:40 PM

Quote:

Originally Posted by Finger78 (Post 1296870)
I'm having a small issue, I got everything installed and what appears to be working. I'm using the WoW portion of the hack

Prior to putting in the code for the Ajax when I would try and update the numbers in the Updater after hitting the submit button it would simply load me to my main website page (not the forums, but my default home page). And it would not update the numbers at all, they stayed at 1 for all

After placing in the Ajax code the updater seems to work properly and updates the numbers but those numbers dont reflect in the viewable module for the general public/users. They all still say 1 next to each class.

Any ideas on how to fix this?

After you use the AJAX update form. the values in the form show the updated numbers? but the display module doesnt? you should just have to refresh ;p since AJAX is doing it in the background with no page reload.

unless i am mis-understanding

Finger78 07-21-2007 12:27 AM

refresh doesnt do anything......

Now that i had it closed for a while the updater numbers reverted back to all 1's, again i changed it and it said it was updated but the numbers in the public module still wont update.

Refresh still does nothing...

turnipofdoom 07-21-2007 12:31 AM

that is kind of odd.. can i get a link to the place its installed ?

you said the values stayed updated in the form but did not display properly in the public module right ?

Finger78 07-21-2007 01:40 AM

it updates at first, but once the page is closed then it reverts back.

turnipofdoom 07-21-2007 06:47 AM

Quote:

Originally Posted by Finger78 (Post 1297052)
it updates at first, but once the page is closed then it reverts back.

ok, it looks like you are gonna need to change every reference of index.php to portal.php.
there should be one in the adv_portal_warcraft_updater and one in the javascript file.

that should fix your problem, I think.

the template change:
Code:

<form method="POST" name="recruitment" id="recruitment" action="$PHP_SELF/index.php?do=recruit_update" onSubmit="postMethod(); return false;">
to

Code:

<form method="POST" name="recruitment" id="recruitment" action="$PHP_SELF/portal.php?do=recruit_update" onSubmit="postMethod(); return false;">
and in mmoRecruit.js

Code:

var url = "index.php";
to

Code:

var url = "portal.php";
this is the cmps_index.php renamed right ?

impreza 07-21-2007 04:28 PM

All the kinks have been worked out! My old / outdated php version & such was the cause of the compatibility problems.

Turnipofdoom, the author, worked with me on it, and got everything to work as it intended on the system. The time he spent helping me and working on this is awesome.

I strongly recommend this addon. Not only is it unique and useful for those running a VB portal for group / mmo gaming, but he provided me with patience & very fast support.

Thanks again Turnip. :)

turnipofdoom 07-21-2007 04:31 PM

Quote:

Originally Posted by impreza (Post 1297494)
All the kinks have been worked out! My old / outdated php version & such was the cause of the compatibility problems.

Turnipofdoom, the author, worked with me on it, and got everything to work as it intended on the system. The time he spent helping me and working on this is awesome.

I strongly recommend this addon. Not only is it unique and useful for those running a VB portal for group / mmo gaming, but he provided me with patience & very fast support.

Thanks again Turnip. :)

Thank you so much for the praise.. And it was my pleasure. However lets change he to "she" please =)

But all in all this gave me some ideas to back port this to php4. Which I think I am going to do.

Phr057 07-23-2007 07:37 AM

Sigh I feel dumb. I can't fuigure out where the link is to change the classes needed... I have "Set Groups Who Can Edit" to the defaulted admin groups "6,7,5"

I'm the site admin/super admin so I shouldn't have a edit issue...

turnipofdoom 07-23-2007 08:49 AM

It is a second module, so you need to use the vBa CMPS menu, create a module, and display it on a page.

Instructions for doing so are below Create the Update vBa CMPS Module:

Phr057 07-23-2007 09:19 AM

Thank you.

Bro_Joey_Gowdy 07-31-2007 07:56 PM

Can you add SWG (Star Wars Galaxies) and MxO (The Matrix Online) to this?

cosy 08-01-2007 12:45 PM

can u add eve-online using api ? https://myeve.eve-online.com/api/doc/data-charsheet.asp :confused:

shadowhaxor 08-04-2007 06:34 PM

Darn. I've been looking for a mod like this for a while, but when I try to install this, right after I make the display module, I get the following;

Warning: main() [function.main]: open_basedir restriction in effect. File(/warcraft_recruit.php) is not within the allowed path(s): (/var/www/vhosts/providence-alleria.com/httpdocs:/) in /modules/init_recruit.php on line 31

Warning: main(warcraft_recruit.php) [function.main]: failed to open stream: Operation not permitted in /modules/init_recruit.php on line 31

Fatal error: main() [function.require]: Failed opening required 'warcraft_recruit.php' (include_path='.:') in /var/www/vhosts/providence-alleria.com/httpdocs/modules/init_recruit.php on line 31

turnipofdoom 08-04-2007 10:31 PM

Quote:

Originally Posted by Bro_Joey_Gowdy (Post 1306431)
Can you add SWG (Star Wars Galaxies) and MxO (The Matrix Online) to this?

Sure thing. Give me a few days

turnipofdoom 08-04-2007 10:35 PM

Quote:

Originally Posted by cosy (Post 1307066)
can u add eve-online using api ? https://myeve.eve-online.com/api/doc/data-charsheet.asp :confused:

I am not sure I totally follow. There are no user submitted fields. That API returns a characters information if you provide the account key, the API hash (that EVEMON uses), and then your character ID. You get back information like EVEMON would return.

Two things:

I dont ever ask for a users input.
I couldnt release something like this w/o a ton of checking/validation. We are talking someone's account info here (especially if they provide the full access key).

turnipofdoom 08-04-2007 10:36 PM

Quote:

Originally Posted by shadowhaxor (Post 1309812)
Darn. I've been looking for a mod like this for a while, but when I try to install this, right after I make the display module, I get the following;

Warning: main() [function.main]: open_basedir restriction in effect. File(/warcraft_recruit.php) is not within the allowed path(s): (/var/www/vhosts/providence-alleria.com/httpdocs:/) in /modules/init_recruit.php on line 31

Warning: main(warcraft_recruit.php) [function.main]: failed to open stream: Operation not permitted in /modules/init_recruit.php on line 31

Fatal error: main() [function.require]: Failed opening required 'warcraft_recruit.php' (include_path='.:') in /var/www/vhosts/providence-alleria.com/httpdocs/modules/init_recruit.php on line 31

Looks like you might be in safe_mode for php, or some odd restrictions in place.. Do you have shell access to the server? This can probably be fixed, it would just take some troubleshooting... Can you email me the output of

Code:

<?php

phpinfo();

?>

and we will see what we can do

cosy 08-08-2007 03:22 PM

Quote:

Originally Posted by turnipofdoom (Post 1309946)
I am not sure I totally follow. There are no user submitted fields. That API returns a characters information if you provide the account key, the API hash (that EVEMON uses), and then your character ID. You get back information like EVEMON would return.

Two things:

I dont ever ask for a users input.
I couldnt release something like this w/o a ton of checking/validation. We are talking someone's account info here (especially if they provide the full access key).

well the API waz made for that is a secure acces on character (basic api) so when some on make apply put the API and u track the caharacter skills and that save alot of time and u dont need to request screen shots

Mother_Dee 08-08-2007 09:55 PM

I think you're looking for the wrong mod. If you want an application form, you can look at the one here or the Form Hack that it's based off of.

This hack is a vBadvanced module that shows what classes are being recruited in an MMO.

Consequently, I've been working on the addition of MxO, FFXI, and SWG per requests. Should be ready for testing soon.

Big9erFan 08-08-2007 10:47 PM

[S]Any chance of a quick listing of things ( or types of things ) that need to be changed to run on PHP4?

I'd really love to use this module on my WoW site :)

Thanks in advance.[/S]

Nevermind I got it working :) and it ROCKS

turnipofdoom 08-10-2007 11:07 PM

Quote:

Originally Posted by Big9erFan (Post 1313132)
[S]Any chance of a quick listing of things ( or types of things ) that need to be changed to run on PHP4?

I'd really love to use this module on my WoW site :)

Thanks in advance.[/S]

Nevermind I got it working :) and it ROCKS

no kidding ? any chance of getting a diff, or the files you edited? I assume you whacked the abstract class ?

Mother_Dee 08-10-2007 11:58 PM

Added SWG, MxO, and FFXI games, fixed some minor bugs in existing templates. Classes were based off what I was given, as I don't play these three MMOs please advise if class structure differs from what I have added.

Enjoy!

Big9erFan 08-11-2007 12:18 AM

Oh yeah I hacked the hell out of the abstracts and moved it all to one warcraft recruit class. I was in the process of moving stuff back to the base class, for extensibility, when I ran out of "free" time and had to get back to real work.

I'll post my changes later for "integration"

Phr057 08-11-2007 12:55 AM

Getting this error when I installed your new version. i unstalled the whole thing until it get's fixed:

Code:

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT enabled, game FROM vb_game_rec_settings;

MySQL Error  : Table 'ggvb.vb_game_rec_settings' doesn't exist
Error Number : 1146


turnipofdoom 08-11-2007 02:14 AM

do you have $config['Database']['tableprefix'] set to vb_ in forum/includes/config.php ?

Phr057 08-11-2007 03:21 AM

Thank you turnip for the excellent module and thank you so much for helping me figure out why the damn thing wasn't working ;p.

Hopefully you can use what was worked on and update it again for anyone else who seemed to have some of the problems I had.

Again, thank you and keep up the excellent work. (And get some sleep)

turnipofdoom 08-11-2007 03:26 AM

in reference to the above post, there were two problems

if you are below mysql5 you need to remove ENGINE=MYISAM from the XML and from ap_recruit_functions.php

Also in some cases (i have no idea why) $PHP_SELF is an issue, if it is, you will need to open your template for the game you're using adv_portal_GAME_recruit_updater

change

Code:

<form method="POST" name="recruitment" id="recruitment" action="$PHP_SELF/$vba_options[portal_homeurl]?do=recruit_update" onSubmit="postMethod(); return false;">

to

<form method="POST" name="recruitment" id="recruitment" action="http://www.yoururl.com/$vba_options[portal_homeurl]?do=recruit_update" onSubmit="postMethod(); return false;">


Phr057 08-11-2007 03:37 AM

Another thing before I go to bed. I was able to contact PowWeb and they are in the process of upgrading all of their MySQL servers to version 5.xx.

Is that going to be a problem for me with the work yo have done?

Mother_Dee 08-11-2007 06:15 PM

It won't be a problem.

^.^

Forumi Shqiptar 08-19-2007 12:42 AM

what about tribalwars any chance that can be done something like this for that game too?

turnipofdoom 08-19-2007 12:46 AM

looking at this page http://tw9ha.tribalwars.net/help.php?mode=units . I am sure something could be done, would you mind providing a list of player types (classes etc) or something for me to work off of ?

Forumi Shqiptar 08-19-2007 01:32 AM

well basically the game is separated into world and each world has got his own players...

The best information about players, tribes etc can be found on http://www.twplus.org/


All times are GMT. The time now is 05:54 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.01352 seconds
  • Memory Usage 1,843KB
  • 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
  • (7)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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