Closed (fixed)
Project:
Web Links
Version:
5.x-2.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2009 at 14:00 UTC
Updated:
11 Jul 2009 at 17:52 UTC
can you add a hide link choice in the link settings? I guess just use the Link ID hit the database for a redirect? Or can you tell me where i need to put this code to add this feature myself?
Comments
Comment #1
nancydruThere is a "Display URL" setting there already. Does it not do what you want?
Comment #2
dsellers154 commentedFirst off I want to say that this is a great module. It is much more flexible and easier to manage than some of the other module mixes I have or am currently using.
I think my request may be tied into the click tracking request that I also see in the Issues as they are both redirect of sorts requests. I do not need to count the clicks, but do need to mask the destination URL completely. So my suggestion was add a redirect to the module, add a mask URL option to the GUI, then use the linkID as the destination holder. When the viewer clicks the link, the script hits the DB to get the destination URL by the LinkID and executes the redirect. This may not be the best way, but I like to offer solution suggestions instead of just asking for mods. It did make sense to me while i was pacing around my office trying to figure out a solution
The above solution could eventually be routed through the click count code that some others were requesting.
As a separate note: It seems that some of the link preferences may conflict with the view prefs?
I REALLY hope this makes sense.
THanks for the quick response
Comment #3
nancydruThat is probably the way the click tracking will work, but only the basic framework is there now. Every time I try to work on this I send myself into blonde mode. Robert has this near the top of his list.
Comment #4
rmiddle commentedThe way I was plaining on doing click counting was to assign a Javascript handler to the link. So even though it would show it as a url when clicked it would count. We you want is something like a link something like this. http://example.com/weblinks/goto/121 and when you go there it redirects to example.org. I believe that code is already in the system and not documented.
Thanks
Robert
Comment #5
dsellers154 commentedis there a specific way to enable it? I am an idea guy, not so good with the nuts and bolts.
Comment #6
rmiddle commentedIn theory it would just be a mater of changing a template file to instead of using the URL to use weblinks/goto/*nid but I just tested it and since it wasn't being used or tested it has broken over the last few months. I will look into this some over the weekend and hopefully will have something you can use.
Thanks
Robert
Comment #7
nancydruI originally envisioned a setting for this - I think it was "Links lead to URL or Web Link node" would be "URL," "node," or "redirect."
Comment #8
nancydruHmm, I was just looking at the code in 6.x-2.x and am wondering if we need that setting any more...
Comment #9
dsellers154 commentedso is there a line i can uncomment to enable the goto redirect functionality?
Comment #10
nancydruIt's a bit more complicated than that. These changes to 6.x will give you an idea.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/weblinks/we...
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/weblinks/we...
Comment #11
dsellers154 commentedDo you ever get really excited about new patches, revisions and updates and try to share it with your friends or family? and they look at you like you are speaking a foreign language or are maybe from mars or something? I think its funny that if I showed your reply to anyone I know, they would have no idea what it is, yet I can, and im sure anybody else reading this chain can pretty much read down the lines like reading a book.
So, I am currently running 5.x, and am not sure when I will upgrade because some of the modules i use have not been ported yet. I have not had this problem yet. Will you back port it to 5.x as well? or will i need to fully upgrade to 6.x before I can use...
DS
Comment #12
nancydruSee #439920: Undefined function weblinks_goto and time function error.
Comment #13
nancydruNo, this will not be back-ported, sorry.