Remove blank line above "Guestbook"

Phoca Guestbook - creating guestbooks in Joomla! CMS
rtt
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 28 Jun 2008, 17:39

Remove blank line above "Guestbook"

Post by rtt »

Hi, i have been searching for the source where i can remove the blank line above the "Guestbook" see picture:
empty_line.jpg
Can you help me please?

Greetings Ton
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove blank line above "Guestbook"

Post by Jan »

you can try to change some padding or maring in css or delete some html tag:

css:
components\com_phocaguestbook\assets\phocaguestbook.css

html:
components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

Jan
If you find Phoca extensions useful, please support the project
rtt
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 28 Jun 2008, 17:39

Re: Remove blank line above "Guestbook"

Post by rtt »

Hello Jan,

I tried everything made changes in phocaguestbook.css and deleted lines in
default.php but i can't figure out where and what i should change? Nothing helped :(
Perhaps you can give a clue (line) :)

TIA

Ton
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove blank line above "Guestbook"

Post by Jan »

If the Phoca Guestbook html or css changing didn't help, maybe some changes must be done in template css (maybe some tags - margin, padding - div, p, ...)

Jan
If you find Phoca extensions useful, please support the project
PhocaUser
Phoca Member
Phoca Member
Posts: 13
Joined: 07 Feb 2008, 18:38
Location: Switzerland
Contact:

Re: Remove blank line above "Guestbook"

Post by PhocaUser »

Hi Jan,
i am having the same problem with the blank line above "Guestbook". This blank line is only showing up on PhocaGuestbook-Component and no other Title/Component-Heading. Link to page: http://dunum.ch/en/guestbook.html
If you mark the title "Guestbook" and the "blank line above" when browsing with the browser chrome/iron or InternetExplorer, it really looks like a "blank line" and no margin, padding etc.
So i think it has something to do with the PhocaGuestbook-Component and cant be changed in the templates css...
If you have time to help us with this, i would be very happy :)
Best Regards
PhocaUser

Ps: The "blank line" is also shown, when the title ("Guestbook") is not displayed...

Edited:
It looks like there is an empty string before the title/content of the component:
(see marked line on the screenshot below)
[attachment=0]phocaGuestbook.JPG[/attachment]


i just ckecked your demo of the guestbook-component (https://www.phoca.cz/phocagallery/demo/i ... tbook-demo) and there is the same issue with the "blank line" above "Phoca Guestbook Demo"
OFF-Topic: The Captcha-Image isn't displayed at your demo-guestbook.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove blank line above "Guestbook"

Post by Jan »

Hi, thank you for the info about not showing the captcha on the demo (my webhosting operator did some changes in php,the imagecreatefromjpeg is not enable)

I have checked the blank line... The line is here becase in this line system messages will be displayed... e.g. if you add a wrong captcha then the system message will be displayed... it is saved in td tag element to get the unified form ...

Jan
If you find Phoca extensions useful, please support the project
PhocaUser
Phoca Member
Phoca Member
Posts: 13
Joined: 07 Feb 2008, 18:38
Location: Switzerland
Contact:

Re: Remove blank line above "Guestbook"

Post by PhocaUser »

[quote="Jan"]I have checked the blank line... The line is here becase in this line system messages will be displayed... e.g. if you add a wrong captcha then the system message will be displayed... it is saved in td tag element to get the unified form ... [/quote]

Sorry to ask again... is there a way to remove that line or move it to the buttom of the page? Could you tell me in which file such change could be done?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove blank line above "Guestbook"

Post by Jan »

yes in php/html

components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

---
https://www.phoca.cz/development/
If you find Phoca extensions useful, please support the project
PhocaUser
Phoca Member
Phoca Member
Posts: 13
Joined: 07 Feb 2008, 18:38
Location: Switzerland
Contact:

Re: Remove blank line above "Guestbook"

Post by PhocaUser »

...thats where i was looking for (components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php), but i don't think it can be changed there. I cant find any code there thats related to the "blank line".
Also when when you look at the "Inspector-Screenshot" i posted in my previous post, the empty string "" shows up just after <div id="component"> and even before the javascript...
my guess is, that it comes from one of these files: (its just a guess :? )
jimport('joomla.utilities.date');
require_once( JPATH_COMPONENT.DS.'helpers'.DS.'phocaguestbook.php' );

you wrote: "it is saved in td tag element to get the unified form ..."
somehow i cant find that td tag element....
Can you help me please?

Best Regards
PhocaUser
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove blank line above "Guestbook"

Post by Jan »

:( so then it must be some other output ???
If you find Phoca extensions useful, please support the project
Post Reply