valuser
Forum Replies Created
-
Many, many thanks.
Does this make captchas and blockers unnecessary ??
Forum: Plugins
In reply to: [BuddyPress] [Plugin: BuddyPress] spam preventionMod – please scratch the above. I didn’t know what i was doing.
Re: the above.
1) Is it just the the stuff before the & ?
2) How did this work out ?
RewriteCond %{HTTP_COOKIE} !^.*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.*$ RewriteRule ^register - [F,L]
3) If the BuddyPress installation is on a subsite is there any change to
RewriteRule ^register - [F,L]
my register page is https://examplesite.com/subsite3/register
4) Where to put the code ?
before or after
RewriteEngine On
My htaccess begins
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php# BEGIN WordPress
RewriteEngine OnReally hope this is working and would greatly appreciate advice when time permits.
Forum: Plugins
In reply to: [BuddyPress] [Plugin: BuddyPress] spam preventionb) above should read as follows
b)BuddyPress installed on a subdirectory. say on https://examplesite.com/subsite3 define ( ‘BP_ROOT_BLOG’, 3 );?
Sorry about that.
Will do. Many thanks.
Will try
https://codex.buddypress.org/getting-started/install-buddypress-on-a-secondary-blog/
and will come back if unsuccessful.
Forum: Themes and Templates
In reply to: Big empty space after post formsliding login panel plugin also appears to cause this.
Forum: Networking WordPress
In reply to: A Link for "My Site" (logged in user)To complete this Code below appears to work.
<?php if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); $user_id = $current_user->ID ; $user_blogs = get_blogs_of_user( $user_id ); foreach ($user_blogs AS $user_blog) {$user_blog->siteurl;} $link = $user_blog->siteurl; $title = "My Site"; $var = "<a href='$link' target='_blank' title ='in new tab'>$title<a/>"; echo "<h3>$var</h3>"; } ?>
target blank not necessary
Forum: Networking WordPress
In reply to: A Link for "My Site" (logged in user)Almost. Could this be left open for awhile. Somebody might come with something to just get the tag in – rather than have the tag and the whole url.
<a href="<?php echo home_url( '/' );?>" <?php if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); $user_id = $current_user->ID ; $user_blogs = get_blogs_of_user( $user_id ); foreach ($user_blogs AS $user_blog) {$user_blog->blogname;} echo "<h6>Your Site</h6>"; echo home_url( '/' );echo strtolower($user_blog->blogname); } ?> </a>
Forum: Networking WordPress
In reply to: A Link for "My Site" (logged in user)Thanks. that part finis!
2 to goForum: Networking WordPress
In reply to: A Link for "My Site" (logged in user)Thanks, Andrea.
Tried lots of variations from that source. Eventually thought
<a href="<?php echo home_url( '/' ); ?>"><?php $user_blog->blogname; ?></a>
would work but no luck.Not a coder. Just a mediocre Cut & Paster.
I’ve come up with this convoluted piece :
<a href="<?php echo home_url( '/' );?>" <?php global $current_user; get_currentuserinfo(); $user_id = $current_user->ID ; $user_blogs = get_blogs_of_user( $user_id ); foreach ($user_blogs AS $user_blog) {$user_blog->blogname;} echo home_url( '/' );echo $user_blog->blogname; ?>
While this returns https://your domain.com/logged_in_user_site_name
There are some problems.
1. Surely there is a neater way ?
2.The logged_in_user_site_name that is returned is capitalized. (If the site name is Techwizard, it returns Techwizard but the link is actually in lower case https://your domain.com/ techwizard/) so the returned blogname would have be be uncapitalized. Help!
3) It would have be conditional on a user being logged in, as otherwise it will return an error. Help!
4) I don’t know how to put the tag “My Site” on the above convolution. Help!
BTW I tried omitting the first and the second `echo home_url( ‘/’ );?’ but it didn’t appear to work without both.
Any better ideas or improvements on the above would really be appreciated
Forum: Themes and Templates
In reply to: Big empty space after post formditto
Forum: Networking WordPress
In reply to: A Link for "My Site" (logged in user)Yes. If possible I’d prefer to do without the admin bar. Can this (the “My Site” link) be done ?
Forum: Fixing WordPress
In reply to: add a category dropdown menuHave a look at https://www.ads-software.com/support/topic/dropdown-category-selection-for-publishing-posts-in-p2-theme-v113.
and other posts by Nobble at https://www.ads-software.com/support/profile/nobble.
They might be of some help.
Great news. Wonderful plug-in.