remove image name when mouse is hovered over thumbs

Phoca Gallery - image gallery extension
zvonko
Phoca Member
Phoca Member
Posts: 25
Joined: 25 Dec 2009, 14:01

Re: remove image name when mouse is hovered over thumbs

Post by zvonko »

yea, im looking for the same thing, where can this alt text be removed ?
zvonko
Phoca Member
Phoca Member
Posts: 25
Joined: 25 Dec 2009, 14:01

Re: remove image name when mouse is hovered over thumbs

Post by zvonko »

ok, i have found it, there are two ways , both work perfectly for me:

NOTE: i used plugin with overlib effect set to 0 , if u set overlib effect to something else then u have to change the code at the places where corresponding overlib setting is checked , like in the code below for overlib = 0.


1.
if u display thumbs normal way i.e. displaying thmbs in a category via menu link
u have to edit file
\components\com_phocagallery\views\category\tmpl\default.php
around line 103 in the following code change line
echo ' title="'. $value->title.'"';
to echo ' title=""';

(see the code below, i commented out the original line)

<div class="phocagallery-box-file-third">
<center>
<a class="<?php echo $value->button->methodname; ?>"<?php
if ($value->type == 2) {
if ($value->overlib == 0) {
//echo ' title="'. $value->title.'"';
echo ' title=""';
}
}

2.
if u display thumbs via plugin u have to do the similar change but in the plugin code
i.e. in the file \plugins\content\phocagallery.php

look for the following code: (it appears only once, around line 1240 and something)
change the line
$output .= ' title="'.$image->title.'"';
to
$output .= ' title=""';
(again, see the code below i commented out the original line)

.'<div class="phocagallery-box-file-second" >' . "\n"
.'<div class="phocagallery-box-file-third" >' . "\n"
.'<center>' . "\n"
.'<a class="'.$button->methodname.'"';

if ($enable_overlib == 0) {
//$output .= ' title="'.$image->title.'"';
$output .= ' title=""';
}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: remove image name when mouse is hovered over thumbs

Post by Jan »

Hi, thank you for this information.

Jan
If you find Phoca extensions useful, please support the project
peegee4
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 07 Apr 2010, 23:01
Location: Sweden

Re: remove image name when mouse is hovered over thumbs

Post by peegee4 »

zvonko, thank you so much for your input!

It works fine in Firefox but in Explorer (7.0) it seems that the image name still pops up. Any idea on how to fix this in IE? Anything to do with the overlib setting?

Unfortunately, 67% of the visitors of my client's site use IE :x
Newbie . . . and continuously learning ;)
bassas
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Dec 2010, 21:33

Re: remove image name when mouse is hovered over thumbs

Post by bassas »

zvonko, thanks from me as well!

however, I have the same problem as peegee4. IE 8.0 behaves as if there were no changes made - image name still pop-ups for some 5 sec. Some other popular browsers work fine - Firefox, Opera and Chrome.

I wonder if anyone solved this issue? :idea:

UPDATE: Issue with Internet Explorer (vers 8.0) solved by removing the following line in index.php of the template

Code: Select all

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
I.e. the beginning of index.php was

Code: Select all

<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once dirname(__FILE__) . DS . 'functions.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
 <head>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<jdoc:include type="head" />
After the "fix" it became

Code: Select all

<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once dirname(__FILE__) . DS . 'functions.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
 <head>
 
<jdoc:include type="head" />
Hope this will be helpful to others having same issue.
Cheers and btw thanks for the great Phoca Gallery component!! :twisted:
P.S. I have no idea if this fix might lead to some problems, so apply it on your own risk.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: remove image name when mouse is hovered over thumbs

Post by Jan »

Hi, thank you for this guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply