Guillaume Assire
Forum Replies Created
-
Hi Seth
Looks like you’re using Multisite, I would encourage you to visit Central Geek if not done already, and get in touch with my friend Louis there, he’s the “multisite” expert of our team. Especially when your questions in these posts essentially belong to the “how to” category rather than to the “doesn’t work” one…
For the subscribers issue. First, you should check that your subscribers are members of all sites (or at least the ones you want them to), they will be considered as users on subsites where they’re not members, this role has its own checkbox in WPS Toolbar options tabs. Second, the “Show Toolbar” checkbox at the WP Profile page will be hidden if you activate the Network Toolbar from the “Network” tab, or you check “Force the display” at the “Toolbar” tab of a given site. Oh and, unfortunately it uses Javascript, no other way to do so that I’m aware of, so if a user has deactivated JS (10% of browsers have JS deactivated for various reasons), this checkbox will actually show. Other than that, this checkbox should not show, and the Toolbar should be forcibly displayed. If none of the above works, then there would be an issue with the plugin that I would be happy to investigate. As far as I can tell, it works for me.
About your other considerations. If you activate the Network Toolbar from the “Network” tab, it will show forcibly network wide without site admins being able to hide it. Alternatively, if you visit the “Sites” tab, you may hide the “Toolbar” options tab from sites where you want to force the display of the Toolbar, and then from your Main Site, “Toolbar” tab, check “Force the display of the Toolbar”. This setting will be mirrored to all the subsites where this options tab is hidden. Note that hiding the “Toolbar” tab from subsites will equally mirror that setting and all the other settings available at this tab, from the Main Site to those subsites.
It is important to stress that this corresponds to two different use cases. The first one means “I’m the boss in my network”, the other gives a little flexibility to site admins, which in return assumes they can use it, e.g. to hide the Toolbar or any of its default items. If using network menus, or willing to show anything network wide, I would strongly suggest to use the Network Toolbar feature to ensure the Toolbar will be displayed network wide. You may have to make a balance between all your needs 🙂
About your last question. If you want to add items to a menu depending on roles, you should consider adding different menus to the same location, and set their roles accordingly. This should also work for network menus, and overimposing site menus above network menus. There are also hooks that you may use, esp. one to make a menu item, a location for subsites’ custom menus, which can be useful for multisite installs – look for “symposium_toolbar_init_globals_done” in the Dev Guide.
Last but not least, the issue of responsiveness has been brought to my attention through another topic: under 783px width, all Toolbar items but the WP Logo and User Menu (“My Account”) will be hidden by WordPress. This is important enough for me to put this on top of my TODO list, but not to delay any further the v27 that is now ready for upload with plenty of new features and bug fixes, thanks to user inputs 🙂
AlphaGolf
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] toolbar mobile?Ah, sorry I misread your post, I thought the Toolbar itself was hidden. Now I think I got your point…
Under 782px width, the Toolbar turns into a so-called “responsive” mode where most of its items are hidden. That is WordPress default behaviour as of WP 3.8. I presume I should work on that part as well, so that my plugin provides a way to “force” the display of some of these items, as this isn’t the case currently…
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] toolbar mobile?I would suggest to deactivate plugins other than WPS Toolbar, and switch to a default theme, as I do see the Toolbar while visiting my test sites with my Android smartphone. Just to confirm, check that the role you visit the site with, should actually see the Toolbar.
Also could you better describe “also removes my existing menu” that I didn’t understand…?
#1, I just googled and found out that I could link to those “sharers” via a simple URL on an icon. I honestly don’t know how they work! It doesn’t seem to be related with the Open Graph protocol you attempt to use. For me it seems to pull the first pic in the post, not sure if this is what you observe too ?
I’ve also found some info on how to add counts (from these networks API) but this requires Javascript in the frontend, that WPS Toolbar doesn’t use, so it will likely go in a dedicated plugin, if I ever make something out of this info.
#2 on Central Geek you will find a lot of expertise, esp. regarding WP Multisites, he’s the WPMS expert of our team. And yes, we’ve worked in tandem on this plugin.
It appears I’ve finished what I wanted to put in next release, apart from what’s in this topic. So if you’re happy with this feature as it is now, I could switch to “feature freeze” as they say, and the usual regression tests phase before releasing in a few days ?
I just wanted to release part of the stress so you can breath, LOL, but… May not wait weeks for the next version of the plugin, though…
For the last two questions – I’m not sure what you mean with the #1, is this supposed to display something in the Toolbar, or in the window that opens when you click on the “f” ? Second, if you want to add anything to page header why not using the appropriate WordPress hook (‘wp_head’ should be fine) from your functions.php rather than editing core files ?
For the #2 you should definitely visit Central Geek and talk to Louis, he should have plenty of good advices to share with you.
Did you have the opportunity to investigate this issue?
I’ve been warned of other conflicts with S2M, more specifically menu items. S2M allows creating menus which items are displayed on a per-role basis individually, while WPST simply displays menu items one after the other 🙂 So I’m afraid I’ll need to plan a thorough check to make them work together…
First off, I want to stress that there’s no rush on my side, I’m not ready to release a v27 yet, and even though, there’s nothing carved in stone, OK? This feature is coming along nicely, the feedback I had so far is great, so I have to thank you for suggesting this and pushing me hard into it. Plus, it’s really lightweight, code wise.
Development trunk just updated. I’ve added some CSS settings at the “Styles” tab, so you can play with font sizes for icons and labels, both normal and hover. Also could you please check your #1 in that last post, as I can only confirm these links should indeed open in a new browser window / tab. About your #2 – don’t you like the gradient resulting from their brand colours, when listed in that order ? 🙂
Documentation will come as soon as I have five minutes, LOL. If you like the plugin, may I suggest to test it, provide feedback, and spread the word…
Take care!
Thanks, the screen option was what I was missing, LOL…
It’s not only WPS Toolbar, but the Toolbar itself, which doesn’t support this attribute. I’ve thrown this feature request in the pipe: #26990, cannot proceed further without this being added to Core.
May I ask you how you managed to “use the link relationship option” when creating menus? Is this from the Nav Menus page, I don’t see anything as such in WP 3.8.1..?
Good catch, I presume I should add a little something to the plugin so that this info is propagated to Toolbar menu items. Nothing in the Codex, I’ll check what is actually feasible and come back to you by the end of the week-end.
Forum: Hacks
In reply to: Adding a version number to CSS (and JS) filesBecause I registered the style beforehand with
wp_register_style( 'wp-symposium-toolbar_admin', $adminStyleUrl );Simply do the wp_enqueue_style directly and the CSS file will get the plugin build nr as version number, just like the JS file, and be re-read by browsers regardless of caching, every time I increment that build number.
My analysis is based on wp-includes/class.wp-dependencies:219…
OK, I’ve updated the development version here. After the update, you may need to shift-reload to force your browser to use the latest CSS and fonts.
Answering your suggestions:
#1. I added the option to choose between the left and the right of the Toolbar. I thought it would better fit with the site-related stuff (Updates, Comments, Add New, etc.) but I agree that it’s somehow a little more eye catching on the right of the screen.
#2. In my previous post I was referring to the “Styles” tab of the options page, this tab is under work.
Yes, these icons are fonticons, so just like any other WP3.8 icon, they can be colored, resized, shadowed, whatever.
a) I did my best to reduce the width of each icon so that they look more compact, but there’s some padding at the right, due to the label which normally takes place near each icon. For these icons, the label is empty, but there seems to be some kind of placeholders that I couldn’t remove. So basically I’ve reached a floor for these paddings.
b) I added the option to use their corporate color. If not activated, the icons will use the same color as the others.
Oh and, you can choose between three different font sets.#3. I see what you mean, but a) I’m not sure what the label “SHARE” would be used for, in term of holding a link or whatever, so it wouldn’t be consistent with the other items in the Toolbar, and b) I’m not willing to add extra dividers, other than those that the plugin proposes from the “Styles” tab already.
I also added the option to choose between the homepage or the current page.
I almost forgot to mention that it’s only available to WP 3.8 users…
So if you open the editor for wp-symposium-toolbar_functions.php and add
var_dump( $wp_roles->roles );as the line 42 for instance, it’ll dump the array of roles of your site. Could you check it’s an array made of slugs => arrays, each of which contains a string and an array of capabilities. All of these values shall be filled and not empty ?Nobody else reported anything, but this doesn’t mean you’re the only one, LOL. Could you answer the question as to whether a role would be missing in the list of roles used by WPS Toolbar (e.g. settings at the “Toolbar” tab), this would help identifying any offending role, and find out what’s wrong with it, from the dump.
Thanks!
I remember one of the sites I visited while ensuring support for WPST had S2M installed and no issue. I just installed it on a test site and couldn’t reproduce your issue either. So I’m not sure S2M is the culprit, at least with its default settings.
There seems to be an offending role in your list of roles. Do you have any role, that would be defined on your site but wouldn’t show in the list of roles in WPST options page ?
Is this a live site with lots of members, if not, would you be happy to open the editor and add a line of code to dump your list of roles on top of pages ?
Just re-uploaded because of a typo in the CSS file name. Make sure you have at least v0.26.19 / build 2619.