The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm very new to almost everything I have done below so bare with me..
![]() 1) The code works 60% of the time. 2) I have no idea why. Any help with reliability/code or anything would be greatly appriciated. I'm very new to this stuff. I'm triggering the XML post (ala: http://idn.interspire.com/articles/2...1.html#request ) to add new users after they successfully subscribe. Plugin hook: registration_activate_process And here is the plugin code i'm using (with some stuff hidden..) PHP Code:
|
#2
|
|||
|
|||
![]()
If the xml is on the same server as your forums, why not use php file functions then curl.
|
#3
|
|||
|
|||
![]()
They are indeed hosted on the same server, in different directories.
Would the use of php file functions in essence replace the curl stuff, or would I need to modify the XML code too? |
#4
|
|||
|
|||
![]()
I believe the file functions will just replace the curl functions but I haven't really done much with the file functions and xml. Just the file functions will save a bit of processing compare to using curl that I know.
|
#5
|
|||
|
|||
![]()
Thank's for the info MoT3rror, I'm going to try to update the code and add some logging code so I can see whats going on.
![]() |
#6
|
|||
|
|||
![]()
Hey guys, i've been working with citric guy and he did get this working with the following code;
(i've HIDDEN personal bits) Code:
$username = $userinfo['username']; $email= $userinfo['email']; $userid= $userinfo['userid']; $xml = "<xmlrequest> <username>HIDDEN</username> <usertoken>HIDDEN</usertoken> <requesttype>subscribers</requesttype> <requestmethod>AddSubscriberToList</requestmethod> <details> <emailaddress>$email</emailaddress> <mailinglist>4</mailinglist> <format>html</format> <confirmed>yes</confirmed> <customfields> <item> <fieldid>1</fieldid> <value>$username</value> </item> <item> <fieldid>2</fieldid> <value>$userid</value> </item> </customfields> </details> </xmlrequest> "; $ch = curl_init('http://www.HIDDEN.com/inspire/xml.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); $result = @curl_exec($ch); if($result === false) { echo "Error performing request"; } else { $xml_doc = simplexml_load_string($result); //echo 'Status is ', $xml_doc->status, '<br/>'; if ($xml_doc->status == 'SUCCESS') { //echo 'Data is ', $xml_doc->data, '<br/>'; } else { //echo 'Error is ', $xml_doc->errormessage, '<br/>'; } } Citric has tried this on his end and it's exactly the same. The only thing different on my end is that I have manual admin approval for all registrations, aswell as email authentication and he only has email authentication. The hook location currently used, which works for him fine is register_activate_process Can anyone see why this would happen? Why it would work once from one computer, then not continue? Thank you very much! Greg |
#7
|
||||
|
||||
![]()
What happens when you dont use email authentication?
|
#8
|
|||
|
|||
![]()
The same
![]() |
#9
|
|||
|
|||
![]()
A major factor in choosing a mailer program is its ability to sync with vB. I am currently evaluating 12all from activecampaign. http://www.activecampaign.com/12all/
It has a way to sync directly with vB db tables. It is not much less in price than Interspire. Would anyone familiar with these products care to share their insights? Thank you ![]() |
#10
|
|||
|
|||
![]()
Great thread!
I have demod both and interspire is certainly much more elegant. But the reason I haven't pulled the trigger is the integration issue. --------------- Added [DATE]1228171032[/DATE] at [TIME]1228171032[/TIME] --------------- solved here i think??? http://www.interspire.com/forum/show...46&postcount=7 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|