peterbra
Forum Replies Created
-
Forum: Networking WordPress
In reply to: wp ajax login problemThanks for the help and fact is that I am plain stupid… Issue was that I was editing my db manually and I’ve set home siteurl as https://MyDomain.com and home as https://www.MyDomain.com and obviously it is not same domain (WWW makes huge difference) and cookies where not properly… I’ve added www. part in db in fron of siteurl and now all works… So if anyone has this problem… try to look for cross-domain issues ??
Forum: Networking WordPress
In reply to: wp ajax login problemIt’s in the themes function, but I am all doing from the main site, so there is no need to be in the plugin, right ?
Forum: Networking WordPress
In reply to: WordPress MU – get requested subdomainNo, it doesn’t work for me, so I’ve decide to go different way. This is my htaccess:
RewriteCond %{HTTP_HOST} !^(www|ws)\. [NC] RewriteCond %{HTTP_HOST} ^([^.]+)\.[^.]+\.[^.]+$ RewriteRule ^(.*)$ https://www.MYDOMAIN.com/check.php$1?username=%1 [QSA,L,R=301] RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L]
Now, in check.php I have basics:
$username = $_REQUEST["username"]; if ( username_exists( $username ) ) echo "In Use - load content"; else echo "Not In Use... serve my predefined content";
Now even if blog exist – I am not sure how to trick .htaccess to proceed with loading actual blog and if it doesn’t exist I would like to serve content in wordpress manner…
e.g: blog.mydomain.com exist and user will see actual blog and test.mydomain.com doesn’t exist, but I would like visitor to be on test.mydomain.com and serve him some content. Is this possible ?Forum: Fixing WordPress
In reply to: Function to autologin to wordpress with only username providedSorry, I guess a bit Codex reading won’t hurt…
https://codex.www.ads-software.com/Function_Reference/wp_set_auth_cookieThis is the one I needed:
<?php wp_set_auth_cookie( $user_id, $remember, $secure ) ?>This is not THEME related – I am building custom theme and I get same error. This is fixed when include in WordPress Searches? is set to yes… odd ??
Forum: Plugins
In reply to: [Magic Gallery] Magic Gallery plugin breaks WordPress media uploaderCool man,
I will give it a try… Also not sure if there will be an option to specify thumb size on pikachoose, but never mind – I’m watching for release ??Forum: Plugins
In reply to: [Magic Gallery] Magic Gallery plugin breaks WordPress media uploaderYour “free” plugin isn’t workin in Chrome as well -> when Pikachoose is selected, but the problem is that Chrome requires a following jQurey call:
$(document).ready( function (){ $("#pikame").PikaChoose({autoPlay: true, transition:[2]}); $(".pika-stage a").addClass('dontclick'); $(".dontclick").click(function() { return false; }); });
Anyway you should consider making the free version bug free and than start selling it as from my perspective – I would never pay for something (even if it’s that low as $10 bucks) that won’t work in very basic way….
Good luck man ??
Forum: Fixing WordPress
In reply to: Query posts displaying posts twiceI’m blind. Since this is a loop within a loop it was calling posts twice, so I just reset the posts after first query and it’s all good now !
Forum: Fixing WordPress
In reply to: Query posts displaying posts twiceJust noticed that code was deleted by forum rules ??
Here is the pastebin code:
Click HereForum: Fixing WordPress
In reply to: Query posts displaying posts twiceflatwhitestudio, I’ve tried changing counter vars already and it didn’t help.
Placingrewind_posts();
is just creating infinite loop ??Thanks for tips anyway ??
Forum: Fixing WordPress
In reply to: Query posts belonging to 2 categoriesNow that was so obvious, I’ve just read that (20 minutes ago) and I didn’t see that example o.O Must be that it’s bed time ??
THANKS SO MUCH !!That seems to be the one I was looking for ??
You rock WiSch !Forum: Fixing WordPress
In reply to: Automatic Upgrade[Solved] thanks to LizardHosting.com support crew:
It seems that some of my 16 active plugins were causing WP automatic update to halt. When I’ve disabled all plugins automatic update worked perfectly.Forum: Fixing WordPress
In reply to: Adding ID to each UL when listing pagesThanks for the tip. I’ll look into it now.
I know it’s late, but there you go for you who are still searching.
This is pseudo class that will remove border on last child element (in this case in last li element).#nav ul li {
border-right: solid 1px #000;
}
#nav ul > li:last-child {
border-right: none !important;
}