Jump to content

"http://" forced added for URL TAG !


Guest GOT

Recommended Posts

Well I noticed this feature in 2.1.3 version. It was not there in the earlier version!!

I have two domain pointing to my forums. I will discontinue one of the domain for other purpose.

..::BEFORE::.. version 2.1.1
When I use to post the links which point to my own forum i use to put it like this

[url = /forums/index.php?=blablabla] CLICK HERE [/url]

I gives me a dynamic link, ie the link would point to same location even if i change my domain or IP. When I post the above TAG it the link comes out like this.

http://accesseddomainNameOrIP/fourms/index.php?=blablabla

..::Now Version 2.1.3::.. Now when I repeat the above step ie use the TAG like this

[url = /forums/index.php?=blablabla] CLICK HERE [/url]

Now when I post it the out come is not a dynamic link :ermm: . This is what I get now

http:///fourms/index.php?=blablabla

If IPB does not add that Http:// then the link would again become dynamic. I know most of the ppl don't add http:// when adding a URL & IPB is helping them out, but now its difficult to post dynamic & as well as non standard links like emule:// or steam:// etc etc Yes the above forced addition of http:// has limited the URL post. Like for me I also host steam server list, (COUNTER STRIKE). The steam server can be joined simple by clicking on steam://servername etc etc!! Also for DC Hubs I use dchub://hubaddress Now when I do the same on newer version 2.1.3 it processor link this

http://steam://serveraddress

http://eMule://filedetails

http://dchub://hubaddress



none of the above links work any more!! Can you provide an option for disabling this feature ??


Also should I post the same in BUG report forum too ??

Link to comment
Share on other sites

In the build QA is testing, if there is no http it is not parsed at all. We're thinking on how to improve this, as it isn't quite as intuitive. The problem is some people just enter something, and then the link is misformatted, and then that was reported as a bug. Not really IPB's fault, but we're trying to accomodate everyone and find a way for IPB to handle those links.

Question though...how did you add alternative protocols, given that the post parser libraries check specifically for https and ftp (and possibly one or two others). It shouldn't have let them post as actual urls unless you modified the file. :unsure:

Link to comment
Share on other sites

No I did not modify any files, I simply downloaded from client area & updated my version!! Hmm ya I am not using default skin but it does't work on dfault also !!

Just let me try here

CHECK DA LINK TEST


Also as u meantioned most as most of the ppl just type anything & report as bug... :ermm: Hmm I do agree but can it be disabled ?? or say only for MODs??

Because in my forum I hav less of nOobs (fingers crossed) so I guess i can manage without it. :rolleyes:

Oh I thank IPB always ;)

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 weeks later...

Mirc G8 !!

Well I used it other way ;) I removed

http://|https://|ftp://|news://



Now my links are Dynamic again!!


IPB developers please note this situation:

I am the Admin to a very private forum for the COMPANY I am working with. This is intranet, but other catch is that, network is divided, for security reasons & more stuff, v have two networks with diffrent IP ranges. My job is to make this forum acceable to both side of the network, these employees froms diffrent department post there request & reports here. Now in few more weeks I there will be another intranetwork setup so mean 1+ IP range. One cannot communicate between these network & yet I manage to setup the server which hosts multiple IPs & kinda links the 2 network tru forums. So the links given to the FTP folder on the SERVER needed to be dynamic.

All i wanted to suggest is, infuture please add an option in ACP ;)
ThanX a lot guys! My seniours will be impressed.

Link to comment
Share on other sites

you need only to edit post_parser.php functions


1 [b]regex_build_url[/b] find

http|ftp|https|news

add

|dchub|steam

2 convert the same as in 1 3 unconvert find

http://|https://|ftp://|news://

and add

|dchub://|steam://




hello mate i dont get it

explain it clearly
Link to comment
Share on other sites

One of the things people dislike in forums is ordinary members acting like staff and telling people off.

hello mate i dont get it


explain it clearly



Find in /sources/lib/post_parser.php ...

// Auto parse URLs

Just below that find ...

 (http|https|news|ftp

Add after ..

 |dchub|steam

----------------------------------- Next find ..

 // unconvert:

Just below that find ..

 http://|https://|ftp://|news://

Add after ...

 |dchub://|steam://

----------------------------------- Then find ..

 // Make sure it's a "proper" url

Just below that find ...

 (http|https|news|ftp

Add after ..

 |dchub|steam



------------------------------------

Make sure everything stays within the BRACKETS ( )


:)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...