Page 1 of 1

Guestbook 1.1.2 - Doppelter Button für Eintrag?

Posted: Wed Oct 11, 2006 8:45 pm
by Lector
Habe eine vermutlich recht banale Frage, die ich mir bislang leider nicht selber beantworten konnte:

Wo kann ich den 2. Eintrags-Button entfernen? Sieht ja wirklich nicht sonderlich toll aus (von dem Grau ganz zu schweigen - da wäre ein kleiner Tipp auch noch hilfreich, wo ich die Farbe ändern kann. Irgendwie hatte ich da in der alten CMSMS-Version schneller eine Lösung):

http://dieleseecke.di.funpic.de/cmsmade ... =gastebuch

Danke schon mal  :)


CMSMS version 1.0.2
PHP 4.4.4
MySQL 4.1.22
Guestbook 1.1.2

Re: Guestbook 1.1.2 - Doppelter Button für Eintrag?

Posted: Wed Oct 11, 2006 9:19 pm
by Dee
Open action.default.php and comment out the showAddButton call in one of these code parts (there's one near the start and one near the end of the file):

Code: Select all

if ($show_button)
{
    showAddButton($this, $id);
}
just add // in front of it to comment it out so it gets:

Code: Select all

if ($show_button)
{
    // showAddButton($this, $id);
}
The second button gets more useful as your entry list gets longer...

Re: Guestbook 1.1.2 - Doppelter Button für Eintrag?

Posted: Thu Oct 12, 2006 12:24 pm
by Lector
Thanks a lot, Dee :)


There is another question I have: Does anybody know why the mail address entered correctly in the guestbook appears like that:

example: jamiemorain web de ?

Re: Guestbook 1.1.2 - Doppelter Button für Eintrag?

Posted: Thu Oct 12, 2006 1:22 pm
by cyberman
Das ist der Schutz vor Email-Spidern ...

Re: Guestbook 1.1.2 - Doppelter Button für Eintrag?

Posted: Thu Oct 12, 2006 2:15 pm
by Lector
cyberman wrote: Das ist der Schutz vor Email-Spidern ...
Ah, sehr schön, wenn auch gewöhnungsbedürftig  ;D