DLGuard
fully integrated with the major payment systems
Paypal
Clickbank
2checkout
Authorize.Net
Click2Sell
1ShoppingCart
LinkPoint
AlertPay
eBay
PayDotCom
Mal's e-commerce
PagSeguro
CCBill
CommerceGate
DigiResults
FastSpring
JVZoo
MultiSafePay
WorldPay
Plimus
WSO Pro
Paypal Digital Goods
RevenueWire
SWReg
     

[Solved] Wordpress + DLG + Custom Template Pge
Goto page 1, 2  Next
 
Post new topic   Reply to topic    DLGuard Forum Forum Index -> Member's Tips and Tricks!
View previous topic :: View next topic  
Author Message
Judith



Joined: 05 Jun 2008
Posts: 83

PostPosted: Thu Aug 20, 2009 10:18 pm    Post subject: [Solved] Wordpress + DLG + Custom Template Pge Reply with quote

I have such a headache (LOL)

I am creating a wordpress site. Done works perfectly.

I installed DLG. Done works perfectly.

Problem:

I have a page (not post) to download a free product. (yes, it's set up in DLG correctly). I got the code and put it into the wordpress page.

When I look at the page, it does not show the box to input name and email but it does show the dlg code.

After reading this in wordpress docs

http://codex.wordpress.org/Pages#What_Template_is_used_to_Display_a_Particular_Page.3F

Apparently, I need a custom template .php page for my dlg free product code to work in my wordpress page.

Is this correct?

If this isn't correct which I hope because I don't know php, is there an EZ fix?

Judith
_________________
Making the Complicated EZ!
EZ step by step Videos show you how to make
videos, ebooks, ebook covers and audio books
http://www.agoodread.com


Last edited by Judith on Sun Aug 23, 2009 6:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 31 Jul 2005
Posts: 9396
Location: Australia

PostPosted: Thu Aug 20, 2009 11:02 pm    Post subject: Reply with quote

Hi Judith,

Was it just a signup page you're looking to create?

By default, Wordpress doens't allow PHP code to be run in posts or pages.

There are plugins you can get that'll allow the code to run, if you like.

Or, possibly an easier way out is just to create your own page, and upload it to your site, and then just link to that page from your wordpress blog.

Does that make sense?

cheers
Sam
_________________
Sam Stephens
DLGuard: www.dlguard.com
GuardHQ: www.guardhq.com
-------
Keep up to date with DLGuard and other GuardHQ products: www.guardhq.com/newsletter.php
www.twitter.com/DLGuard
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Judith



Joined: 05 Jun 2008
Posts: 83

PostPosted: Fri Aug 21, 2009 8:16 pm    Post subject: Reply with quote

Trouble is Sam I'm not sure I could duplicate the look of my wordpress site and I do want my sign in page to look the same.

I have searched Google, Bing, Wordpress docs and forum and found 5 different php plugins. Found 2 more today.

There seems to be a conflict with your code. Because I can input other php code for a test and it will work.

See the warning I get on:

http://www.ezmanifesting.com/test

There must be someone on this forum that knows what that warning is and how I can fix it.

Judith
_________________
Making the Complicated EZ!
EZ step by step Videos show you how to make
videos, ebooks, ebook covers and audio books
http://www.agoodread.com
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 31 Jul 2005
Posts: 9396
Location: Australia

PostPosted: Sun Aug 23, 2009 12:02 am    Post subject: Reply with quote

Hi Judith,

It seems it's actually working, but the trouble is the redirection after signup.

After signing up, you're sent to:

http://ezmanifesting.com/test/dlg/download.php?r=f1250985607&p=1

This is the URL DLGuard is detecting - probably to do with SEO URLs in your wordpress blog.

That URL is right except for the "test/" folder, which should be there.


Can you try doing this quickly on your main site, put a signup form here:

http://ezmanifesting.com/

This then may work!

cheers
Sam
_________________
Sam Stephens
DLGuard: www.dlguard.com
GuardHQ: www.guardhq.com
-------
Keep up to date with DLGuard and other GuardHQ products: www.guardhq.com/newsletter.php
www.twitter.com/DLGuard
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Judith



Joined: 05 Jun 2008
Posts: 83

PostPosted: Sun Aug 23, 2009 3:14 am    Post subject: Reply with quote

Sam,

It's not a folder. The page is called Test in Wordpress. And the permalink uses domain name with %postname%

or to be more exact:

http://www.ezmanifesting.com/test



So how to I change my pages to have an extension that DLG understands?

Judith
_________________
Making the Complicated EZ!
EZ step by step Videos show you how to make
videos, ebooks, ebook covers and audio books
http://www.agoodread.com


Last edited by Judith on Sun Aug 23, 2009 2:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
espradley
Moderator


Joined: 29 Nov 2008
Posts: 844
Location: USA - Georgia

PostPosted: Sun Aug 23, 2009 4:44 am    Post subject: .. Reply with quote

Hey Judith,

It looks like wordpress is tricking the PHP code to thinking its in another directory. I would have to review your code to be sure, but try the following:

Code:
<?php
 
  if(!$_POST['SubmitEmail']){
  $pathToCBDM = "dlg/";
  }
  else {
  $pathToCBDM = "../dlg/";
  }
 
  $cbdmProduct = 6;
  include ($pathToCBDM."cbdm.php");
?>


Make sure you change $cbdmProduct=6 to the correct product number!

Good luck!
_________________
Eddie Spradley - DLGuard Moderator and PHP Developer
www.dlgadvance.com
Free WordPress DLGuard Membership Plugin (limited time) - http://dlgadvance.com/products/dlguard-wordpress-membership-plugin/
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Judith



Joined: 05 Jun 2008
Posts: 83

PostPosted: Sun Aug 23, 2009 2:11 pm    Post subject: Reply with quote

Eddie,

Sorry that didn't work either and yes I changed the product number Smile

Still have the same Warning error in right sidebar:

http://www.ezmanifesting.com/test/

I tried it with all 3 php plugins.

Open to a lot more suggestions,

Judith
_________________
Making the Complicated EZ!
EZ step by step Videos show you how to make
videos, ebooks, ebook covers and audio books
http://www.agoodread.com
Back to top
View user's profile Send private message
Judith



Joined: 05 Jun 2008
Posts: 83

PostPosted: Sun Aug 23, 2009 2:38 pm    Post subject: Reply with quote

I changed the permalink from %postname% to %post_id% and now the picture shows up but the warning is still there.

http://www.ezmanifesting.com/test

Although I think the sign up box is too large for the area and the reason the top is wonky.

And when I put a test name in the sign up box, I get this:

Warning: Unknown(../dlg/cbdm.php): failed to open stream: No such file or directory in /var/www/EZManifesting/wp-content/plugins/php-execution-plugin/includes/class.php_execution.php(273) : eval()’d code on line 11

Warning: (null)() [function.include]: Failed opening ‘../dlg/cbdm.php’ for inclusion (include_path=’.:/usr/lib/php’) in /var/www/EZManifesting/wp-content/plugins/php-execution-plugin/includes/class.php_execution.php(273) : eval()’d code on line 11

Judith
_________________
Making the Complicated EZ!
EZ step by step Videos show you how to make
videos, ebooks, ebook covers and audio books
http://www.agoodread.com


Last edited by Judith on Sun Aug 23, 2009 2:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
espradley
Moderator


Joined: 29 Nov 2008
Posts: 844
Location: USA - Georgia

PostPosted: Sun Aug 23, 2009 2:40 pm    Post subject: .. Reply with quote

Hey Judith,

I researched the issue and the error your getting usually means that the DB info is incorrect. So in your case, I think that DLguard and Wordpress are using the same db variables at some point and this is causing a clash.

The easiest way to fix this is to use a pop up window or an inline frame to display the free download section.

If you wanted to try something a little harder you could probably change the DB variables for WP. You may have to setup the variables that you create as globals.
_________________
Eddie Spradley - DLGuard Moderator and PHP Developer
www.dlgadvance.com
Free WordPress DLGuard Membership Plugin (limited time) - http://dlgadvance.com/products/dlguard-wordpress-membership-plugin/
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
espradley
Moderator


Joined: 29 Nov 2008
Posts: 844
Location: USA - Georgia

PostPosted: Sun Aug 23, 2009 2:44 pm    Post subject: .. Reply with quote

Another idea that may work is that you create a custom form with those details in it and post it to a page that has the code in it and name it something like freeproduct.php

So create a php file with the code in it (not the one I gave you but the one that dlguard gives you) and put this form on the page you desire.

Code:
<form name="form1" method="post" action="freeproduct.php">
<input name="cbdmName" type="text" id="cbdmName" value=""><input name="cbdmEmail" type="text" id="cbdmEmail" value="">
<input name="cbdmEmailRepeat" type="text" id="cbdmEmailRepeat" value="">
<input name="cbreceipt" type="hidden" value="Free download">
<input type="submit" name="SubmitEmail" value="Submit">
</form>


Make sure you change the action of the form to post to the php page you created with the DLGuard code in it.

I have no idea if this will work or not, but it should.
_________________
Eddie Spradley - DLGuard Moderator and PHP Developer
www.dlgadvance.com
Free WordPress DLGuard Membership Plugin (limited time) - http://dlgadvance.com/products/dlguard-wordpress-membership-plugin/


Last edited by espradley on Sun Aug 23, 2009 4:56 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Judith



Joined: 05 Jun 2008
Posts: 83

PostPosted: Sun Aug 23, 2009 2:47 pm    Post subject: Reply with quote

I'll try the pop up window approach and see if that might work. Thanks for the idea.

Judith
_________________
Making the Complicated EZ!
EZ step by step Videos show you how to make
videos, ebooks, ebook covers and audio books
http://www.agoodread.com
Back to top
View user's profile Send private message
Judith



Joined: 05 Jun 2008
Posts: 83

PostPosted: Sun Aug 23, 2009 3:29 pm    Post subject: Reply with quote

OK the form worked!!!!!!!!!!!!!!!!!!!!!!

Thank you Eddie!

I am such a happy camper Laughing

Judith
_________________
Making the Complicated EZ!
EZ step by step Videos show you how to make
videos, ebooks, ebook covers and audio books
http://www.agoodread.com
Back to top
View user's profile Send private message
espradley
Moderator


Joined: 29 Nov 2008
Posts: 844
Location: USA - Georgia

PostPosted: Sun Aug 23, 2009 4:07 pm    Post subject: .. Reply with quote

Awesome Judith. I am so glad it worked for you!
_________________
Eddie Spradley - DLGuard Moderator and PHP Developer
www.dlgadvance.com
Free WordPress DLGuard Membership Plugin (limited time) - http://dlgadvance.com/products/dlguard-wordpress-membership-plugin/
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
espradley
Moderator


Joined: 29 Nov 2008
Posts: 844
Location: USA - Georgia

PostPosted: Sun Aug 23, 2009 4:09 pm    Post subject: .. Reply with quote

oh - and it looks awesome on your sidebars like that!
_________________
Eddie Spradley - DLGuard Moderator and PHP Developer
www.dlgadvance.com
Free WordPress DLGuard Membership Plugin (limited time) - http://dlgadvance.com/products/dlguard-wordpress-membership-plugin/
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Judith



Joined: 05 Jun 2008
Posts: 83

PostPosted: Sun Aug 23, 2009 4:34 pm    Post subject: Reply with quote

Ok Eddie,

We have a slight problem. I put the .php files on my server for each free product with the correct product numbers in the code

When testing Train Your Brain in left side bar, it will give me download page.

Creative IQ when I fill in the sidebar tells me I didn't fill out all the fields. I did but its trying to go to Train Your Brain download page

CLt on the right sidebar gives me the Train Your Brain download page??

I thought it might be that the Form was conflicting so I named them Form 1, Form 2, Form 3 in the code you provided but that didn't help either.

We are getting closer to a solution Smile

http://www.ezmanifesting.com

Judith
_________________
Making the Complicated EZ!
EZ step by step Videos show you how to make
videos, ebooks, ebook covers and audio books
http://www.agoodread.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DLGuard Forum Forum Index -> Member's Tips and Tricks! All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group