lonewolfonline
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: Folding Category List (FoCaL)] FoCaL and qtranslateSorry geef, bug in the code. Try the new version 1.1, that should work, although I don’t use qtranslate so I can’t test.
Forum: Plugins
In reply to: [Plugin: Folding Category List (FoCaL)] Focal and Category orderThere was a bug in the code, should be sorted now.
If you haven’t done so already, you need to set the “Order By” option to “My Category Order” in Settings->FoCal
Hi Stacey,
you can include a focal list anywhere within a template using the code on this page: https://www.lonewolfdesigns.co.uk/focal/2/
I have also included a sample below.
<?php $focal = new FoldingCategoryList(); $focal->widget_FocalWidget(); // default or $focal->widget_FocalWidget($args); // passing widget args or $focal->widget_FocalWidget($args, 2); // where 2 is the widget number ?>
$args are the standard widget arguments from https://codex.www.ads-software.com/WordPress_Widgets_Api/register_sidebar. You can pass null and a number if you wish: $focal->widget_FocalWidget(null, 2) to show focal list number 2.
Hope that helps.
Tim
Forum: Themes and Templates
In reply to: Remove the Private LabelI need this as well.
I don’t think it is set in the index.php because the output from the_title produces “Private: Post Title”.
There must be a filter or hook that is set some place and needs removing.
Failing that, take a look at wp-includes/post-template.php around line 115 is the code that adds the “Private: ” to the title. I simply commented it out. I’m closing my site anyway and as I move content off I just set it to private and put on a redirect. This way I know what I have done and what I haven’t.
Hope that helps
TimForum: Plugins
In reply to: [Plugin: Folding Category List] ErrorThis should now be fixed in 0.7.1
Forum: Fixing WordPress
In reply to: [Plugin: Folding Category List] Error when called on pages.Been looking into this one, unable to replicate on any version of WordPress until I tried 2.7 beta and voilà!
diesel12, please can you confirm your exact version of WordPress, meanwhile I will try and fix for 2.7.
Also looking for this feature.
A quick hack which works for me is to modify simple-tags.client.php for the version of wordpress in use (in my case 2.5). This only works on PHP5+
Find
function autoLinkTags
(~line 247) and a bit further down find$token = preg_replace($match, $substitute, $token); // only PHP 5 supports calling preg_replace with 5 arguments
Add an extra parameter to preg_replace at the end with the value of 1 so it becomes:
$token = preg_replace($match, $substitute, $token, 1); // only PHP 5 supports calling preg_replace with 5 arguments
This will match the first occurance of a word/tag in a paragraph. Not ideal, but its better than every tag.
I’ll leave it for the plugin author to make the necessary changes to the actual plugin ?? Hopefully in the next version.
Forum: Themes and Templates
In reply to: Post passwords and custom functionsHaving trawled through some of the core files if found this way for testing. Hopefully this will be helpful to somebody else.
if ( (empty($post->post_password)) || ($_COOKIE['wp-postpass_'.COOKIEHASH] == $post->post_password) ) { show thumbnails } else { please enter password }
Forum: Plugins
In reply to: Prevent 404 headers from being sentThanks RogerTheriault,
I am actually very close to having a proper fully working method for passing parameters to pages without the 404 page.
I agree with what you are saying about search engines, maybe i’ll just redirects as you suggest. I was just trying to help the user.
Anyway, I am working on a solution using page parameters for the picture gallery section which is coming along very nicely.
Thanks again.
Forum: Fixing WordPress
In reply to: How to prevent HTML code-changes?I’m having this problem as well. I’m going to check out the “Disable wpautop Plugin” mentioned above.
I really don’t fancy rewriting 200+ pages of html. One thing I am finding particularly frustrating is the auto-insert of br tags when my html code goes to a new line. For example:
<img src="1.jpg"> <img src="2.jpg"> <img src=3.jpg">
Should show three images inline, one after the other.
WP changes this to
<img src="1.jpg"><br /> <img src="2.jpg"><br /> <img src=3.jpg"><br />
Causing them to show one under the other.
I am also seeing additional p tags in the wrong place, causing invalid xhtml markup.
Forum: Fixing WordPress
In reply to: Moving away from date permalinksDon’t worry, just got it sorted.
Forum: Plugins
In reply to: [Plugin: Folding Categories for WordPress 2.3] Show Empty Categoriesdiesel12,
Find the line
if ($Etotalcount > 0)
(around 800) and comment it out. This will show empty categories for you.I can add this as an option in the next release.
Regards
TimForum: Requests and Feedback
In reply to: drop drag and edit widgets problem in 2.5.1.hey, same problem here – unable to move any widgets on my sidebar, they appear in the order they were added.
Adding a widget causes the page to reload, then page breaks and js no longer works.
ALSO – unable to add widgets to anything other than sidebar #1. Each time I add something to sidebar #2 or #3 it ends up at the bottom of #1.
Downgrade to 2.5.0 fixed the problem for me
??
Forum: Plugins
In reply to: [Plugin: Folding Categories for WordPress 2.3] Sub-pages aren’t displayedPlease refer to https://www.ads-software.com/support/topic/173868?replies=1 for further details.
Forum: Plugins
In reply to: [Plugin: Folding Categories for WordPress 2.3] Sub-pages aren’t displayedI have investigated this problem, it is caused by the the recent posts widget setting up a small “loop” for the latest posts, but it does not reset the current post variable afterwards – therefore when it is placed above my folding category widget, it process the current post incorrectly (bad data in).
Now I know what the problem is I am working on a solution.