In my opinion there is one thing lacking in the commenting system of boonex, anonymous commentors cannot leave their name and/or url, which will greatly improve and motivate readers to leave a comment. Such as commentluv
I have a bit of programming experience, however, I am totally noob with boonex.
I would greatly appreciate any help in my quest.
in my opinion the only PHP file that has to be altered to allow anomymous ppl post their name and url is BxBaseCmtsView.php which can be found in templates/base/scripts/
Below you will find what i have done in BxBaseCmtsView.php , it will check if a user is logged on, and if not it will add two input boxes in the commentbox, allowing anonymous users to leave their name and url
starts around at line 336
if(islogged()) {
if($sType == 'comment')
$sSwitcher = '<a class="cmt-post-reply-text inactive" href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.toggleType(this)">' . _t('_Add Your Comment');
else if($sType == 'reply')
$sSwitcher = '<a class="cmt-post-reply-text inactive" href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.toggleType(this)">' . _t('_Reply as text');
} else {
if($sType == 'comment')
$sSwitcher = '<a class="cmt-post-reply-text inactive" href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.toggleType(this)">' . _t('_Add Your Comment') . ' </a>Name: <input type="text" SIZE="10" name="Name" /> Website: <input type="text" SIZE="10" name="URL" />';
else if($sType == 'reply')
$sSwitcher = '<a class="cmt-post-reply-text inactive" href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.toggleType(this)">' . _t('_Reply as text') . ' </a>Name: <input type="text" SIZE="10" name="Name" /> Website: <input type="text" SIZE="10" name="URL" />';
}
The next steps are more tricky, and this is where i need help :-)
I think i should add two fields in `bx_blogs_cmts` username and URL
But how do i code this in the BxBaseCmtsView.php , so that the input fields are updated in the database?
Next steps should be, retreiving name and url .. and instead of Anonymous wrote .. it should say the USERNAME, and a link to their own blog/website
all help is appreciated :-)
rgds
W//