Forum Replies Created
-
AuthorPosts
-
support2Spectator
Thanks for your reply. I didnt look further but the only file i found with that name was in the root plugin folder and the line didnt correspond to font color(maybe because i was using notepad?). I did a search inside the file and found the section for font color, however, this does not look like the code of when the file gets stamped, this looks like the code of the settings page, which is the same as what is in wordpress plugin settings page.
Is there another file that has the code of the stamping – if this code is off limits, please let me know so i can report this to my higher ups and we will have to stick with black.
support2SpectatorThanks for your reply but I just did try and still coming out white. I also tried the hex but still white and probably not even accepting it as hex(unless it does?). I know it is reading/accepting the RGB values since we got a pink color from some of our testing and yes for each red, green, and blue when using the appropriate values(eg. 0,0,1 to get it to print blue)
Can the font color be modified/manipulated in the stamping code somehow?
support2SpectatorI have not done anything with any filter(even with our working integrated custom code). From my original question, Im not sure what files/code needs to be edited to ‘add’ or edit any filter.
Due to the lack of options/functionality of the forum, we cant attach images. Looking at the directories of the plugin using ftp, I am listing some of the files that I think need to be edited:
In the wp-content/plugins/wp-pdf-stamper/api folder:
-clickbank-config.php
-dc.php
-ipn_customization_config.php
-ipn_handler.php
-stamp-api-include-3.php
-stamp_api.php
-stamp_api_function.php
-stamp_api_internal.php
-stamper_class_includes.php
What files need to be edited and where/how to add the code from the link?
support2Spectatorhelp anyone?
support2SpectatorI set this code for testing:
$data = array ();
$data = $secretKey;
$data = $fileURL;
$customerName = “John Smith”;
$data = $customerName;
$customerBusinessName = “PizzaRUs”;
$data = $customerBusinessName;
$data = $customerEmail;
$data = $customerAddress;
$productName = “Hello world stamper”;
$data = $productName;
but it is not stamping anything, only the default parameters.
Also, within the plugin settings(wp->PDF Stamper->Settings) in the “Stamp Text Layout Settings” section I added this to the “Text to Stamp” field box: “{customer_business_name} : {customer_name} {product_name}”. The pdf gets stamped but it stamps this: “PizzaRUs : John Smith {product_name}”, so it does not recognize the ‘product_name’ parameter as a parameter so it stamps it as text.
support2SpectatorThe $data variable – i understand that, yes you need a condition and based on that condition the variable will be set.
What im looking for assistance here is to tell me how/what code to use to ‘manipulate’ the text to stamp code. (As this code is somewhat ‘hardcoded’ into the plugin – from the Settings menue of the plugin in wordpress)
I can create the conditions, etc. in php no problem, but like i said, i need to know what code it is to use and in what file, etc.
support2SpectatorYes, we want to use it ‘per product’ basis so different products have different stamp depending on the pdf.
We actually are using the plugin using the “integration code” and not the WP eStore:
/*** Mandatory data ***/
// Post URL
$postURL = “https://www.yourwebsite.com/wp-content/plugins/wp-pdf-stamper/api/stamp_api.php”;
// The Secret key
$secretKey = “1234567890.11144468”;
//The source file URL (The file that you want to stamp)
$fileURL = “http://www.example.com/wp-content/uploads/test-ebook.pdf”;
/*** Optional Data ***/
//Customers Name
$customerName = “John Doe”;
//Customer Email address
$customerEmail = “john.doe@gmail.com”;
//Customer’s Address
$customerAddress = “123 Some Street, San Jose, CA – 95130, U.S.A.”;
// prepare the data
$data = array ();
$data = $secretKey;
$data = $fileURL;
$data = $customerName;
$data = $customerEmail;
$data = $customerAddress;
// send data to post URL
$ch = curl_init ($postURL);
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$returnValue = curl_exec ($ch);
// Process the return values
list ($status, $value) = explode (“n”, $returnValue);
if(strpos($status,”Success!”) !== false)
{
$file_url = trim($value);
echo “The URL of the stamped file is: “.$file_url;
}
else
{
echo “An error occured while trying to stamp the file! Error details: “.$value;
}
Is it possible to do what we want using the integration code?
Let me know if you want to see our full code as the above is just the sample from the plugin but basically our code is based off of it.
-
AuthorPosts