2013-12-20, 04:04 PM
Hello, some time agoI used PHPNews for articles and comments I linked to MyBB via php code that youplacenow,andobviouslyin the templateadd_newsglobal.phpincludedat the top,everything worked.
I switched toCuteNews,andskindoes not acceptthe codein the template,only HTML,butanother sitehas done it.
Ifyou do not understand, I wantwhoeverislogged outif youwant to commentsays "users canFORUM"andinstead whoislogged in,thecommentisautomatically picks upthe nameof the Forum.
Here is the codeI used:
How can I do with CuteNews?
Thanks!
Excuse the writing, I'm Italian!
I switched toCuteNews,andskindoes not acceptthe codein the template,only HTML,butanother sitehas done it.
Ifyou do not understand, I wantwhoeverislogged outif youwant to commentsays "users canFORUM"andinstead whoislogged in,thecommentisautomatically picks upthe nameof the Forum.
Here is the codeI used:
<br><br><center><?php
global $mybb;
if($mybb->user['uid']){
echo "<table><tr><td><label for='name'>Nome Habbo:</label></td><td><input id='name'readonly='readonly' name='name' type='text' value='" . $mybb->user['username'] . "' /></td></tr></table><p><textarea cols='32' rows='6' name='message'></textarea><br /><input type='submit' name='submit' value='Invia' /><input type='reset' name='reset' value='Reset' /></p> ";
}else{
echo "<b>PER COMMENTARE LOGGATI NEL FORUM</b>";
}
?>
</center>
How can I do with CuteNews?
Thanks!
Excuse the writing, I'm Italian!