Forums

Dear Programmers: Can you add a link line to the database for gallery images? (8 posts)

  1. a4jp.com
    Member
    Posted 1 year ago #

    I made a 6 picture gallery (using the default WordPress gallery on this page http://agreatdream.com/teachers/) as a test, and found the images in the database. I noticed there was of a line that looked like it was a link to a file but it didn't do anything when I changed it. Maybe it is just to do with the id of an image. My 1st request: Can you make it a lot easier and just add a line to the database for the link? That way we can easily change anything without even having to use a plugin.

    I want to make one image (the photo of Canberra) link to a post.

    My 2nd request: Also if I have 40 pictures in a gallery on one page, can you make it so there a way to randomly only show 20 (or any number of images) and always show 2 (or any named images) of my favorite images in that 20?

    Glen

  2. DON'T edit those things in the DB. They're there for a reason and if you don't know what that is, don't mess with it. You should

    What is it you're trying to do? Just link to an image from a post?

  3. a4jp.com
    Member
    Posted 1 year ago #

    I want to do something simple. Just link a gallery picture to a URL. The instructions say we can do it, and I tried a fresh copy of WordPress just in case I got something wrong as well...

    It is so easy to change a link in any other program, Dreamweaver, Word, a text editor or any other program just not WordPress... The database doesn't have a spot for URLs links does it? I changed the link in the database but nothing happened. Or maybe it is I just can't find the real link? I think it would be easy to add the code to let everyone save a URL of file location if needed, especially for anyone that knows their PHP. I'm just a self taught guy. Sorry I can't offer a lot of help fixing the database or PHP files yet.

    Just one extra line in the database would make it easy to add URLs, file names or anything we want. This would also make the gallery a lot easier to use for beginners. WordPress is all about making websites easier to make, isn't it?

    I would just add a line of code to the PHP that says if there is something stored in the cell of the database then open that, if not then go to the regular page/image.

    Glen

  4. a4jp.com
    Member
    Posted 1 year ago #

    Maybe this page can even give you almost all the code you need to improve WordPress.

    http://geekeemedia.com/wordpress/add-a-custom-url-to-your-wordpress-gallery-images/

    Glen

  5. I want to do something simple. Just link a gallery picture to a URL.

    Ah. the [gallery] shortcode only lets you link to 'file' and 'image' and you want it to be 'url' basically. That's a freakin' awesome idea. Hmm. I see you found http://core.trac.wordpress.org/ticket/13429

    Well. This one is at the point where you need to use that workaround, or wait till the ticket is fixed.

  6. a4jp.com
    Member
    Posted 1 year ago #

    Thank you :) I will try the code I found for now. I just wish WordPress was easier to use and got updated more often. The current update system is very slow and it takes a long time for full releases to be released... It might take months to finish all the 3.3 tickets.

    Adding the extra cell to the database for the gallery would make a huge difference and it would be great if that type of update was released before 3.3 come out.

    My second request is just to make our randomized galleries more exciting. Maybe a "show all" button would be needed if someone was looking for something they saw before though lol.

    Glen Rowell

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    The current update system is very slow

    They are working on faster releases.... it's a process, but it is happening

    would be great if that type of update was released before 3.3 come out

    That absolutely will not happen. It also won't happen in 3.3, as that is feature frozen already

    But you can shoot for the next release!

  8. Basically it needs someone to make a REAL patch, and get it tested, to make it in 3.4

    So unless one of the core devs/regular suspects runs into this and gets pissed off, you wait or you code it. Which is how we all get started ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.