Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Release] R63B Forums [RevCMS]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 376652" data-attributes="member: 36373"><p>Hey Devbest!</p><p></p><p>I have finally got a release that really might help out the community. It's a BASIC forum plugin. I might add things to this and update the thread later but here is what it features:</p><p>- Like System</p><p>- Flag System</p><p>- Comment System</p><p>- Create Thread based on Rank in-game permissions</p><p></p><p>[SPOILER="Screenshot"]</p><p><img src="http://image.prntscr.com/image/49a0f05442fd44a5a3c4eceb4fc746b7.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><img src="http://image.prntscr.com/image/2921be3c17714981bc694df389a1665f.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>[/SPOILER]</p><p></p><p>IIS Rules:</p><p>[CODE]</p><p><rule name="Forum Threads"></p><p> <match url="^thread/([0-9]+)" /></p><p> <action type="Rewrite" url="index.php?url=thread&amp;threadid={R:1}" /></p><p> </rule></p><p> <rule name="Forum Posts"></p><p> <match url="^post/([0-9]+)" /></p><p> <action type="Rewrite" url="index.php?url=post&amp;postid={R:1}" /></p><p> </rule></p><p> </p><p> <rule name="Forum New Thread"></p><p> <match url="^create/([0-9]+)" /></p><p> <action type="Rewrite" url="index.php?url=newthread&amp;thread={R:1}" /></p><p> </rule></p><p></p><p>[/CODE]</p><p>newthread.php</p><p>[CODE]</p><p></p><p><?php</p><p> if(isset($_POST['postNewThread']) && $_GET['thread']){</p><p> $str = strip_tags($_POST['postTitle']);</p><p> $str2 = strip_tags($_POST['postReply']);</p><p> if(strlen($str) < 3 || strlen($str) > 80){</p><p> echo "Invalid Title";</p><p> }elseif(strlen($str2) < 15 || strlen($str2) > 5000){</p><p> echo "You must be more discriptive but keep it under 5000 characters";</p><p> }else{</p><p> mysql_query("INSERT INTO `forum_posts` (`thread`, `poster_id`, `title`, `body`, `post_date`) VALUES ('".$_GET['thread']."','".$_SESSION['user']['id']."','".$str."','".$str2."','".date("F j, Y, g:i a")."')") or die(mysql_error());</p><p> $threadCreated = mysql_fetch_assoc(mysql_query("SELECT id FROM forum_posts ORDER BY id DESC LIMIT 1"));</p><p> header('Location: http://habdoom.com/post/'.$threadCreated['id'].'');</p><p> }</p><p> }</p><p> ?></p><p> <form action="" method="post"></p><p> <input type="text" class="textCtrl" name="postTitle" placeholder="Title"><br><br></p><p> <textarea id="mytextarea" name="postReply"></textarea><br><br></p><p> <center><b><input type="submit" class="button primary" name="postNewThread" value="Post Thread" /></b></center></p><p> </form></p><p>[/CODE]</p><p>Scripts:</p><p>[CODE]</p><p></p><p><script src='//cdn.tinymce.com/4/tinymce.min.js'></script></p><p> <script></p><p> tinymce.init({</p><p> selector: '#mytextarea',</p><p> plugins : 'advlist autolink link image lists charmap print preview media textcolor colorpicker spellchecker emoticons insertdatetime',</p><p> toolbar: "advlist autolink link image lists charmap preview media forecolor backcolor bold italic spellchecker emoticons",</p><p> menubar: "tools format view insert edit insertdatetime"</p><p> });</p><p> </script></p><p> <script></p><p> tinymce.init({</p><p> selector: '#mytextarea2',</p><p> plugins : 'advlist autolink link image lists charmap print preview media textcolor colorpicker spellchecker emoticons insertdatetime',</p><p> toolbar: "advlist autolink link image lists charmap preview media forecolor backcolor bold italic spellchecker emoticons",</p><p> menubar: "tools format view insert edit insertdatetime"</p><p> });</p><p> </script></p><p> <script></p><p> tinymce.init({</p><p> selector: '#mytextarea3',</p><p> plugins : 'advlist autolink link image lists charmap print preview media textcolor colorpicker spellchecker emoticons insertdatetime',</p><p> toolbar: "advlist autolink link image lists charmap preview media forecolor backcolor bold italic spellchecker emoticons",</p><p> menubar: "tools format view insert edit insertdatetime"</p><p> });</p><p> </script></p><p>[/CODE]</p><p>SQL for the tables:</p><p><a href="https://mega.nz/#!wAFQkACC!LS4G9XJSYAndI2IRU8Sxb05wbLyWFMBrxTtJMEAlIC4" target="_blank">https://mega.nz/#!wAFQkACC!LS4G9XJSYAndI2IRU8Sxb05wbLyWFMBrxTtJMEAlIC4</a></p><p></p><p>Forum.php</p><p>[CODE]</p><p>http://pastebin.com/cQ4fgGTr</p><p>[/CODE]</p><p></p><p>Thread.php</p><p>[CODE]</p><p>http://pastebin.com/wYS6FiQj</p><p>[/CODE]</p><p></p><p>Post.php</p><p>[CODE]</p><p>http://pastebin.com/VDePmKsi</p><p>[/CODE]</p><p></p><p>This project took 13 hours to code so I hope you enjoy it <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /> This is a VERY basic forum, and it will need some work <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p></p><p>Here is a layout of how it works:</p><p>Create catagories in forum_catagories table is it designed so you can have users post directly into the catagories, or in subcatagories The layout works like the catalog, but slightly different. If the sub_catagory = -1 it will show as a primary catagory. If you need any help managing the system I can help with that, but I will not help you install it. This is just copying my code onto a layout of your revcms. It's slightly sloppy, but it is dynamic so it will always update from the database <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" />. I hope you enjoy.</p><p>-JayCustom</p></blockquote><p></p>
[QUOTE="JayC, post: 376652, member: 36373"] Hey Devbest! I have finally got a release that really might help out the community. It's a BASIC forum plugin. I might add things to this and update the thread later but here is what it features: - Like System - Flag System - Comment System - Create Thread based on Rank in-game permissions [SPOILER="Screenshot"] [IMG]http://image.prntscr.com/image/49a0f05442fd44a5a3c4eceb4fc746b7.png[/IMG] [IMG]http://image.prntscr.com/image/2921be3c17714981bc694df389a1665f.png[/IMG] [/SPOILER] IIS Rules: [CODE] <rule name="Forum Threads"> <match url="^thread/([0-9]+)" /> <action type="Rewrite" url="index.php?url=thread&threadid={R:1}" /> </rule> <rule name="Forum Posts"> <match url="^post/([0-9]+)" /> <action type="Rewrite" url="index.php?url=post&postid={R:1}" /> </rule> <rule name="Forum New Thread"> <match url="^create/([0-9]+)" /> <action type="Rewrite" url="index.php?url=newthread&thread={R:1}" /> </rule> [/CODE] newthread.php [CODE] <?php if(isset($_POST['postNewThread']) && $_GET['thread']){ $str = strip_tags($_POST['postTitle']); $str2 = strip_tags($_POST['postReply']); if(strlen($str) < 3 || strlen($str) > 80){ echo "Invalid Title"; }elseif(strlen($str2) < 15 || strlen($str2) > 5000){ echo "You must be more discriptive but keep it under 5000 characters"; }else{ mysql_query("INSERT INTO `forum_posts` (`thread`, `poster_id`, `title`, `body`, `post_date`) VALUES ('".$_GET['thread']."','".$_SESSION['user']['id']."','".$str."','".$str2."','".date("F j, Y, g:i a")."')") or die(mysql_error()); $threadCreated = mysql_fetch_assoc(mysql_query("SELECT id FROM forum_posts ORDER BY id DESC LIMIT 1")); header('Location: http://habdoom.com/post/'.$threadCreated['id'].''); } } ?> <form action="" method="post"> <input type="text" class="textCtrl" name="postTitle" placeholder="Title"><br><br> <textarea id="mytextarea" name="postReply"></textarea><br><br> <center><b><input type="submit" class="button primary" name="postNewThread" value="Post Thread" /></b></center> </form> [/CODE] Scripts: [CODE] <script src='//cdn.tinymce.com/4/tinymce.min.js'></script> <script> tinymce.init({ selector: '#mytextarea', plugins : 'advlist autolink link image lists charmap print preview media textcolor colorpicker spellchecker emoticons insertdatetime', toolbar: "advlist autolink link image lists charmap preview media forecolor backcolor bold italic spellchecker emoticons", menubar: "tools format view insert edit insertdatetime" }); </script> <script> tinymce.init({ selector: '#mytextarea2', plugins : 'advlist autolink link image lists charmap print preview media textcolor colorpicker spellchecker emoticons insertdatetime', toolbar: "advlist autolink link image lists charmap preview media forecolor backcolor bold italic spellchecker emoticons", menubar: "tools format view insert edit insertdatetime" }); </script> <script> tinymce.init({ selector: '#mytextarea3', plugins : 'advlist autolink link image lists charmap print preview media textcolor colorpicker spellchecker emoticons insertdatetime', toolbar: "advlist autolink link image lists charmap preview media forecolor backcolor bold italic spellchecker emoticons", menubar: "tools format view insert edit insertdatetime" }); </script> [/CODE] SQL for the tables: [URL]https://mega.nz/#!wAFQkACC!LS4G9XJSYAndI2IRU8Sxb05wbLyWFMBrxTtJMEAlIC4[/URL] Forum.php [CODE] http://pastebin.com/cQ4fgGTr [/CODE] Thread.php [CODE] http://pastebin.com/wYS6FiQj [/CODE] Post.php [CODE] http://pastebin.com/VDePmKsi [/CODE] This project took 13 hours to code so I hope you enjoy it :) This is a VERY basic forum, and it will need some work :) Here is a layout of how it works: Create catagories in forum_catagories table is it designed so you can have users post directly into the catagories, or in subcatagories The layout works like the catalog, but slightly different. If the sub_catagory = -1 it will show as a primary catagory. If you need any help managing the system I can help with that, but I will not help you install it. This is just copying my code onto a layout of your revcms. It's slightly sloppy, but it is dynamic so it will always update from the database :). I hope you enjoy. -JayCustom [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Release] R63B Forums [RevCMS]
Top