• [MOD] guestbook 5 0 5 1
Currently:  

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

0 Members and 1 Guest are viewing this topic.

Offline sbex55

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] guestbook
« Reply #165 on: May 13, 2006, 03:19:52 PM »
Hello.  Could someone provide me the code change to 1.7.2 to get the GuestBook link displayed on my site?  I've added the code to get it working but I don't like the location of the link.  I would like to add the link on the clickstream line right before the 'Top Images  New Images" links.

Thanks for the help!

Scott

b.o.fan

  • Guest
Re: [MOD] guestbook
« Reply #166 on: June 04, 2006, 11:26:24 AM »
hello

if you installed this [MOD] Country flags (based on IP) in whos online in ACP http://www.4homepages.de/forum/index.php?topic=6709.0

you can show the flag of the guestbook writer in the entry.

open

guestbook.php an find:

Code: [Select]
$site_template->register_vars(array(
"comment_id" => $comment_row[$i]['comment_id'],

Replace this with:
Code: [Select]
    if (!class_exists("GeoIP"))
    {
      include(ROOT_PATH."includes/geoip.inc");
    }
    $gi = geoip_open(ROOT_PATH."includes/GeoIP.dat",GEOIP_STANDARD);
    $countries = array();
    $cid = geoip_country_code_by_addr($gi, $comment_row[$i]['comment_ip']);
    if (empty($cid)) $cid = "lan";
    $countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
    $comment_user_flag = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0>";

      $site_template->register_vars(array(
            "comment_id" => $comment_row[$i]['comment_id'],
            "comment_user_flag" => $comment_user_flag,

Then open your template/<your template>/guestbook_comment_bit.html

there you can use {comment_user_flag} to show the flag!

b.o.fan

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] guestbook
« Reply #167 on: June 07, 2006, 03:43:07 AM »
any ideia about  insert member profile pic in guestbook comments ? or avatar ....

 :?:
« Last Edit: June 07, 2006, 02:08:39 PM by Stoleti »

b.o.fan

  • Guest
Re: [MOD] guestbook
« Reply #168 on: June 07, 2006, 12:30:33 PM »
hello to all:

i ve my guestbook.php on www.wartenaufen15.de

but the user can't make entrys.

in ACP all is on.

here is my guestbook.php


thx for help!

SOLVED
« Last Edit: August 23, 2006, 02:22:40 PM by b.o.fan »

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] guestbook
« Reply #169 on: June 08, 2006, 01:50:28 AM »
Another question... about added headline ??

b.o.fan

  • Guest
Re: [MOD] guestbook
« Reply #170 on: June 11, 2006, 09:53:26 PM »
hello to all:

i ve my guestbook.php on www.wartenaufen15.de

but the user can't make entrys.

in ACP all is on.

here is my guestbook.php


thx for help!

nobody can help?

here is my guestbook_form.html#

SOLVED
« Last Edit: August 24, 2006, 06:38:32 AM by b.o.fan »

Offline havanna28

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [MOD] guestbook
« Reply #171 on: August 23, 2006, 12:33:53 PM »
Hallo zusammen

wenn ich die install_guestbook starten möchte bekomme ich immer wieder folgende Fehlermeldung angezeigt...
An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.


Hat jemand eine Idee woran das liegen kann?

Dirk

Offline *Marco*

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] guestbook
« Reply #172 on: August 24, 2006, 12:29:27 AM »
Hello there,

Has anyone build this MOD successfully into version 1.7.3  :?:
I did, but I'm getting no responce when I open .../guestbook.php in my root.
Or do I need to do any changes in the SQL-statements :?:

Offline dzsin

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] guestbook
« Reply #173 on: August 27, 2006, 04:50:25 PM »
Hi

I tried to install this mod with the 1.7.3. doesnt work correctly.

Code: [Select]
An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampplite\htdocs\gallery\includes\db_mysql.php on line 171

An unexpected error occured. Please try again later.

If i click guestbook (load the guestbook.php) i can see a form and the message An unexpected error occured. Please try again later. if i want to add a message the error above happens.

anyone knows why?

Offline his-luke

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] guestbook
« Reply #174 on: August 30, 2006, 08:50:43 PM »
http://his.web.my-ct.de/pics/guestbook.php

any sugestions?

strange that there are no comments shown but pages oO
« Last Edit: August 30, 2006, 09:02:22 PM by his-luke »

Offline markus1689

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] guestbook
« Reply #175 on: August 31, 2006, 03:08:30 AM »
http://his.web.my-ct.de/pics/guestbook.php

any sugestions?

strange that there are no comments shown but pages oO
I've the same problem!!!!
there are no comments shown (they are in the database) but always the form to create enteries.

please help!!!

thanks markus

Offline robi1a

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] guestbook
« Reply #176 on: August 31, 2006, 02:32:06 PM »
Hi!

I have the same problem with version 1.7.3!!
I can only see the form to create my entries.

All the entries are in the database but nothing is shown!

How knows the trick to change the guestbook.php so that
the guestbook entries are displayed correctly????

Robert

Offline juliano

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] guestbook
« Reply #177 on: September 02, 2006, 03:04:07 AM »
Put this in your template file:

{if msg}<br /><b>{msg}</b>{endif msg}
                  <br />
                  {guestbook_comments}
                  {contents}

Anyone put captcha code at guestbook?

Offline paburmester

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: [MOD] guestbook
« Reply #178 on: September 22, 2006, 05:36:30 AM »
hi, this mod is supported by 1.7.3? please someone let me know to install it
regards

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [MOD] guestbook
« Reply #179 on: September 22, 2006, 11:41:35 PM »
This you have to write in your template (f.e. guestbook.html).

Code: [Select]
<span class="title">{lang_guestbook}</span>
                  <hr size="1" />
                  {if msg}<b>{msg}</b><br /><br />{endif msg}<br>
              {guestbook_comments}<br>{contents}
              <p>&nbsp;</p>
            </td>

I have copy the home.html. Rename it to guestbook.html and deleted the code in the middle column. That I copied this code above and ready.

Hallo,

is allready running...  :D

Klappt alles wenn man nur das richtige einbaut ;-)

Grüße Darkness