cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
messages list
January 13, 2008
7:26 pm
zdenek
Guest

Please replace the ??? with your data!


[desc]: Hi, I have enabled the database tracking for messages sent by cforms on my site and now I would like to insert list of the messages under the comment form.

 Is this possible somehow?

Please note I would like to avoid of using the wordpress commenting integration for the "contact" page. Why…?

- if I disable WP comments for this page, I can not comment

- if I enable WP comments, the WP comments form appears under my cforms form

- I do not want to replace WP comments by cforms – I only want to use cforms on my "contact" page.

All I need is simply table with list of previous messages containing author, time and text. While all these is now stored in database, it should work somehow, but I have no idea how to do that.

 Please advice if you can.

_

January 13, 2008
7:56 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

It's in fact quite easy, here is what I suggest (it will require some general WP knowledge & PHP/SQL skills):

  1. Either create a dedicated page template for your contact page or alternatively "make some room" in your general page.php template for a conditional "feedback list"
  2. The "feedback list" is essentially a loop that shows all form submissions and fields.
  3. The loop and the MySQL statement necessary to retrieve all data from the cforms tracking tables you'll find in cforms-database.php, little tweaking will be necessary.

The "feedback list" thus consist of a SQL call, a FOR loop, and small echo statement to print the data.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3744

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5345

Posts: 18714

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)