Page 1 of 11
uCause Community » Trash & Archives » Other » How to post comment to another page?
How to post comment to another page?
CartmanDate: Sunday, 2011-11-27, 7:24 AM | Message # 1
Member
Group: Senior Members
Messages: 5
Awards: 0
Reputation: 0
Status: :-(
I would like to make a comment wall on my site.
I would use a news entry that can has comments, and display its comments on the main page of my site (and every other page also).
I can grab the comments with the JQuery .load() function and display them where I want easily, but i can not post comments from outside of that news entry.

I've tried to grab the comment adding form with the load() function, but it only works on pages, that has already comment possibilies.

So, my question is: is there a way to make a comment form that is available everywhere on the site and sends the comment to a specified news entry?

Sorry for my bad english.
Thanx in advance for the help! ;)tags-zB11How, to, post, comment, to, another, page?
 
0 Thanked you For This Useful Post:
ParadoxDate: Sunday, 2011-11-27, 7:30 AM | Message # 2
Haunter
Group: Senior Members
Messages: 468
Awards: 6
Reputation: 11
Status: :-(
Cartman, you do not need to use custom coding to do what you are trying to do. Just use the informers featre supplied as part of the system.You can find info on them at the official forums using search. wink

Request Terminated_
 
0 Thanked you For This Useful Post:
CartmanDate: Sunday, 2011-11-27, 7:34 AM | Message # 3
Member
Group: Senior Members
Messages: 5
Awards: 0
Reputation: 0
Status: :-(
Paradox, Displaying comments is possible with informers, but adding comments are not. sad
 
0 Thanked you For This Useful Post:
AnimorphDate: Sunday, 2011-11-27, 3:05 PM | Message # 4
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
Cartman, If you want some kind of commenting wall i suggest that you use the guestbook on his page and if you want it to appear on another page use Iframes
 
0 Thanked you For This Useful Post:
CartmanDate: Sunday, 2011-11-27, 11:04 PM | Message # 5
Member
Group: Senior Members
Messages: 5
Awards: 0
Reputation: 0
Status: :-(
Some more info:

This code is represent on pages, that has comment features (Page with full entry text and associated comments):
Code

<script type="text/javascript">function addcom(f){if (document.getElementById('addcBut')){document.getElementById('addcBut').disabled=true;}else {try{document.addform.submit.disabled=true;}catch(e){}}if (document.getElementById('eMessage')){document.getElementById('eMessage').innerHTML='<span style="color:#8B8B8B"><img src="http://s55.ucoz.net/img/ma/m/i2.gif" border="0" align="absmiddle" width="13" height="13"> Transmitting data ...</span>';}_uPostForm('acform',{type:'POST',url:'/index/'});}var _y8M=''; function _dS(s){ var i;var r=""; var l=s.length-1; var k=s.substr(l,1); for (i=0;i<l;i++){ c=s.charCodeAt(i)-k;  if(c<32){ c=127-(32-c);} r+=String.fromCharCode(c); } return r;} _y8M=_dS('>kprwv"v{rg?$jkffgp$"pcog?$uqu$"xcnwg?$4;64923225$"1@2');</script><form method="post" name="addform" id="acform" style="margin:0" action="/index/" onsubmit="addcom();return false;"> <script type="text/javascript">document.write(_y8M)</script>
...


If I copy the form from that page to another, it won't work, because the script doesn't exist on the new page.
Is it possible to copy that script since it has no ID?
Or how should I modify it to work with all pages and all users everywhere on the site?

Added (2011-11-27, 3:39 PM)
---------------------------------------------
Animorph, Thanx for reply, but the guest book has maximum comment number determined, that is afaik 700 and is not enough. Also I hate iframes, and I'am so close to finish my new site, that I don't want to change now. The only thing left to solve is one function that posts the comment to the specified page. I won't give up! sad
I saw in your "bad-link-report" script that you solved a very similar issue with sending PMs. I know (i hope) you can help me on this also. wink

Added (2011-11-27, 11:04 PM)
---------------------------------------------
Animorph, You were right! The final solution is using a hidden iframe. (found it here...)

Thank You for all your help!

Message edited by Cartman - Sunday, 2011-11-27, 3:41 PM
 
0 Thanked you For This Useful Post:
uCause Community » Trash & Archives » Other » How to post comment to another page?
Page 1 of 11
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers