Forum Replies Created

Viewing 14 replies - 16 through 29 (of 29 total)
  • Thread Starter careb

    (@careb)

    the main has site wide tags driving content from all the sub sites into it. when these posts arrive, they have the comments disabled (closed) which is disabling the plugin.

    i changed this:

    if ( comments_open() )

    to this:

    if ( comments_open() || is_main_site() )

    which seems to be working.

    Thread Starter careb

    (@careb)

    dang. i fingered Akismet too soon.

    today i got the plugin to not load on the main site regardless of whether Akismet was activated or not.

    i can’t get it to work again. something … probably in P2 is preventing it from loading. it works if i switch to twentyfourteen.

    it still works on all the subsites it’s enabled on with P2 though. (i’ve got a subfolders, not a subdomains install.)

    this server is for a very small user group that will mostly want access from the intranet. i don’t have to worry about resources that much.

    Thread Starter careb

    (@careb)

    update:

    i’ve been able to get it to work with P2 by changing:

    if ( is_singular() && comments_open() && ( $options['comments'] != '0') && !is_null($options['comments']) ) {
                    $this->add_scripts();
                }

    to

    if ( comments_open() && ( $options['comments'] != '0') && !is_null($options['comments']) ) {
                    $this->add_scripts();
                }

    lines 88 and 102 need the same edit to load the script and the css.

    another minor issue i encountered was with Akismet. on my multisite install, if Akismet is deactivated, the plugin will not work even if it’s activated (locally or network wide) on the main site. the plugin will continue to work on any other blog it is enabled on, but not the main site.

    something, i don’t know what, prevents the plugin from loading. if Akismet is activated, locally or network wide, the plugin loads and works fine with the quicktags bar showing for comments AND the frontend post field (which was a nice, unexpected bonus).

    the differences in code are – with Akismet on:

    </p>
    <p style="display: none;">
    <input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="63d5c0c54b" />
    </p>
    <input type="hidden" id="_wp_unfiltered_html_comment_disabled" name="_wp_unfiltered_html_comment_disabled" value="bb28b63bd0" />
    <script>
    (function(){if(window===window.parent){document.getElementById('_wp_unfiltered_html_comment_disabled').name='_wp_unfiltered_html_comment';}})();
    </script>
    <p style="display: none;">
    <input type="hidden" id="ak_js" name="ak_js" value="15"/>
    </p>
    </form>

    with Akismet off:

    </p>
    <input type="hidden" id="_wp_unfiltered_html_comment_disabled" name="_wp_unfiltered_html_comment_disabled" value="bb28b63bd0" />
    <script>
    (function(){if(window===window.parent){document.getElementById('_wp_unfiltered_html_comment_disabled').name='_wp_unfiltered_html_comment';}})();
    </script>
    </form>
    Thread Starter careb

    (@careb)

    i should add that i have just activated the plugin on a new multisite install today, without issue as well.

    Thread Starter careb

    (@careb)

    i’ve had to change my hidden blog’s setting so the “mature” workaround was no longer viable.

    sure enough, any user could see the Subscribe link and the View Settings link on the Your Subscriptions page

    that won’t do.

    all my users are registered on a very small site and only 6 of them should be able to even see the hidden blog in the listing of blogs at the bottom of this page.

    i poked around into your-subscriptions.php, specifically line 239:

    if ( is_user_member_of_blog($current_user->id, $blog['blog_id']) ) {
    echo "<a href=\"". $blog['subscribe_page'] . "\">" . __('View Settings', 'subscribe2') . "</a>\r\n";
    }
    echo "<a href=\"" . esc_url( add_query_arg('s2mu_unsubscribe', $blog['blog_id']) ) . "\">" . __('Unsubscribe', 'subscribe2') . "</a></span>\r\n";
    }

    what my users see are all the blogs that have the Subscribe2 plugin enable, including the one that they are not a member of and normally can’t access directly because of a bit of code that checks their capabilities, then uses wp_redirect().

    i moved your use of is_user_member_of_blog() to after foreach and finally, things work as expected: if a user is not a member of a blog, that blog does not show in the list of blogs they can subscribe to.

    hope this code helps someone else ??

    echo "<div class=\"s2_admin\" id=\"s2_mu_sites\">\r\n";
    	if ( !empty($blogs_subscribed) ) {
    		ksort($blogs_subscribed);
    		echo "<h2>" . __('Subscribed Blogs', 'subscribe2') . "</h2>\r\n";
    		echo "<ul class=\"s2_blogs\">\r\n";
    		foreach ( $blogs_subscribed as $blog ) {
    			if ( is_user_member_of_blog($current_user->id, $blog['blog_id']) ) {
    				echo "<li><span class=\"name\"><a href=\"" . $blog['blogurl'] . "\" title=\"" . $blog['description'] . "\">" . $blog['blogname'] . "</a></span>\r\n";
    				if ( $s2blog_id == $blog['blog_id'] ) {
    				echo "<span class=\"buttons\">" . __('Viewing Settings Now', 'subscribe2') . "</span>\r\n";
    			} else {
    				echo "<span class=\"buttons\">";
    				echo "<a href=\"". $blog['subscribe_page'] . "\">" . __('View Settings', 'subscribe2') . "</a>\r\n";
    				echo "<a href=\"" . esc_url( add_query_arg('s2mu_unsubscribe', $blog['blog_id']) ) . "\">" . __('Unsubscribe', 'subscribe2') . "</a></span>\r\n";
    				}
    			}
    			echo "<div class=\"additional_info\">" . $blog['description'] . "</div>\r\n";
    			echo "</li>";
    		}
    		echo "</ul>\r\n";
    	}
    
    	if ( !empty($blogs_notsubscribed) ) {
    		ksort($blogs_notsubscribed);
    		echo "<h2>" . __('Subscribe to new blogs', 'subscribe2') . "</h2>\r\n";
    		echo "<ul class=\"s2_blogs\">";
    		foreach ( $blogs_notsubscribed as $blog ) {
    			if ( is_user_member_of_blog($current_user->id, $blog['blog_id']) ) {
    			echo "<li><span class=\"name\"><a href=\"" . $blog['blogurl'] . "\" title=\"" . $blog['description'] . "\">" . $blog['blogname'] . "</a></span>\r\n";
    			if ( $s2blog_id == $blog['blog_id'] ) {
    				echo "<span class=\"buttons\">" . __('Viewing Settings Now', 'subscribe2') . "</span>\r\n";
    			} else {
    				echo "<span class=\"buttons\">";
    				echo "<a href=\"". $blog['subscribe_page'] . "\">" . __('View Settings', 'subscribe2') . "</a>\r\n";
    				echo "<a href=\"" . esc_url( add_query_arg('s2mu_subscribe', $blog['blog_id']) ) . "\">" . __('Subscribe', 'subscribe2') . "</a></span>\r\n";
    				}
    			}
    			echo "<div class=\"additional_info\">" . $blog['description'] . "</div>\r\n";
    			echo "</li>";
    		}
    		echo "</ul>\r\n";
    	}
    	echo "</div>\r\n";
    }

    same as others.

    Crayon Syntax Highlighter breaks my WordPress posting, but only on the backend. if i’m set up to use the visual editor, it’s broken. but … if i’m set up to use the text editor all is well and i can post from the back end without issues. if i click the tab for the visual editor, everything breaks.

    however, i can still use the front end posting features of my theme.

    i have tested this on the following:

    Windows 7 and Chrome = broken as described above
    Windows XP and IE 8 = broken as described above
    OS X 10.9 and Chrome = broken as described above
    OS X 10.9 and Safari = broken as described above
    Ubuntu 14 LTS and Chrome = broken as described above

    using WordPress 3.8.1

    Thread Starter careb

    (@careb)

    okay, setting the hidden blog to ‘mature’ does take the blog out of the listing on the Your Subscriptions menu

    but … the security hole is still there.

    Thread Starter careb

    (@careb)

    hi!

    the blog is hidden by not linking, only allowing select users, and auth_redirect so unauthorized users don’t know where it is and can’t access it if they should find it. there are no core things hiding it.

    if i check the hidden blog off as ‘mature’ … that should stop it from showing on the Your Subscriptions page, right?

    i’m having a double email problem as well.

    i’m using Subscribe2, activated only on the tag blog. whenever someone posts and that post is added to the tag blog, one email is supposed to go out … except i’m getting two emails, seemingly identical.

    i just checked the links after reading mrjarbenne’s comment. same thing, one email has links tied to the original blog where the post was made; the other email has links tied to the tag blog.

    obviously, i’d like to be able to stop the email with the links to the tag blog …

    EDIT: also using P2 (which could be the culprit perhaps)

    Thread Starter careb

    (@careb)

    is that possible?

    I’m not surprised it doesn’t, since the tweaks there to add in their own comment quicktags probably butt heads.

    maybe i should go nag Automatic about how to turn on their quicktags.

    i’ve got that one (network-shared-media) installed now. it doesn’t slow performance much, but there aren’t many files uploaded yet either—the future could be much worse.

    also the plugin doesn’t always allow access to shared media, only when using buttons or plugins that use the same hooks as the “Add Media” button.

    i tried the code at the link i posted previously and it does not work either, i suspect because the common upload folder has yet to be defined.

    if i was going to try this, i would set each blog to a common uploads folder and work out code from there. i see no reason why there wouldn’t be an option to do this already.

    same here. can’t make jobs. using plugin for long time. sad. waiting.

    i had the same thought yesterday and gave up looking.

    all the media in one folder, accessible by all the sites in the network, right?

    this guy has the code, but i didn’t try it (yet).

    https://www.bappi-d-great.com/wordpress-multisite-how-to-define-a-common-upload-folder-for-all-blogs-or-subsites/

    i too would like to do something like what kulpreetsingh is describing.

    In the single.php template, I would like every post to show the image, title, and description of the attachment which I upload with each post.

    specifically, i want to pull the description which is entered when uploading a file and stick into the single.php template.

    but no idea how or where to begin.

Viewing 14 replies - 16 through 29 (of 29 total)