font size bbcode like phpbb2

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

font size bbcode like phpbb2

Post by jainvikram » Sat Jan 26, 2013 2:29 pm

on my phpbb3 board i want the font size bbcode similar to that of phpbb2.

Thanks

User avatar
Christian 2.0
Former Team Member
Posts: 4445
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: font size bbcode like phpbb2

Post by Christian 2.0 » Sat Jan 26, 2013 3:16 pm

phpBB's default font-size BBCode is essentially the same, however uses percentages rather than pixels. For example:

Code: Select all

[size=125]This is 125% font size[/size]
This is 125% font size

However, if you want to revert back to phpBB2 functionality where the [size] value uses pixels instead of percentages..

Open: /styles/*/template/bbcode.html

Find:

Code: Select all

<!-- BEGIN size --><span style="font-size: {SIZE}%; line-height: 116%;">{TEXT}</span><!-- END size -->
Replace with:

Code: Select all

<!-- BEGIN size --><span style="font-size: {SIZE}px; line-height: 116%;">{TEXT}</span><!-- END size -->
Then in posting_buttons.html, find:

Code: Select all

	<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
		<option value="50">{L_FONT_TINY}</option>
		<option value="85">{L_FONT_SMALL}</option>
		<option value="100" selected="selected">{L_FONT_NORMAL}</option>
		<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
			<option value="150">{L_FONT_LARGE}</option>
			<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
				<option value="200">{L_FONT_HUGE}</option>
			<!-- ENDIF -->
		<!-- ENDIF -->
	</select>
Replace with:

Code: Select all

	<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
		<option value="8">{L_FONT_TINY}</option>
		<option value="10">{L_FONT_SMALL}</option>
		<option value="12" selected="selected">{L_FONT_NORMAL}</option>
		<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 16 -->
			<option value="16">{L_FONT_LARGE}</option>
			<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 24 -->
				<option value="24">{L_FONT_HUGE}</option>
			<!-- ENDIF -->
		<!-- ENDIF -->
	</select>
Finally, set new font size settings in ACP -> Post settings.

You will need to change the "Maximum font size per post:" setting from 200 to something like 50.

jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

Re: font size bbcode like phpbb2

Post by jainvikram » Sat Jan 26, 2013 5:18 pm

Thanks a ton brother, i owe you one :)

edit : not working.... still getting very very tiny fonts at huge . :(

jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

Re: font size bbcode like phpbb2

Post by jainvikram » Sat Jan 26, 2013 8:54 pm

*bumping*

Mate its not working for me. :(

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: font size bbcode like phpbb2

Post by Oyabun1 » Sat Jan 26, 2013 9:06 pm

We have a 6 hour bump rule here, please follow it. If you have more to add and nobody has yet replied to your previous post then just edit it. Bumping a topic moves it to the bottom of the queue meaning it will take longer to get a reply.

Please provide a link to a post on your board that shows the problem.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

Re: font size bbcode like phpbb2

Post by jainvikram » Sat Jan 26, 2013 9:36 pm

sorry for the bump.
the problem is in this same thread .

Code: Select all

https://www.phpbb.com/community/viewtopic.php?f=46&t=2169247

User avatar
Lumpy Burgertushie
Registered User
Posts: 65197
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: font size bbcode like phpbb2

Post by Lumpy Burgertushie » Sat Jan 26, 2013 9:42 pm

that is not a link to a post on your board that shows us the problem.

also, just to be accurate, there are no "threads" in phpbb. there are categories/forums/topics/posts.

It helps everyone if we all use the same terminology.

thanks,
robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

Re: font size bbcode like phpbb2

Post by jainvikram » Sat Jan 26, 2013 11:28 pm

I don't think the forum link will be allowed in here seeing the nature of the forum.

User avatar
Christian 2.0
Former Team Member
Posts: 4445
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: font size bbcode like phpbb2

Post by Christian 2.0 » Sun Jan 27, 2013 12:39 am

After editing the template files and uploading them, did you refresh the template cache?

ACP -> "Styles" Tab -> Style Components -> Templates -> *your style* -> Refresh

jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

Re: font size bbcode like phpbb2

Post by jainvikram » Sun Jan 27, 2013 3:13 am

yeah refreshed it..... but still not working .... :(

User avatar
Christian 2.0
Former Team Member
Posts: 4445
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: font size bbcode like phpbb2

Post by Christian 2.0 » Sun Jan 27, 2013 3:26 am

Can you PM me the link to your forum?

jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

Re: font size bbcode like phpbb2

Post by jainvikram » Sun Jan 27, 2013 3:58 am

because of postcount thing unable to PM :evil:

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: font size bbcode like phpbb2

Post by Oyabun1 » Sun Jan 27, 2013 4:23 am

You have the necessary post count, you just need to wait at least 24 hours from when you joined.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

Re: font size bbcode like phpbb2

Post by jainvikram » Sun Jan 27, 2013 4:40 am

Oyabun1 wrote:You have the necessary post count, you just need to wait at least 24 hours from when you joined.
Oks. Thanks. Didn't knew that. :)

jainvikram
Registered User
Posts: 12
Joined: Sat Jan 26, 2013 2:20 pm

Re: font size bbcode like phpbb2

Post by jainvikram » Mon Jan 28, 2013 11:11 am

christain i have sent a pm. check it out.

Locked

Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: Google [Bot] and 398 guests