pb with URL bbcode

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
bardosoft
Registered User
Posts: 69
Joined: Sat Dec 15, 2007 8:12 pm
Contact:

pb with URL bbcode

Post by bardosoft »

Hi

Why URL bbcode not accept a relative link like "test.html" ?

Test:
aze
BS Video Saver <=- Video downloader
BS Video Saver Community <=- Our Community
User avatar
opoqol5
Registered User
Posts: 29
Joined: Sat Jun 07, 2008 7:31 am

Re: pb with URL bbcode

Post by opoqol5 »

I'm not sure if I understand you but, you should make it like this

Code: Select all

[url=./aze.html]aze[/url]
bardosoft
Registered User
Posts: 69
Joined: Sat Dec 15, 2007 8:12 pm
Contact:

Re: pb with URL bbcode

Post by bardosoft »

opoqol5 wrote:I'm not sure if I understand you but, you should make it like this

Code: Select all

[url=./aze.html]aze[/url]
aze dont work also

you can try
BS Video Saver <=- Video downloader
BS Video Saver Community <=- Our Community
User avatar
Ddraiggoch06
Registered User
Posts: 482
Joined: Sun May 18, 2008 11:45 am
Location: Wales, UK

Re: pb with URL bbcode

Post by Ddraiggoch06 »

bardosoft wrote:
opoqol5 wrote:I'm not sure if I understand you but, you should make it like this

Code: Select all

[url=./aze.html]aze[/url]
aze dont work also

you can try
Try making a Custom BBCode, for example this:

BBCode Usage:

Code: Select all

[localurl]{simpletext}[/localurl]
HTML Replacement:

Code: Select all

<a href="./{simpletext}</a>
Something like that should work, then use:

Code: Select all

[localurl]file.php[/localurl]
I accept PM support for phpBB3. Please do not PM me with MOD or Style support and requests.
"Give a man a fish and you'll have fed him for today. Teach a man to fish and you'll have fed him for a lifetime."
bardosoft
Registered User
Posts: 69
Joined: Sat Dec 15, 2007 8:12 pm
Contact:

Re: pb with URL bbcode

Post by bardosoft »

It's a big error from phpBB developer
BS Video Saver <=- Video downloader
BS Video Saver Community <=- Our Community
User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: pb with URL bbcode

Post by jimdunn »

bardosoft wrote:It's a big error from phpBB developer
No it's not

The examples you gave were using the BBcode wrongly.

Ddraiggoch06 offered a solution - have you tried it yet ?
bardosoft
Registered User
Posts: 69
Joined: Sat Dec 15, 2007 8:12 pm
Contact:

Re: pb with URL bbcode

Post by bardosoft »

jimdunn wrote:
bardosoft wrote:It's a big error from phpBB developer
No it's not

The examples you gave were using the BBcode wrongly.

Ddraiggoch06 offered a solution - have you tried it yet ?

the URL bbcode may work with static and relative link
not with static link only
BS Video Saver <=- Video downloader
BS Video Saver Community <=- Our Community
User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: pb with URL bbcode

Post by jimdunn »

the URL bbcode may work with static and relative link
not with static link only
Could you elaborate - I'm tired, so I'm probably missing what you mean there ?

You were putting your link address where the text that describes the link should go in your examples.

If you post a link to your local board, in full, with no bbcode tags, it will be automatically abbreviated

http://www.phpbb.com/community/posting. ... &p=5779525

See what I typed by hitting quote.
bardosoft
Registered User
Posts: 69
Joined: Sat Dec 15, 2007 8:12 pm
Contact:

Re: pb with URL bbcode

Post by bardosoft »

i need using this link format : Help
BS Video Saver <=- Video downloader
BS Video Saver Community <=- Our Community
User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: pb with URL bbcode

Post by jimdunn »

i need using this link format : Help
BBcode usage:

Code: Select all

[localurl={TEXT1}]{TEXT2}[/localurl]
Html replacement

Code: Select all

<a href="http://www.jim.com/{TEXT1}">{TEXT2}</a>
replacing the url with your own ;)

Use like:

Code: Select all

[localurl=forum/adm]Admin Controls[/localurl]
bardosoft
Registered User
Posts: 69
Joined: Sat Dec 15, 2007 8:12 pm
Contact:

Re: pb with URL bbcode

Post by bardosoft »

why URL bbcode don't accept relative link ?
BS Video Saver <=- Video downloader
BS Video Saver Community <=- Our Community
User avatar
Ddraiggoch06
Registered User
Posts: 482
Joined: Sun May 18, 2008 11:45 am
Location: Wales, UK

Re: pb with URL bbcode

Post by Ddraiggoch06 »

bardosoft wrote:why URL bbcode don't accept relative link ?
Because it doesn't. The URL code is for URLs, and a URL is counted as http://www.domain.com, not page.php. Use the Custom BBCode jimdunn gave you, and you will be able to do it fine.
I accept PM support for phpBB3. Please do not PM me with MOD or Style support and requests.
"Give a man a fish and you'll have fed him for today. Teach a man to fish and you'll have fed him for a lifetime."
SamG
Former Team Member
Posts: 3221
Joined: Fri Aug 31, 2001 6:35 pm
Location: Beautiful Northwest Lower Michigan
Name: Sam Graf

Re: pb with URL bbcode

Post by SamG »

bardosoft wrote:why URL bbcode don't accept relative link ?
Relative links are relative to phpBB only and so work differently:

http://www.phpbb.com/community/viewforum.php?f=46

http://www.phpbb.com/downloads/

Between BBCode (which are intended to deal with [FQDN url]link text[/url] and not url) and direct parsing of links, all the bases are covered, as far as I can see.
We should talk less, and say more.
User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: pb with URL bbcode

Post by jimdunn »

all the bases are covered, as far as I can see.
I think the OP just misunderstood how bbcode works for url posting in phpBB3.

I hope my BBcode is useful to him when he tries it - it works in testing here.

If you get any problems with it, bardosoft, please post back, and someone will iron it out for you.
AJStevens
Registered User
Posts: 50
Joined: Sat Feb 16, 2008 11:20 pm

Re: pb with URL bbcode

Post by AJStevens »

jimdunn,

I'm trying to accomplish the same thing, can you give me some help please.

for the:

Code: Select all

<a href="http://www.jim.com/{TEXT1}">{TEXT2}</a>
Is there anyway I can use a variable for the www.jim.com to use the current domain, as the board can be accessed via multiple domains.
Locked

Return to “[3.0.x] Support Forum”