roblgs
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How do I get the current user’s role?Thanks syndromes… again a good pointer… unfortunately I’m just plain dense when it comes to objects.
For now I can simulate the level of switching based upon specific capabilities using
if (current_user_can(‘do_foo’))…
But I’m curious, and not good enough with OO coding, to understand whether or not the named ‘Role’ is directly accessible through the API provided by the capabilities.php file.
Thanks again.
Rob
Forum: Fixing WordPress
In reply to: How do I get the current user’s role?Well, almost, but not quite…
$current_user includes what is being reported as an array that is
$current_user[‘wp_capabilities’] that must include the info that I want, but I’m not clear on how to get it out. Although reported as an array, it’s not behaving as such… a foreach loop doesn’t yield anything.
I need another nudge in the right direction…
TIA
Rob
Forum: Fixing WordPress
In reply to: How do I get the current user’s role?Cheers McShelby… will take a look
Rob
Forum: Everything else WordPress
In reply to: Support Search not workingHi,
Thanks for that… be nice though if the search box at top of the support forum pages would hook up to that, instead of a page that can’t be found… or removed until it does work.
Best regards
Rob
Forum: Fixing WordPress
In reply to: Static Front Page plugin vs. Fold Page List plugin: Bug!Hi,
I’ve not yet dug into it, but my gut feeling on looking at the description of how the static front page plugin works is as Denis-de-Berna describes…
Fold Page List is an adapted version of the standard wp_list_pages function, so the ‘removal’ of the ‘home’ link is certainly going to cause some headaches… What is surprising though is that it seems (I’ve not yet checked) to have been working in versions prior to 2.0.
For myself, I use the home.php file in the active theme for generating a different homepage, but this lies outside the normal ‘pages’ structure and so cannot have sub-pages associated with it.
I’d like to resolve this incompatibility, but if Static FP is taking away the very thing I need for FPL to work, it’s going to be ‘interesting’.
For piotr82, both the Fold_* plugins work to collapse the navigational hierarchies to their top-most elements (first level items), and to only expand the relevant sub-lists for the currently selected page/category. They are of benefit if you have long lists of pages and/or categories that include many levels of sub-navigation. If you do not have any such hierarchic navigation then they will be of, at best, very limited use.
On the other hand, if you DO have complicated lists of pages/categories and sub-pages/sub-categories going many layers deep, then they are, potentially, very useful in cleaning up the presentation of navigation to the minimum needed for any particular location within your site.
Hope that helps clarify somewhat.
Best regards
Rob
Forum: Plugins
In reply to: fold_page_list not working in WP 2.0Hi,
Thanks for digging deeper and discovering this clash… I will download and install the semiologic plugin and see if I can resolve what’s going on… clearly Fold_page_list is unaware of the home sub-navigation, so I need to see if this can somehow be communicated across the gap between the two plugins.
The emails, by the way, are no problem, certainly not spam!!… in fact a message reported to me via email is going to certainly be seen, and potentially resolved quicker than one that is reported only via the support forum. It’s not as public, but any new fixes resulting would still be reported here.
Best regards
Rob
Forum: Plugins
In reply to: fold_page_list not working in WP 2.0Hi tikimaticdotcom,
Thanks to dan13l for posting a quick message, my own testing also confirms correct function of the plugin without any problem or special fiddling…. Install, activate and edit the sidebar.php file.
As dan13l mentioned, Fold Page List has been working with 2.0 throughout the beta period and the release of the Stable version doesn’t alter that situation.
If you continue to have problems I will need more information to be able to resolve the issue, but first thoughts concern plugin activation and then whether the sidebar (or wherever the page links are needed) has been edited to include the call to the wswwpx_fold_page_list function. If both these have been done, then an example of your call would be helpful in duplicating any problem before identifying a cure.
The current version of the plugin and installation notes are available from the Fold page list support page.
Best regards
Rob
Forum: Plugins
In reply to: Fold Page List updateHi April19,
If I understand you correctly then this is what the ‘child_of’ argument is for.
You would though need two calls, one (which could be to wp_list_pages) with ‘depth’ set to 1 for the main header navigation menu, and the second with ‘depth’ set to zero and ‘child_of’ set to the currently selected main navigation item. setting the optional second parameter to true in order to fully unfold the hierarchy with a single click…
In fact, you don’t need the wswwpx_fold_page_list plugin to do any of that, unless you want the sub-navigation to be folded… otherwise it’s all doable with just the standard wp_list_pages… you just need two calls to it though to generate the two navigation lists.
Best regards
Rob
Forum: Plugins
In reply to: Fold Page List updateHi,
Fold Page List has been upgraded to version 1.1 and includes new functionality to add full unfolding of groups of related pages, and to add a new class to links to differentiate between normal links, the current page link, and links to the ancestors of the current page. This new class is merely a hook, visual differentiation can only be realised by appropriate styling through the stylesheet.
Full details of the changes, and a link to the new version, are available from the Fold Page List support page, and it remains compatible with current beta of WP2.
Best regards
Rob
Forum: Themes and Templates
In reply to: How make menu (wp_list_pages) “fold”Hi Josepo,
I’m happy to announce that a new version of the Fold Page List plugin does exactly what you ask.
Enjoy!
Rob
Forum: Plugins
In reply to: Fold Page List updateHi,
This is a brief announcement to say that the current versions of both the Fold_page_list and Fold_category_list plugins appear to be working correctly under beta 2 of WordPress 2
Best regards
Rob
Forum: Fixing WordPress
In reply to: Combining PHP CodeHi Rich,
I’ve tested this aspect of functionality against version 1.5, but not beta 2 yet… For 1.5 at least it works as advertised… in fact, since the arguments are passed directly through to Wp’s internal ‘get_pages’ function, there is no reason for it not to work.
I’m assuming that you have set the ‘page order’ field according to the sequence you want… if that is not set then all pages have the same page order, the sorting will be based on their id number, and the ordering may be very different from expected/wanted.
Let me know if you have more specific description of the problem.
Best regards
Rob
Forum: Themes and Templates
In reply to: Menus Parent pagesHi Rich,
Happy that it works for you…
Just to clarify though, by beta 2 you mean current version of the plugin (v1.0.1) with WP2beta2 I think.
The companion plugin for categories (fold_category_list) is also working under the WP2beta2… at least as far as preliminary testing reveals.
Best regards
Rob
Forum: Plugins
In reply to: Fold Page List updateHi,
There is a new version of Fold Page List available.
This is a minor update to include compatability with the polyglot plugin. There are no other changes to the code at this stage.
Best regards
Rob
Forum: Plugins
In reply to: Foldable Category Lists for WP 1.5Hi,
I understand the functionality you want, but the short answer is unfortunately, in its current form, no.
To do what you are after would require a more significant re-write than I currently have time to spare.
I can though put it on the todo list, but it might be a while before I get a large enough time-window.
Regards
Rob