Jump to content


Guestbook3


42 replies to this topic

#16 Robsta

    Likes Etomite Forums!

  • Member
  • PipPip
  • 360 posts

Posted 10 June 2005 - 07:27 PM

Robsta, on Jun 8 2005, 01:01 AM, said:

I've been trying to add formating to message list, and I can't seem to get it to add padding (using CSS).

I would assume that adding a class 'GBMessageList' into CSS and applying padding, this would work. But it doesn't seem to for some reason, any ideas why?  :blink: I've successfully does this to the add message form, and works a treat.
Any ideas on this? :blink: or am I missing something obvious? :huh:

#17 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 10 June 2005 - 11:40 PM

Robsta, on Jun 7 2005, 09:01 PM, said:

I've been trying to add formating to message list, and I can't seem to get it to add padding (using CSS).
   // Loop through each of the messages and format for display
    for ($y = 0; $y < $limit; $y++) {
        if ($order == "DESC") { $number = $total - $from - $y; }
        if ($order == "ASC") { $number = $from + $y + 1; }
        $guestbookrec = $etomite->fetchRow($rs);
        $poster = str_replace($type.$gap,"",$guestbookrec['subject']);
        $message = nl2br($guestbookrec['message']);
        $postdate = strftime($dateformat, $guestbookrec['postdate']+$server_offset_time);
        $output .= "<table class='GBMessageList' width='100%'>";
        $output .= "<tr><td class='GBMessagePoster' nowrap width='80%'>$poster</td>";
        $output .= "<td class='GBMessagePostDate' nowrap width='20%' align=right>$postdate</td>";
        $output .= "<tr><td colspan=\"2\"> </td>";
        $output .= "<tr><td colspan=\"2\">".hyperlink(smile($message))."</td>";
        $output .= "<tr><td width='80%'> </td>";
        $output .= "<td width='20%' nowrap align=right>".$_lang_guestbook["message"].": $number/$total</td>";
        $output .= "</table><br />";
    }

I would assume that adding a class 'GBMessageList' into CSS and applying padding, this would work. But it doesn't seem to for some reason, any ideas why?  :blink: I've successfully does this to the add message form, and works a treat.

Why not simply add padding to the <td> element by using td { padding:5px; } in your CSS... Or you could use .GBMessageList td { padding:5px; } if you only wanted to change the padding for the td elements in the GuestBook entries... Just some food for thought... B)

#18 Robsta

    Likes Etomite Forums!

  • Member
  • PipPip
  • 360 posts

Posted 14 June 2005 - 07:58 PM

Ralph (rad14701), on Jun 11 2005, 12:40 AM, said:

Why not simply add padding to the <td> element by using td { padding:5px; } in your CSS... Or you could use .GBMessageList td { padding:5px; } if you only wanted to change the padding for the td elements in the GuestBook entries... Just some food for thought... B)
Of course... doh! ...and solves the problem. Thanks :D

#19 healthresource

    Etomite Forum Fan

  • Member
  • Pip
  • 63 posts

Posted 01 September 2005 - 12:38 PM

excellent snippet,works fine for me.

i am trying to get colour coding to my liking but to no avail,have edited css but hardly any difference noticed.

My Site

those message boxes are having blue background and want it to be different,say #CCCCFF but i can't,please help me,where am i going wrong?

i went to template folder/and edited css there to add the following codes:-
.GBMessageList td {
border: 1px solid #000000; 
padding: 5px;
background-color: #CCCCFF;
}

.GBCommentBox {
border: 1px solid #000000; 
padding: 5px;
background-color: #CCCCFF;
}

.GBHeaderStyle {
font-size: 14px;
}

#smilie_box {
visibility: hidden;
position: relative;
left: 100px;
align: center;
padding: 5px;
margin: 22px 0 0 -26px;
border: 1px solid #0000FF;
background: #FFFFFF;
width: 300px;
}

but it doesn't change.i still see blue box background.

please help.

thanks,

niskumar

#20 healthresource

    Etomite Forum Fan

  • Member
  • Pip
  • 63 posts

Posted 01 September 2005 - 12:46 PM

i think i was doing it wrong,i need to make those changes in snipet itself,trying now,but please do post any suggestions that i may find useful.

niskumar

#21 ColdFire

    Etomite Forum Newbie

  • Member
  • 5 posts

Posted 17 September 2005 - 05:36 PM

where (how) can i delete some messages??

#22 Robsta

    Likes Etomite Forums!

  • Member
  • PipPip
  • 360 posts

Posted 17 September 2005 - 05:39 PM

ColdFire, on Sep 17 2005, 06:36 PM, said:

where (how) can i delete some messages??
Within the Manager there is a messaging system, look in the menu. The guestbook entries are stored as messages, and can be deleted from there.

#23 healthresource

    Etomite Forum Fan

  • Member
  • Pip
  • 63 posts

Posted 17 September 2005 - 07:44 PM

Since guestbook can be signed by anyone,it might happen tht one of your rivals or enemies drop in and abuse you thru guestbook.So,is it possible to have a modification in GuestBook so that all posted comments need to be approved by webmaster before they showup?You can't be 24hr online for 7days to keep checking and deleting such messages.

This feature could well be a great boon.My friend recently had similar trouble on guestbook he was using and he had no option but to block all dialup users from a certain region and he wasn't happy about it,so I thought may be we can request this feature here for our protection.

If not at present,can this please be considered for future releases?

thanks,

niskumar

Edited by niskumar, 17 September 2005 - 07:45 PM.


#24 spear

    Etomite Forum Fan

  • Member
  • Pip
  • 61 posts

Posted 14 October 2005 - 08:24 AM

I intsalled this guestbook and it work fine, but I want all headers, buttons and forms to have right position. Now all they stay on the left. How to do this?

#25 Leo316

    Etomite Forum Newbie

  • Member
  • 1 posts

Posted 24 January 2006 - 12:36 PM

Yapp, sweet guestbook :D. Just wanted to say thanks, it works like a charm for me. I worked it into this site I made for a friend, see it in action here:

www.mein-mittelalter.de

As I said, great work :D. Congratulations!!
Leo

BTW: Is it possible to adress two gbadmins (people to receive the messages in the manager that is) when a new entry is made in the gb?

Edited by Leo316, 24 January 2006 - 12:37 PM.


#26 jploeg

    Etomite Forum Newbie

  • Member
  • 38 posts

Posted 19 February 2006 - 08:29 AM

Post deleted. I figured out that the problem had nothing to do with the Guestbook.. :blush:

Edited by jploeg, 23 February 2006 - 12:17 PM.


#27 DeniseDD

    Etomite Forum Fan

  • Member
  • Pip
  • 79 posts

Posted 15 June 2006 - 07:11 PM

Hey, how can I get the smilies to spread over 2 lines, right now it Fubars the page: http://guider.buildtolearn.net/rolstoelten...ew_message=TRUE


EDIT:
Nevermind, the CSS edit just kicked in. Question however: any spam problems so far?

Edited by DeniseDD, 15 June 2006 - 07:12 PM.


#28 DeniseDD

    Etomite Forum Fan

  • Member
  • Pip
  • 79 posts

Posted 15 June 2006 - 07:27 PM

And a technical question:

How can I get rid of those 2 empty lines between the button "Bekijk volgende pagina" and the message list?

http://guider.buildtolearn.net/rolstoelten...index.php?id=67

#29 DeniseDD

    Etomite Forum Fan

  • Member
  • Pip
  • 79 posts

Posted 15 June 2006 - 07:58 PM

And a hint for all who want to get notified of new entries. Just post the URL to your GB at www.change-detection.com. Usually within 24 hours of a change an email arrives.

#30 moomoo

    Etomite Forum Newbie

  • Member
  • 1 posts

Posted 17 September 2006 - 06:29 PM

hello,

i used GuestBook 3 as our site guestbook, and there is only one(1) thing i do not like i.e. smilies on the guestbook or messages have a square box on each of the message posted. can anyone help me on how to disable the square smilies.

I have already check the *.gif images, and non of the images have a square box within it. So, i would be very thankful if someone could help me with this.

Thanks and regards.

#31 pegro

    Etomite Forum Newbie

  • Member
  • 5 posts

Posted 03 January 2007 - 11:21 PM

View PostDeniseDD, on Jun 15 2006, 09:58 PM, said:

And a hint for all who want to get notified of new entries. Just post the URL to your GB at www.change-detection.com. Usually within 24 hours of a change an email arrives.

This site must have shut down in the mean time. I am looking for that function exactly - to get an email when new posts are been made to the guestbook. Is it possible to set the manager section up to send an email to admin (in this case me!) when a new message arrives in the manager inbox? Or is there another way?

Pls help! :unsure:

/Pegro

#32 Duivelken

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 31 March 2007 - 12:45 PM

Hi,

I've used this guestbook on several sites and cannot figure out how to make the input fields dissapear and just make a link appear.

I would like visitors to have the guestbook straight away, and then when they click the link "Write a new message" or "Schrijf een nieuw bericht" the come to the page where they can leave a new message.

Thx for the help.

Duivelken

http://www.djkina.be
http://www.scoutskluisbergen.be
http://www.charlies-gent.be/nieuw
http://www.galerierooyart.nl

Edit: Solved it by messing around in the code a bit, my apologies.

Edited by Duivelken, 31 March 2007 - 04:29 PM.


#33 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 31 March 2007 - 04:32 PM

Try this for charlies-gent.be/nieuw:

<a href="[~56~]">Write a new message.</a>

This should then link to this page:
http://www.charlies-gent.be/nieuw/index.php?id=56

Karen



View PostDuivelken, on Mar 31 2007, 08:45 AM, said:

Hi,

I've used this guestbook on several sites and cannot figure out how to make the input fields dissapear and just make a link appear.

I would like visitors to have the guestbook straight away, and then when they click the link "Write a new message" or "Schrijf een nieuw bericht" the come to the page where they can leave a new message.

Thx for the help.

Duivelken

http://www.djkina.be
http://www.scoutskluisbergen.be
http://www.charlies-gent.be/nieuw
http://www.galerierooyart.nl

Edit: Solved it by messing around in the code a bit, my apologies.


#34 Duivelken

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 02 April 2007 - 01:02 AM

Hi Karen,

thx for the reply but the problem was already solved by changing the code.

Many thx.

Duivelken

#35 hellenb

    Etomite Forum Fan

  • Member
  • Pip
  • 59 posts

Posted 27 October 2007 - 08:33 AM

hi,

I installed guestbook, it looks nice. How can I manage this guestbook messages (other then going into the etomite database and edit the specific table)?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users