latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Luis Caraballo

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
CLICKBANK BUTTON HACK – (another instalation)

By:  Luis Caraballo in: Community Forum

voices: 3
replies: 16

4 years, 6 months ago  Cristián Lávaque

CLICKBANK BUTTON HACK – (another instalation)

By:  Luis Caraballo in: Unofficial Extensions/Hacks

voices: 1
replies: 0

4 years, 6 months ago  Luis Caraballo

Viewing 2 topics - 1 through 2 (of 2 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
CLICKBANK BUTTON HACK – (another instalation)

By:  Luis Caraballo in: Community Forum

voices: 3
replies: 16

4 years, 6 months ago  Cristián Lávaque

CLICKBANK BUTTON HACK – (another instalation)

By:  Luis Caraballo in: Unofficial Extensions/Hacks

voices: 1
replies: 0

4 years, 6 months ago  Luis Caraballo

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Friday Jun 29th, 2012 at 3:54 pm #17883

Ok, SOLVE IT.

This was the solution :S …

If i change the “DESCRIPTION” of the product in the section of the CLICKBANK BUTTON CREATION,
the hack wouldn´t work…

So, i created now buttons without changing the descriptions o pricing details.

Thanks for your help, and sorry for the trouble.

Posted: Friday Jun 29th, 2012 at 3:41 pm #17881

Ok, test it.

It WORKS but ONLY with Specific Post/Page buttons…

Not with MEMBERSHIP BUTTONS!

Any ideas?

Should i change everything for specific post?

Please check.

Thanks!

Posted: Wednesday Jun 27th, 2012 at 9:37 pm #17716

Hi Jason!

Nope, this is the only mu-plugin, and this is the code:

<?php
add_action('wp_loaded', 'handle_custom_clickbank_redirections');
function handle_custom_clickbank_redirections() {
	if(isset($_GET['clickbank'])) {
		$shortcodes = array(
			1 => '[s2Member-Pro-ClickBank-Button cbp="1" level="1" ccaps="" desc="El Arte de la Atracción + La Primera Salida + 8 Switches de Atracción" custom="atraccionla.com" tp="0" tt="D" rp="2" rt="M" rr="0" image="default" output="url" /]',
			2 => '[s2Member-Pro-ClickBank-Button cbp="2" level="4" ccaps="" desc="Sociedad Secreta Plata + 5 Guías Especiales + CERO DUDAS" custom="atraccionla.com" tp="0" tt="D" rp="1" rt="Y" rr="0" image="default" output="url" /]',
			3 => '[s2Member-Pro-ClickBank-Button cbp="3" level="2" ccaps="" desc="Guía Especial Frases de Repertorio + Programa Cero Dudas" custom="atraccionla.com" tp="0" tt="D" rp="1" rt="M" rr="1" image="default" output="url" /]',
			4 => '[s2Member-Pro-ClickBank-Button cbp="4" sp="1" ids="1464,1470,1481,1479,1477,1475,1473,1471" exp="1440" desc="Description and pricing details here." custom="atraccionla.com" image="default" output="url" /]',
			5 => '[s2Member-Pro-ClickBank-Button cbp="5" sp="1" ids="1527,1470,1481,1479,1477,1475,1473,1471" exp="1440" desc="Description and pricing details here." custom="atraccionla.com" image="default" output="url" /]',
		);
		if (isset($shortcodes[$_GET['clickbank']])) {
			$clickbank_checkout = do_shortcode($shortcodes[$_GET['clickbank']]);
			wp_redirect($clickbank_checkout);
			exit;
		}
	}
}

You can test the final result here:

http://atraccionla.com/?clickbank=1
http://atraccionla.com/?clickbank=2
http://atraccionla.com/?clickbank=3
http://atraccionla.com/?clickbank=4
http://atraccionla.com/?clickbank=5

Please, let me know.

The hack with one single product (the original hack) worked perfectly, but i really need to protect more than one product with your awesome membership software, it´s the reason i need it!

Let me know if i make a mistake with the code or something,

Thanks!

Posted: Wednesday Jun 27th, 2012 at 12:49 pm #17663

Hi Cristián! Any news?

Posted: Tuesday Jun 26th, 2012 at 9:15 am #17538

Awesome, please let me know!

I really need it to work.

Thanks in advance Cristián.

Posted: Monday Jun 25th, 2012 at 12:20 pm #17386

Hey Cristian!

I made the change, you can double check the final code here. Justin case i did it wrong:

<?php
add_action('wp_loaded', 'handle_custom_clickbank_redirections');
function handle_custom_clickbank_redirections() {
	if(isset($_GET['clickbank'])) {
		$shortcodes = array(
			1 => '[s2Member-Pro-ClickBank-Button cbp="1" level="1" ccaps="" desc="El Arte de la Atracción + La Primera Salida + 8 Switches de Atracción" custom="atraccionla.com" tp="0" tt="D" rp="2" rt="M" rr="0" image="default" output="url" /]',
			2 => '[s2Member-Pro-ClickBank-Button cbp="2" level="4" ccaps="" desc="Sociedad Secreta Plata + 5 Guías Especiales + CERO DUDAS" custom="atraccionla.com" tp="0" tt="D" rp="1" rt="Y" rr="0" image="default" output="url" /]',
			3 => '[s2Member-Pro-ClickBank-Button cbp="3" level="2" ccaps="" desc="Guía Especial Frases de Repertorio + Programa Cero Dudas" custom="atraccionla.com" tp="0" tt="D" rp="1" rt="M" rr="1" image="default" output="url" /]',
			4 => '[s2Member-Pro-ClickBank-Button cbp="4" sp="1" ids="1464,1470,1481,1479,1477,1475,1473,1471" exp="1440" desc="Description and pricing details here." custom="atraccionla.com" image="default" output="url" /]',
			5 => '[s2Member-Pro-ClickBank-Button cbp="5" sp="1" ids="1527,1470,1481,1479,1477,1475,1473,1471" exp="1440" desc="Description and pricing details here." custom="atraccionla.com" image="default" output="url" /]',
		);
		if (isset($shortcodes[$_GET['clickbank']])) {
			$clickbank_checkout = do_shortcode($shortcodes[$_GET['clickbank']]);
			echo $clickbank_checkout;
			exit;
		}
	}
}

It returns the button images!

Check it here:
Can test it yourself here:

http://atraccionla.com/?clickbank=1
http://atraccionla.com/?clickbank=2
http://atraccionla.com/?clickbank=3
http://atraccionla.com/?clickbank=4
http://atraccionla.com/?clickbank=5

We’re like ALMOST there, i know its a little chenge in code we need… YOU’RE THE EXPERT MAN!

I know you can do it.

Let me know of the next test we could do.

Thank you very much for your help and support

Posted: Friday Jun 22nd, 2012 at 8:34 am #17190

Nope, Cristián.

Didn´t make any difference.

Can test it yourself here:

http://atraccionla.com/?clickbank=1
http://atraccionla.com/?clickbank=2
http://atraccionla.com/?clickbank=3
http://atraccionla.com/?clickbank=4
http://atraccionla.com/?clickbank=5

In a post, the output depends if i put output=”url”, or output=”anchor”.

Here´s a test page with two examples: http://atraccionla.com/uncategorized/s2member-clickbank-button-test/

Oh, i appreciate your help and support, i know and hope we could make it work, i really need it.

Posted: Thursday Jun 21st, 2012 at 10:16 am #17130
Posted: Thursday Jun 21st, 2012 at 10:13 am #17129

I just try it!

… But it didn’t work quite well…

A “PAGE NOT FOUND” message appears from my website.

This is the exact code i put in the php file (mu-plugins folder):

<?php
add_action('init', 'handle_custom_clickbank_redirections');
function handle_custom_clickbank_redirections()
{
	if(isset($_GET['clickbank']))
	{
		switch ($_GET['clickbank']) {
			case 1:
				$shortcode = '[s2Member-Pro-ClickBank-Button cbp="1" level="1" ccaps="" desc="El Arte de la Atraccion + La Primera Salida + 8 Switches de Atracción" custom="atraccionla.com" tp="0" tt="D" rp="2" rt="M" rr="0" image="default" output="url" /]';
				break;
			case 2:
				$shortcode = '[s2Member-Pro-ClickBank-Button cbp="2" level="4" ccaps="" desc="Sociedad Secreta Plata + 5 Guías Especiales + CERO DUDAS" custom="atraccionla.com" tp="0" tt="D" rp="1" rt="Y" rr="0" image="default" output="url" /]';
				break;
			case 3:
				$shortcode = '[s2Member-Pro-ClickBank-Button cbp="3" level="2" ccaps="" desc="Guía Especial Frases de Repertorio+ Programa Cero Dudas" custom="atraccionla.com" tp="0" tt="D" rp="1" rt="M" rr="1" image="default" output="url" /]';
				break;
			case 4:
				$shortcode = '[s2Member-Pro-ClickBank-Button cbp="4" sp="1" ids="1464,1470,1481,1479,1477,1475,1473,1471" exp="1440" desc="Description and pricing details here." custom="atraccionla.com" image="default" output="url" /]';
				break;
			case 5:
				$shortcode = '[s2Member-Pro-ClickBank-Button cbp="5" sp="1" ids="1527,1470,1481,1479,1477,1475,1473,1471" exp="1440" desc="Description and pricing details here." custom="atraccionla.com" image="default" output="url" /]';
				break;
			default:
				$shortcode = '[s2Member-Pro-ClickBank-Button cbp="1" level="1" ccaps="" desc="El Arte de la Atraccion + La Primera Salida + 8 Switches de Atracción" custom="atraccionla.com" tp="0" tt="D" rp="2" rt="M" rr="0" image="default" output="url" /]';
		}
		$clickbank_checkout = do_shortcode($shortcode);
		wp_redirect($clickbank_checkout);
		exit;
	}
}

Would be awesome if you can check the code again to make sure its ok.

The case 1, case 2, case 3, case 4, case 5, corresponds to each product in my clickbank account.

The default s2member button code, its exactly the case 1 code.

And by the way, the previous hack code with only one product worked fine, but we need it to work for more than one…

If you need anything else, just let me know.

Thanks in advance,

Viewing 9 replies - 1 through 9 (of 9 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.