Bootstrap Changes to Forum LIST BBCODE Tags

Tags
bbcode, bootstrap, fontawesome, forum, list, tag, tags, web programming

 
Thread Tools Search this Thread
# 1  
Old 12-03-2018
Bootstrap Changes to Forum LIST BBCODE Tags

Added some Bootstrap to our lists (first draft subject to change) with PHP changes to the functions_bbcode.php:

Code:
       if ($listtype)
                {

                        $outstuff = '<ol class="list-group" style="list-style-type: ' . $listtype . '">' . $output . '</ol>';
                }
                else
                {
                        $outstuff = "<ul class=\"list-group\" >$output</ul>";
                }
                        $outstuff = '<div class="neo-bbcode-list">'.$outstuff.'</div>';

and also this:



Code:
 /**
        * Handles a single bullet of a list
        *
        * @param        string  Text of bullet
        *
        * @return       string  HTML for bullet
        */
        function handle_bbcode_list_element($text,$listtyle)
        {
                if($listtype)
                return "<li class=\"list-group-item\">$text</li>\n";
                else
                return "<li class=\"list-group-item\"><i style=\"font-size:0.8em;font-color:rgba(0,0,0,0.4)\" class=\"fa fa-circle\"></i> $text</li>\n";
        }


To give these results in the forums:


Image
These 2 Users Gave Thanks to Neo For This Post:
000vikas (12-15-2018) vgersh99 (12-03-2018)

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Number of Small Forum Code Changes (TODO List Items) Neo What is on Your Mind? 6 3 Weeks Ago 11:46 PM
Bootstrap Changes to Advanced Editor and Attachments Form Neo Web Programming 8 12-08-2018 02:04 AM
Revised Tooltips for Thread Views Using Bootstrap Neo What is on Your Mind? 0 09-03-2018 04:18 AM
New Tooltips for Thread Views Using Bootstrap Neo What is on Your Mind? 0 08-11-2018 03:55 PM
Scrollbars and Bootstrap Tables Neo What is on Your Mind? 0 07-17-2018 04:57 AM
Changes to BBCODE for CODE and QUOTE Neo What is on Your Mind? 0 07-17-2018 12:56 AM
Testing BBCODE URL for DragonByte Neo Post Here to Contact Site Administrators and Moderators 1 12-24-2013 07:00 AM
Forum Video Tutorial: How to Use Code Tags Neo How to Post in the The UNIX and Linux Forums 8 11-02-2011 05:02 AM
How to fix bootstrap failure in unix V4.0D? akz UNIX for Advanced & Expert Users 2 12-17-2010 01:31 AM
Redirecting Bootstrap Jshwon Solaris 0 01-14-2008 06:17 PM
GCC bootstrap failure on AIX 5.3 Duggerdee AIX 2 10-18-2005 07:38 PM