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)

elricstorm 08-21-2007 09:01 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

The issue is that you have your httpd.include file within your conf directory set with a static path for open_basedir. If you edit the httpd.include file and look for the open_basedir statements (usually a few here - apache and php) and remove them, then restart your server, the issue goes away. I would always create a backup before changing this file. :)

elricstorm 08-21-2007 09:18 PM

Quote:

Originally Posted by Arminios (Post 1289970)
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

The issue is you need to edit cls_warcraft_recruit and perform the following:
Find..
PHP Code:

function setStatus(array $data

and change it to
PHP Code:

function setStatus($data

After that, you'll receive an issue on another file as well: recruit_base.php
Find..
PHP Code:

abstract public function setStatus(array $data); 

and change it to
PHP Code:

abstract public function setStatus($data); 

That should do it for you.

elricstorm 08-21-2007 10:13 PM

Quote:

Originally Posted by turnipofdoom (Post 1314968)
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;">


Actually you shouldn't do that. You need to change it to the homepage + the URL for the cmps page you put it on. So as an example, if you put the update recruitment module on a page called recruitment_updater, in cmps the url would look like such:

yourdomain.com/index.php?pageid=recruitment_updater

So, to properly point the template you would have to change it to (using the page example above):

Code:

<form method="POST" name="recruitment" id="recruitment" action="http://www.yoururl.com/index.php?pageid=recruitment_updater&do=recruit_update" onSubmit="postMethod(); return false;">

elricstorm 08-21-2007 10:15 PM

Otherwise, I like the work you put in this. You did a solid job all the way around although there are some slight coding adjustments you could make to clean it up a bit. I'll still give you a vote of 5. :)

Nice work.

Asteg 08-22-2007 11:17 AM

Is it possible to run this mod with vbCMS ??

DeMented33 08-22-2007 08:19 PM

The actual recruitment module shows perfectly, but I for the life of me just cannot get the updater to show on any page. Any ideas?

Edit: Fixed

Elrum 08-24-2007 11:46 AM

Quote:

Originally Posted by DeMented33 (Post 1323452)
The actual recruitment module shows perfectly, but I for the life of me just cannot get the updater to show on any page.

I've got the same problem. How did you fix it?

manub 09-03-2007 03:26 PM

Still no news about the PHP4 porting? This mod looks great and I really like to use it, but my host uses PHP4 and I can't get it working, nor I have the knowledge to port it.

manub 09-05-2007 05:50 AM

no more update? :(

turnipofdoom 09-07-2007 10:37 PM

Quote:

Originally Posted by elricstorm (Post 1322695)
Actually you shouldn't do that. You need to change it to the homepage + the URL for the cmps page you put it on. So as an example, if you put the update recruitment module on a page called recruitment_updater, in cmps the url would look like such:

yourdomain.com/index.php?pageid=recruitment_updater

So, to properly point the template you would have to change it to (using the page example above):

Code:

<form method="POST" name="recruitment" id="recruitment" action="http://www.yoururl.com/index.php?pageid=recruitment_updater&do=recruit_update" onSubmit="postMethod(); return false;">

$vba_options[portal_homeurl] expands to whatever you set your cmps page to (cmps_index.php by default).

$PHP_SELF should expand to http://www.mydomain.com, however there have been problems with this specific variable and I plan to patch and fix it now.

the goal was to not make people edit the templates by hand, since at that point they need to revert if I send an update.


All times are GMT. The time now is 04:57 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.01255 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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