Username:
Password:
Search for Plugins: Advanced
Please Sign in, Register or Resend Activation Email

Forums

  e107 Coders.org :: Forums :: E107 Plugins :: Code Bank
 
<< Previous thread | Next thread >>  
Show / Hide Comment(s) - See Images Inside!          
Author Post
aSeptik
Tue Sep 04 2007, 03:58PM

Registered Member #36887
Joined: Wed Nov 23 2005, 10:20AM
Location: Italy
Posts: 11
Website
Hi all! ;D

the question I pose to you is this: suppose we need a fast way to show and post news comment on our site!

instead of going to another page for post comment (like e107 do by default) i have placed the magic ##SANITISED##'expandit(this)' trick to show / hide the comment FORM; but i can't make it work right!

see this example:

when i click on the Comment(s) 2 link, it don't open new window for posting comment...

Image: http://img513.imageshack.us/img513/4848/cnormalbb7.gif

...it do the show / hide trick like this:
Image: http://img513.imageshack.us/img513/5237/cexpandedox2.gif


The problem is that i can't make this FORM post anything on the database because i don't know the right code for do this; when i click the button for post it don't post nothing! :(
here is the code i have used to do this:

in the THEME.PHP

As you can see i need the right FORM code for POSTING the comment!

Image: http://img513.imageshack.us/img513/4377/ccodepj5.gif

Any suggestions will be very appreciated, tanks and good job! ;D

[ Edited Tue Sep 04 2007, 04:05PM ]
Killerpope
Tue Sep 04 2007, 06:56PM

Registered Member #70860
Joined: Sun Jan 07 2007, 03:28PM
Location: Germany
Posts: 290
first one hint: pls post code on sites like paste2.org
i didn't look at the code too closely, but the comment form has to look like this
Back to top
Website
aSeptik
Tue Sep 04 2007, 08:38PM

Registered Member #36887
Joined: Wed Nov 23 2005, 10:20AM
Location: Italy
Posts: 11
Hi Killerpope! tnx for tips! ;D

here the link to my code: [link]
Back to top
Website
Killerpope
Wed Sep 05 2007, 02:46PM

Registered Member #70860
Joined: Sun Jan 07 2007, 03:28PM
Location: Germany
Posts: 290
you shouldn't use the $action variable for the submit button. it should (i think) always (at least for news) be <input type="submit" name="commentsubmit" class=..., otherwise the code responsible for the comment to be inserted into the db isn't executed. the other fields look ok.
Back to top
Website
aSeptik
Fri Sep 07 2007, 09:02AM

Registered Member #36887
Joined: Wed Nov 23 2005, 10:20AM
Location: Italy
Posts: 11
Tnx a lot man! ;D now it work perfectly!

i have just another answer to you! I need a way to display also the posted comment under the FORM! pls show me the way/code! ;D

if you want see the result fell free to visit my site (still under construction) moca.altervista.org
Back to top
Website
omygod007
Wed Jul 27 2011, 07:19AM
Registered Member #113034
Joined: Mon Jun 13 2011, 06:50AM
Location:
Posts: 3
i agree the opionin
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
Render time: 0.2193 sec, 0.1414 of that for queries. DB queries: 38.