netiad
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection] Redirect All WordPress Pages/Posts to an External UrlHi Stegosource,
Thanks so much for the replies on this. I want to change the question now slightly.
I’d like to redirect from https://yoursite.com to https://my-other-site.com
and also any posts or pages etc… anything under https://yoursite.com to https://my-other-site.com
i.e.
https://yoursite.com/?page_id=23 — redirects to —> https://my-other-site.com/
https://yoursite.com/?page_id=11 — redirects to —> https://my-other-site.com/
https://yoursite.com/ — redirects to —> https://my-other-site.com/
https://yoursite.com/?page_id=2342 — redirects to —> https://my-other-site.com/etc…
I tried:
Source: /
Target: https://my-other-site.com/it worked for https://yoursite.com/ — redirects to —> https://my-other-site.com/
but not the other cases. I imagine i’d do some regex?
thanks again!
Forum: Plugins
In reply to: [Redirection] Redirect All WordPress Pages/Posts to an External UrlI tried that and when going to:
/your-relative-url/my-page
it redirected to:
Forum: Plugins
In reply to: [Redirection] Redirect All WordPress Pages/Posts to an External UrlThanks, I’ll try that out.
What are imports?
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Export and Import Subsites of MultisiteHi Pim,
They are. Both are in the same WordPress multisite.
Thanks
- This reply was modified 8 years, 1 month ago by netiad.
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Export and Import Subsites of MultisiteOkay, thanks.
I bought the multisite extension.
I went to “All-in-One WP Migration” and made a backup of all my sites in the multisite.
/site1
/site2
/site3I created an empty /site4 and now I would like to import /site1 into the empty /site4. How do I do that?
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Export Single Site. Import to MultiSiteExcellent, thanks! Are there any know issues with exporting from single site and then importing to multisite?
This will be in a corporate environment. We are wondering if we’ll run into authentication issues in our corporate environment between our sites.
Does this plugin try to contact any external website? Or need to communicate between another site?
Forum: Plugins
In reply to: [Clean Login] Terms and Conditions Target urlThanks!
Out of curiosity what is it suppose to do or will do when its fixed?
Forum: Plugins
In reply to: [Clean Login] Terms and Conditions Target urlWhat is it suppose to do when you add the url to the field?
I added the url and it doesn’t seem to do anything. Is it suppose to redirect to that url? Or is it suppose to pull in the page and iframe it?
Forum: Plugins
In reply to: [Clean Login] Redirect after loginWhen you make this can you please make it so you can specify in the admin panel what url to redirect to based on role.
—–
An even better way to do it:Provide an admin panel textbox to enter a general url that everyone will get redirect to after login (if a url is entered in that textbox in the admin panel. if not then it will use the wp_get_referer() that it is using now).
Also, in the admin panel provide input fields where you can select the role and enter the url for that role to get redirected to when logged in. This url will override the “general url”.
Forum: Plugins
In reply to: [Contact Form 7] Don't Have Permission?I’ve been away on vacation. I found what it was when I returned.
I had other roles specified on my administration account. Apparently those additional roles cancelled out some of my admin role functions. I removed those additional roles from my admin account and everything works again.
Thanks.
Forum: Plugins
In reply to: [WP Admin Bar Removal] Bug in Plugin WordPress 4.2.2Yes, I use the debug notice to see which plugins are causing errors.
Here’s some info to fix it if you change your mind.
Forum: Plugins
In reply to: [Front End PM] URGENT: Cross-site Scripting VulnerabilityExcellent! Thanks!
Forum: Plugins
In reply to: [Front End PM] URGENT: Cross-site Scripting Vulnerabilityokay, thanks!
Also, can you try the following on a host that doesn’t have “Mod_Security” (maybe try on your local computer). My host uses Mod_Security so it blocks it but the plugin looks vulnerable to it:
https://your_url.com/messages/?fepaction=newmessage&to=%3Cscript%3Ealert(1)%3C/script%3E
same with other items: message_to, etc…
Forum: Plugins
In reply to: [Front End PM] Posting newmessage with curl to hide usernameThis might explain it better:
html_form_version.php (replace user_login with a valid user_login for your site):
<html>
<body>
<form action="messages/?fepaction=newmessage" method="post">
<input type="hidden" name="message_to" value="user_login" >
<input type="hidden" name="message_top" value="display_name" >
<input type="hidden" name="message_title" value="My Subject"><br>
<input type="submit">
</form>
</body>
</html>
curl_version.php (replace user_login with a valid user_login for your site. Also replace your_url with the url of your site):
<?php
$params = array(
"message_to" => "user_login",
"message_top" => "diplay_name",
"message_title" => "My Subject"
);
$useragent = $_SERVER['HTTP_USER_AGENT'];
$strCookie = 'PHPSESSID=' . $_COOKIE['PHPSESSID'] . '; path=/';
//open connection
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,"your_url.com/messages/?fepaction=newmessage");
curl_setopt($ch,CURLOPT_USERAGENT, $useragent);
curl_setopt( $ch, CURLOPT_COOKIE, $strCookie );
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$output=curl_exec($ch);
curl_close($ch);
?>
Copies the above code into the files html_form_version.php and curl_version.php. And replace the fields user_login and your_url with valid information for your site.
Go to html_form_version.php in your browser. It should work if you have front-end-pm install on that site.
Now try going to curl_version.php, it won’t work because its making a connection without correctly specifying the info it needs to have it be in the logged in state.
Forum: Plugins
In reply to: [Front End PM] Posting newmessage with curl to hide usernameSo how will users add message title and contents?
When the user clicks the button made by the short code it takes them to the new message page where they can input it themselves. Or the coder can insert contents into the short code and when the user gets to the new message page it will have the box filled it that they can edit or add to.
If it show a form to add message title and contents in new message page then you have to add a hidden field message_to.
I know, that’s if you use an html form. However, if you use curl then they cannot see it in the source code. That’s why I’m trying to get curl working.
I already got how to do it with an html form from: https://www.ads-software.com/support/topic/making-a-contact-button?replies=3#post-6922987
I need to do that exact same thing but in curl so they can’t see it in the source code.