Hi, I have tested it, checked the encoding, removed the spaces between the tags, but found nothing there
Jan
Blank line in code probably causes margin above images
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Blank line in code probably causes margin above images
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 14 Aug 2011, 16:17
Re: Blank line in code probably causes margin above images
I know, I did all that too. I've seen a lot of issues (I'm sure you have too) but this must be one of the most mysterious.
The Joomla 1.5 module on you demo site doesn't have this white line. Are there a lot of differences in the coding between the Joomla 1.5 version and the Joomla 1.6 version? I mean other then the changes in the language files and the install xml file.
The Joomla 1.5 module on you demo site doesn't have this white line. Are there a lot of differences in the coding between the Joomla 1.5 version and the Joomla 1.6 version? I mean other then the changes in the language files and the install xml file.
-
- Phoca Member
- Posts: 11
- Joined: 14 Aug 2011, 16:17
Re: Blank line in code probably causes margin above images
I FOUND IT!!!
There is something wrong with the "mod_phocagallery_image.php" file.
I copied all the content from that file to a new fresh one I created in Dreamweaver and replaced the old file with the new one. That solved the problem.
There is something wrong with the "mod_phocagallery_image.php" file.
I copied all the content from that file to a new fresh one I created in Dreamweaver and replaced the old file with the new one. That solved the problem.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Blank line in code probably causes margin above images
Ok (yes, then it maybe there can be problems with some hidden characters )
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 12 Sep 2011, 14:01
Re: Blank line in code probably causes margin above images
Hi guys,
I'm having the same issue, I've allready tried kwindo's solution but it didn't work for me.
Using Joomla 1.7 and having the same whitespace below my h3 title in the moduletable.
Hope someone can help me!
(Will try and look for unwanted characters in the 'mod_phocagallery_image.php' file)
EDIT:
Ok guys just posting the solution here, since i've seen this problem before with PHP and it is often caused by a white line after closing a php tag ('?>').
The problem here was due to a white line after a closing tag in the 'tmpl/default.php' file
Look for line 10
change it to:
placing the div after the php closing tag.
I hope this helped some people in the future and now.
I'm having the same issue, I've allready tried kwindo's solution but it didn't work for me.
Using Joomla 1.7 and having the same whitespace below my h3 title in the moduletable.
Hope someone can help me!
(Will try and look for unwanted characters in the 'mod_phocagallery_image.php' file)
EDIT:
Ok guys just posting the solution here, since i've seen this problem before with PHP and it is often caused by a white line after closing a php tag ('?>').
The problem here was due to a white line after a closing tag in the 'tmpl/default.php' file
Look for line 10
Code: Select all
?>
<div id ="phocagallery-module-ri" style="text-align:center;<?php echo $pgWidth;?>">
<center><?php
Code: Select all
?><div id ="phocagallery-module-ri" style="text-align:center;<?php echo $pgWidth;?>">
<center><?php
I hope this helped some people in the future and now.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Blank line in code probably causes margin above images
Hi, thank you for the guide, I have updated the file.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 24 Aug 2010, 23:19
Re: Blank line in code probably causes margin above images
I have the same problem on my joomla 1.7
http://www.sinelconperu.com/last/index.php
i get the "i>? ", i changed the mod_phocagallery_image.php to a new file and uploaded it again, and nothing works.
:s
http://www.sinelconperu.com/last/index.php
i get the "i>? ", i changed the mod_phocagallery_image.php to a new file and uploaded it again, and nothing works.
:s
-
- Phoca Newbie
- Posts: 3
- Joined: 24 Aug 2010, 23:19
Re: Blank line in code probably causes margin above images
I'm done a temporal solution with css
Assing a css class to the module and set the class attributes to:
.moduletable_patch{
line-height: 0px;
color: #fff;
font-size: 0px;
}
Is not a good solution, but works...
Assing a css class to the module and set the class attributes to:
.moduletable_patch{
line-height: 0px;
color: #fff;
font-size: 0px;
}
Is not a good solution, but works...
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Blank line in code probably causes margin above images
Ok
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 19
- Joined: 11 Nov 2010, 23:39
- Location: Hamilton, ON, Canada
- Contact:
Re: Blank line in code probably causes margin above images
It would be appreciated if you could create a new copy of mod_phocagallery_image.php and include it in the download. Would've saved me a good chunk of my evening tracking this down.