[Aphrodite] XS BBCode 2

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

[Aphrodite] XS BBCode 2

Postby Reiji Kurosaky on Wed Mar 08, 2006 8:39 pm

To add a Hide BBCode button in Aphrodite.

Note: This is just a modification for the code from MrBass to work with the hide tag.

Code: Select all
#
#-----[ OPEN ]----------------------------------------------
#
posting.php

#
#-----[ FIND ]----------------------------------------------
#
   'L_BBCODE_W_HELP' => $lang['bbcode_w_help'],

#
#-----[ AFTER, ADD ]----------------------------------------
#
   'L_BBCODE_H_HELP' => $lang['bbcode_h_help'],


#
#-----[ OPEN ]----------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]----------------------------------------------
#
$lang['bbcode_q_help'] = 'Quote text: [quote]text[/quote]  (alt+q)';

#
#-----[ AFTER, ADD ]----------------------------------------
#
$lang['bbcode_h_help'] = 'Insert hide text: [hide]text[/hide]  (alt+h)';


#
#-----[ OPEN ]----------------------------------------------
#
language/lang_english/lang_bbcode.php

#
#-----[ FIND ]----------------------------------------------
#
$faq[] = array("Outputting code or fixed width data", "If you want to output a piece of code or in fact anything that requires a fixed width with a Courier-type font, you should enclose the text in <b>[code][/code]</b> tags, eg.<br /><br /><b>[code]</b>echo \"This is some code\";<b>[/code]</b><br /><br />All formatting used within <b>[code][/code]</b> tags is retained when you later view it.");

#
#-----[ AFTER, ADD ]----------------------------------------
#
$faq[] = array("Hide message", "Sometimes you want to hide a message to guest users on your forum, but want to post that message in a public forum. With this code you can make it so only registered member who have posted on that topic can read the hidden message. Very useful. If you want to add this code to to your posts, just write this; [hide]Message to hide[/hide]. <b>Note:</b> The hidden message function is a modification to the phpBB core code and <u>not</u> a standard phpBB feature. The mod that is implemented on this site is called XS BBCode and you can get the latest version by visiting <a href='http://www.phpbbstyles.com/viewtopic.php?t=12126'>here</a>.");


#
#-----[ OPEN ]----------------------------------------------
#
templates/ca_aphrodite/posting_body.tpl

#
#-----[ FIND ]----------------------------------------------
#
q_help = "{L_BBCODE_Q_HELP}";

#
#-----[ AFTER, ADD ]----------------------------------------
#
h_help = "{L_BBCODE_H_HELP}";


#
#-----[ FIND ]----------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]');

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'[/url]'

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
,'[hide]','[/hide]'

#
#-----[ FIND ]----------------------------------------------
#
         <td><span class="genmed">
           <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
           </span></td>

#
#-----[ AFTER, ADD ]----------------------------------------
#
         <td><span class="genmed">
           <input type="button" class="button" accesskey="h" name="addbbcode26" value="Hide" style="width: 60px" onClick="bbstyle(26)" onMouseOver="helpline('h')" />
           </span></td>

#
#-----[ FIND ]----------------------------------------------
#
         <td colspan="9">
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><span class="genmed button"> &nbsp;{L_FONT_COLOR}:
               <select class="button" name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">

#
#-----[ REPLACE WITH ]--------------------------------------
#
         <td colspan="10">
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><span class="genmed button"> &nbsp;{L_FONT_COLOR}:
               <select class="button" name="addbbcode26" onChange="bbfontstyle('[color=' + this.form.addbbcode26.options[this.form.addbbcode26.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">

#
#-----[ FIND ]----------------------------------------------
#
               </select> &nbsp;{L_FONT_SIZE}:<select class="button" name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#-----[ REPLACE WITH ]--------------------------------------
#
               </select> &nbsp;{L_FONT_SIZE}:<select class="button" name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#-----[ FIND ]----------------------------------------------
#
         <td colspan="9"><input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" readonly="readonly" /></td>

#
#-----[ REPLACE WITH ]--------------------------------------
#
         <td colspan="10"><input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" readonly="readonly" /></td>


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------
#
# EoM


Edited: Changed an issue with the font bbcode.
Last edited by Reiji Kurosaky on Sat Mar 11, 2006 9:37 am, edited 2 times in total.
My sites:
Villavizar.com

My Styles:
[Venus]
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby kvfb97 on Wed Mar 08, 2006 8:53 pm

Greetings,

It will not work, 'addbbcode20' is already taken by the Font BBcode.
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby UseLess on Wed Mar 08, 2006 9:01 pm

Greetings,

XS BBCode Build 12a - 1st Post wrote:- added spoil and spoiler BBCode tags - but these will not be shown on the posting page when making a new post if you have the Multi-BBCode mod installed then it's a simple process to add them.


So you will need to have the Multi-BBCode mod installed if you wish to show the buttons on the posting page.
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby Reiji Kurosaky on Thu Mar 09, 2006 12:59 am

[quote user="kvfb97" post="70393"]Greetings,

It will not work, 'addbbcode20' is already taken by the Font BBcode.[/quote]

It works on my forum.

[quote user="UseLess" post="70394"]Greetings,

XS BBCode Build 12a - 1st Post wrote:- added spoil and spoiler BBCode tags - but these will not be shown on the posting page when making a new post if you have the Multi-BBCode mod installed then it's a simple process to add them.


So you will need to have the Multi-BBCode mod installed if you wish to show the buttons on the posting page.[/quote]

I don´t have that MOD installed and it works on my forum too...
My sites:
Villavizar.com

My Styles:
[Venus]
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby UseLess on Thu Mar 09, 2006 1:31 am

Greetings,

'addbbcode20' is used by the 'font style' option.

So unless you adjust the form element names there is no easy way to add more buttons. That's why the Multi-BBCode mod was created in the first place to make adding other BBCode options to the posting page easier. If you ever add any other BBCodes to that page your going to have to adjust the 'names' again.
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby Reiji Kurosaky on Thu Mar 09, 2006 1:55 am

Ok, then I add it as 'addbbcode26' is that used?
My sites:
Villavizar.com

My Styles:
[Venus]
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby sheeter on Tue Dec 26, 2006 12:59 pm

i have added this mod, and when i try to use the hide tags its puts 'undefined' instead of [hide], can somebody please help me

im running phpbb2 2.2.21 with Aphrodite template
sheeter
Registered User
Registered User
 
Posts: 2
Joined: Tue Dec 26, 2006 12:56 pm

Postby sheeter on Tue Jan 30, 2007 3:38 pm

So nobody can help me with this? i still have this problem, any help apreciated
sheeter
Registered User
Registered User
 
Posts: 2
Joined: Tue Dec 26, 2006 12:56 pm

nfl jersey

Postby avrgvlink on Sun May 03, 2009 3:15 am

[font=Tahoma][size=9pt][font=Tahoma][size=9pt][color=#000000][size=4]nfl jerseys , nfl jersey , football jersey , youth nfl jersey[/color]

http://www.9ico.com/
[/size][/font][/size][/font][/size]
avrgvlink
Registered User
Registered User
 
Posts: 17
Joined: Thu Apr 23, 2009 2:38 am


Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 2 guests

cron