Activity Stream
48,167 MEMBERS
61187 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1.     
    #1
    Member
    Website's:
    imdber.org justpaste.me

    Cool BBCode in Wordpress - W/O a plugin

    • Edit your theme's functions.php and add after <?php:
      Code: 
      include 'shortcode.php';
    • Create a new file in your theme's directory named shortcode.php
    • Paste this:
      Code: 
      <?php
      function underline( $attr, $content = null ) {
          return '<font style="text-decoration:underline;">' . $content . '</font>';
      }
      add_shortcode('u', 'underline');
      ?>
      u is the shortcode tag
      underline is the function name
      <font style="text-decoration:underline;"> is what comes before the content of the shortcode
      </font> comes after the shortcode
    • To use the shortcode, wrap them with [u] content here [/u ]
    • To add more, just duplicate the function above and replace the values to suit your needs.

      Here's a function for the [img] tag with the post's title used as an alt tag
      Code: 
      function image( $attr, $content = null ) {
          return '<img src="' . $content . '" alt="'.get_the_title($ID).'"/>';
      }
      add_shortcode('img', 'image');


    Read More:
    Apathetic Reviewed by Apathetic on . BBCode in Wordpress - W/O a plugin Edit your theme's functions.php and add after <?php: include 'shortcode.php'; Create a new file in your theme's directory named shortcode.php Paste this: <?php function underline( $attr, $content = null ) { return '<font style="text-decoration:underline;">' . $content . '</font>'; } add_shortcode('u', 'underline'); ?> Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    Katzbb.com Foxmovie.co
    how to modiying tag <code>
    i have wp site just still use <blockquote > but this tag make padding space big i has been modifiying but still like that

    and the tag code not work perfect like i try at stlecss to modifiying with put back color still nothing happen

    help please


  4.     
    #3
    Member
    Website's:
    TvLog.me
    Quote Originally Posted by cyber.crime View Post
    how to modiying tag <code>
    i have wp site just still use <blockquote > but this tag make padding space big i has been modifiying but still like that

    and the tag code not work perfect like i try at stlecss to modifiying with put back color still nothing happen

    help please

    You can modify blackquote class in your style.css.

    If your theme has already got a tag named 'code'. Define a new class like

    link
    {
    blah:blah;
    boom:boom;

    }

    and use <link>content</link>

    [Best Selling RDP Providers]
    BuyWindowsVPS.Com
    1Gbit USA/EU Unmetered | Prices Starting From $29.95 | Official Thread

  5.     
    #4
    Member
    Website's:
    imdber.org justpaste.me
    Quote Originally Posted by cyber.crime View Post
    how to modiying tag <code>
    i have wp site just still use <blockquote > but this tag make padding space big i has been modifiying but still like that

    and the tag code not work perfect like i try at stlecss to modifiying with put back color still nothing happen

    help please
    edit your theme's style.css

    Code: 
    blockquote {padding: 5px !important}

  6.     
    #5
    Member


    how to get dis wid <code>link</code>?????

  7.     
    #6
    Member
    Website's:
    imdber.org justpaste.me
    ^
    Code: 
    function code( $attr, $content = null ) {
        return '<code>' . $content . '</code>';
    }
    add_shortcode('code', 'code');
    edit: you mean the design? Edit your css file

  8.     
    #7
    Member
    yah..design..the box

  9.     
    #8
    Member
    Code: 
    code {
        background-color: #F7F7F7;
        border: 1px dashed black;
        color: black;
        display: block;
        font-family: verdana;
        font-size: 7pt;
        padding: 7px;
    
    
    }
    Put the above in your style.css, its a basic one, modify according to your wish.

  10.     
    #9
    Website's:
    PornoDDL.ws MovizDDL.ws
    how to make links clickable?
    If bbcode is:
    Code: 
    
    [ur l] link here [/url]
    note: there is an space between the first url, other the link would be live

  11.     
    #10
    Member
    Website's:
    imdber.org justpaste.me
    Code: 
    function linkcode( $attr, $content = null ) {
        return '<a href"' . $content . '" rel="nofollow">'.$content.'</a>';
    }
    add_shortcode('url', 'linkcode');

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. BBcode plugin that works
    By broadcast in forum Wordpress
    Replies: 1
    Last Post: 8th Nov 2011, 04:36 PM
  2. BBcode to Html plugin for wordpress
    By watsayabtcoffee in forum Wordpress
    Replies: 6
    Last Post: 17th Sep 2011, 03:12 PM
  3. [Help] My Blog error after install BBcode Plugin
    By warung giras in forum Web Development Area
    Replies: 5
    Last Post: 22nd Jul 2011, 04:15 PM
  4. Youtube plugin icon/bbcode after "Slide Tag" bbcode?
    By CyberAff in forum Feedback and Suggestions
    Replies: 9
    Last Post: 20th May 2011, 03:35 PM
  5. Need wordpress BBcode plugin
    By only1_PO in forum Wordpress
    Replies: 1
    Last Post: 21st Aug 2009, 08:54 AM

Tags for this Thread

BE SOCIAL