vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - vBulletin and iDevAffiliate Integration (https://vborg.vbsupport.ru/showthread.php?t=190848)

mambomouth 09-18-2008 02:12 AM

Ok i'm jack A**.
I did not upload one the files I needed edited for the Mod to work.
Anyhow it should work now.

Correction Idevaffiliate does have a API key see there demo and see PDF manual
See link:>
http://demo.idevdirect.com/admin/idev_info.php


As for the hook questions?
I'm not sure but in the past looking for a solution I found in the Phrase Manager
that info needed is inside both Phrase emails etc.

See this link:
https://vborg.vbsupport.ru/showpost....88&postcount=4

I understand what the hook system does but it may help one of you.

mambomouth 09-22-2008 05:06 PM

Hello All,

Great after fixing own error by not uploading the edit files.
I everything is working well.

Now only a few things Idev lets you pass
:>Additional Order Details (optional pass-thru variables) via the >Alternate Cart Integration.
There are three Variables one can add to:

With I guess can be added to the
Code:

$idevQuery = "idev_saleamt=" . $apiobj->paymentinfo['amount'] . "&ip_address=" . $apiobj->paymentinfo['ipaddress'] . "&idev_ordernum=" . $apiobj->paymentinfo['paymentinfoid'];
Concatenating the optional variables that you have set in Idev-affiliate.
Code:

"&idev_custom1=" . $apiobj->paymentinfo['extra'];
also I noticed that variable for the order ID being passed is the table ID in a database. Not a transaction number or hash needed to look up the status of the order in the back end.
You cannot search this ID number in the back of Vbulletin administrator for transactions logs etc.

Also we should look into payment reversals.
To take away the commission in case of payment reversal.


Still this is fantastic progress.

mambomouth 09-22-2008 08:01 PM

As for the Hooks question?

In the includes/class_paid_subscription.php
which is called by both the payment_gateway.php and payments.php.

There are two hooks
1. "paidsub_build" which adds the user to a subscription group.
If paid this execute credit to Affiliate.

2. "paidsub_delete" which deletes the user a subscription group.
If revered this execute minus credit to Affiliate.

What do you guys think?
This way we would not to hand code mod's on updates.

vb_mp 09-23-2008 11:11 AM

Quote:

Originally Posted by mambomouth (Post 1627986)
As for the Hooks question?

In the includes/class_paid_subscription.php
which is called by both the payment_gateway.php and payments.php.

There are two hooks
1. "paidsub_build" which adds the user to a subscription group.
If paid this execute credit to Affiliate.

2. "paidsub_delete" which deletes the user a subscription group.
If revered this execute minus credit to Affiliate.

What do you guys think?
This way we would not to hand code mod's on updates.

iDevAffiliate still doesn't handle reversed payments. They say it will be handled in the next upgrade.

As for the hooks - we mentioned in a couple of earlier posts - but we are not sure where to get the data from to process idev calls at present hook locations.

There is also still not a hook that can be used to insert IP address into paymentinfo only on first payment and not on recurring payments ... so payments.php would still need to be hand edited.

WIHEE 09-27-2008 01:49 AM

I have installed it without any problem and is working 100%

Thanks

nibb 09-27-2008 08:18 AM

Hi everyone, im looking this for since I own Vbulletin. I have Idev for 3 years. Its great, it can be integrated with almost anything and Vbulletin was really missing.
My question is, is this really working? I mean like without bugs or errors, for a commercial site? Im even willing to pay for this mod. Also my current Idev install is already integrated with a shopping cart, i suppose it will no hurt to have it with vbulletin at the same time since all this mods seems to do is pass to idev when a payment is made. Is this correct?

gwerzal 10-11-2008 11:54 PM

Does idevaffiliate need to be installed on the same website for this to work

vb_mp 10-19-2008 02:07 PM

Nope, from the above curl call you have to specify the website and idevaffiliate directory where you notify of commissions:
http://www.YOURDOMAINNAME.com/YOURID...OLDER/sale.php

RS25com 01-28-2009 02:59 PM

Has anyone installed this on 3.8? :)

fionix 02-14-2009 09:01 AM

Yes would be nice to know it works with 3.8.

Anyway I go and try to install it now and will post back here if my forum crashed :)


All times are GMT. The time now is 07:27 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.01085 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (1)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
  • (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