Welcome to PhpBB3 BBCodes. Click here to register
Feed

Show bbcode icon in custom bbcode page!

Forum rules
User contributions are the users own "Stuff"
They are not supported by the BBCode Staff and is used at own risk

Show bbcode icon in custom bbcode page!

Postby cisco007 » 23 Jul 2010, 20:42

this little snippet shows an icon on the right side of the custom bbcodes page, according to the bbcode installed on your board!

DEMO:


REQUIREMENTS:
1.You must have custom bbcode page by Stoker found in this site. Custom BBCodes Page
2.If you have bbcodebox light mod installed it will also help, i have my images for the bbcodebox light mod, in a editor directory inside the images folder!
ps. fix path to images depending on where you have them installed.
3.Images should be named according to the bbcode, follow instructions in the bbcodebox light topic!

on to edits!

open boardbbcodes.php

Find:
Code: Select all
      'BBCODE_MATCH'   => $row['bbcode_match'],

Add after:
Code: Select all
     'BBCODE_ICON'      => ($row['bbcode_tag']) ? '<img src="' . $phpbb_root_path . 'images/editor/' . $row['bbcode_tag'] . '.png" height="16" width="16" align="absmiddle" />' : '<img src="' . $phpbb_root_path . 'images/editor/no_image.png'. '" height="16" width="16" align="absmiddle" />',


now open prosilver/template/boardbbcodes_body.html
Find:
Code: Select all
          <th class="info" style="width:150px;">{L_BBCODE_DISPLAY}</th>

Add after:
Code: Select all
          <th class="table1" style="text-align:center;">{L_BBCODE_ICON}</th>

Find:
Code: Select all
          <td style="text-align:center;"><!-- IF bbcodes.S_BBCODE_DISPLAY -->{L_YES}<!-- ELSE -->{L_NO}<!-- ENDIF --></td>

Add after:
Code: Select all
<td style="text-align:center;">{bbcodes.BBCODE_ICON}</td>

open language/en/common.php
Find:
Code: Select all
    'BBCODES_COUNT'     => '%d Custom BBCodes'

Add after:
Code: Select all
    'BBCODE_ICON'              => 'Icon',
Chatbox is NOT!! for support, nor PM's
Don't know how to do something check this FORUM out!
Image
Image
User avatar
cisco007

Supporter
 
Ubuntu Firefox
Status: Offline
Posts: 997
Topics: 10
Joined: 16 Mar 2010, 16:14
Last Visit: Today, 05:09
Location: Don't really know!
PhpBB Version: 3.0.7-PL1
canicon,bbcode,custom bbcode

Donate to skip ads


Re: Show bbcode icon in custom bbcode page!

Postby Stoker » 23 Jul 2010, 21:03

Nice cisco :thumb:
Board rules! No PM support
Image
User avatar
Stoker

Site Admin
 
Ubuntu Firefox
Status: Offline
Age: 37
Posts: 951
Topics: 80
Joined: 03 Mar 2010, 18:56
Last Visit: Today, 02:51
Location: Denmark
PhpBB Version: 3.0.7-PL1

Re: Show bbcode icon in custom bbcode page!

Postby cisco007 » 23 Jul 2010, 21:07

thanks, i was going to post it either in the snippets or in the custom bbcodes page topic, but i figured it would be better here!
Chatbox is NOT!! for support, nor PM's
Don't know how to do something check this FORUM out!
Image
Image
User avatar
cisco007

Supporter
 
Ubuntu Firefox
Status: Offline
Posts: 997
Topics: 10
Joined: 16 Mar 2010, 16:14
Last Visit: Today, 05:09
Location: Don't really know!
PhpBB Version: 3.0.7-PL1

Re: Show bbcode icon in custom bbcode page!

Postby GHOSTWRiTAZ » 23 Jul 2010, 21:54

Very nice cisco tnx for sharing m8
User avatar
GHOSTWRiTAZ

BBCoder II
 
Windows 7 Firefox
Status: Offline
Posts: 20
Topics: 2
Joined: 27 May 2010, 23:09
Last Visit: 27 Aug 2010, 21:26
PhpBB Version: 3.0.7-PL1

Re: Show bbcode icon in custom bbcode page!

Postby Chalong » 24 Jul 2010, 14:14

Looks nice and I'd like to install.
cisco007 wrote:open language/en/mods/bbcodes.php

There is no file like that in language/en/mods/, neither in the de folder. :oops:
Which mod does that come from ?
Last edited by Chalong on 24 Jul 2010, 14:15, edited 1 time in total.
Regards Chalong

www.chalong.de
User avatar
Chalong

BBCoder II
 
Windows XP Firefox
Status: Offline
Age: 51
Posts: 56
Topics: 9
Joined: 06 Mar 2010, 12:03
Last Visit: Yesterday, 13:03
Location: Pforzheim / Germany
PhpBB Version: 3.0.7-PL1

Re: Show bbcode icon in custom bbcode page!

Postby cisco007 » 24 Jul 2010, 14:30

you are right, i had created my own bbcodes.php language file and forgot about it!, because i did not like adding too many language variables to the common.php!

FIRST POST UPDATED!
Chatbox is NOT!! for support, nor PM's
Don't know how to do something check this FORUM out!
Image
Image
User avatar
cisco007

Supporter
 
Ubuntu Firefox
Status: Offline
Posts: 997
Topics: 10
Joined: 16 Mar 2010, 16:14
Last Visit: Today, 05:09
Location: Don't really know!
PhpBB Version: 3.0.7-PL1

Re: Show bbcode icon in custom bbcode page!

Postby Chalong » 24 Jul 2010, 15:07

Thank you, cisco007.
Regards Chalong

www.chalong.de
User avatar
Chalong

BBCoder II
 
Windows XP Firefox
Status: Offline
Age: 51
Posts: 56
Topics: 9
Joined: 06 Mar 2010, 12:03
Last Visit: Yesterday, 13:03
Location: Pforzheim / Germany
PhpBB Version: 3.0.7-PL1

Re: Show bbcode icon in custom bbcode page!

Postby ejchu01 » 16 Aug 2010, 21:19

nice cisco!

how did you make that demo where i click the thumbnail and the full sized picture shows up?
User avatar
ejchu01

BBCoder I
 
Windows XP Internet Explorer 8
Status: Offline
Posts: 1
Joined: 16 Aug 2010, 18:07
Last Visit: 16 Aug 2010, 21:19
PhpBB Version: 3.0.7-PL1

Re: Show bbcode icon in custom bbcode page!

Postby Stoker » 16 Aug 2010, 21:23

ejchu01 » 16 Aug 2010, 23:19 wrote:nice cisco!

how did you make that demo where i click the thumbnail and the full sized picture shows up?

Here: Highslide Attachment Mod
Board rules! No PM support
Image
User avatar
Stoker

Site Admin
 
Windows 7 Firefox
Status: Offline
Age: 37
Posts: 951
Topics: 80
Joined: 03 Mar 2010, 18:56
Last Visit: Today, 02:51
Location: Denmark
PhpBB Version: 3.0.7-PL1

Donate to skip ads



Return to User Contributions



  • Similar topics
    Replies
    Views
    Last Post

Who is online

Users browsing this forum: No registered users and 1 guest