Webmastersite.net
Register Log In

feedback section
how to create

Comments on feedback section

morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 03, 2005 - 9:18 PM:

Hi all,

I would like to create a feedback section where members or visitors can post any feedback. Same thing like comments section. I just want visitors or members to post any feedback like Thank You, your website is great! or something. I tried to use the view comment tpl file to create a feedback.php page but failed. I have no knowledge of php at all.

Please help. THanks!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 04, 2005 - 10:21 AM:

Sure you aren't looking for scripts.webmastersite.net/w...nks/wsnmanual/articles/234 ?

For a public comments thread, you'd just need to create a hidden link and link to its comments thread.
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 04, 2005 - 10:30 AM:

Hi Paul,

Thanks for replying. I thought of the idea of making a new hidden link with a link to its comment but wouldnt the hyperlink looks weird? Since it is like www.mysite.com/linkdirectory/thread/1251 I mean can i replace thread/1351 to feedback.php? How to do that if it is possible?

Also, it would be great if i can put some text on top of the comment thread like This section is for users feedback. You can post anything you want. Blah blah blah...

Thanks!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 05, 2005 - 9:20 PM:

I think that's in the 'custom template anywhere' hack thread, or one of those similar ones. Though with mod_rewrite you could make it show as anything without the need for a file.
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 06, 2005 - 9:55 PM:

Hi Paul,

<quote>I think that's in the 'custom template anywhere' hack thread, or one of those similar ones.</quote>

I searched for most threads but cant seem to find it. ANy help?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 07, 2005 - 8:46 PM:

Second thread from the top of the forum: www.webmastersite.net/forum...orums/comments.php?id=3937 . You're looking for post 11 but you want to include comments.php instead of index.php. And in addition to $custom and $TID you want to specify your $id for the link.
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 08, 2005 - 4:26 PM:

Thx Paul!

I have got this working well but only one small problem. When visitors post the new feedback. they will be redirect to mysite.com/thread/linkid which is the comment page. So can i choose to redirect the user back to feedback.php?

I left the redirect for after-posting-comment-page blank and it redirects to index.php. I guess i am using mod rewrite and that is why they are being directed to the main index. So it is better i put back comments.php?$linkid so that they can see their comments posted. But how do i do this with feedback.php?

And how do i change the main title of the page? The title is still Comments on $Linkid.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 09, 2005 - 6:52 PM:

There is no mechanism to change the location the user is redirected to on the fly.

For the title, you'd have to use $usewrapper = 'no'; and incorporate the wrapper you want into your custom template.

There is no mechanism to use multiple redirects on the same page. Edit: Actually if you leave the redirect blank, and then send a returnto value in the form being submitted, that could work.

I guess i am using mod rewrite and that is why they are being directed to the main index.

How could that bear any possible relation? I don't see how redirects relate to mod_rewite. Presumably it's just the cookie was last set on index.php, or not all.
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 19, 2005 - 11:52 AM:

Edit: Actually if you leave the redirect blank, and then send a returnto value in the form being submitted, that could work.


How to set a returnto value in the form?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Apr 19, 2005 - 5:05 PM:

<input type=hidden name=returnto value=url>
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
#11 - Quote - Permalink
Posted Apr 30, 2005 - 7:56 PM:

Hi Paul,

The feedback section works well with the redirect too. However now that the comments have been more than 15 and it has split into 2 pages.

First page - http://mysite.com/feedback.php

Second page - http://mysite.com/wsnlink/thread/1200/2

I tried to modify the custom feedback.tpl and it only shows
<IF {MULTIPAGE}>
Page: {PREVIOUS} <b>{CURRENTPAGE}</b> {NEXT}
</IF>

How can i set the variables so that if multipages are made for the feedback.php, there will be like feedback2.php?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted May 01, 2005 - 8:59 AM:

I'm not sure what exactly you're using, but I suppose you could change it all to a toplist.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.