Error: syntax error
Source File: http://www.muddydogpaws.com/notebook/ajax-search-snippet.html
Line: 408, Column: 6
Source Code:
if ( == 1 && 0 == 1) { b.style.display="inline"; } else { a.style.display="inline"; }
[!Jot?subscribe=`0` &pagination=`10` &customfields=`name,url` &tplForm=`commentform` &tplComments=`comment`!]
<form method="post" action="[+jot.link.current+]"> <input name="JotForm" type="hidden" value="[+jot.id+]" /> Link url:<br /> <input tabindex="1" name="linkurl" type="text" size="40" value="[+submit.linkurl+]" /><br /> Link title:<br /> <input tabindex="2" name="linktitle" type="text" size="40" value="[+submit.linktitle+]" /><br /> Link text:<br /> <input tabindex="3" name="linktext" type="text" size="40" value="[+submit.linktext+]" /><br /> Subject:<br /> <input tabindex="4" name="subject" type="text" size="40" value="[+submit.subject+]" /><br /> Comment:<br /> <textarea tabindex="5" name="message" cols="50" rows="8">[+submit.message+]</textarea><br /> <input tabindex="6" name="submit" type="submit" value="Post Comment" /> </form><br />
<a name="jc[+jot.id+]-[+comment.id+]"></a> <div class="jot-row [+chunk.rowclass+]"> <div class="jot-comment"> <span class="jot-subject">[+comment.title:esc+]</span> <div class="jot-message"> <a href="[+comment.custom.linkurl+]" title="[+comment.custom.linktitle+]">[+comment.custom.linktext+]</a><br/> [+comment.content:esc:nl2br+] </div> </div> <div class="jot-poster"> by [+comment.createdby:userinfo=`username`+] on [+comment.createdon:date=`%a %B %d, %Y at %H:%M`+] </div> </div>

Hello David,
doze,
Thanks for that.
I’m not very good on PHP but when it’s mixed with XML I’m lost!
To see wat I wanted follow this link
Again many thanks I can roll it out for the school
David
If you want to be able to input the Lecky and Search links when posting a comment, it goes like I posted above.. but if you are also using the name and email fields that are there if you do the default install, you should just put the extra fields to the default templates (the .html files in Jot folder).
Great work, but I still have some feature request
- It should be possible to place content (and other fields) of the comment in the chunk for the moderator email (tplNotifyModerator)
- Some fields in the comment view should only be visible for moderators. (&hiddenfields=`email,secip`)
bS, I am getting a javascript error and am not sure of the cause.
I’ve discovered a small problem wuth my set up of Jot
Everyone can view, my registered users can post, as manager I can delete, unpublish etc.
I want my registered usersto be able to delete etc.
I used the &canmoderate=`Registered Users` call but they don’t get the delete etc. options.
Any thoughts anyone?
David
This discussion is closed to further replies. Keep calm and carry on.