If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
My Modifications  XML
Forum Index » Advanced Guestbook Modifications
Author Message
Hondo
Newbie

Joined: 08/10/2009 13:46:28
Messages: 3
Offline

Hi,
I'm missing 2 things at ADVGuestbook:
1. Spamwords Managements
2. Administration of new Items

My quick and dirty solutions:
Spamword management:
Edit add.class.php at about line 224 in function add_entry():


Second Managing new Entries:
I added a new field called validate tinyint(2) with 0 as default value.
Then changed gb.class.php as follow:


And function get_entries in same file:


I Inserted 2 Buttons for release and delete:


And I Inserted the $Adminbuttons in template entry.
Also I make a connection to SMF Forum, and from there I get the value of $ISADMIN. For confirming and deleting Entries I create 2 php files wich contains the mysql connection and the queries.

Here is a screenshot of an entry as the admin sees:
http://www.mkportal-support.de/img/advguestbook.gif
You see the 2 icons over the entry.

OK, thats it. If somebody is interested of the code please send me an email or pm.

Andreas
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

1 - Spamwords is dealt by the bad words list in admin
2 - If you mean the ability to make new posts require moderating then this is something I added to Lazarus which is a fork of Advanced Guestbook.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Hondo
Newbie

Joined: 08/10/2009 13:46:28
Messages: 3
Offline

Hi,
as I know are words in bad words list only converted to something.
What I mean is that entries wich contains bad words are to cancel by system and not to save in table. I spend a lot of time every day to delete such spams. So I will spare me this time because spams are not at all saved.

2. Yes, moderate new entries. I don't want to use Lazerus, I use ADVGuestbook.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

http://proxy2.de/forum/viewtopic.php?t=5540

I'm not suggesting you do switch to Lazarus (even though it's pretty much identical to AG being that is is AG but rewritten) I was just indicating I had added it already for those that do not want to modify their AG.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Hondo
Newbie

Joined: 08/10/2009 13:46:28
Messages: 3
Offline

Hi,
yes Lazerus seems much better than ADVGuestbook especially the spam management. But at this project I use ADVGuestbook and my modifications also works. But for next projects I think I will try Lazerus.

Thanks
cebe100
Newbie
[Avatar]

Joined: 20/10/2014 17:24:38
Messages: 1
Offline

good !!
 
Forum Index » Advanced Guestbook Modifications
Go to:   
Based on the open source JForum