Will Kemp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] single picIf i right click on where the image should be and select “Copy image location”, then paste that into the browser address bar, i get the following error message:
Access forbidden!
You don’t have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
moseleyinbloom.org.uk
Sat Jul 25 13:12:52 2009
ApacheMaybe that will help you track down the problem.
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Gallery ThumbnailIt would be a good idea if you marked this “resolved” (see the select box in the right hand sidebar).
There’s another thread on the same subject:
Have you tried selecting and copying the URL in the address bar of your browser and using that in the link?
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Using TagsI don’t see that Alex should do anything. The plugin’s free and he can do what he likes. There’s nothing to stop anyone learning PHP and fixing their problems themselves – or paying someone to do it for them.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Adding comment system to individual photosI think the answer is probably “no”.
However, i’m currently working on a plugin to provide a template-able html front end to NextGen gallery (partly because javascript image display is no good for search engine optimization and partly because i want to be able to add things like a “Buy A Print” button). It may be possible to add comments to this.
There could be issues related to attaching comments to individual photos, as comments are normally attached to pages or posts and images are neither, but hopefully i’d be able to find a way round that.
This gallery front end is currently usable (you can see it at https://colinmurrayart.co.uk/gallery ), but it’s not really ready for public distribution. How long it takes me to get it to that stage will depend on how busy i am in the meantime. I’m hoping it won’t take too long, but don’t hold your breath waiting! ??
I’ll look into adding the comments thing to it.
Forum: Plugins
In reply to: This Forum sucksSo you don’t like the way it is? Fair enough. But what are you going to do to fix it?
Forum: Plugins
In reply to: Rewriting the title..Reading through your original post again, i’m not sure which title you’re referring to. The page title or the “title” tag in the header. My solution will change the page title (in the Worpress sense of “page”).
If you’re talking about the header title, then wp_title is what you’ll need to filter – and you can ignore what i said about being in the loop.
There’s a list of template tags that you could filter at https://codex.www.ads-software.com/Template_Tags
Forum: Plugins
In reply to: Rewriting the title..There’s no need to be so impatient – it might put some people off answering.
You need to add a filter for the_title
https://codex.www.ads-software.com/Function_Reference/add_filter
In the filter, you’ll probably want to check that you’re in the loop (as the_title is used in the page list widget too, and you’ll change the title of that page in the menu as well as on the page if you don’t check for it). Use
if ( in_the_loop() ) { .... }
for that.
the_title is passed to the filter as an argument. You can do what you want to it and
return
the new title.Forum: Plugins
In reply to: Full post content in sidebar?Read the “Multiple Loops” section in the The Loop page in the codex. That should give you the basics.
Forum: Plugins
In reply to: Filter – the_title – finding out contextAfter quite a bit of groping around google, i’ve managed to stumble on the answer: the
in_the_loop()
function.See the codex “Conditional Tags” page for more info and similar functions.
Forum: Plugins
In reply to: Updating permalinks in plugin activation functionOk, i’ve worked it out. it’s wp_rewrite->flush_rules – as explained in
this threadForum: Plugins
In reply to: Adding an HTML image viewer to NextGEN GalleryWell, i’ve got a working plain html-based front end plugin written now. It provides an html page for each image in the gallery and nice URLs, using the gallery name and the image’s file name (with the suffix stripped).
I’ve still got quite a bit of work to do on it before it’s really usable by other people though, as it currently requires a bit of php knowledge to install it, as it’s not configurable through the control panel yet. Hopefully i’ll get that stuff sorted out over the next few weeks and it will be usable.
Forum: Plugins
In reply to: How let the photos show in the homepage—-by –nextgen-gallery ?That depends what you mean by “the homepage”.
If it’s a wordpress page, then you just need to put the following tag in the body text somewhere:
[gallery=gallery_name]
Where “gallery_name” is the name of your gallery.
That will show however many gallery pics you’ve configured in the Gallery–>Options–>Gallery page. Or you can use one of the other tags as described in the FAQ.
Forum: Plugins
In reply to: Nextgen can’t find GDHmmm… Thanks for that.
Running this script:
<?php var_dump(gd_info()); ?> <p>check if function exists</p> <?php if(function_exists("gd_info")) { echo "function exists"; }
gives this output:
array(12) { [“GD Version”]=> string(13) “2.0 or higher” [“FreeType Support”]=> bool(true) [“FreeType Linkage”]=> string(16) “with TTF library” [“T1Lib Support”]=> bool(false) [“GIF Read Support”]=> bool(true) [“GIF Create Support”]=> bool(true) [“JPG Support”]=> bool(true) [“PNG Support”]=> bool(true) [“WBMP Support”]=> bool(true) [“XPM Support”]=> bool(false) [“XBM Support”]=> bool(false) [“JIS-mapped Japanese Font Support”]=> bool(false) }
check if function exists
function existsThat suggested to me that the gd_info function does exist and that running it gives some output.
So… I commented out that test in thumbnail.inc.php – and it works.
I’m only just starting to learn about php, so i’m a bit confused. Any idea what’s going on here?