Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 URL Issues
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

AnonJr
Moderator

United States
5768 Posts

Posted - 11 January 2009 :  13:21:17  Show Profile  Visit AnonJr's Homepage  Reply with Quote
As I was waiting for the Windows 7 Beta ISO to finish downloading, my mind was wandering over to the URL issues we've discussed - from long URLs stretching the posts, to weird issues with multiple www's in them, and other URL oddities.

I was thinking that maybe it would be better to add an interface to two or three of the more popular link shrinking type sites like TinyURL, etc. and just running all links through which ever service the Admin chose to.

And, as an alternative to relying on a service that might disappear, building an internal service to do something similar. If Marcel was willing to share his code it could be the basis for said service.

Oh, and when I say service, I don't necessarily intend it to be accessible outside the forum software.

And my last random thought was to convert all urls to [link] if no link text was specified. (may need some more explanation once I've made another pot of coffee and thought this out more thoroughly).

This was just a random idea I had and I wanted to write it down somewhere to make it harder to forget. I haven't hit 30 yet and I'm balding, seeing gray in my beard, and forgetting stuff all the time... I think.. <

JJenson
Advanced Member

USA
2121 Posts

Posted - 11 January 2009 :  14:54:04  Show Profile  Visit JJenson's Homepage  Reply with Quote
By the way Annon where did you get windows 7 beta iso? I really want to test this out as well?

But I like the ideas you had sorry if this was off topic.<
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 11 January 2009 :  15:34:52  Show Profile  Visit SiSL's Homepage  Reply with Quote
In my humble opinion, URL convertion should be made in process of posting, rather than later...<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 11 January 2009 :  15:52:09  Show Profile  Visit JJenson's Homepage  Reply with Quote
Nevermind found it. I can't wait to install on my laptop. <
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 12 January 2009 :  00:27:59  Show Profile  Visit AnonJr's Homepage  Reply with Quote
quote:
Originally posted by SiSL

In my humble opinion, URL convertion should be made in process of posting, rather than later...

Who said it had to be after?<
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 12 January 2009 :  01:17:31  Show Profile  Reply with Quote
That's an intriguing idea anon. I am more leaning toward having our own code doing url conversion. But how does it actually work? Store the actual url in the database and assign it an ID?<

Support Snitz Forums
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 12 January 2009 :  01:20:28  Show Profile  Visit JJenson's Homepage  Reply with Quote
If you track down how to do this I would love to get the code from you guys I have a site I want to do it on right now. But I don't want the tiny mci url I want my own.

By the way Anon how are oyu liking windows 7? I love it so far<
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 12 January 2009 :  01:47:36  Show Profile  Visit SiSL's Homepage  Reply with Quote
quote:
Originally posted by AnonJr

quote:
Originally posted by SiSL

In my humble opinion, URL convertion should be made in process of posting, rather than later...

Who said it had to be after?



You did not for sure. It is just what's currently happening.
What I basically say is forum should add [url]..[/url] tags in post_info.asp while writing it to database. That would more efficient and safe for server side processing during message view...

I will convert and do a test as soon!!! as 3.4.0.7 released for example :p
<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 12 January 2009 01:51:56
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 January 2009 :  01:59:49  Show Profile  Visit HuwR's Homepage  Reply with Quote
the reason it currently happens the way it does is so that NO html is stored in the database, it has nothing to do with efficiency. so any attempt to do otherwise should be stopped, HTML should not be being stored in the database.<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 12 January 2009 :  03:01:53  Show Profile  Visit MarcelG's Homepage  Reply with Quote
quote:
Originally posted by Davio

But how does it actually work? Store the actual url in the database and assign it an ID?
Yep, that's it. Only 'fancy' thing I added is that the ID is encoded using a base62 encoding ([az+AZ+09].

One thing though : as soon as the post is made and the user wants to edit his or her post...how does one edit the entered url?
<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 12 January 2009 :  06:00:46  Show Profile  Visit SiSL's Homepage  Reply with Quote
quote:
Originally posted by HuwR

the reason it currently happens the way it does is so that NO html is stored in the database, it has nothing to do with efficiency. so any attempt to do otherwise should be stopped, HTML should not be being stored in the database.



Not HTML at all, just URL tags to front and end of URL's that is not tagged. In other words, what I meant was, when an URL is posted without any tags like simple type of www.chip.com.tr , post_info should convert it to [url]www.chip.com.tr[/url] (entire wording till it matches a line break or space) format while entering it into DB, not HTML format at all, basically removing need for a second pass on non-tagged URL's during topic views and also basic errors of handling non-standart URL's at edit_href function.

Ofcourse, I understand this would bring up backward compability issues. But oh well, can type an upgrade script for that...

Actually, why I said that was, during post_info, you can add a few more lines (since it effect only poster) and validate URL format, not allowing multi-www's as first post mentioned. When poster wants to edit his/her own post, it will just see [url]..[/url] instead of simple URL line...

As I said, entire script I do for that is ready with multi-regex passes including shortening URL's, multi-www's, checking for securities etc. just waiting for 3.4.0.7 to place and test it, really, have no courage left to do same job twice before it :)

<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 12 January 2009 06:15:19
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 January 2009 :  06:35:39  Show Profile  Visit HuwR's Homepage  Reply with Quote
quote:
Not HTML at all, just URL tags to front and end of URL's that is not tagged. In other words, what I meant was, when an URL is posted without any tags like simple type of www.chip.com.tr , post_info should convert it to www.chip.com.tr" target="_blank">www.chip.com.tr (entire wording till it matches a line break or space) format while entering it into DB, not HTML format at all, basically removing need for a second pass on non-tagged URL's during topic views and also basic errors of handling non-standart URL's at edit_href function.



whichjust reiterates and confirms exactly what I have been saying for years, NO urls should be parsed unless they are in url tags, that is after all why we have url tags.
<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 12 January 2009 :  08:48:34  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Maybe it wasn't as bad a random idea as I'd initially thought.

While I do like the convenience of not requiring the url tags, and not having to continually explain why links aren't clickable, more and more I'm comming around to Huw's point of view that URLs shouldn't be parsed if they aren't in url tags. It would certainly save a lot heartache all around.

And, after a lot of thought, Davio is right. While it would be easier to just use an outside service, it would be better to have it "in house" so to speak. I started thinking about how the forum at work would break because not all users have access to the Internet from their work accounts, and the horrors of a service disappearing and breaking all the links...

Also, I don't see where editing the URL would be too hard if on edit its returned to the original link... we have to have some way of looking it up for this to work. <
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 12 January 2009 :  10:59:05  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
I'm all in favour of HuwR's method (this has come up before). From my own point of view, it makes it harder on spammers if you don't parse url's not in url tags as they must know the syntax of the bb/forumcode the victim forum uses.

As for the second suggestion are you talking about having all links appear like this ?

http://www.google.ie

i.e. storing the actual link in the database and only displaying it as text rather than as an <a href ?

Edit: Reply with Quote to see the text I entered for the url

{url}="http://forum.snitz.com/forum/redirect.asp?url=12345"}http://www.google.ie{/url}

I would love some tags too.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 12 January 2009 11:05:40
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 12 January 2009 :  11:14:14  Show Profile  Visit SiSL's Homepage  Reply with Quote
well, I'm not talking about any of things you mentioned Podge...

www.chip.com.tr/test/forum/test/forum.asp etc. when someone post it without bb/forum code, it should enter into database as it is already tagged... like [url]http://www.chip.com.tr/test/forum/test/forum.asp[/url] by post_info.asp ... No need to change anything or it would confuse things a lot more...

<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 January 2009 :  11:17:32  Show Profile  Visit HuwR's Homepage  Reply with Quote
quote:
Originally posted by SiSL

well, I'm not talking about any of things you mentioned Podge...

www.chip.com.tr/test/forum/test/forum.asp etc. when someone post it without bb/forum code, it should enter into database as it is already tagged... like [url]http://www.chip.com.tr/test/forum/test/forum.asp[/url] by post_info.asp ... No need to change anything or it would confuse things a lot more...





you still have the problem of deciding whether or not it is a valid url (that is the crux of the issue) before wrapping it in url tags<
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07