Board index   FAQ   Search  
Register  Login
Board index php forum :: Bar Free time

syntax bbcode buttons

Bar discussions . Talk about everything not only php !. Guests are welcome here , forum registration is not required.

Moderators: macek, egami, gesf

syntax bbcode buttons

Postby betterphp » Wed Mar 30, 2011 10:16 am

A php button above the edit area would be nice.

There are a few phpbb mods that do this and it makes everything way more readable, plus a lot of people don’t realise you can do [code=php]
Last edited by betterphp on Wed Mar 30, 2011 10:52 am, edited 1 time in total.
User avatar
betterphp
New php-forum User
New php-forum User
 
Posts: 20
Joined: Wed Mar 30, 2011 9:36 am

Re: syntax bbcode butttons

Postby egami » Wed Mar 30, 2011 10:42 am

Code: Select all

<?php
  $var 
= 5;
  function multiply($var) { 
    if 
(is_numeric($var)) { 
     for 
($i = 1; $i <= $var; $i++) { 
       $value
[$i] = $i * $val;
     }
    } else { 
      $value 
= 0;
    }
    return $value;
  }
  $array = multiply($var);
  foreach($array as $key => $value) { 
     echo 
"$key X's $val = $value<br/>";
  }
?>

test...
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: syntax bbcode butttons

Postby egami » Wed Mar 30, 2011 10:44 am

cool.
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: syntax bbcode butttons

Postby betterphp » Wed Mar 30, 2011 10:53 am

egami wrote:cool.

yup its a nice feature. But you see the problem that not many people know about it

Another forum that I am a member of has buttons for the popular code types.
User avatar
betterphp
New php-forum User
New php-forum User
 
Posts: 20
Joined: Wed Mar 30, 2011 9:36 am

Re: syntax bbcode buttons

Postby egami » Mon Apr 04, 2011 8:32 am

Was looking around to see if there was an option to create numeric lines as well, but came up like a man with a vasectomy..
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: syntax bbcode buttons

Postby betterphp » Fri Apr 08, 2011 6:00 am

There are mods that add better highlighting, it seems that there are no admins here ? :?
User avatar
betterphp
New php-forum User
New php-forum User
 
Posts: 20
Joined: Wed Mar 30, 2011 9:36 am

Re: syntax bbcode buttons

Postby egami » Fri Apr 08, 2011 6:33 am

Not really.. if you email them they tend to respond, but from what I can tell they don't actively participate.
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: syntax bbcode buttons

Postby andrewx » Sat Apr 16, 2011 11:49 pm

Automatically adds an easy access button toolbar above the post textarea to allow quick tags in BBcode. This is an enhanced replacement for the Comment Quicktags plugin. No template editing required.

Requires the BBcode-Lite plugin (or some other kind of BBcode support).

Some buttons will only appear if the tag is supported (ie. img, center)

Smilie support coming eventually.

Thanks...


Minifreelance
andrewx
New php-forum User
New php-forum User
 
Posts: 16
Joined: Thu Sep 23, 2010 12:11 pm


Return to Free time

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.