Jxhn Posted July 26, 2017 Share Posted July 26, 2017 (edited) I haven't seen a guide on the forums about BBCode so I decided to make one. To access a list of options for BBCode, click the button that looks like this: Acronyms - Allow you to put an acronym and add a description to it. Example: lol this feature is cool Admin - Allows you to post content in a post that is only viewable by admins. Example: This content is only available to admins Code: [admin] (Content here) [/admin] Background Color - Changes the background color of your text. Example - what's up bishes Code - [background='(insert color here)'] (Text here) [/background] Blog Entry Link - Allows you to easily link other's blog posts. Example - Battle for the net Code - [entry='(Entry ID)'] (Link Name) [/entry] Blog Link - Allows you to link other's blogs. Example - JHnY HaYZ's Blog Code - [blog='(Blog ID)'](Link Name)[/blog] Code - Allows you to place code without accidentally using BBCode. Example - // As you can see, I can put [spoiler='hey']hey again[/spoiler] tags // without the code actually fuctioning! CollegeHumor - Allows you to embed CollegeHumor videos Example - Not gonna bother with giving the code since to my knowledge this BBCode is broken. Extract Blog Entry - This allows people posting to their blogs to customize what shows in RSS feeds. I can't provide an example, but basically if you have something that shows you your blog's RSS feeds, use this BBCode to customize what part of the post is shown in the feed. I am not sure if this is required for it to work with the RSS feed, though. Code - [extract](Content to be shown in RSS feed)[/extract] Facebook Like - Allows people to like stuff on Facebook (Just HG it seems) Example - Like this status I made on Facebook! Seems to only work with HG's FB page or maybe just not with statuses. Code - [LIKE](Link to Facebook Page)[/LIKE] Horizontal Rule - Adds a horizontal rule, as it says. Code - [hr] HTML Code - Allows you to enter HTML code. No example because I don't know HTML Code - [html](Code goes here)[/html] Justin.tv - Twitch replacement No example because I probably shouldn't embed a random cartoon on HG Code - [twitch](Link to the video/stream here)[/twitch] Not sure if this is for a seperate website or twitch actually... Media - Allows users to post media such as flash related stuff from lots of websites. No example. Code - [media='(Dimensions go here if it is in flash)'](URL to the media here)[/media] Member - Quick link to a member on this website! Example - Code - [member='(Member name here)'] Multi-Page Articles - Allow users to make post that have multiple pages! No example so I don't mess up this long post. Code - To my knowledge, you can put this code anywhere you want to create a page break (will generate buttons to navigate between pages) Ninja - Hides text until you click a button. Example - Ayy pizza rolls Code - [ninja](Text to be masked)[/ninja] PHP Code - Allows you to enter PHP code on a post. No example since I don't know PHP. Code - [php](PHP Code goes here)[/php] Post Link - A link to any post on this site! Example - Current CS:GO moderators Code - [post='(Post ID here)'](Title of the link)[/post] Spoiler - Allows you to click a button before viewing parts of a post. Example - [spoiler=It's everyday bro]With the Disney channel flowExample - [spoiler=It's everyday bro]With the Disney channel flowExample - [spoiler=It's everyday bro]With the Disney channel flow Code - [spoiler='(Title for the spoiler, optional)'](Text to be masked)[/spoiler] SQL Code - Allows you to enter SQL code on a post. Example - UPDATE bans SET approved = 'true', duration = '0', locked = 'true' WHERE steamid ="1:108614469' Code - [sql](SQL Code Here)[/sql] Steam Profile - Allows you to show a Steam profile on a post Example - Code - [steamprofile](Steam ID here)[/steamprofile] Topic Link - Allows you to create links to topics on HG forums! Example - How'd You Come Across HG? Code - [topic='(Topic ID here)'](Title for the link here)[/topic] Twitter - A way to plug your Twitter on HG! Example - @ExpertGamerJohn Code - [twitter](Twitter username here)[/twitter] Username - A link to a user's profile Example - Jxhn Code - [user](User's display name here)[user] XML Code - Allows you to put XML code on a post. No example since I don't know XML. Code - [xml](XML Code here)[/xml] Credits: SQL Example contributed by Pyrrhic XML Example contributed by Pyrrhic HTML Example contributed by Pyrrhic PHP Example contributed by imasonaz Edited July 26, 2017 by Jxhn 2 Quote Link to comment Share on other sites More sharing options...
Link3588 Posted July 26, 2017 Share Posted July 26, 2017 I didn't know how to use like half of these lol. Thanks for the guide! 1 Quote Link to comment Share on other sites More sharing options...
Jxhn Posted July 26, 2017 Author Share Posted July 26, 2017 You're welcome! Just hit the button that looks like to access the different type of BBCode! Quote Link to comment Share on other sites More sharing options...
Pyrrhic Posted July 26, 2017 Share Posted July 26, 2017 sql UPDATE bans SET approved = 'true', duration = '0', locked = 'true' WHERE steamid ="1:108614469' xml <good_games> <game> <name>CS:GO</name> <reasons>Jailbreak, TTT</reasons> <price>$14.99</price> </game> <game> <name>Factorio</name> <reasons>Too many to enumerate</reasons> <price>$20.00</price> </game> </good_games> html <html> <head> <title>HeLLsGamers Jailbreak Gangs</title> <style> .button {background-color: #5B0202; border: 5px outset black; color: #0004FF;} p {display: inline-block;}</style> </head> <body style="background-color:#15FF00;font-family:cursive, sans-serif;"> <h1 style="text-align: center;"><span style="color:00FFFF;">HGJB</span> <span style="color:FFFF00;">Gangs</span> <span style="color:FF9D00;">Web Interface</span></h1> <br> <div style="float: right;"><h3>You are logged in as <span style="color: #FF00CB;">Pyrrhic</span>. <span style="color: #FF0000;">Log out</span></h3></div><br> <p class=button>Drop all tables</p><br> <p class=button>Remove all players from gangs</p><br> <p class=button>Promote all gangs to level 100</p><br> <p class=button>Make Pyrrhic owner of all gangs</p><br> </body> </html> examples for your post 1 Quote Link to comment Share on other sites More sharing options...
Executive Council imasonaz Posted July 26, 2017 Executive Council Share Posted July 26, 2017 I don't know how to indent Quote Link to comment Share on other sites More sharing options...
Executive Council imasonaz Posted July 26, 2017 Executive Council Share Posted July 26, 2017 I was summoned to add some PHP, because we all need more cancer. <?php include("banfunctions.php"); include("users.php"); $db_hostname = "localhost"; $db_username = "root"; $db_password = "neatpassword"; $connect = mysqli_connect($db_hostname,$db_username,$db_password); mysqli_select_db($connect,"hgbans"); $queryString = "UPDATE bans SET approved = 'true', duration = '0', locked = 'true' WHERE steamid ="1:108614469'" $query = mysqli_query($connect,$queryString); ..... if(($ClientPerms & PERMFLAG_STAFF) && !($IsGroupBan)) { $outputhtml.= ( '<tr>'. '<td class="'.TD_HEAD_CLASS.'">'. 'Ban Category'. '</td>'. '<td>'. '<span>'. '<select id="approved_state" name="ban_cat" size="3">'. '<option '.($R_Category == BAN_CAT_BAN ? 'SELECTED ' : '').'value="'.BAN_CAT_BAN.'">'.gen_GetBanCatDescription(BAN_CAT_BAN).'</option>'. '<option '.($R_Category == BAN_CAT_TLIST ? 'SELECTED ' : '').'value="'.BAN_CAT_TLIST.'">'.gen_GetBanCatDescription(BAN_CAT_TLIST).'</option>'. '<option '.($R_Category == BAN_CAT_PERPBLST_MAYOR ? 'SELECTED ' : '').'value="'.BAN_CAT_PERPBLST_MAYOR.'">'.gen_GetBanCatDescription(BAN_CAT_PERPBLST_MAYOR).'</option>'. '<option '.($R_Category == BAN_CAT_PERPBLST_SS ? 'SELECTED ' : '').'value="'.BAN_CAT_PERPBLST_SS.'">'.gen_GetBanCatDescription(BAN_CAT_PERPBLST_SS).'</option>'. '<option '.($R_Category == BAN_CAT_PERPBLST_MEDIC ? 'SELECTED ' : '').'value="'.BAN_CAT_PERPBLST_MEDIC.'">'.gen_GetBanCatDescription(BAN_CAT_PERPBLST_MEDIC).'</option>'. '<option '.($R_Category == BAN_CAT_PERPBLST_SWAT ? 'SELECTED ' : '').'value="'.BAN_CAT_PERPBLST_SWAT.'">'.gen_GetBanCatDescription(BAN_CAT_PERPBLST_SWAT).'</option>'. '<option '.($R_Category == BAN_CAT_PERPBLST_TOW ? 'SELECTED ' : '').'value="'.BAN_CAT_PERPBLST_TOW.'">'.gen_GetBanCatDescription(BAN_CAT_PERPBLST_TOW).'</option>'. '<option '.($R_Category == BAN_CAT_PERPBLST_POLICE ? 'SELECTED ' : '').'value="'.BAN_CAT_PERPBLST_POLICE.'">'.gen_GetBanCatDescription(BAN_CAT_PERPBLST_POLICE).'</option>'. '<option '.($R_Category == BAN_CAT_PERPBLST_FIRE ? 'SELECTED ' : '').'value="'.BAN_CAT_PERPBLST_FIRE.'">'.gen_GetBanCatDescription(BAN_CAT_PERPBLST_FIRE).'</option>'. '<option '.($R_Category == BAN_CAT_PERPBLST_DRIVING ? 'SELECTED ' : '').'value="'.BAN_CAT_PERPBLST_DRIVING.'">'.gen_GetBanCatDescription(BAN_CAT_PERPBLST_DRIVING).'</option>'. '<option '.($R_Category == BAN_CAT_DRPBLST_MAYOR ? 'SELECTED ' : '').'value="'.BAN_CAT_DRPBLST_MAYOR.'">'.gen_GetBanCatDescription(BAN_CAT_DRPBLST_MAYOR).'</option>'. '<option '.($R_Category == BAN_CAT_DRPBLST_CP ? 'SELECTED ' : '').'value="'.BAN_CAT_DRPBLST_CP.'">'.gen_GetBanCatDescription(BAN_CAT_DRPBLST_CP).'</option>'. '<option '.($R_Category == BAN_CAT_ZSBLST_CADING ? 'SELECTED ' : '').'value="'.BAN_CAT_ZSBLST_CADING.'">'.gen_GetBanCatDescription(BAN_CAT_ZSBLST_CADING).'</option>'. '<option '.($ClientPerms & PERMFLAG_DEV ? '' : 'DISABLED').' '.($R_Category == BAN_CAT_CSGOTTT_KBAN ? 'SELECTED ' : '').'value="'.BAN_CAT_CSGOTTT_KBAN.'">'.gen_GetBanCatDescription(BAN_CAT_CSGOTTT_KBAN).'</option>'. '<option '.($ClientPerms & PERMFLAG_DEV ? '' : 'DISABLED').' '.($R_Category == BAN_CAT_CSGOTTT_RBAN ? 'SELECTED ' : '').'value="'.BAN_CAT_CSGOTTT_RBAN.'">'.gen_GetBanCatDescription(BAN_CAT_CSGOTTT_RBAN).'</option>'. '</select>'. '</span>'. '</td>'. '</tr>' ); } } Quote Link to comment Share on other sites More sharing options...
Jxhn Posted July 26, 2017 Author Share Posted July 26, 2017 (edited) Thanks guys for your examples! I will be sure to add them when I get access to my computer! Edit: btw can you make them a big shorter? Don't wanna make this post too long Edit2: why do I feel like some of this code is supposed to ban me Edited July 26, 2017 by JHnY HaYZ Quote Link to comment Share on other sites More sharing options...
Pyrrhic Posted July 26, 2017 Share Posted July 26, 2017 (edited) It was indented in the preview, fix your website. Fix the quote being empty too. Edited July 26, 2017 by Pyrrhic Quote Link to comment Share on other sites More sharing options...
Executive Council imasonaz Posted July 26, 2017 Executive Council Share Posted July 26, 2017 It was indented in the preview, fix your website. Fix the quote being empty too. I bet you used tabs and not spaces, sorry this website may be old, but it isn't stone aged. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.