Needs review
Project:
Short URL
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jan 2011 at 20:46 UTC
Updated:
20 Nov 2016 at 18:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
irakli commentedAs soon as I can get to it, unless somebody can kindly provide a patch.
Most of the module code is not Drupal-dependent at all, so patch should be very easy to write. Unfortunately I can't get to it right now.
Comment #2
sw3b commentedOk thanks !
Comment #3
andypostSubscribe
Comment #4
mrsinguyen commentedSubscribe
Comment #5
chrisyates commentedHere's a patch. Also fixed some other formatting issues (which I probably should have done separately).
-chris
Comment #6
anselm.marie commentedSubscribe
Comment #7
willmoy commentedSub + tag
Comment #8
dwhutton commentedsubscribe
Comment #9
alienseer23 commentedlooking forward to this
Comment #10
agerson commentedsubscribe
Comment #11
toxiclung commentedsubscribe
Comment #12
jeffwidman commentedsubscribe
Comment #13
Panic commentedHow do you apply a patch and have it recognized as a drupal 7 module?
I replaced the shorturl.engine.inc with that patch and it still says that it's drupal 6 only
Comment #14
michaelfavia commented@panic: youneed to patch the info and other related files as well. the info file determines the modules ability to operate on a given drupal version and the other changes make it actually work.
Comment #15
Panic commentedOhhhh, I don't know how to do that lol
I guess I wait until a 7 version is out, since some people have it working it should be soon
Thank you for telling me what I was missing
Comment #16
aleksandar.jakovljevic commentedsubscribe
Comment #17
badjava commentedsubscribe
Comment #18
retolist commentedSubscribe
Comment #19
bsherwood commentedThe redirect module at http://drupal.org/project/redirect says it plans on replacing most redirection type modules (ShortURL, Shurly, Path Redirect, etc...). Wouldn't it make more sense to combine your efforts so Drupal doesn't have 10 different types of redirection modules for Drupal 7 that do practically the same thing?
Comment #20
Taxoman commentedSubscribing
Comment #21
pumpkinkid commentedsubscribing
Comment #22
CarbonPig commentedsubscribe
Comment #23
andypostThis module could work as Short URL provider so Redirect module could be just intergrated but it's functionality is different
Comment #24
StevenSokulski commentedSubscribe
Comment #25
summit commentedHi, Would love to have a Drupal 7 version of this module please?
Anyone did the patch already and is able to winzip the D7 module please?
Thanks a lot in advance for your reply!
Greetings,
Martijn
Comment #26
summit commentedHi,
This also needed to change: for function shorturl_admin_settings_form and for function shorturl_admin_settings_form_validate
to
I winzip the module for D7 with patch and above change.
Could anyone check if this is all correct please?
Greetings,
Martijn
Comment #27
prashantgoel commentedhas anyone reveiwed the patch submitted by Chrisyates and Martijn I think think you must submit the patch file after porting
Comment #28
david.gil commentedHi Summit,
i have been testing your zip module and it has a bug when you check if the url already has been shorten. the correct db query is (line 201 of shorturl.module)
//Do we already have this URL?
$existing_id = db_select('shorturl_link')
->fields('shorturl_link', array('lid'))
->condition('orig_url', $long_url)
->execute()
->fetchField();
Comment #29
summit commentedHi David, Thanks for your improvement.
May be you also know the following.
1) Trying out the module I got a short url, but it redirects only to a url without variables.
a url like www.example.com/test/?code=12 is redirected to www.example.com/test and not to www.example.com/test/?code=12
EDIT: May be code like this somehow helps with $_Get to get the variable...: http://drupal.org/node/1316536#comment-5143202. But I am not a programmer..
2) Also using this line of code in a custom formatter:
I got a short url "lql" but for all different url's I got the same shorturl "lql"
Can you help please?
Thanks a lot in advance!
Greetings, Martijn
Comment #30
summit commentedHi for 1) I think the problem is somehow in this function:
Somehow the stuff with ?code=12 is not used in the redirect..
greetings, Martijn
Comment #31
cmsdave commentedsubscribing
Comment #32
summit commentedI found the cullpit: issue: http://drupal.org/node/1309658
It is an error in the link module the query string is in the .dev version removed. In that issue there is a patch for it.
Greetings, Martijn
Comment #33
CarbonPig commentedsub
Comment #34
sarhugo commentedsub
Comment #35
deanflory commentedsubscribing!
Comment #36
Taxoman commentedhi, guys, instead of "subscribing" old-style, please use the "Follow" function at the top-right here, so that the rest of us dont have to check in here in vain because of "false activity alerts"...
Comment #37
socialnicheguru commentedIn the short url module there is the following page but it doesn't show up on my site.
shorturl.info:configure = admin/config/search/shorturl/configure
I am just wondering if this is an error?
Comment #38
berdirAdding an updated version of the patch. Simplified the changes a bit, removed the url validity check, that breaks relative url's.
Comment #39
socialnicheguru commentedthis is a little strange
patch - fails for .info file
git doesn't apply
git apply shorturl-7.x.patch
shorturl-7.x.patch:81: trailing whitespace.
shorturl-7.x.patch:102: trailing whitespace.
'q', 'l', 'i', '3', 'O', 'c', 'x', 'a', 'C', '1', 'r', 'Y',
shorturl-7.x.patch:103: trailing whitespace.
'g', '4', '2', 'T', 'b', 'j', 'D', 'W', 'Z', 'B', 'K', 'k',
shorturl-7.x.patch:104: trailing whitespace.
'0', '8', '9', 'X', 'I', '5', 'N', 'R', 'n', 'Q', 'U', 'P',
shorturl-7.x.patch:105: trailing whitespace.
'E', 'm', 'y', 'V', 'p', 'd', 'v', 'w', 'f', 'G', '7', 'A',
warning: shorturl.info has type 100644, expected 100755
error: patch failed: shorturl.info:1
error: shorturl.info: patch does not apply
Comment #40
berdirthe patch is against the git checkout.
Comment #41
aaronbaumanI get similar errors as in #39 and the patch fails against both master and 6.x-1.x git branches.
Here's an updated version of the patch in #38 against the latest 6.x-1.x branch, without only the critical 7.x updates applied (no whitespace changes).
Comment #42
aaronbaumanderp
Comment #43
BeaPower commentedany updates?
Comment #44
BeaPower commented?
Comment #45
socialnicheguru commentedI get this error:
Warning: Parameter 1 to shorturl_admin_settings_form() expected to be a reference, value given in drupal_retrieve_form() (line 798 of /includes/form.inc).
Comment #46
pedrospD7 users, to use your own domain URL, you better move to https://www.drupal.org/project/shurly
Comment #47
summit commentedHi,
Any news on porting to D7 please?
While D6 is now obsolute because of D* introducing I really need this D7 port now.
I use the function function shorturl_shorten ($long_url, $full_url = FALSE) in Custom formatter, so can't just go to other module.
Thanks for making the port in advance!
Greetings, Martijn
Comment #48
a8w4Hi guys, as I needed a fast solution in order to keep the short URLs of a Drupal 6 site intact, I decided to migrate to the ShURLy module under Drupal 7. For the migration to that I created this Migrate-Module, which you can find here:
https://github.com/a8w4/drupal_shorturl_migration
Hope this helps some folks still, cheers,
Alexander