Re: Custom BBCodes in a select box

Support for all Snippets will go here!
Forum rules
PLEASE USE THE [HSIMG][/HSIMG] TAGS WHEN POSTING LARGE IMAGES!
IF YOU DO NOT PROVIDE A LINK TO YOUR FORUM, YOUR TOPIC COULD BE IGNORED!
CANNOT REALLY HELP YOU OUT IF WE CANNOT SEE THE PROBLEM!
User avatar
Ooopsie
ooopsie
ooopsie
Posts: 1046
Joined: Sat Sep 25 2010 12:15 pm
Real name: Guito :)
Country Flag: United States
Location: Index, WA. or the State of Shock most of the time.
Contact:

Re: Re: Custom BBCodes in a select box

Postby Ooopsie » Mon Oct 31 2011 11:58 am

I don't understand
Don't work font bbcode
.

Fonts are a total separate entity from BBCodes. The drop down for BBCodes DOES WORK.

Screenshot_1.jpg
You do not have the required permissions to view the files attached to this post.
________________________
Ed
"Be kinder than necessary for everyone
you meet is fighting some kind of battle."
________________________
ALWAYS BACK-UP BEFORE MAKING CHANGES TO YOUR DATABASE OR FILES. ALWAYS!!!!

Do not PM me asking for support unless invited to do so. Use the forums.


User avatar
wijo
Donators
Donators
Posts: 70
Joined: Fri Sep 17 2010 5:37 pm
Real name: Wim
Country Flag: Netherlands
Location: Nederland
Contact:

Re: Re: Custom BBCodes in a select box

Postby wijo » Tue Feb 10 2015 8:11 am

Can someone make this bbcode for phpbb 3.1.3? It would be great if someone could make it so.

Edit: -- Tue Feb 10, 2015 1:11 pm --


Found solution by myself. Don't know if its the correct way but it works.

Open /template/posting_buttons.html

Find:

Code: Select all

</select>
   <input type="button" class="button2 bbcode-color" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />

   <!-- EVENT posting_editor_buttons_custom_tags_before -->

   <!-- BEGIN custom_tags -->
      <input type="button" class="button2 bbcode-{custom_tags.BBCODE_TAG_CLEAN}" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
   <!-- END custom_tags -->
</div>
<!-- EVENT posting_editor_buttons_after -->
<!-- ENDIF -->


Replace with:

Code: Select all

</select>
   <input type="button" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
<span><input type="button" class="button2" value="Toon overige BBCodes" onclick="if (this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = '';      this.innerText = ''; this.value = 'Verberg overige BBCodes'; } else { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = 'none'; this.innerText = ''; this.value = 'Verberg overige BBCodes'; }" /></span><span style="margin:5px;"><span style="display: none;"><br /><!-- BEGIN custom_tags -->
      <input type="button" class="button2" style="margin-top:2px;" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
   <!-- END custom_tags -->
   </span></span>
</div>
<!-- ENDIF -->

User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: Re: Custom BBCodes in a select box

Postby cisco007 » Tue Feb 10 2015 1:05 pm

the original code in the first post worked fine for me.
i am even using it with the abbc3 extension, but the edits have to be done to the abbc3_posting_buttons.html file
Image


Social Media

       

Return to “Snippets Support”



Who is online

Users browsing this forum: No registered users and 1 guest