Log of /contributions/modules/links/links.inc
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.20.2.9 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jan 21 04:48:17 2009 UTC
(10 months, 1 week ago)
by
syscrusher
Branch:
DRUPAL-5
CVS Tags:
DRUPAL-5--1-12,
DRUPAL-5--1-12-BETA1
Changes since
1.20.2.8: +50 -3 lines
Diff to
previous 1.20.2.8
, to
branch point 1.20
New feature: Administrative option allows rel="nofollow"
attribute on external links, per issue #144620.
New feature: Administrative option allows direct links
(skipping redirect page, at the cost of no click
counting). Separately controllable for internal and
external links.
New feature: Optional logging of all external redirects,
primarily for diagnostic purposes but also useful if the
site owner wants really detailed click tracking.
Added #maxlength attribute for URL textfields to allow
longer values, per issue #232575.
Revision
1.28.2.5 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jan 21 04:16:33 2009 UTC
(10 months, 1 week ago)
by
syscrusher
Branch:
DRUPAL-6--1
CVS Tags:
DRUPAL-6--1-0,
DRUPAL-6--1-0-BETA14,
DRUPAL-6--1-0-BETA15,
DRUPAL-6--1-1
Branch point for:
DRUPAL-6--2
Changes since
1.28.2.4: +50 -3 lines
Diff to
previous 1.28.2.4
, to
branch point 1.28
New feature: Administrative option allows rel="nofollow"
attribute on external links, per issue #144620.
New feature: Administrative option allows direct links
(skipping redirect page, at the cost of no click
counting). Separately controllable for internal and
external links.
New feature: Optional logging of all external redirects,
primarily for diagnostic purposes but also useful if the
site owner wants really detailed click tracking.
Added #maxlength attribute for URL textfields to allow
longer values, per issue #232575.
Revision
1.28.2.3 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 13 03:30:57 2009 UTC
(10 months, 2 weeks ago)
by
syscrusher
Branch:
DRUPAL-6--1
CVS Tags:
DRUPAL-6--1-0-BETA12
Changes since
1.28.2.2: +2 -2 lines
Diff to
previous 1.28.2.2
, to
branch point 1.28
Removed obsolete call to _system_update_utf8() in
links.install to fix issue #356994.
Changed incorrect db_last_insert_id() call to instead
use db_next_id().
Applied patch from issue #357437 to fix failure of
outbound link.
Applied patch to fix filter tips bug reported in #357335.
Revision
1.20.2.7 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Dec 31 00:46:04 2008 UTC
(10 months, 4 weeks ago)
by
syscrusher
Branch:
DRUPAL-5
Changes since
1.20.2.6: +299 -22 lines
Diff to
previous 1.20.2.6
, to
branch point 1.20
Development snapshot of the Drupal 5 version. This snapshot has a backport
of the new links.inc from the Drupal 6 version. The change to links_weblink
is just a small HTML correction.
Revision
1.28.2.1 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 30 23:11:18 2008 UTC
(10 months, 4 weeks ago)
by
syscrusher
Branch:
DRUPAL-6--1
CVS Tags:
DRUPAL-6--1-0-BETA7
Changes since
1.28: +1 -2 lines
Diff to
previous 1.28
TRANSLATORS: Updated template to unify in po/links.pot.
Fixed issue #341487 in links_weblink.
Fixed issue #132209 in links_weblink, although the patch
attached to that issue was not actually the fix for the
problem in the D6 version of the module.
Fixed issue #147226 (translation of "Visit") in links.inc.
Implemented the direct-weblink feature requested in #147893.
Revision
1.27 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 26 03:53:36 2008 UTC
(11 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.26: +17 -3 lines
Diff to
previous 1.26
Further work on links_admin.module, with some supporting changes to other
modules as needed.
Developers please note the change to one of the new hook functions in the
API, which has reversed the order of values in its return array. The
API.html file has details. Another change was made to the links API, but
the second change is backward-compatible.
Revision
1.26 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 23 03:07:29 2008 UTC
(11 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.25: +89 -4 lines
Diff to
previous 1.25
Another interim commit. Much of links_admin is
now functional. The sub-page to list referring
nodes is not done yet.
Added documentation for the new hooks in API.html.
Developers, pay heed!
Updated links_related and links_weblink to
implement the new hooks as appropriate.
Revision
1.25 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Dec 22 04:05:12 2008 UTC
(11 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.24: +84 -4 lines
Diff to
previous 1.24
Further updates to links_admin, with some new APIs and a new hook in
links.inc. Still PRE-ALPHA version, but some of the form submit functions
now work as advertised.
Revision
1.22 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 1 00:10:41 2008 UTC
(22 months, 4 weeks ago)
by
syscrusher
Branch:
MAIN
Changes since
1.21: +5 -10 lines
Diff to
previous 1.21
Initial port of links.inc and links.module (but not the other modules) to
Drupal 6. This is ALPHA LEVEL CODE, not for production use.
Revision
1.20.2.4 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Apr 27 22:12:07 2007 UTC
(2 years, 7 months ago)
by
syscrusher
Branch:
DRUPAL-5
CVS Tags:
DRUPAL-5--1-7
Changes since
1.20.2.3: +26 -13 lines
Diff to
previous 1.20.2.3
, to
branch point 1.20
API CHANGE: The function links_get_links() will now return NULL if no
links are found, rather than returning an array with two elements
that are themselves empty. This simplifies testing for values on
return, but may cause errors for code that relied upon the function
always returning an array before. This change is pursuant to #139067.
API CHANGE: The function links_get_list() now accepts an additional
parameter $statistics, which defaults to FALSE. This parameter
determines whether the click count is returned as part of the
link title, if other conditions (such as user permissions) would
permit it so. Existing code that wants the click count enabled
will need to add this parameter as TRUE.
Revision
1.20 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Sep 11 01:46:21 2006 UTC
(3 years, 2 months ago)
by
syscrusher
Branch:
MAIN
CVS Tags:
DRUPAL-5--1-2,
DRUPAL-5--1-3,
DRUPAL-5--1-4
Branch point for:
DRUPAL-5
Changes since
1.19: +16 -24 lines
Diff to
previous 1.19
Committing patch #82088 from Eaton, updating to Drupal 5.0 prerelease. This
is a significant fork from the 4.7 version. As Eaton points out, it is not
fully baked for 5.0 yet, but the basic core functions are working.
If testing 5.0 prerelease, you'll need to apply this update before trying
to run Drupal 5.0, because the 4.7 version of Links calls some deprecated
functions from Drupal core.
Revision
1.18 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Apr 18 03:20:05 2006 UTC
(3 years, 7 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.17: +86 -1 lines
Diff to
previous 1.17
Added some links statistics functions as suggested in issue #54503. This
functionality is experimental and will be added to over time. Test reports
welcome.
Revision
1.13 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 24 05:15:28 2006 UTC
(3 years, 8 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.12: +259 -62 lines
Diff to
previous 1.12
API change: New function links_parse_url() added. This
function takes just about anything that works as a URL,
parses it out, and returns the parsed components as well
as a normalized version. The normalized version is
synthesized by concatenating the appropriate components
depending on the URL type, rather than just by using
regular expressions on the entire URL. This yields a more
thorough validation and normalization process.
API change: The function links_normalize_url() now calls
the new links_parse_url() function to do the heavy lifting.
NOTE: Because of the above, it is necessary to recalc all
of the MD5s in the {links} table. This can easily be done
by using "update.php" (from core Drupal) to apply UPDATE 2
to the Links package. Most of your URLs will not change,
but a few may be better normalized. In my testing, a
database with 500 real URLs had only two changes, both
of which were manually inspected and found to be legitimate
normalizations.
Changed links.install to fix length of {links_node}.module
to correct issue #55372. This had already been fixed in
links.mysql, but the change didn't propagate into the new
install file.
Removed trailing PHP delimiters from files per coding
standards (http://drupal.org/node/545), thereby fixing
issues #55577 and #45940.
Removed icky DOS carriage returns from lines in links.inc,
per issue #45940.
Revision
1.12 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 17 05:16:05 2006 UTC
(3 years, 8 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.11: +13 -3 lines
Diff to
previous 1.11
API change: The function links_goto_bynode now allows a zero
node ID, as long as the link ID is nonzero. This will perform
a redirect as usual, though it will not be able to tally the
click from any specific node.
Significant improvements to the weblink filter, fixing the
bug reported by RayZ in issue #53572 and improving its
handling of links.
Revision
1.11 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jan 23 04:52:23 2006 UTC
(3 years, 10 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.10: +4 -4 lines
Diff to
previous 1.10
Updated documentation, added display rendering of two of the link management
forms (they don't yet function on submit, but the data displays in the forms).
Eliminated some dead code from links.module.
Revision
1.10 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 21 22:47:51 2006 UTC
(3 years, 10 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.9: +27 -13 lines
Diff to
previous 1.9
New links-hunting functionality, improved handling and tallying of outbound
link clicks, small bug fixes.
Revision
1.9 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 21 19:21:28 2006 UTC
(3 years, 10 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.8: +7 -6 lines
Diff to
previous 1.8
Multiple bug fixes, new link-hunting functionality for node body, rename
module collection from "links bundle" to "links package".
Revision
1.8 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 21 05:01:32 2006 UTC
(3 years, 10 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.7: +2 -2 lines
Diff to
previous 1.7
Multiple changes; see the CHANGELOG.txt file for details. There are
still some important bug fixes needed; this is an interim commit.
Of particular import is issue #44647, which is *not* fixed in this
commit but is next on my TODO list.
Revision
1.7 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Dec 12 17:34:25 2005 UTC
(3 years, 11 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.6: +153 -11 lines
Diff to
previous 1.6
Numerous changes to multiple files. See CHANGELOG.txt for details.
INTERIM COMMIT -- Many more things are working, but it's not soup yet.
The node editing page for links_related still has some problems, and block
functions for links_weblink are not functional yet. Other than that,
links_weblink and links_related are "mostly functional" at this point.
I would call this a late-alpha, still not quite a beta.
On the positive side, I believe the API (links.inc) is at a "beta" level
and should remain fairly stable from now until release. It is not formally
frozen, however.
Revision
1.6 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Dec 10 22:24:27 2005 UTC
(3 years, 11 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.5: +90 -8 lines
Diff to
previous 1.5
Minor bug fixes in links.inc, relating to the $module context limiter on
load and save operations. Additional developer docs in API.txt.
NOTE: The links bundle should be considered "frozen" for revisions at the
moment, because I am in the midst of a major code update to all of the
.module files in the package right now.
Revision
1.5 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 9 04:46:45 2005 UTC
(3 years, 11 months ago)
by
syscrusher
Branch:
MAIN
Changes since
1.4: +13 -18 lines
Diff to
previous 1.4
Code formatting cleanup, fixed missing constants in settings #options
parameters (the specific constants are important, and defaults were being
assumed), and added the beginnings of some API documentation.
Revision
1.1 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jun 10 04:29:09 2005 UTC
(4 years, 5 months ago)
by
syscrusher
Branch:
MAIN
This is the initial public (non-sandbox) commit of the code for the new
"links" bundle. It is a multi-module set that offers the following features:
1. An API for managing URLs in a generic way, and for associating these
links in a many-to-many relationship with nodes. Each link is
"normalized" internally, to try to merge references to the same URL
in the database. If the same URL is used multiple times, it appears
only once but with many node references in the {links_node} table.
This helps to make processes such as link monitoring and dead link
detection more efficient. The API also allows each link-node
association to (optionally) provide an unique node-local title that
overrides the global title for that particular URL, but only when
that node is being displayed. In other words, the same URL can appear
to have multiple different titles.
2. A main links.module that governs the behavior of the bundle's global
features, and which implements common functionality such as outlink
tabulation of clicks. Click tabulation is by node and link, so that it
is possible to find out not only how many times an outbound link has
been followed, but also how many times it has been followed from each
node that refers to it.
3. A links_related.module which allows the administrator to add a link
field to any desired node types in the system. Currently, the node type
setting is just a boolean flag, and if on, the node can have zero to
infinity links. In the next version, however, this will become an
integer where 0 means no links for the given node type, +N means "up to
N links" for each node of that type, and -N means "exactly N links
required (non-empty URL).
4. A links_weblink.module which defines a node type of 'weblink', which
behaves very much like the node type of the same name by Ber Kessels,
and which in fact is based on his module's code base but uses the
new links API.
The SQL schema for monitoring is in this release, but the monitoring
module itself is not yet finished.
This code is EXPERIMENTAL and is under extremely active development. A
project will be created for issue reporting along with this new CVS
release.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.