1
Advertisers Signup / Using OpenX Plugin With WordPress
« Last post by btdsoft on May 15, 2012, 11:27:26 PM »I get asked in email often on integrating the RevMax enrollment pages with a wordpress theme. As it is a "OpenX Plugin", and not a word press plugin it is not as simple as one would think, but can be done.
First if you have the encrypted source, there is no way of changing the images url for paypal or other payment processor, so you must include the images directory or create one with the image you wish to use above the signup form. This can be done as in the current OpenX Plugin /clients/images, enroll/images, whatever you choose to use, but it must remain "images". You can then determine what image you are trying to replace by viewing source or other method and simply overwrite it with your new file of the same name.
No matter where the signup page is, as long as there is a /images folder above it, with a image correctly named, it will show.
Be warned you cant forward a signup through a word press page or post, RevMax is not a word press plugin. The best you will accomplish is a popup and I don’t believe it will look nice or paypal will accept it.
The way to do it in word press is use your wp template on the form, and use the
"page-links-to" plugin and then the signup page is still in its own directory, with a
images folder, like "mydomain/enroll/advertisers.php"
To do this you can simply create a new page in your wp, then go to it > right click> view source> save as template.php or whatever. You can then strip out what you dont want or not and insert the signup form in the content area of the new page or post you created for a template. (dont forget to delete it after you have the source). You must also include the css files and the wforms files unless you are doing your own error messages.
To include the form(s) in any php page simply use a include_once statement such as bellow.
twentyeleven example:
You must also make sure the include paths are correct at the top of advertisers.php
If these files are not properly included, the form or functions will not work.
Hope that helps for any of you stuck out there.
First if you have the encrypted source, there is no way of changing the images url for paypal or other payment processor, so you must include the images directory or create one with the image you wish to use above the signup form. This can be done as in the current OpenX Plugin /clients/images, enroll/images, whatever you choose to use, but it must remain "images". You can then determine what image you are trying to replace by viewing source or other method and simply overwrite it with your new file of the same name.
No matter where the signup page is, as long as there is a /images folder above it, with a image correctly named, it will show.
Be warned you cant forward a signup through a word press page or post, RevMax is not a word press plugin. The best you will accomplish is a popup and I don’t believe it will look nice or paypal will accept it.
The way to do it in word press is use your wp template on the form, and use the
"page-links-to" plugin and then the signup page is still in its own directory, with a
images folder, like "mydomain/enroll/advertisers.php"
To do this you can simply create a new page in your wp, then go to it > right click> view source> save as template.php or whatever. You can then strip out what you dont want or not and insert the signup form in the content area of the new page or post you created for a template. (dont forget to delete it after you have the source). You must also include the css files and the wforms files unless you are doing your own error messages.
To include the form(s) in any php page simply use a include_once statement such as bellow.
twentyeleven example:
Code: [Select]
<div id="main">
<div id="primary">
<div id="content" role="main">
<?php include_once ' advertisers.php';?>
</div><!-- #content -->
</div><!-- #primary -->
</div><!-- #main -->
You must also make sure the include paths are correct at the top of advertisers.php
Code: [Select]
<!--Start signup-->
<?php
//init tells us where we are at
require_once '../init.php';
// nothing works without functions
require_once MAX_PATH . '/www/admin/plugins/RevMax/lib/RevMax.functions.php';
require_once MAX_PATH . '/www/admin/plugins/RevMax/lib/PaymentRouter.php';
// clients language is editable or edit all text here and remove call.
include'clients.lang.php';
If these files are not properly included, the form or functions will not work.
Hope that helps for any of you stuck out there.
Recent Posts

