Guestbook-Administrations-Hack

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
ederhj
Posts: 7
Joined: Mon 24. Jan 2005, 23:11

Guestbook-Administrations-Hack

Post by ederhj »

Hallo,

ich habe einen Hack - vielleicht nimmst du ihn ja in deine nächste Version auf - für das Guestbook erstellt. Mit diesem Hack ist es möglich, dass Einträge ins Gästebuch erst nach Freigabe durch den Admin auf der Seite angezeigt wird (mit EMail-Benachrichtigung an Admin bzw. an Person).

Siehe:
http://freeware.ip-e.de/guestbook_hack_ip-e.txt
http://freeware.ip-e.de/guestbook_hack_ip-e.zip

Könntest dies ja irgendwie im Forum angeben!

DANKE
Hans-Jürgen Eder

P.S.: Auf Feeback würde ich mich freuen!
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

I just paste this in, so we also have english desciption...

Good job: ederhj!
############################################################################################
## Content Part "GUESTBOOK" Hack by iP-e (Hans-Jürgen Eder)
##
## Description: This "hack" (I hope this "hack" will be included in the next versions)
## enhances the original GUESTBOOK in the way, that it can be administrated.
## That means, that the guestbook-entry is at first not shown so that the
## site administrator is able to release the entry or to delete the entry.
## It is also possible that the site administrator gets an email, if an entry
## is made. And if the admin releases the entry, the person who made the entry
## gets an email that the entry is released.
http://www.studmed.dk Portal for doctors and medical students in Denmark
brans

Post by brans »

If this will not be included it is certainly worth to publish it at the add-on section on http://www.phpwcms-docu.de ...

Is it ok for you if we publish it there ?
ederhj
Posts: 7
Joined: Mon 24. Jan 2005, 23:11

Post by ederhj »

brans wrote:If this will not be included it is certainly worth to publish it at the add-on section on http://www.phpwcms-docu.de ...

Is it ok for you if we publish it there ?

Yes, for sure, it's ok!

Thanks!
cyaneo
Posts: 128
Joined: Sun 6. Feb 2005, 01:23
Contact:

Post by cyaneo »

Hey - great MOD, man! :o

This was exactly needed!


Thank you!
Gruss
cyaneo
Zen Cart - The Art of e-Commerce

Wenn jeder dem anderen helfen wollte, wäre allen geholfen.
-------------------------------------------
Ein Problem ist halb gelöst, wenn es klar formuliert ist.
fkeiner
Posts: 19
Joined: Thu 16. Dec 2004, 16:00

Nice work

Post by fkeiner »

Good job, works fine!

Thanks,

Frank
marco

Post by marco »

Thjis is great, would it be possible to have the hacked (edited) version file in a zip to save the individual edits?

Also, is there any easy way to make both e-mails optional,
something like a checkbox?

Ideally the old/new guestbook entries would be listed in the back-end with an edit icon and a "publish" checkbox next to them and could be released that way. This would eliminate receiving a lot of e-mails if there are a lot of guestbook entries and also allow to easily edit/release the entires.
brans

Post by brans »

Hi marco, if you have enhanced this hack, then feel free to save it in a .php.txt file and post it in an attachment to:
--...--/index.php/board,1.0.html
marco

Post by marco »

brans wrote:Hi marco, if you have enhanced this hack, then feel free to save it in a .php.txt file and post it in an attachment to:
--...--/index.php/board,1.0.html
I have not tested it yet, but I will send it if I do.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

Hi guys,
any of you have this moderated guestbook working under dev 1.2.5?
I think I have a few issues - it only works while I am logged in as admin.

I have altered the code in a few places as the zip files do not include the new hashed sessions. I think it is very likely to be a sessions issue.

I would really apreciate any help or pointers on what the problem could be.

if anyone has the 1.2.5 working files I'd be happy to accept that short cut too :D
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

turn Cache for this Article/Contentpart Off.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

Thanks Pico
It works perfectly :)
:oops: I must be so jaded by hacks and mods that I had forgoten to apply the basics :oops:

I would no offically like to say 8) cool mod

for anyone wishing to DL the NEW dev 1.2.5 files you may do so here.

...and remember to TURN CACHE OFF!! :)
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

This is really great, and I hope it will be part of phpwcms in the future (with slight enhancements).

(Installed and works fine with version 1.2.3)
Last edited by spirelli on Sat 31. Dec 2005, 02:33, edited 1 time in total.
User avatar
Cyrus
Posts: 63
Joined: Mon 22. Mar 2004, 05:40
Location: New Zealand
Contact:

Post by Cyrus »

I was interested in implementing this hack on a v1.2.5 and followed these instructions, including turning the cache off.

Obviously something wrong on my end, but I get the following abnormalities.

1. Initially the guestbook appears. When the guestbook is filled, the entry appears in the admin and the user sees a page saying thanks, etc.

2. No email arrives for admin or user.

3. Subsequently, when the guestbook link is clicked again, no guestbook appears !! Only the very first entry if activated.

I have tried to redo the steps a few times, to ensure that I have followed instructions correctly, including clearing the cache, etc., but on each ocaission get the same error steps listed above.

As of now, I have removed the guestbook, but just out of curiosity, wonder if I could get some advice on this.

Regards.
Cyrus
jkn
Posts: 58
Joined: Mon 23. Aug 2004, 20:00

Post by jkn »

hello,
anyone try this great hack on v1.2.6!???

i have installed v1.2.6-DEV 14.12.2005 and the same problems as Cyrus!!?? no email for the admin arrives and the comment is directly published!??

you can test it here:

http://www.digimade.de/index.php?guestbook

thx for your help & sorry for my bad english :oops: !!

by
jkn

p.s. cache is off!
Post Reply