Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember: Bookmarks – Why Are They Appearing In Sidebar Widgets?
Tagged: bookmark, eMember, placement, Shortcodes UI, sidebar widgets
- This topic has 19 replies, 3 voices, and was last updated 12 years ago by admin.
-
AuthorPosts
-
October 14, 2012 at 10:50 am #7642ZainParticipant
Hi,
Weird one. I’m using the latest version of the eMember plugin (v8.2.7 – and WP3.4.2) and I’ve just found that I’m now getting the “Bookmark” (with the x) appearing on my sidebar widgets, as well as the main content area. So there’s like several bookmark Xs on 1 page…
Any idea why?
Ideally, what I’m looking to do is:
- disable the existing bookmark “placement” (not the actual functionality).
- add a shortcode/function to my theme, so I can position the Bookmark icon exactly where I need it
(i.e. at the end of the post rather than the beginning).
Any idea how this could be achieved? Ideally, after removing the bookmarks appearing in the widget areas first…
Thanks in advance.
Cheers,
Zain
October 14, 2012 at 11:59 am #50339ZainParticipantResearch update
Having played around with various plugins, I’ve now found that the cause of this issue is to do with the Shortcodes UI plugin.
I’m guessing that this is happening because this plugin uses Custom Post Types – what’s happening is the Bookmarking feature is identifying *any* “Post” and then adding the bookmark to it.
Not sure if this is the cause, but it definitely seems to appear where these shortcodes are appearing.
I hope this information helps to improve the bookmark feature (it’s one of the best things about eMember!)
October 15, 2012 at 4:48 am #50340adminKeymasterYou can disable bookmark in particular posts or custom posts which might help. Go to the Manage Content Protection menu of eMember and disable bookmark on these custom posts that are being used in the sidebar.
October 15, 2012 at 8:29 am #50341ZainParticipantHi,
Thanks – yes, I’ve found this feature, although the point is I actually *want* to enable bookmarks. It’s an extremely powerful feature of eMember (especially for a site with lots of posts).
Is there a shortcode/function that could be used to pull in the bookmark icon that can be used? Or a way to use the bookmark handler, when the “Enable Bookmarking Feature” is left unchecked?
The main point here is that if the eMember plugin is identifying any Custom Post Type and adding a bookmark icon, it could possibly do this for any plugin. Perhaps it might be better if it explicitly renders only for the types “Post” and “Pages”? That might help.
Any help with this would really be appreciated. The Bookmarks are one of the main reasons I use (and recommend) the eMember plugin – mainly as there’s not really anything like it in WordPressland.
It would be really nice to see an update to this underplayed feature of eMember. And even have an option to easily change the default icon? That would be very cool/make it easier to use. Also, if the “disable” option was on the edit screen – that would be a very useful improvement too…
Anyway, those are just suggestions – at the moment, if I can just get them working right, that would be great!
Thanks for any assistance, in advance.
Cheers,
Zain
October 16, 2012 at 2:27 am #50342adminKeymasterI didn’t say you have to disable the bookmarking feature completely. There is already a feature that lets you disable bookmark on individual items (for exmaple, you can disable bookmark option on a few specific custom posts while it is enabled in the rest of the site). Isn’t that what you are asking?
October 16, 2012 at 7:12 am #50343ZainParticipantNot quite. And I found the settings page for Content Protection with the bookmarking checkboxes, thanks.
Basically, the Shortcodes UI plugin has bookmark X’s in several locations on a page. Probably because they’re set up as “Custom Post Types” and so being identified by eMember as “Posts/Pages”. eMember then adds the bookmark to these “Page” locations, so 3 or 4 X’s appear instead of 1 for the main content.
Ideally, what I’m looking to do, is:
- Use the bookmarking feature.
- Remove bookmarks from all incorrect locations (Shortcodes UI Custom Post Types)
- Add the bookmarks at the end of a post/page (if there’s an appropriate shortcode/function).
Hope that makes a bit more sense.
Cheers.
October 17, 2012 at 3:33 am #50344adminKeymasterAny visual examples you can give? Like a link to a page that shows this?
October 17, 2012 at 7:13 am #50345ZainParticipantCertainly!
Here’s an example of a page with the bookmarks appearing everywhere there is a shortcode created by the Shortcodes UI plugin:
If you scroll down the page, you’ll see I added a second menu shortcode that has an eMember bookmark icon, as well as a sample image shortcode with another eMember bookmark icon… *eeeek*.
Hope that helps.
October 18, 2012 at 2:24 am #50346adminKeymasterOkay so I am guessing each of these little widgets are a custom posts.
Lets focus on one section for a test. Take a look at the following sidebar widget:
Think & Grow Rich Online Audio MP3 Index
I am guessing there is a custom post for this widget. Can you go to manage content protection menu and disable bookmark on that custom post? The one that represents the above mentioned widget. or that’s not possible?
October 18, 2012 at 2:48 am #50347nurMemberWe are working on adding functionality for disabling bookmark on certain post types. I guess this will solve your issue.
October 18, 2012 at 6:59 am #50348ZainParticipantYup. Shortcodes UI is based on Custom Post Types. So, my concern here is that the eMember plugin would identify *any* Custom Post Types as being a Page/Post, and then add the bookmark.
You’re right in assuming that the sidebar also contains a Shortcodes UI shortcode. If you notice, at every point where a shortcode is created there’s the bookmark feature. I’ve disabled this now… although it doesn’t really matter as the issue is with the Post Type (see rest of page!).
…And thanks Nur for letting me know about the new functionality.
I can imagine this is a tricky issue – because not all Custom Post Types should be excluded. There are some very useful plugins that do use Custom Post Types “properly”, like a Book or Movie review type which I’m sure people would want their eMember’s to be able to bookmark… but then there are plugins which leverage the Post Type functionality to do other things (like Shortcodes UI).
The ability to exclude various types will be very useful in future.
October 18, 2012 at 8:32 am #50349ZainParticipantNot sure if this will help, but looking through the Shortcodes UI plugin quickly, I noted that they use the following post_type:
register_post_type( 'ba_sh', $args );
it also seems to use:
register_taxonomy('bs_sh_cats',array('ba_sh'),$args);
So categories are registered for this custom post type.
October 18, 2012 at 4:50 pm #50350nurMemberHi,
looks like the new feature is something that you are looking for. its not gonna exclude all custom post types rather it will allow you to choose which post types you do not want bookmark feature on.
for example, you can disable bookmark feature on “ba_sh” custom post types while allowing bookmark feature on all other custom post types (and default post types also).
October 19, 2012 at 6:46 am #50351ZainParticipantHi nur,
That sounds perfect! Thanks again to all you guys for helping with this – it’s really appreciated. The Bookmark feature is one of the best bits of eMember – especially for people who have to manage large sites.
Just wondering – does the new version also have a shortcode/function that can be used to display the bookmark X icon? If it does, then that will make it easier to put it in a different location, rather than just at the top of the main content (e.g. in the sidebar etc.).
Please let me know when the new version is available for download and I’ll grab it via the automagic update.
Cheers.
October 22, 2012 at 4:41 am #50352adminKeymasterWe have added the “Exclude bookmark from certain posts types” feature.
-
AuthorPosts
- You must be logged in to reply to this topic.