Signing into my Wordpress blog newsletter from external site - how to? - codeigniter

I want to have a newsletter on my WP blog, and there are plenty of plugins available to do this job. So no problem.
I have external website based on PHP framework, CodeIgniter. And I want to have a form, which allows me to signing into my WP Blog newsletter - is it possible? If yes, how to do it?
These 2 sites are on the same server.
Blog is:
www.mysite.com
Webiste is:
www.mysite.com/site2/

You can use the WP login form code to submit user id/password from your CI page to wp-login.php. You can set the redirect_to form variable to whatever landing page you want.
<form name="loginform" id="loginform" action="http://mysite.com/wp-login.php" method="post">
<p>
<label>Username<br />
<input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
</p>
<p>
<label>Password<br />
<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
</p>
<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> Remember Me</label></p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="Log In" tabindex="100" />
<input type="hidden" name="redirect_to" value="http://mysite.com/mysite2/somelandingpage.php" />
<input type="hidden" name="testcookie" value="1" />
</p>

Related

Changing Google CSE custom search from http to https

I am using Google Custom Search box with below code
<div class="cse">
<form action="http://www.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="xxxxxxxxxx" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="30" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script></td></p>
</div>
However as now going to shift all pages to https - has to replace the code
<div class="cse">
<form action="https://cse.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="xxxxxxxxxx" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="30" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="https://cse.google.com/cse.js?cx=' + cx/brand?form=cse-search-box&lang=en"></script></td></p>
</div>
Can anyone help and assist if the above modified code is correct
That seems like it should work, but you should consider switching to the Custom Search Element --- It's the modern, supported way to use Google Custom Search

Web Forms are ignored after clicking on downloadable files

Hello I'm working with a broken web form, the issues is that the current form would only pop up after loading the PDF in a different window tab.
The form is completely ignored after clicking the PDF url, which is redirected into a new tab, without giving any information. I'm working with a drupal site which is version 8.4. I've researched modules and only found web form modules that support Drupal 7 and below. Is there way to fix this current one? I'm still researching on other options.
here's the link to the site https://adnetcmm.com/resources
<div class="overlay" style="display:none">
<div class="contactForm" style="display:none"><b><span class="close">✖</span> </b>
<div>
<p><b>Please submit form to download Pdf</b></p>
</div>
<b> </b>
<form action="#" method="post"><b><input class="inputc" name="name" placeholder="Name" required="" type="text" value="" /> <input class="inputc" name="email" pattern="[a-z0-9._%+-]+#[a-z0-9.-]+\.[a-z]{2,3}$" placeholder="Email" required="" type="text" value="" /> <input class="inputc" name="phone" pattern="[789][0-9]{9}" placeholder="Phone" required="" type="text" value="" /><textarea class="textarea" name="comment" placeholder="Comments.." required=""></textarea> <input class="contbtn" id="ajaxpdf_submit" name="submit" type="submit" value="Submit" /> </b></form>
<b> </b></div>
</div>
</div>

C# Launching Yodlee FastLink

I'm doing a project to launch yodlee fastlink. I was able to get the token and userSession and trying the below codes. I'm only getting "Cannot POST resource". I'm trying to find a more detailed/simpler documentation. Any help would be appreciated.
<form action="https://node.developer.yodlee.com/authenticate/restserver" method="post" name="rsessionPost" id="rsessionPost" target="yodleeIframe">
<input style="visibility: hidden" type="text" name="rsession" placeholder="rsession" value="08312016_0:149676f79ace306255a2c7827f9db590ccabd7350ad5d952f31fc503675bba9ec522728c213a9e5c3e98bd8ceff795c88f9a6f80040a68ce325ae54759f6e504" id="rsession" /><br />
<input style="visibility: hidden" type="text" name="app" placeholder="FinappId" value="10003600" id="finappId" /><br />
<input style="visibility: hidden" type="text" name="redirectReq" placeholder="true/false" value="true" /><br />
<input style="visibility: hidden" type="text" name="token" placeholder="token" value="e59f51a169f52925cd715a945630686e59667d2d1fae511fd50b4e292a8e7342" id="token" /><br />
<input type="submit" name="submit" />
</form>
It seems like there is a forward slash '/' missing at the end of the URL.
Please put it there and submit the form you should be able to access Fastlink.
"https://node.developer.yodlee.com/authenticate/restserver/"

Google Checkout Donation No Shipping

I am implementing a Donate Now system using Google Checkout. One really frustrating part to figure out is how to not require users to input a shipping address for their donation (since it's a pure donation, no shipping address is required). I found the documentation for Digital Delivery and the ability to add a class to products, but I'm just using the Donate Now form that is generated by Google and have no idea where to add this class to make it so no shipping address is required.
Below is the form I'm using:
<form action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/MY_NUMBER" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return adjustDescription()" target="_top">
<input name="item_name_1" type="hidden" value="Donation"/>
<input name="item_description_1" type="hidden" value="Donation Description"/>
<input name="item_quantity_1" type="hidden" value="1"/>
<input name="item_currency_1" type="hidden" value="USD"/>
<input name="item_is_modifiable_1" type="hidden" value="true"/>
<input name="item_min_price_1" type="hidden" value="0.01"/>
<input name="item_max_price_1" type="hidden" value="25000.0"/>
<input name="_charset_" type="hidden" value="utf-8"/>
<input id="item_price_1" class="center" name="item_price_1" type="text" />
<input disabled style="opacity:0.6;" name="donate_submit" alt="Donate" src="https://sandbox.google.com/checkout/buttons/donateNow.gif?merchant_id=MY_NUMBER&w=115&h=50&style=white&variant=text&loc=en_US" type="image" />
So I'm not sure if there's another way to not require a shipping address, but if anyone can tell me where to put the "product-digital" class to accomplish this, that would be helpful.

How can I redirect a customer back to my website after a successful payment with Google Checkout?

I am doing a shopping cart with Google Checkout. I integrated Paypal already like below:
<form name="frmpay" method="post" action="success.php">
<input type="hidden" name="business" value="" />
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="image_url" value="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" />
<input type="hidden" name="return" value="success.php" />
<input type="hidden" name="cancel_return" value="error.php" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="lc" value="UK" />
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="item_name" value="<?=$res_item[name]?>" />
<input type="hidden" name="amount" value="<?=$_SESSION['amt']?>" />
<?php /*?><input type="hidden" name="shipping" value="<?=$_POST["shipping"]?>" /><?php */?>
<input type="hidden" name="quantity" value="1" />
</form>
How can I integrate Google Checkout like this? How can I return success page after payment in Google checkout? What is the input type for redirect url after successful payment in Google Checkout? I tried a lot for this but I did not get anywhere.
Here is my code:
<form method="POST" action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/REPLACE_WITH_YOUR_SANDBOX_MERCHANT_ID" accept-charset="utf-8">
<!-- No product -->
<!-- No tax code -->
<!-- No shipping code -->
<input type="hidden" name="_charset_" />
<!-- Button code -->
<input type="image"
name="Google Checkout"
alt="Fast checkout through Google"
src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=REPLACE_WITH_YOUR_SANDBOX_MERCHANT_ID&w=180&h=46&style=white&variant=text&loc=en_US"
height="46"
width="180" />
</form>
There is no automatic re-direct for the buyer after the Google Checkout transaction finishes. However, you can provide a link that the user can click and get back to your site after completing the order.
See the continue_url paramenter:
http://code.google.com/apis/checkout/developer/Google_Checkout_HTML_API_Parameter_Reference.html#tag_continue-shopping-url
I have the same problem.
My rough variant is to sell a link to a user, and after the user has successfully paid for the link, he will be redirected to the "thank you" page on Google Checkout, where he will see my link and a message from me, then he clicks on the link and gets back to my site
A link looks like mysite.com/orderhasbeenpayd/1342
but as I said it is a rough variant

Resources