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.
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...
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.
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.
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.
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.
Comments on feedback section
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
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!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
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!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
How to set a returnto value in the form?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
<input type=hidden name=returnto value=url>
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I'm not sure what exactly you're using, but I suppose you could change it all to a toplist.