Forum Replies Created

Viewing 15 replies - 16 through 30 (of 32 total)
  • Thread Starter Grumbledook

    (@grumbledook)

    I think I’ve worked it out.

    <?php
    if ($image->ngg_custom_fields["link"]!=NULL)
      {
      echo '<a class="more-icon" title="Read Article" href="http://';
      echo $image->ngg_custom_fields["link"];
      echo '">Read More';
      }
    ?>

    I don’t know if that’s the best way of doing things but it seems to work. If anyone more clued up on php wants to tidy it up or give some pointers then I’m all ears!

    Obviously if you wanted to check your custom field contained something specific rather than it being empty you can change !=NULL to =="123" assuming you wanted to check that the custom field was 123. The above code I got it to check if it wasn’t empty, and if it wasn’t that insert the start of the link, then insert the content from the custom field and then insert the end of the link. If the custom field is empty then it does nothing.

    I believe that is just down to which “lightbox” plugin you are using. Try changing it to a different one from what you currently have.

    Go to the options for the plugin and it is the drop down box under the effects heading.

    Same for me as well

    Thread Starter Grumbledook

    (@grumbledook)

    ok latest update seems to have fixed that o27k one

    now the wp_theme one has no border (though that might be the skin)

    had to switch to default (wp_theme used to look the same as the default)

    any plans to add the o27k silver skin as well to the drop down list before I stark hacking at stuff?

    Thread Starter Grumbledook

    (@grumbledook)

    Ah ha!

    Had a brainwave and it is the skin that is the problem. If you change it to “default” or “wp_them” then it works ok. (though both look the same to me)

    If you leave it as “o27k” which was the default after upgrading the plugin then it doesn’t work.

    Still doesn’t work at all if you have users must be logged in turned on, though I don’t use that.

    Hope this helps

    Thread Starter Grumbledook

    (@grumbledook)

    Right, I upgraded my other blog which I also have this installed on.

    After upgrading to 2.8 I checked a thread and it was still working fine. I then remembered that the plugin wasn’t the current version as well so I upgraded that, then it did the same thing as my other blog.

    So you lose the buttons at the top and the text area is just white with no border (fine on one but the other site has a white bg as well so you can’t tell it is there unless you click and get a typing cursor)

    As mentioned in the first post it displays the same in the preview area on the admin MCEComments Options page, so I didn’t think it was theme related.

    Now it has done the same thing on two different blogs using different themes it makes me think it is less likely to be the themes. If you want me to do any testing then I’ll be happy to.

    I also tried turning on the logged in users as well and as reported above it appears that the plugin “turns off” and you get the normal text box as if the plugin wasn’t activated.

    i seem to have the same thing my tag pages have noindex, follow on them

    the single post pages, the tags on those also don’t have nofollow on them either

    also it doesn’t add it to the external links on the homepage if i select that option as well

    the following options seem to work fine though:

    Nofollow category listings on pages
    Nofollow category listings on single posts
    Nofollow login and registration links

    Thread Starter Grumbledook

    (@grumbledook)

    errr nevermind i was being stupid and have now sussed it

    /me facepalms

    Grumbledook

    (@grumbledook)

    the images need to up uploaded into the themes
    /wp-content/themes/premiumnews/images/ folder otherwise it will not work

    if you want to edit this then you need to edit the /includes/featured.php file

    if you upload the image to the theme image folder then you just need to put the full url into the box at the very bottom of the edit post page

    should work fine then

    you may need to use a FTP program to get the image there as the build in media uploader in wordpress will put them in the uploads folder instead

    the editing method will take more explantion so I suggest you just use that images folder instead

    Well I was after having the exif in the image description (which gets used for the lightbox caption) and tried messing around with the code

    Unfortunately my programming knowledge isn’t what it used to be and I decided to stop wasting time and just typed it in. Maybe in the future I won’t have to but for now it does the job.

    I got the same idea as you did from the fact that it shows up in the admin area but to no avail.

    As to it looking bad, I think that is a matter of opinion. I think it looks better than the display from the meta link. You can take alook if you like unseeingeye.com Still working on tweaking some things at the moment though.

    As for your suggestion of having a link to do that, i don’t see why it isn’t possible to lift the code for making that link in the admin area and putting it in the effects code you are using. Though it may not work cause of the variables used on that page might not be the same.

    Please post if you get it working though and how you did it.

    for now I just put the exif in the description and it shows up as the caption

    though this needs doing for each picture you want doing

    you need to install the others as plugins as they aren’t included within the nexgen plugin unlike the two you mentioned

    personally I use WP-Slimbox2 and set the effect to “lightbox” in the gallery plugin

    The meta is there for when you click the link in the manage images section of the admin area.

    Is it not possible to have an option that would take some of the exif data and put it as the image description. The description gets shown anyway for gallery views when using lightbox etc. So surely having the exif in the description box shouldn’t cause a high cpu load over what is happening now?

    Obviously I can just type the exif in at the moment though that could get time consuming.

    Setting up something in the admin area to allow users to customise what is displayed could also be handy and a lot more flexible.

    For example I have seen other sites apply this. Not sure he uses the ngg but it shows what I mean http://kruyt.org/photo-gallery/collections/mt-qingcheng. I tried implementing what was put in this thread, though given the date of when it was done, I couldn’t get it working and it might be cause of the newer versions?

    $exifdata[camera] .' @ '. $exifdata[focal_length]. ' - '.$exifdata[shutter_speed].', ' . $exifdata[aperture]
     .', ISO  '.$exifdata[iso];

    Having something along those lines as a customisable option in the admin area would be spot on. Would allow users to pick and choose what they wanted to display.

    I hope you can implement this as I appeared to be too thick to do so at this time. Wasted hours yesterday trying to do so ;]

    Anyone know how to get the exif data to show up as the image description? I wasted hours yesterday messing around with stuff trying to get it to work.

    Thanks in advance.

Viewing 15 replies - 16 through 30 (of 32 total)