hexagongirl
Forum Replies Created
-
@csonnek – great, thanks for the clarification!
Forum: Plugins
In reply to: Correct way to escape WYSIWYG field?Ok, so now I’m very confused. If I type
<script>alert('hacked')</script>
in the standard WordPress post editor (text tab) and save, this does still pop up with an alert.I thought this meant that one had a vulnerability to XSS attacks?
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Lightbox adds a "title" attribute to linksHi – I had the same problem. I posted the code that fixed it for me here.
Note that this alters a plugin file, so will be overridden if you upgrade the plugin (unless the author incorporates fix).
Forum: Hacks
In reply to: Display error messages in custom login formHi,
If the login failed (or in my case, if the user’s permissions had expired – as it was a membership site), I redirected with a custom parameter at the end of the redirect URL – e.g.
$redirect = $redirect.'?status=failed'; wp_redirect($redirect);
Then within my custom login code (executed via a shortcode – so the login form can go where you want on the page), I check for the status parameter and later on display an error message accordingly:
if (isset($_GET["status"])) { if($_GET["status"] == 'failed') { $status = 'failed'; } ... }
Hope that helps?
I got as far as working out that the ‘missing dd’ error is due to not having captions set for my gallery images.
It’s a WP gallery thing, not specific to LBP.
It seems a bit of a flaw to me, as there are often ocassions when clients want to add a gallery with no caption. You can change the containing elements that the gallery uses on the fly via the gallery shortcode (e.g. changing dl to div etc) – but this is not ideal for clients.
The only other way I’ve found thus far invovles re-writing the gallery completely.
There is an old related trac ticket here: https://core.trac.www.ads-software.com/ticket/14819, although not sure what the solution is given Nacin’s comment.
Great, thank you! Just updated a client site, checked the ‘Valid HTML5’ option and the validation errors have now disappeared.
Now off to find out how to get rid of my ‘Element dl is missing a required instance of child element dd.’ errors… I think the default WP gallery is the culprit this time…
Hi Dan,
Do you know yet when this ‘Valid HTML5 Code’ option might be available?
I’m hitting the same problem. I also get the following – is anyone aware whether this a Lightbox Plus thing, or the WP Gallery?
Element dl is missing a required instance of child element dd.
Thanks,
SarahForum: Plugins
In reply to: [Lightbox Plus Colorbox] New classes used for 3.5 galleries removed by LBPSolved the wierd styles (missing right & bottom borders) thing – it was due to using
border-box
in a reset stylesheet:* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
Fixed by overriding for
#colorbox
:#colorbox { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; }
Dan – this may be something you want on your radar as the use of border-box picks up? See https://paulirish.com/2012/box-sizing-border-box-ftw/ for reference.
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Needs update for 3.5 – Galleries are brokenSeems to fix it for me! (on my non localhost site). The shortcode now seems to be respecting IDs – so I can show just a selection of the images uploaded for that page (or to the gallery as a whole)
I am still getting the upload problems/errors I mentioned above on localhost, but maybe that’s something to do with my local configuration, I don’t know.
Yes – it seems the ‘Use for WP Gallery’ option is taken as true, whether it’s checked or not.
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] New classes used for 3.5 galleries removed by LBPDevelopment version seems to have done the trick re. the classes – thanks!!
I’m still getting wierd styles when the image is opened in lightbox (right and bottom sides of lightbox are not visible, include next/previous links), but that might just be something wierd I’m doing – will investigate further.
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Needs update for 3.5 – Galleries are brokenFollow up post regarding issues with LBP/styles/WP3.5 here
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Needs update for 3.5 – Galleries are brokenI too am having a similar problem, on multiple installs.
I have just created a completely fresh install (on localhost), with no plugins other than LBP (latest ver) and running the default twentytwelve theme.
I had the following problems:
– upload of images failed initially when LBP enabled
– if I select to show only certain images from page in a gallery, all are displayed regardless – i.e. it’s not respecting IDs in shortcode
– when I go back in to edit the gallery settings, no images appear, and ‘Update gallery’ button greyed out
– various ‘Undefined variable/index’ noticesOn another couple of sites with bespoke themes, the styling was out too, but that’s quite possibly just something local (although never had too much of a problem in the past).
Let me know if I can help at all with more details/testing. Thanks for the plugin to date – I’ve used it on a lot of my sites!
Hi!
WordPress automatically creates an archive page for each category, which by default is visible at https://www.yourwebsiteaddres.com/category/college-work/.
But if you want something different to this, you have several options:
- Use a plugin. A quick search for ‘Category Posts’ comes up with WP Category Post List Widget and List category posts
- If you’re comfortable with a little file editing/PHP – either create a specific page template, or create a shortcode. Either way it would involve using
get_posts
to pull out the posts in the specific category. Some examples which might help.
Let me know if you need more pointers on the latter option…
Forum: Hacks
In reply to: wp_editor Upload/Insert button doesn't have Gallery tabI’m guessing this could be because it doesn’t know what the
$post->ID
is, & therefore can’t show you the gallery?I’ve not used wp_editor before, but does this post help at all?