MyBB Community Forums

Full Version: Cutenews mybb
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:

<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!