1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need some php help!

Discussion in 'PHP & Perl' started by tintayluz, Mar 13, 2012.

  1. tintayluz

    tintayluz Registered Member

    Joined:
    May 16, 2009
    Messages:
    77
    Likes Received:
    14
    Hey everyone, i have this website: http://colombe.com.mx/social/ and im in need of some help here! i need to get the image description and place it beneath the image once you click on it. Can anyone help me.

    I can give you the files and everything.

    I have been searching for everything but im clueless!

    Thanks a lot!
     
  2. shakemelikeapig

    shakemelikeapig Junior Member

    Joined:
    Dec 10, 2009
    Messages:
    153
    Likes Received:
    27
    Hey tintayluz-

    I *think* I know what you mean, but it's hard to help in such a situation. One of those don't want to give away the milk for free type situations.

    Would you give some background on the site? Did you hire a developer? Inherit the site? Did you build it?

    Also - where's the content you want to pull? In your database? In files? Is it static (always the same)?


    Thanks! I think answers to those questions can help clarify.
     
  3. tintayluz

    tintayluz Registered Member

    Joined:
    May 16, 2009
    Messages:
    77
    Likes Received:
    14
    Im sorry, i realized i didnt give any background!
    No i didnt hire a developer, I bought a theme on themeforest.. The content is pulled from the wordpress database.

    Thanks a lot!
     
  4. different46

    different46 Newbie

    Joined:
    Nov 13, 2010
    Messages:
    11
    Likes Received:
    0
    help?
     
  5. tintayluz

    tintayluz Registered Member

    Joined:
    May 16, 2009
    Messages:
    77
    Likes Received:
    14
    Yes please!
     
  6. shakemelikeapig

    shakemelikeapig Junior Member

    Joined:
    Dec 10, 2009
    Messages:
    153
    Likes Received:
    27
    Shoot me a PM or add me on Skype: groogruxking40

    I'll get it done for you.
     
  7. shakemelikeapig

    shakemelikeapig Junior Member

    Joined:
    Dec 10, 2009
    Messages:
    153
    Likes Received:
    27
    This is more of a jquery issue, you need to show the current description when clicked. So when the picture zooms the description is no longer hidden.
     
  8. tintayluz

    tintayluz Registered Member

    Joined:
    May 16, 2009
    Messages:
    77
    Likes Received:
    14
    I have added you to skype!
     
  9. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Damn those are some hot girls.

    Anyway.

    In your JS initialization of the slideshow, there is this setting:
    Code:
    slide_captions          :   0,		//Slide caption (Pull from "title" in slides array)
    Change the 0 to a 1.

    Looks like you already have the models' names as the image titles, so it should display the title in the caption beneath the image once you set that variable to a 1

    Edit: Actually looking at the file again, it looks like that initialization may actually be for the background slideshow. Let me look at this again...

    Edit 2:
    All righty, so it looks like you're using Fancybox to display the images and I don't see any settings overriding the default, so it should be set up to display captions.

    However, your images are lacking the title="" attribute, so of course no caption displays.

    These are stored in the WP database? If so, you can use a simple
    PHP:
    <?=$imageTitle;?>
    call to set the title, so it would be
    Code:
    <img src="lala.jpg" title="<?=$imageTitle;?>">
    and then your descriptions should display. If they are not in the database, you will just need to type them in manually.

    So if you've added the above people on Skype and they already have admin access it should be a simple matter.
     
    • Thanks Thanks x 1
    Last edited: Mar 14, 2012
  10. tintayluz

    tintayluz Registered Member

    Joined:
    May 16, 2009
    Messages:
    77
    Likes Received:
    14
    Ok Artizhay thanks a lot for your response. Yes this template is using fancybox to show the images. I already have the image titles in the wordpress database. So I just need to pull them.. Where should i put this?
    HTML:
    <img src="lala.jpg" title="<?=$imageTitle;?>">
    Could you take a look at my site? my skype name is diego.caballero1

    Thanks a lot!
     
  11. tintayluz

    tintayluz Registered Member

    Joined:
    May 16, 2009
    Messages:
    77
    Likes Received:
    14
    Problem solved. Thanks again artizhay!
     
    • Thanks Thanks x 1