Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Wob

Wob

310 posts

Ultimate Geek

ID Verified
NBN Co

#40505 30-Aug-2009 12:39
Send private message

I am having trouble setting up links in forum threads, and blog posts for that matter. When I highlight text and clink on the "link" icon, the link window comes up but it is blank and I cannot put any info into it.

I can paste in a URL as a link, but I can't edit it.

Is it just me (my browser), or are other members sufferring?




 

 

Now based in Perth WA.



Create new topic
freitasm
BDFL - Memuneh
80646 posts

Uber Geek
+1 received by user: 41025

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #251726 30-Aug-2009 13:15
Send private message

It sounds like a browser or a network problem. Clear the browser cache and try again. Also make sure your browser is not filtering popup scripts - ad blockers are a pain when it comes to usability.







Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 




Wob

Wob

310 posts

Ultimate Geek

ID Verified
NBN Co

  #251945 31-Aug-2009 12:43
Send private message

Working fine now. Thanks Mauricio Smile




 

 

Now based in Perth WA.



Ragnor
8279 posts

Uber Geek
+1 received by user: 585

Trusted

  #251949 31-Aug-2009 12:58
Send private message

If the forums parsed the post text with a regex and added the missing tags you wouldn't have to bother with "creating" links manually, it would be extremely useful for the quick reply feature which obviously lacks the full compose reply toolbar.

Here's a good example of a function that does it:

Classic ASP Regular Expression Auto Link Function
http://asp.web.id/classic-asp-regular-expression-autolink-function.html



freitasm
BDFL - Memuneh
80646 posts

Uber Geek
+1 received by user: 41025

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #251952 31-Aug-2009 13:02
Send private message

This only adds to complexity. What to do with old posts? Apply the regex? What about the ones with the proper tags? BBcode is better because we can just leave it as it is - easy to edit, update, etc.





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


Wob

Wob

310 posts

Ultimate Geek

ID Verified
NBN Co

  #251953 31-Aug-2009 13:09
Send private message

Thanks for the tip Ragnor, but I would rather do it manually, as I can set the link to open in a new window (which is what I prefer).




 

 

Now based in Perth WA.



Ragnor
8279 posts

Uber Geek
+1 received by user: 585

Trusted

  #251955 31-Aug-2009 13:15
Send private message

Hmm...

1: That particular regex is designed to only match and replace url text that does not already start with an a tag I think, if not it can be changed to do that.

2: You would only run this function on submission of a new post or edit of a existing post on the server side. It's basically adding one function to your code and one or two lines to call it on new post or edit post, not very complex!

3: Old posts would remain unchanged, if you wanted you could also run a once off sql script that does a similar process to existing posts (wouldn't be that hard).  That could be run offline after hours whenever, you might not even bother for old posts.

Regular expression matching is very fast and powerful.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.