URL= vs just URL bbcode?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
User avatar
ataylor20
Registered User
Posts: 189
Joined: Fri Apr 30, 2004 6:21 pm

URL= vs just URL bbcode?

Post by ataylor20 » Wed Mar 09, 2011 10:12 pm

Ive done some searching and I cant seem to find a guide on how to add the URL= bbcode to my site.

Currently it just inserts:

Code: Select all

[url][/url]
What i want:

Code: Select all

[url=http://www.Site.com/]site.com[/url]
I remember in a previous forum I hosted there was a URL= Button that would provide a popup to allow you to insert the URL and the text you want to include. I would be happy if it would simply display the code so I can input what I wanted.

Thanks!

-Drew

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: URL= vs just URL bbcode?

Post by Erik Frèrejean » Wed Mar 09, 2011 10:18 pm

That BBCode is a build in BBCode, all phpBB installations have it.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
ataylor20
Registered User
Posts: 189
Joined: Fri Apr 30, 2004 6:21 pm

Re: URL= vs just URL bbcode?

Post by ataylor20 » Wed Mar 09, 2011 10:34 pm

Heres the bbcode I have. I dont see a URL= but just a URL.
Image

I want to press a URL= button and it spit out
site.com
not


Even this site doesnt have it. I only see the URL button.

Im asking for a URL= button

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: URL= vs just URL bbcode?

Post by Erik Frèrejean » Wed Mar 09, 2011 10:41 pm

Thats a styling issue, I'll move this topic to the style support forum as you'll receive better support there.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
TheIlluminative
Former Team Member
Posts: 2451
Joined: Thu Jun 26, 2003 11:34 pm
Location: Egypt
Name: Mahmoud
Contact:

Re: URL= vs just URL bbcode?

Post by TheIlluminative » Thu Mar 10, 2011 2:01 am

Try this: open file: styles/your_style/template/posting_buttons.html, find:

Code: Select all

	var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);[/code]
Replace with:

Code: Select all

	var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','','','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);[/code]
Find:

Code: Select all

	<!-- IF S_LINKS_ALLOWED -->
		<input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
	<!-- ENDIF -->
	<!-- IF S_BBCODE_FLASH -->
		<input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
	<!-- ENDIF -->
	<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 -->
Replace with:

Code: Select all

	<!-- IF S_LINKS_ALLOWED -->
		<input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
		<input type="button" class="button2" accesskey="w" name="addbbcode18" value="URL=" style="text-decoration: underline; width: 40px" onclick="bbstyle(18)" title="{L_BBCODE_W_HELP}" />
	<!-- ENDIF -->
	<!-- IF S_BBCODE_FLASH -->
		<input type="button" class="button2" accesskey="d" name="addbbcode20" value="Flash" onclick="bbstyle(20)" title="{L_BBCODE_D_HELP}" />
	<!-- ENDIF -->
	<select name="addbbcode22" onchange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]');this.form.addbbcode22.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 -->
Refresh templates through ACP after editions.

User avatar
ataylor20
Registered User
Posts: 189
Joined: Fri Apr 30, 2004 6:21 pm

Re: URL= vs just URL bbcode?

Post by ataylor20 » Thu Mar 10, 2011 10:19 pm

it doesnt popup asking for the information and put it in like ive seen else where but it does enter the code with the = already there.

Thanks for the help! :mrgreen:

User avatar
Daz
Registered User
Posts: 5236
Joined: Fri Dec 07, 2001 2:39 pm
Location: Yorkshire, UK

Re: URL= vs just URL bbcode?

Post by Daz » Thu Mar 10, 2011 11:46 pm

Hi,
See this MOD and the one linked to it in the second post.

Daz
Please and Thank You works wonders...
I reserve the right to post illogical (and totally wrong) replies.
...It's the subtle perfection in attention to detail that makes your work rock the way it does - cdkrg
Think simple - it's not necessarily what you draw that matters, it's what you perceive - Daz

Note: ForumImages<dot>com is no longer anything to do with me.

User avatar
TheIlluminative
Former Team Member
Posts: 2451
Joined: Thu Jun 26, 2003 11:34 pm
Location: Egypt
Name: Mahmoud
Contact:

Re: URL= vs just URL bbcode?

Post by TheIlluminative » Fri Mar 11, 2011 1:28 am

Sorry, you asked for a 'URL=' button, I thought that was what you wanted.
Otherwise, what you demand requires a MOD :)

User avatar
ataylor20
Registered User
Posts: 189
Joined: Fri Apr 30, 2004 6:21 pm

Re: URL= vs just URL bbcode?

Post by ataylor20 » Fri Mar 11, 2011 6:03 pm

TheIlluminative wrote:Sorry, you asked for a 'URL=' button, I thought that was what you wanted.
Otherwise, what you demand requires a MOD :)
What you gave me was great! Thanks for the help. I was just trying to find what I have seen in the past. I will try this mod as well.

Thanks guys!
-Drew

Locked

Return to “[3.0.x] Styles Support & Discussion”