• [MOD] guestbook 5 0 5 1
Currently:  

Author Topic: [MOD] guestbook  (Read 526018 times)

0 Members and 2 Guests are viewing this topic.

Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] guestbook
« Reply #210 on: September 07, 2007, 09:31:49 AM »
Hi,
I got this after installing when I try to access "guestbook.php". Any idea?

Fatal error: Call to undefined function: get_smiles_text() in /x/x/x/x/x/x/guestbook.php on line 362


and this is the code near line 362:  "smiles_text" => get_smiles_text(),

Code: [Select]
  //-----------------------------------------------------
  //--- BBCode & Form -----------------------------------
  //-----------------------------------------------------
  $bbcode = "";
  if ($config['bb_comments'] == 1) {
    $site_template->register_vars(array(
      "lang_bbcode" => $lang['bbcode'],
      "smiles_text" => get_smiles_text(),
      "lang_tag_prompt" => $lang['tag_prompt'],
      "lang_link_text_prompt" => $lang['link_text_prompt'],
      "lang_link_url_prompt" => $lang['link_url_prompt'],
      "lang_link_email_prompt" => $lang['link_email_prompt'],
      "lang_list_type_prompt" => $lang['list_type_prompt'],
      "lang_list_item_prompt" => $lang['list_item_prompt']
    ));
    $bbcode = $site_template->parse_template("bbcode");
  }

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] guestbook
« Reply #211 on: September 07, 2007, 10:10:26 PM »
get_smilies_text from Smilies MOD. Install smilies so guestbook work.

This might help too:

http://www.4homepages.de/forum/index.php?topic=10168.0
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] guestbook
« Reply #212 on: September 07, 2007, 11:05:19 PM »
Thunderstrike, first i've deleted the "smilies" partline in the php file and guestbook works great.  Later I 'll try to install smilies mod when I'll find 5 minutes. Thank for your help .

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD] guestbook
« Reply #213 on: October 20, 2007, 11:53:33 AM »
I have a problem, this mod doesn't work if the text of the comment contains accentuated character, why?!

http://www.webax.it/guestbook.php

I'm still waiting for your help  :(
Alessio
my homepage: http://www.webax.it

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] guestbook
« Reply #214 on: October 20, 2007, 11:55:29 AM »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD] guestbook
« Reply #215 on: October 20, 2007, 12:33:56 PM »
@Alessio:

Ok - here - use this fix:

http://www.4homepages.de/forum/index.php?topic=18256.0

Thank you veeeeeery much!!!! Now my guestbook works fine!
Alessio
my homepage: http://www.webax.it

Offline derrick

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [MOD] guestbook
« Reply #216 on: October 21, 2007, 11:25:17 PM »
Dear friends!

Badly in need of the file install_guestbook.zip.

Would You zip on the mail rusinter@gmail.com, please.


Hi,

I also need install file because this link is not working
"now download this file http://140.112.132.43/install_guestbook.zip"
Could you please post in this forum any live link to install file or could you pls send it to me on bakchus@gmail.com?
Thanks!

duso

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD] guestbook
« Reply #217 on: October 21, 2007, 11:37:12 PM »
Dear friends!

Badly in need of the file install_guestbook.zip.

Would You zip on the mail rusinter@gmail.com, please.


Hi,

I also need install file because this link is not working
"now download this file http://140.112.132.43/install_guestbook.zip"
Could you please post in this forum any live link to install file or could you pls send it to me on bakchus@gmail.com?
Thanks!

duso

Did you read my message?
http://www.4homepages.de/forum/index.php?topic=7409.msg92357#msg92357
Alessio
my homepage: http://www.webax.it

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] guestbook
« Reply #218 on: October 28, 2007, 08:47:59 PM »

hello people

i donīt know if this is the right file, but this is my guestbook zip what i īve found.

bye
glitzer

Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] guestbook
« Reply #219 on: November 25, 2007, 08:17:34 PM »
Hello,

Im really disappointed because I try to run this mod on 4images 1.7.4
 
and when i go to "guestbook.php" page there is just the form with no guestbook posts shown (whereas I can see them in the database phpmyadmin).
And if i fill and send the FORM, the next page will show now the guestbook posts.
And if I want to delete or edit a post, the next page will ask me to delete/edit  or not and next page WONT show posted messages again.

Does anybody could post here "guestbook.php" please?

Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] guestbook
« Reply #220 on: November 27, 2007, 09:01:43 AM »
up

Offline CanonInk

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] guestbook
« Reply #221 on: November 29, 2007, 10:35:53 AM »
Hello,

Im really disappointed because I try to run this mod on 4images 1.7.4
 
and when i go to "guestbook.php" page there is just the form with no guestbook posts shown (whereas I can see them in the database phpmyadmin).
And if i fill and send the FORM, the next page will show now the guestbook posts.
And if I want to delete or edit a post, the next page will ask me to delete/edit  or not and next page WONT show posted messages again.

Does anybody could post here "guestbook.php" please?


Create a new guestbook.html in your /4images/template/{your_template}/ by using error.html

Find:
Code: [Select]
td width="450" valign="top"><br />
                  <b class="title">{lang_error}</b>

Replace:
Code: [Select]
<b class="title">{lang_error}</b>
                  <hr size="1" />
                  <p>{error_msg}</p>

with:
Code: [Select]
{if msg}<br /><b>{msg}</b>{endif msg}
{guestbook_comments}
<br />
{contents}
<br />

Now your guestbook will show the stored guestbooks posts in db and a blank form for a new post.

Offline CanonInk

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] guestbook
« Reply #222 on: November 29, 2007, 11:04:43 AM »
Using CAPTCHA and not Flood Check by checking ip

Currently SPAM-boots can post comment in your guestbook (when installed). With this changes every comment poster have to enter a CAPTCHA-Print.

Open 4images-root: guestbook.php

Find:
Code: [Select]
if ($action == "postcomment" && $config['guestbook_post'] == 1) {
    $comment_user_name = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_user_name']));
    $comment_text = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_text']));
    $comment_site = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_site']));

Add after:
Code: [Select]
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";

Uncomment Flood Check part with "//" like this:
Code: [Select]
// Flood Check
//   $sql = "SELECT comment_ip, comment_date
//              FROM ".GUESTBOOK_TABLE."
//         WHERE comment_ip = '".$session_info['session_ip']."' 
//         ORDER BY comment_date DESC
//         LIMIT 1";
//   $spam_row = $site_db->query_firstrow($sql);
//   $spamtime = $spam_row['comment_date'] + 360;

//   if (time() <= $spamtime && $user_info['user_level'] != ADMIN)  {
//      $msg .= (($msg != "") ? "<br />" : "").$lang['spamming'];
//      $error = 1;
//   }

Find:
Code: [Select]
if (!$error)  {
      if ($comment_site =="http://") {
         $comment_site = "";
      }

Add after:
Code: [Select]
if (!captcha_validate($captcha)) {
      $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
      $error = 1;
    }

Open /4images/template/{your_template}/guestbook_form.html

Find:
Code: [Select]
<tr>
  <td width="90" valign="top">&nbsp;</td>
  <td>{bbcode}</td>
</tr>

Add after:
Code: [Select]
<tr>
  <td valign="top"><b>{lang_captcha}</b></td>
    <td>
      <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
      <input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
      <br />
      {lang_captcha_desc}
  </td>
</tr>

It's tested with 4Images 1.7.4 where CAPTCHA is enable in config.php.

Enjoy...

Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] guestbook
« Reply #223 on: November 30, 2007, 10:03:52 PM »
Thank you CanonInk  but I think I've found what's wrong with me:
I've installed[MOD] Multi-Language support for any text it's been a long time.
It works like this: You put [french] or [english] before the text you want to appear depending on what have choosen your visitor's website when cliking on the gif english or french. Ok.
And there was a [french]bla bla and an [english]talk talk in my first post in the guestbook.
If i supress them, so all the posts are shown:D  how strange it is?
« Last Edit: November 30, 2007, 10:29:56 PM by orb4 »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] guestbook
« Reply #224 on: January 26, 2008, 11:21:41 AM »
Your first three "must do" before you ask a question ! ( Đ by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...