Beige guestbook add html. How to manage messages from the Phoca Guestbook


– guest book component for Joomla! A simple and easy-to-manage guest book component with Captcha, in the component settings you can define prohibited words that will not be displayed, you can also protect yourself from the automatic publication of unwanted messages by additionally enabling message moderation.

  • To manage the component and messages, you need to log in through the site's administrative panel with your username and password.

  • On the control panel, find the “Components” tab, hover over it and select the component you are interested in from the drop-down list; in this case, we are interested in the guest book component “Phoca Guestbook” and since the material is about how to manage messages, click on the “messages” tab "

  • In the new “Messages” window that opens, you will see all the messages in the guest book. Unpublished messages are marked with a red circle.
    You can:
  1. publish an unpublished message by clicking on the red circle;
  2. publish an unpublished message by checking the box next to the message and clicking on the “Publish” button at the top;
  3. first read the unpublished message, edit it if necessary;
  4. create a new message yourself.

  • To read the guest book message, click on the subject of the message. The message editing page “Message: [edit]” will open. If the message is not spam, then you can select “Published” in the column on the right “Publishing Settings” and click on the “Save” or “Save and Close” button.

  • To create a new guestbook message, click on the “Create” button (orange cross). The message creation form “Message: [edit]” will open.
  • Fill out the fields: Subject and Username. Then be sure to select the name of the guest book in the “Guest Book” field, enter the text of the message, in the column on the right “Publishing Settings”, select “Published” and click on the “Save” or “Save and Close” button. After this, the message will appear on the website.

PHP 5.2 and higher;
- mod_rewrite;
- MySQL database 4.1 and higher.

Possibilities

Can be built into any website (to do this you just need to edit the top.php and bottom.php files);
- anti-flood;
- ban list;
- page-by-page navigation of the view<< < ...| 5 | 6 | 7 ... > >>;
- BBCode support;
- display of emoticons;
- notification of new added messages;
- the ability to add messages for moderation;
- admin panel;
- easy to install and configure.

Installation

Unpack the archive and copy the contents of the archive to any folder on your web server (for example, "guestbook"). Open the config/config_db.php file in a text editor and specify the connection settings (database host or IP, database name, login and password). Place the MySQL database tables SQL query from the guestbook.sql file. Usually on most hosting sites this is done via the web interface via phpMyAdmin. Go to the administration panel (http://your_site/folder_with_script/admin/) and enter the password 1111. Next, specify the necessary settings.

Commercial version

At the request of the customer, I can adapt the script to specific conditions. Various additional features can be added.

Note

SCRIPT "PHP Guestbook", FURTHER SIMPLY THE PROGRAM IS COMPLETELY FREE. YOU CAN FREELY DISTRIBUTE, COPY, MAKE YOUR CHANGES IN THE PROGRAM SOURCE CODE ONLY ON CONDITION OF RETAINING THE AUTHOR'S COPYRIGHT. USE OF THE "PHP Guestbook" PROGRAM FOR COMMERCIAL PURPOSES IS PROHIBITED. YOUR USE OF THIS PROGRAM IS AT YOUR OWN RISK. THE AUTHOR DOES NOT ACCEPT ANY RESPONSIBILITY FOR THE OPERATION OF THE PROGRAM, OR FOR LOSSES, DAMAGE TO DATA OR ANYTHING ELSE ASSOCIATED WITH THE USE AND OPERATION OF THIS PROGRAM.

If you liked my script and you want to thank me with a ruble, then here are my details:

WebMoney
U237811811298
R198597198920
Z917380288657

Yandex money
41001635943434

PayPal

If you have any questions or suggestions, please write to me at: This email address is being protected from spambots. You must have JavaScript enabled to view it.

Creating a guest book on the site

In previous articles, we looked at creating a feedback form on a website. Another option for two-way communication with visitors is Guest book, in which visitors leave messages directly on the site page. The site administrator can respond to them, edit, delete, etc. Guest book Despite its undoubted advantages over the feedback form, it has one big drawback - it adds worries to the administrator. Now all messages from visitors are visible on the site and sometimes you need to respond to them. In addition, our guests write not only grateful reviews, but also all sorts of obscene things, and they do this with special zeal. I would kill these "writers"! Therefore, the guest book must be constantly monitored and education of hooligans and slackers must be done. An example of a guest book is shown in Fig. 1:



Fig.1. One of the guest book options

There are many options for guest books, paid and free, on the Internet. Sometimes a guest book is included in the list of services provided by hosting. In this case, you just need to place a link to the guest book on a page of your website and, if desired, configure its interface through the control panel. One problem is that when you change hosting, you will lose your guest book. So it’s better to have your own, especially since installing it on the site is as easy as two.

Guest books can be built using databases or without them. In the latter case, the information is stored in a regular file. If you are a supporter of simple solutions, then I recommend the second option, that is, without creating a database. I liked the guest book developed by Sergei Shestopalov (see his website "Home Scripts"). The site also offers interesting author's developments for interactive communication with visitors: forums, guest books, various forms for comments, sending messages, collecting statistics and many other useful things. Be sure to check it out, I recommend it!

For example, consider the installation Guest book version 2.0. It provides the following functions:

  • message management: deleting, editing, commenting,
  • setup and all work is done through the control panel, that is, you do not need knowledge of programming and other intricacies,
  • messages support emoticons, text and color formatting,
  • message preview,
  • there is an Antispam, Anti-Hacker system, blocking users by IP, searching for an attacker by IP,
  • Advertising protection and security are organized using captcha (input of distorted numbers). You can also create a “black list” of unwanted visitors and a list of prohibited words,
  • fully customizable interface and much more.

Guestbook 2.0 Despite its simplicity, it is quite sufficient for most applications. You can download it for free from the corresponding page of Sergei Shestopalov’s website. Size of the folder with files after unpacking (name - Book) about 400 KB.

Let's start installing a guest book on your website:

1. First, you need to check that your hosting plan (the office where your website is hosted) supports PHP. If not, then you will most likely have to pay extra to switch to another tariff that supports PHP.

2. Uploading the folder Book to your website, usually in the root directory, through the control panel or via FTP .

3. We place a hyperlink to the guest book on the desired page of the site - http://www.your_site /book/index.php.

4. It is also advisable to check the access rights to files and folders on your site. The most convenient way to do this is through the control panel. Next to each folder and file there are icons like rwx, r-x or numbers 755, 644, etc. They just indicate access rights for the site administrator and guests:
r(or 4) - the right to read data from the file,
w(or 2) - the right to change the contents of the file,
x(or 1) - the right to execute the file.

Digital coding is used to shorten the recording. For example, 7 is equivalent to writing rwx (4+2+1), etc. Without going into detail about these abbreviations, since they are usually explained in the site control panel manual, check that your folders are set to 755 (which corresponds to rwx, r-x, r-x), and your files are 644 (rw-, r--, r--). Usually these values ​​are set by default and you won’t have to change anything, but it’s best to check. As they say, “my neighbor is my friend, but it’s better to hide the lard.”

That's all! Go to your website, open the page on which you placed a link to the guest book, follow this link and leave the first message to your loved one.

Now a few words about guest book maintenance. The administrator's session with the guest book begins with authorization - logging into the control panel at http://www.your_site /book/admin/index.php. Login and password for the first login admin 111.

Next, you can change your password (it is advisable to do this) and start editing posts and replying to them. The admin panel interface is extremely friendly and you can easily figure out all the functions. All tools are clear and additionally provided with tips. For example, Fig. 2 shows the panel for customizing the appearance of the main page of the guest book and reveals the list of available panels:



Fig.2.

Of course, in exactly the same way as described, you can install a more complete version Guest book 3.2 Sergei Shestopalov, which has some additional functions: a statistics module, the ability to check messages by the administrator before publishing on the site (moderation) and some others.

As I already said, on the pages guest book Various unwanted “friends” like to leave their messages. They usually post links to their sites here, hiding behind rave reviews about your site. In 99% of cases it is spam. Therefore, I recommend that you exclude entering the website address in messages. To do this, log into the guest book control panel and on the tab Appearance - Shape Uncheck the "Site" item to prevent spammers from using the guest book to post links to their sites. It is better to leave email and ICQ, as sometimes people want to receive a confidential answer, that is, without posting in the guest book. When finished, don't forget to click the "Save" button at the bottom of the page.

Removing the "Site" item does not always help against clogging the guest book and it is best to check messages before posting them. By the way, if you receive few messages, you can simplify the guest book to a regular HTML page. This simplest option is described in

A guest book can be a great way for your website visitors to make a permanent impression on their presence on your website without being too intrusive. Before you start thinking about the HTML source for a guestbook, you need to decide how you want it to flow and how you want it look. In this case we will look at a guestbook that places a form for users to sign at the top. Below that there will then be a list of all the comments posted by the readers.

The HTML Source Code

The HTML source for our guestbook will consist of a web form and a list of DIV containers which will hold the display for the signed comments. The Part of the code that will handle the form is a simple as this.

Please Sign Our Guestbook

Right below the form, we will place the comments for other users that have already signed the guestbook and that HTML that handles this looks somewhat like this.

Love your website, I will come back often!!

It was a great experience spending time here, Would love to contribute more!!

Wilbur Right

Great to be a part of what you are doing here!!

Adam Adeve

Wish you all the best and success in your project!

Tony Scott

Keep up the good work!!

The effects of placing these two pieces of HTML code on your Guestbook webpage would be as illustrated in the image shown above on the left.

Making It All Work

As is the custom with HTML, it is not too functional on its own as HTML was designed primarily as a way to handle displays of text and images. To solve this problem, we need to implement some server-side code to process the data collected by the guestbook form. This server-side code could be in any one of a number of programming languages ​​such as PHP, ASP .NET, JSP, or Ruby. Since programming in these languages ​​is beyond the scope of this article, I’m going to use generic, “pseudo” code to represent the server side code and give you an idea of ​​how it might look.

connect to database

if(form submitted)(

insert data into database()

read all guestbook entries from database and order by date descending

while(database entries exist)(

// display entires in this format

print: "

$fullname$
$date$

$message$

."

close connection to database

The pseudo code above simply makes a connection to the database where the data is stored. It then checks to see if the guestbook form has been submitted. If it has, it then enters the data into the database.

The next thing the pseudo code does is read all the guestbook entries from the database and display them to the user right under the web form giving the result as seen in the image above.

Conclusion

There you have it. The HTML source for a guestbook does not get any simpler than that. Guestbooks are one of the easiest and most basic dynamic pages you will ever implement on your website. Of course the guestbook can be styled further and more complex modes of operation and data validation can and should be used to suite the flow of your website. Whichever way you choose to implement the guestbook, the basics as described in the pseudo code remain the same.

» » GBook

This PHP script will help you implement a guest book feature on your website. Without using any MySQL Database, it is not needed for the script to work. The Gbook script includes many powerful SPAM filters. As well as protecting mail from SPAMers.

The script has 2 txt files – header.txt and footer.txt. Using these files, you can add advertising blocks or counters to your guest book. Completely changing the template to suit the style of your site will also not be difficult. The Gbook program can be translated into any language in the world. Just change the words in one language.

Benefits of the script.

  • Emoticon support.
  • Does not require a MySQL database. All messages are stored in a file.
  • Notifying the admin by mail about a new message in the Guest Book.
  • Contains 2 steps of anti-spam checking.
  • You can ban an IP address so that they cannot leave messages.
  • Receive an email notification every time someone signs your guestbook.
  • Check message: list of “prohibited” (not censored) words for publication. Covers up ****
  • Anti-flood function. To prevent users from posting messages so often.
  • Private messages.






2024 gtavrl.ru.
Full Name:
Email Address
Message: