Sponsored Content
Top Forums Web Development Bootstrap Changes to Forum LIST BBCODE Tags Post 303026791 by Neo on Monday 3rd of December 2018 11:12:09 AM
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:
 

6 More Discussions You Might Find Interesting

1. Solaris

Redirecting Bootstrap

Exactly how can I redirect bootstrap data generated by Networker to a file? The company's policy is to have this electronically saved remotely. The idea is to have the bootstrap info saved to a file and then use rsync to move that file to a remote server. So instead of sending it to a printer... (0 Replies)
Discussion started by: Jshwon
0 Replies

2. Post Here to Contact Site Administrators and Moderators

Testing BBCODE URL for DragonByte

Here is the URL we will use: https://www.unix.com/post-here-contact-site-administrators-moderators/241569-doesnt-allow-me-use-code-tags.html I will put this in this text with the URL BBCODE. Now I will save the thread and test the URL. (1 Reply)
Discussion started by: Neo
1 Replies

3. What is on Your Mind?

Changes to BBCODE for CODE and QUOTE

Hey, Scrollbars still do not work in code tags (works on mobile because the mobile site does not use any table tags, only div tags), but hopefully that will change when I convert the bits for post and threads to div tags or update to Bootstrap CSS for tables. In the meantime, I have update... (0 Replies)
Discussion started by: Neo
0 Replies

4. What is on Your Mind?

Number of Small Forum Code Changes (TODO List Items)

In the past few days have I have done a lot of code cleanup work in various categories, including faster page loading and bug fixes: Move countless inline style directives to external CSS stylesheets for key pages (faster page loading) Fixed bug in member panel going between desktop and... (6 Replies)
Discussion started by: Neo
6 Replies

5. What is on Your Mind?

Quick Bootstrap Reformat of Forum Staff Page

This page still needs work (complete redesign), but in the meantime, I quickly added some Bootstrap classes to "pretty it up": https://www.unix.com/staff.php https://www.unix.com/staff.php (0 Replies)
Discussion started by: Neo
0 Replies

6. What is on Your Mind?

Patreon Badges Now Available as BBCODE at UNIX.COM

Dear All, We have a lot of amazing moderators and other very talented unix.com members who provide tireless top quality free technical support assistance to others. As a service to those long term unix.com members, I am making a new Patreon BBCODE badge available which can be posted in forum... (8 Replies)
Discussion started by: Neo
8 Replies
DEBUG_BACKTRACE(3)							 1							DEBUG_BACKTRACE(3)

debug_backtrace - Generates a backtrace

SYNOPSIS
array debug_backtrace ([int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT], [int $limit]) DESCRIPTION
debug_backtrace(3) generates a PHP backtrace. PARAMETERS
o $options - As of 5.3.6, this parameter is a bitmask for the following options: debug_backtrace(3) options +-------------------------------+---------------------------------------------------+ |DEBUG_BACKTRACE_PROVIDE_OBJECT | | | | | | | Whether or not to populate the "object" index. | | | | | DEBUG_BACKTRACE_IGNORE_ARGS | | | | | | | Whether or not to omit the "args" index, and | | | thus all the function/method arguments, to save | | | memory. | | | | +-------------------------------+---------------------------------------------------+ Before 5.3.6, the only values recognized are TRUE or FALSE, which are the same as setting or not setting the DEBUG_BACKTRACE_PRO- VIDE_OBJECT option respectively. o $limit - As of 5.4.0, this parameter can be used to limit the number of stack frames returned. By default ($limit= 0) it returns all stack frames. RETURN VALUES
Returns an array of associative arrays. The possible returned elements are as follows: Possible returned elements from debug_backtrace(3) +---------+--------------------------------------+---+ | Name | | | | | | | | | Type | | | | | | | | Description | | | | | | +---------+--------------------------------------+---+ |function | | | | | | | | | | | | | string | | | | | | | | The current function name. See also | | | | __FUNCTION__. | | | | | | | line | | | | | | | | | | | | | integer | | | | | | | | The current line number. See also | | | | __LINE__. | | | | | | | file | | | | | | | | | | | | | string | | | | | | | | The current file name. See also | | | | __FILE__. | | | | | | | class | | | | | | | | | | | | | string | | | | | | | | The current class name. See also | | | | __CLASS__ | | | | | | | object | | | | | | | | | | | | | object | | | | | | | | The current object. | | | | | | | type | | | | | | | | | | | | | string | | | | | | | | The current call type. If a method | | | | call, "->" is returned. If a static | | | | method call, "::" is returned. If a | | | | function call, nothing is returned. | | | | | | | args | | | | | | | | | | | | | array | | | | | | | | If inside a function, this lists | | | | the functions arguments. If inside | | | | an included file, this lists the | | | | included file name(s). | | | | | | +---------+--------------------------------------+---+ CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.4.0 | | | | | | | Added the optional parameter $limit. | | | | | 5.3.6 | | | | | | | The parameter $provide_object changed to | | | $options and additional option DEBUG_BACK- | | | TRACE_IGNORE_ARGS is added. | | | | | 5.2.5 | | | | | | | Added the optional parameter $provide_object. | | | | | 5.1.1 | | | | | | | Added the current object as a possible return | | | element. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 debug_backtrace(3) example <?php // filename: /tmp/a.php function a_test($str) { echo " Hi: $str"; var_dump(debug_backtrace()); } a_test('friend'); ?> <?php // filename: /tmp/b.php include_once '/tmp/a.php'; ?> Results similar to the following when executing /tmp/b.php: Hi: friend array(2) { [0]=> array(4) { ["file"] => string(10) "/tmp/a.php" ["line"] => int(10) ["function"] => string(6) "a_test" ["args"]=> array(1) { [0] => &string(6) "friend" } } [1]=> array(4) { ["file"] => string(10) "/tmp/b.php" ["line"] => int(2) ["args"] => array(1) { [0] => string(10) "/tmp/a.php" } ["function"] => string(12) "include_once" } } SEE ALSO
trigger_error(3), debug_print_backtrace(3). PHP Documentation Group DEBUG_BACKTRACE(3)
All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy