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
[UberCMS] Tag Add On
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: 271415" data-attributes="member: 36373"><p>oops use this code instead:</p><p></p><p>[CODE]<?php</p><p>$user = dbquery("SELECT * FROM users WHERE id = '" . USER_ID . "'");</p><p>$userAccount = mysql_fetch_assoc($user);</p><p>?></p><p><div class="habblet-container "> </p><p> <div class="cbb clearfix pixellightblue "></p><p> <h2 class="title">Add Tags!</h2></p><p> <div class="box-content"></p><p> </p><p> <?php</p><p> if(isset($_POST['tag']))</p><p>{</p><p> $tag = filter($_POST['tag']);</p><p> $exits = dbquery("SELECT null FROM user_tags WHERE tag='".$tag."' AND user_id ='".USER_ID."'");</p><p> $exits2 = dbquery("SELECT null FROM user_tags WHERE user_id ='".USER_ID."'");</p><p> </p><p> if(strlen($tag) < 1 || strlen($tag) > 10)</p><p> {</p><p> echo '<center><div class="rounded rounded-red"><strong>The Tag must be between 1 - 10 characters.</strong></div></center>';</p><p> }elseif (mysql_num_rows($exits2) > 8)</p><p> {</p><p> echo '<center><div class="rounded rounded-red"><strong>You have reached your max amount</strong></div></center>';</p><p> }elseif (mysql_num_rows($exits) > 0)</p><p> {</p><p> echo '<center><div class="rounded rounded-red"><strong>You have that tag already!</strong></div></center>';</p><p> }else</p><p> {</p><p> dbquery("INSERT INTO user_tags (user_id,tag) VALUES ('".USER_ID."','".$tag."')");</p><p> echo '<center><div class="rounded rounded-green"><strong>Tag Added!</strong></div></center>';</p><p> }</p><p> }</p><p> ?></p><p> </p><p> <div style="text-align: left;"></p><p> <div style="padding:5px"><center></p><p> <form name="form" action="" method="post"></p><p> <span title="tag">Enter Tag: </span><br /></p><p> <input type="text" name="tag" /><br /><br /></p><p> <input type="submit" value="Add Tag" class="submit"></center></p><p> </form></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p></div></p><p></div></p><p></div></div></p><p></div>[/CODE]</p><p></p><p>Added: Can't have the same tag, Max tags: 8</p></blockquote><p></p>
[QUOTE="JayC, post: 271415, member: 36373"] oops use this code instead: [CODE]<?php $user = dbquery("SELECT * FROM users WHERE id = '" . USER_ID . "'"); $userAccount = mysql_fetch_assoc($user); ?> <div class="habblet-container "> <div class="cbb clearfix pixellightblue "> <h2 class="title">Add Tags!</h2> <div class="box-content"> <?php if(isset($_POST['tag'])) { $tag = filter($_POST['tag']); $exits = dbquery("SELECT null FROM user_tags WHERE tag='".$tag."' AND user_id ='".USER_ID."'"); $exits2 = dbquery("SELECT null FROM user_tags WHERE user_id ='".USER_ID."'"); if(strlen($tag) < 1 || strlen($tag) > 10) { echo '<center><div class="rounded rounded-red"><strong>The Tag must be between 1 - 10 characters.</strong></div></center>'; }elseif (mysql_num_rows($exits2) > 8) { echo '<center><div class="rounded rounded-red"><strong>You have reached your max amount</strong></div></center>'; }elseif (mysql_num_rows($exits) > 0) { echo '<center><div class="rounded rounded-red"><strong>You have that tag already!</strong></div></center>'; }else { dbquery("INSERT INTO user_tags (user_id,tag) VALUES ('".USER_ID."','".$tag."')"); echo '<center><div class="rounded rounded-green"><strong>Tag Added!</strong></div></center>'; } } ?> <div style="text-align: left;"> <div style="padding:5px"><center> <form name="form" action="" method="post"> <span title="tag">Enter Tag: </span><br /> <input type="text" name="tag" /><br /><br /> <input type="submit" value="Add Tag" class="submit"></center> </form> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> </div> </div> </div></div> </div>[/CODE] Added: Can't have the same tag, Max tags: 8 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[UberCMS] Tag Add On
Top