https://www.icyphoenix.com/viewtopic.php?f=26&t=1375
-----------------------------------
Helmut71
Mon 19 Mar, 2007 18:16

FAP SUPPORT - Mouseover Of Thumbnail In Forum
-----------------------------------
Hi there..

There is a very useful option - the using of thubnails in the forum: [albumimg]number of pic[/albumimg]
Is it possible to show the decription of the picture if hoverig over the thumb instead of the number??

tia!!


-----------------------------------
Artie
Mon 19 Mar, 2007 20:33

Re: Mouseover Of Thumbnail In Forum
-----------------------------------
I would think that is possible.... I shall look see.

Do you prefer pic description or pic title ? (not all pics have description)

EDIT: On second thought, it may not be as simple as it seems, but I will look anyway


-----------------------------------
Helmut71
Tue 20 Mar, 2007 08:59

Re: Mouseover Of Thumbnail In Forum
-----------------------------------
Hi artie

I would prefer the same as it is on the album index. that is pic description.
Thank you in advance for your efforts...


-----------------------------------
Artie
Wed 21 Mar, 2007 22:58

Re: Mouseover Of Thumbnail In Forum
-----------------------------------
I am sorry Helmut71, but I had no luck getting this done.  :cry: 
Maybe someone will find this useful and figure it out for us.


-----------------------------------
Mighty Gorgon
Thu 22 Mar, 2007 02:14

Re: Mouseover Of Thumbnail In Forum
-----------------------------------
It is not so easy... an extra SQL should be added when the BBCode is parsed... :wink:

I think it isn't worth to be implemented... :wink:


-----------------------------------
Helmut71
Thu 22 Mar, 2007 07:01

Re: Mouseover Of Thumbnail In Forum
-----------------------------------
hello MG: perhaps you could post the extra SQL here? Please...if it is not too difficult...

For me it is worth to be implemented...
I use many thumbs from the album in the forum..and if the mouseove shows the correct picture information, my visitors know what is on the picture before they click on it...and I don't have to write a thumbnail description beneath the thumbnail, it all would be in the picture...

So if it doens't make too much work for you, please post the extra sql here :-)

tia


-----------------------------------
Helmut71
Sun 25 Mar, 2007 16:26

Re: Mouseover Of Thumbnail In Forum
-----------------------------------
if someone can give me a hint, I could try it allone...........
or perhaps someone can help me??


-----------------------------------
Mighty Gorgon
Tue 27 Mar, 2007 01:23

Re: Mouseover Of Thumbnail In Forum
-----------------------------------
The SQL part it is easy... what is difficult is to integrate it through BBCodes... :wink:

[code]$sql = "SELECT p.*, c.*
		FROM ". ALBUM_TABLE ." AS p, ". ALBUM_CAT_TABLE ." AS c
		WHERE p.pic_id = '$pic_id'
			AND c.cat_id = p.pic_cat_id";

if( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql);
}

$thispic = $db->sql_fetchrow($result);

$cat_id = $thispic['pic_cat_id'];
$album_user_id = $thispic['cat_user_id'];
$pic_filename = $thispic['pic_filename'];
$pic_title = $thispic['pic_title'];[/code]

Once you have the pic_id and these vars you may easily add them into the BBCode generated code...

If you have Icy Phoenix I can try to show you an easy way to integrate it into BBCodes.


-----------------------------------
Helmut71
Fri 30 Mar, 2007 12:56

Re: Mouseover Of Thumbnail In Forum
-----------------------------------
hi Luca..

unfortunately I have "normal" phpbb :-(

but the code is a good start..perhaps you or someone else could finish it???


