Need some php help!

tintayluz

Registered Member
Joined
May 16, 2009
Messages
85
Reaction score
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!
 
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.
 
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!
 
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.
 
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.
 
Last edited:
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!
 
Back
Top