11
Mamba
Re: Renam xfguestbook
  • 2009/7/3 7:54

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Well, I went to your files, and there are still many "xfguestbook". The best tool to find out those things is InfoRapid Search & Replace

For example:

1) File zonar\include\search.inc.php
Line 47: $ret[$i]['image'] = "images/xfguestbook.gif";

2) File zonar\sql\create_badips.sql
Line 5: CREATE TABLE `xfguestbook_badips` (

3) File: zonar\zonar\sql\create_country.sql
Line 5: CREATE TABLE `xfguestbook_country` (

4) File: zonar\sql\update_config.sql
Line 5: CREATE TABLE `xfguestbook_config` (
Line 22-31 All the lines contain e.g. xfguestbook
INSERT INTO `xfguestbook_config` VALUES (1, 2, 'opt_mail', '_AM_XFGB_MAILTRUE', '', '1', 'selectmail', 'int', 1);

However, in the PHP files, you've changed the name of the table to zonar_config.

At this moment I don't know if this will create any conflict, but for consistency reasons, I would recommend to rename everything to "zonar".


DEBUGGING:

Let's see what potential problems we might have with your files.

1) I've installed your files without any changes, on local WAMP. Installation was OK.

2) Clicked on "Sign Guestbook"
Got error: Warning: Smarty error: unable to read resource: "db:zonar_signform.html" in file /class/smarty/Smarty.class.php line 1092

3) Checked on the file, and it's there in /templates subdirectory

4) Checked on occurrences in the code, and the only place is in Xfcreate.php, so obviously something is wrong here. Checked the original Xfguestbook files for "xfguestbook_signform.html", and found it in xoops_version.php

$modversion['templates'][3]['file'] = 'xfguestbook_signform.html';

5) Checked the same location in our current xoops_version.php, and found:
$modversion['templates'][3]['file'] = 'zonar.html';

Obviously, it should be "zonar_signform.html"

6) Now I have two options:
a) uninstall, change the source and reinstall
b) change the value directly in the _tplfile table in the Database

To speed things up, I changed the value in the table using phpMyAdmin

7) Testing again - everything works now, at least on local WAMP installation.

See if this makes difference on your server.

BTW - I still would recommend to Search and Replace all occurrences of xfguestbook to zonar.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

12
xsell
Re: Renam xfguestbook
  • 2009/7/3 8:48

  • xsell

  • Quite a regular

  • Posts: 245

  • Since: 2008/9/2 1


Thx Mamba But did you Read My last post , I have Updated it and Said that I got it Finly ..the Problem was the Version of module i used before when i switched to the One u listed earlyer i got itt o work .:)

Login

Who's Online

348 user(s) are online (275 user(s) are browsing Support Forums)


Members: 0


Guests: 348


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits