minor changes - where?

Phoca Guestbook - creating guestbooks in Joomla! CMS
giz
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 10 Oct 2008, 14:24
Location: C:/Germany/Hessen/Bensheim

minor changes - where?

Post by giz »

First of all, thankyou for this great guestbook which is really simple and is working great for me.

I still have some minor wishes for me and i need your advice.

1. I would like to have an empty name field. At the moment and with standard settings, the name field is filled with "guest". Where can i delete this default name?

2. Below the inputbox is a field named "Path". What is this for and, since i cannot see any use, where to delete this.

3. I want to change the styling of the email link displayed in the messages. As mentioned here, i need to edit the default.php file in .../views/phocaguestbook/tmpl/
I am pretty sure the correct location of this change would be line 113-128 as it says:
if ($this->display['email'] != 0)
{
if ($values->email != '')
{
if ($sep == 1)
{
$msgpg .= ' ';
$msgpg .= '( '. JHTML::_( 'email.cloak', PhocaguestbookHelper::wordDelete($values->email,35,'...') ).' )';
$sep = 1;
}
else
{
$msgpg .= JHTML::_( 'email.cloak', PhocaguestbookHelper::wordDelete($values->email,35,'...') );
$sep = 1;
}
}
So i added this before line 113 starts:
$msgpg .= '<div style=" a:link {color: #434343; text-decoration: underline; font-family: sans-serif; font-size: 10px;}">';
Besides the fact it mixes up the design (which i could fix with the margins, the div style wont work at all).
Any idea how to change the appearance of the links?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: minor changes - where?

Post by Jan »

1., 2. see:
https://www.phoca.cz/documentation/index ... nt/104-faq

3. I think you cannot pase teh a:link into the style attribut in HTML... :(

Jan
If you find Phoca extensions useful, please support the project
giz
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 10 Oct 2008, 14:24
Location: C:/Germany/Hessen/Bensheim

Re: minor changes - where?

Post by giz »

Thanks for your answer. Did not see the FAQ on this page in the first run.
After spending 2 or more days customizing this great guestbook (i love the simplicity of the design) i still have some issues.

#1:
After having problems with tinyMCE editor and my template, i changed it like discribed in this thread.
This worked perfectly fine as solving my template problems (and is more simple, which i like), but it also has the problem the entered content is not accepted. I guess its a php error, the entered text is not handed over by the script.

The code looks like this:
<tr>
<td><b><?php echo JText::_('Content'); ?>: </b></td>
<!-- <td colspan="4"><?php echo $this->editor; ?></td> -->
<td colspan="4"><textarea name="content" id="content" value="<?php echo $this->formdata->content ?>" rows="5" cols="10" style=" width: 580px; height: 120px; border:1px solid #E6E6E6; background-color:#FFFFFF" ></textarea></td>
</tr>
#2: Another Problem is the "blank line" problem.
I cannot find the source of this. I deleted all "&nbsp;" in "components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php" but it did only help a little.
It is also not the place of error message. Oh, another info; my form position is at the bottom of the page.
I made a screenshot of the issue:
ImageImage

Hope you can help me. :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: minor changes - where?

Post by Jan »

1# this is obsolete information, you can disable the tinymce editor in parameters now, you need not to change it in code ...

2# I see the picture but I don't know what is the problem ? maybe you should look at css, I think this is styled by css (padding or margin attribute )
If you find Phoca extensions useful, please support the project
giz
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 10 Oct 2008, 14:24
Location: C:/Germany/Hessen/Bensheim

Re: minor changes - where?

Post by giz »

Thanks again Jan for this support. I guess after spending so much hours into css and php, someone did not see the forest in front of all trees :x

I hope this one will be the last question.

After disabling the tinymce editor and setting the new form up via the parameter settings in joomla, i want some css editing (font-size, font-family, color etc.) done in the new simple form. Which file should i edit if its possible in phoca guestbook.
If not, which one should be edited from joomla?

I also recognized a strange behavior with this editor. It gets highlighted every time you hover over or use it. Its somehow annoying :evil:

I rly need your bank account to transfer you a little donation (quit my paypal account) for your patience ;)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: minor changes - where?

Post by Jan »

you can change the main css or guestbook css, you should find the html of the tags you want to style... e.g. in Firefox - see the source code - html code and these tags you can style in the css
If you find Phoca extensions useful, please support the project
Post Reply