Joke De Winter
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Gallery images link to attachment_id instead of image url…Hi,
I have been using Next Gen Gallery plugin for ages, but just today I decided to have a go at using the WordPress Gallery shortcode instead. So far, so interestingly good, still getting my way around it.
And right at the bottom it mentions the link option in the gallery shortcode. Like this:
[gallery link="file"]
This makes the thumbnail link to the image file rather than the attachment’s file (which is the default).I have just tried it and it seems to work. Hope this is helpful.
Jo
Forum: Installing WordPress
In reply to: Something rewrites my index.php files – dailyI know.
And I already did a lot of the stuff you should do when you have been hacked.- Kicked out the admin user and replaced it with a real name
- Moved the entire wordpress installation to a different folder, and reinstalled the lot with a fresh copy
- Locked down the wp-config file with some .htaccess stuff
- Taken out the bit in the header that says what version of wordpress you use
- Put in a blank index.html file in the plugin folder
- etc ….
Now, what I would like to know is, what do I do next? I have run out of ideas.
Thanks,Jo.
Forum: Fixing WordPress
In reply to: Highlighting current post title in get_posts listHi,
I placed the code in my single.php file in the sidebar div instead of calling the sidebar.php file (I use that for different page templates).
Would that help?Jo.
Forum: Fixing WordPress
In reply to: Highlighting current post title in get_posts listCornhustlah, you’re a star!
It comes in handy on a custom build site map page as well.
Thank you very much,Jo.
Forum: Fixing WordPress
In reply to: Highlighting current post title in get_posts listDisplaying the post from the current category and highlighting the current post – combines both solutions.
<ul> <?php foreach((get_the_category()) as $category) { ?> <h3><?php echo $category->category_description . ' '; ?></h3> <?php $catVal = $category->cat_ID; } $IDOutsideLoop = $post->ID; global $post; $myposts = get_posts('category='.$catVal); foreach ($myposts as $post) { ?> <li<?php if($IDOutsideLoop == $post->ID) { echo " class=\"current\""; } ?>> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></li> <?php }; ?> </ul>Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] No pictures were added to galleryHi maciej.z,
I had a look at all my websites, and the one that is playing up does have a tmp folder. Does it need setting to 777 ?
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] No pictures were added to galleryHi,
thanks for the replies.I discovered that if pictures are added manually nextGen does find them when you ask it to look for new pictures in the gallery (through Manage Gallery).
Still no joy with adding the pictures through the plugin though. I did come across a thread, somewhere over here http://wordpress.org/support/topic/210576?replies=3 , that suggested to add something to the .htaccess file, but I haven’t had the chance yet to try that out.
In the meantime: here are the server settings –
Operating System : FreeBSD
Server : Apache/2.0.63 (FreeBSD) PHP/5.2.8 with Suhosin-Patch SVN/1.5.5 mod_ssl/2.0.63 OpenSSL/0.9.7e-p1 DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.4 Perl/v5.8.8
Memory usage : 12.68 MByte
MYSQL Version : 5.0.51a
SQL Mode : Not set
PHP Version : 5.2.8
PHP Safe Mode : On
PHP Allow URL fopen : On
PHP Memory Limit : 128M
PHP Max Upload Size : 16M
PHP Max Post Size : 16M
PHP Max Script Execute Time : 60s
PHP Exif support : Yes ( V1.4 )
PHP IPTC support : Yes
PHP XML support : YesJo.
Forum: Plugins
In reply to: NextGEN Gallery ErrorHi, I have the same problem.
I have put <?php wp_head() ?> in the head and all.I also had a look at the website above, but I can’t see a slideshow. The galleries work fine.
The website I am working on is http://www.nealmorgan.co.uk/home
Any ideas, help ? Would be marvellous.
Apart from that I like next gen.
Thanks.
Forum: Installing WordPress
In reply to: new 2.7 install – no upgrade – can’t find compat.phpThanks for that, it works fine now.
Jo.Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Custom Effect – Swap Image?Hello,
here is how I do it:
1. Go into nggfunctions.php in the nextgen-gallery plugin folder
2. Go to line 229 (or there abouts). You want function nggShowGallery($galleryID).
3. Look for “//1st look for ImageBrowser link” and put “//” in front of every line in that bit. Like so:// 1st look for ImageBrowser link // if (!empty( $pid)) { // $out = nggShowImageBrowser($galleryID); // return $out; // }4. Save the file.
5. In your template put the following: `
<?php
$pixGallery = ‘[gallery=123]’;
$pixGallery = apply_filters(‘the_content’, $pixGallery );
echo $pixGallery;
if ( function_exists(“nggShowImageBrowser”) ) {
echo nggShowImageBrowser(123); } ?>
`
6. Mess about with CSS to get it all looking the way you want it to look.Have fun with it.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] How to change the thumbnail appearance on hover ?Anybody ? Please ?
Forum: Plugins
In reply to: How to place simpleviewer shortcode inside template and not the post ?Hello anybody home ?
Anyway I made a bit of progress in the meantime. I came up with a query that allows me to figure out what the gallery id is of the gallery attached to the page. This number is stored in a variable $value.
When I use the following code to display the gallery, nothing happens:
$showgallery = '[gallery=$value]'; $showgallery = apply_filters('the_content', $showgallery ); echo $showgallery;It only seems to work with a digit, but that’s not convient in this case.
Anybody ? Thanks.
Forum: Themes and Templates
In reply to: Linking to a particular Custom field valueHi,
did you look at this:
http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_QueryReplace tag with Country and value with Canada.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Gallery in template file?Hello,
I am trying to do something similar, but I have got nowhere yet. Would you mind sharing the bit of code you used ? That would be great, thanks.
Forum: Plugins
In reply to: Using a Nextgen Gallery on a static pageThere is nothing inside the body tags to place your content in.
Try this:<div id=”content”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>Put your [gallery=1] inside the page via the admin panel.
Good luck.