| 1 |
$Id: CHANGELOG.txt,v 1.58 2008/12/28 00:56:51 syscrusher Exp $
|
| 2 |
|
| 3 |
LOG OF CHANGES
|
| 4 |
|
| 5 |
Most recent changes are at the top of the list.
|
| 6 |
|
| 7 |
2008-12-29 Syscrusher
|
| 8 |
|
| 9 |
links_admin.module is now fully functional and ready
|
| 10 |
for a beta release.
|
| 11 |
|
| 12 |
Added feature to allow deleting node references from
|
| 13 |
a given link on the sub-screen.
|
| 14 |
|
| 15 |
Added filter capabilities to the main links management
|
| 16 |
screen.
|
| 17 |
|
| 18 |
Added links_admin.css stylesheet to format the filter
|
| 19 |
criteria form.
|
| 20 |
|
| 21 |
General cleanup of code and moving functions into more
|
| 22 |
appropriate locations within the file.
|
| 23 |
|
| 24 |
2008-12-27 Syscrusher
|
| 25 |
|
| 26 |
Fully functional links_admin.module. Some new
|
| 27 |
APIs in links.inc. Removed an extraneous diagnostic
|
| 28 |
message from links_weblink.module.
|
| 29 |
|
| 30 |
This is the initial beta release of links_admin.
|
| 31 |
|
| 32 |
2008-12-25 Syscrusher
|
| 33 |
|
| 34 |
Further development work on the links_admin
|
| 35 |
module, with some enhancements to the links API
|
| 36 |
itself. The API changes are backward-compatible,
|
| 37 |
as the newly-added parameters are optional.
|
| 38 |
|
| 39 |
2008-12-22 Syscrusher
|
| 40 |
|
| 41 |
Another interim commit. Much of links_admin is
|
| 42 |
now functional. The sub-page to list referring
|
| 43 |
nodes is not done yet.
|
| 44 |
|
| 45 |
Added documentation for the new hooks in API.html.
|
| 46 |
Developers, pay heed!
|
| 47 |
|
| 48 |
Updated links_related and links_weblink to
|
| 49 |
implement the new hooks as appropriate.
|
| 50 |
|
| 51 |
2008-12-21 Syscrusher
|
| 52 |
|
| 53 |
Early version of links_admin.module with some
|
| 54 |
functionality. Forms display but do NOT actually
|
| 55 |
update anything yet. PRE-ALPHA code!
|
| 56 |
|
| 57 |
2008-12-11 Syscrusher
|
| 58 |
|
| 59 |
Added a new feature whereby the administrator can cause
|
| 60 |
the related links fieldset to always be expanded, even
|
| 61 |
if there are currently no links. The default behavior
|
| 62 |
remains unchanged; this is a new option.
|
| 63 |
|
| 64 |
2008-11-12 Syscrusher
|
| 65 |
|
| 66 |
links_weblink is now fully functional and ready for
|
| 67 |
beta testing. Note the addition of a stylesheet to
|
| 68 |
the repository for this release.
|
| 69 |
|
| 70 |
2008-10-31 Syscrusher
|
| 71 |
|
| 72 |
Another interim commit. The form is now invoking the
|
| 73 |
various themes, but not everything is working right yet.
|
| 74 |
Still a development release.
|
| 75 |
|
| 76 |
2008-10-31 Syscrusher
|
| 77 |
|
| 78 |
Interim commit. links_weblink is now functional, although
|
| 79 |
a long way from cosmetically correct. On the plus side,
|
| 80 |
error handling for missing vocabulary and/or categories
|
| 81 |
for the weblinks is much more graceful than in previous
|
| 82 |
versions.
|
| 83 |
|
| 84 |
2008-07-16 Syscrusher
|
| 85 |
|
| 86 |
Fixed bugs in links.inc that were preventing links from
|
| 87 |
saving. There were no API changes in this update, just
|
| 88 |
bug fixes, and these were D6-specific and do not need to
|
| 89 |
be back-ported.
|
| 90 |
|
| 91 |
Minor updates to links_related.module to fix some small
|
| 92 |
bugs with the node edit form.
|
| 93 |
|
| 94 |
Initial commit of links_weblink.module. This is an "alpha"
|
| 95 |
commit, not fully functional yet. At this time, weblink
|
| 96 |
nodes can be created and edited, and the admin page works,
|
| 97 |
but the weblinks directory does not yet display.
|
| 98 |
|
| 99 |
2008-07-14 Syscrusher
|
| 100 |
|
| 101 |
Fixed the cosmetic problem in the related links edit form.
|
| 102 |
|
| 103 |
2008-07-06 Syscrusher
|
| 104 |
|
| 105 |
Further progress on the Drupal 6 port. Still ALPHA level
|
| 106 |
code, not for production use, but we are a lot closer.
|
| 107 |
links.module and links_related.module are mostly functional
|
| 108 |
except for a cosmetic problem with the related links editing
|
| 109 |
form in nodes.
|
| 110 |
|
| 111 |
2007-12-31 Syscrusher
|
| 112 |
|
| 113 |
Initial port of links.inc and links.module to Drupal 6.
|
| 114 |
WARNING: Alpha-level code -- not for production!
|
| 115 |
The links_related and links_weblink modules are not ported yet.
|
| 116 |
|
| 117 |
2007-12-11 Syscrusher Version 5--1-8
|
| 118 |
|
| 119 |
A host of minor bug fixes and small features. Life is finally
|
| 120 |
starting to settle down after an extremely busy few months, and
|
| 121 |
I hope to get more improvements out in the next several weeks.
|
| 122 |
|
| 123 |
Today's patches include:
|
| 124 |
|
| 125 |
Accepted patch from #114151, from jvandervort, to fix the order
|
| 126 |
of categories in links_weblink. Also took his suggestion for a
|
| 127 |
parallel change to fix the order of the child catefories. Thanks.
|
| 128 |
|
| 129 |
Accepted patch from #150970 to fix HTML visible in some of the
|
| 130 |
admin pages, and to update links that have changed in recent
|
| 131 |
Drupal core revisions. Many thanks to lyricnz for this patch.
|
| 132 |
This should also fix #150906.
|
| 133 |
|
| 134 |
Added bracketing of links_lid string in links.inc to fix #188655,
|
| 135 |
where link ID sequence did not respect table prefix. Thanks to
|
| 136 |
jonathan_hunt for finding the bug and suggesting the fix.
|
| 137 |
|
| 138 |
Fixed #147226, lack of t() call for "Visit" in links.inc, as
|
| 139 |
reported by jvlagsma.
|
| 140 |
|
| 141 |
Fixed deprecated PHP syntax in links_related, per #195430. Thanks
|
| 142 |
to vacilando for reporting the problem.
|
| 143 |
|
| 144 |
Made body field optional, per #131637, as suggested by teleted,
|
| 145 |
elondaits, and dman.
|
| 146 |
|
| 147 |
2007-05-03 Syscrusher Version 5--1-7
|
| 148 |
|
| 149 |
Added "edit own weblinks" permission per issue #76527. Thanks to
|
| 150 |
yched for contributing the patch.
|
| 151 |
|
| 152 |
2007-04-27 Syscrusher
|
| 153 |
|
| 154 |
Added translation templates ("po" directory) and the Spanish
|
| 155 |
translation contributed by elondaits, per issue #133306.
|
| 156 |
|
| 157 |
API CHANGE: The function links_get_links() will now return NULL if no
|
| 158 |
links are found, rather than returning an array with two elements
|
| 159 |
that are themselves empty. This simplifies testing for values on
|
| 160 |
return, but may cause errors for code that relied upon the function
|
| 161 |
always returning an array before. This change is pursuant to #139067.
|
| 162 |
|
| 163 |
API CHANGE: The function links_get_list() now accepts an additional
|
| 164 |
parameter $statistics, which defaults to FALSE. This parameter
|
| 165 |
determines whether the click count is returned as part of the
|
| 166 |
link title, if other conditions (such as user permissions) would
|
| 167 |
permit it so. Existing code that wants the click count enabled
|
| 168 |
will need to add this parameter as TRUE.
|
| 169 |
|
| 170 |
Fixed incorrect use of #value (should be #default_value) for
|
| 171 |
URL form declaration in links_weblink.module, per issue #128620.
|
| 172 |
|
| 173 |
2007-04-26 Syscrusher Version 5--1-6
|
| 174 |
|
| 175 |
Fixed critical error #139529 in links.inc.
|
| 176 |
|
| 177 |
2007-04-25 Syscrusher Version 5--1-5
|
| 178 |
|
| 179 |
Applied patch to resolve #117108, an empty "target" attribute
|
| 180 |
on links_weblink link tags, if the target is not specified.
|
| 181 |
Thanks to RayZ for the patch.
|
| 182 |
|
| 183 |
Applied patch to resolve #130890, an SQL error with MySQL 5.x
|
| 184 |
at installation time. Thanks to Denny for the patch.
|
| 185 |
|
| 186 |
Added package and dependencies information to .info files.
|
| 187 |
|
| 188 |
Committed partial fix for #132209, based on a patch from
|
| 189 |
douggreen but with some additional bug fixes. This resolves
|
| 190 |
the issue for the Related Links listing, but not yet for
|
| 191 |
the Links from Article Text listing. That fix is on hold
|
| 192 |
until after another patch is applied, because fixing that
|
| 193 |
now would break the next patch.
|
| 194 |
|
| 195 |
Committed large patch for #139130, by dman. This patch
|
| 196 |
fixes many problems with Blocks, improves form handling,
|
| 197 |
adds the 'edit related links' page, and iproves rendering
|
| 198 |
of the related links table.
|
| 199 |
|
| 200 |
The #139130 patch also adds three functions to the 'edit
|
| 201 |
links' page under the 'links' tab of nodes:
|
| 202 |
* Create a links_weblink node page for the related link
|
| 203 |
(this will make a new node in addition to the one being
|
| 204 |
edited).
|
| 205 |
* Attach the embedded link to the current node as a related
|
| 206 |
link.
|
| 207 |
* If links_admin is enabled, go to the editing page for
|
| 208 |
the embedded link or add it to the links catalog.
|
| 209 |
|
| 210 |
Note that the links_admin module is still not fully implemented;
|
| 211 |
the third feature above detects whether links_admin.module is
|
| 212 |
enabled, and right now it should NOT be because it isn't working
|
| 213 |
yet.
|
| 214 |
|
| 215 |
Committed patch #133247, by elondaits, which makes display of
|
| 216 |
weblinks in the "next category down" optional.
|
| 217 |
|
| 218 |
2007-03-17 Syscrusher
|
| 219 |
|
| 220 |
Accepted (with enhancements and some debugging) the code from
|
| 221 |
#119050, to allow more than one blank line in links_related.
|
| 222 |
Also fixed a minor typo per #128286 (partial fix on that issue).
|
| 223 |
This is an interim commit; more to come.
|
| 224 |
|
| 225 |
2007-01-28 Syscrusher Version 5--1-4
|
| 226 |
|
| 227 |
Fixed issue #76803, errors in link display for links_weblink.
|
| 228 |
|
| 229 |
2007-01-27 Syscrusher Version 5--1-3
|
| 230 |
|
| 231 |
Resolved issue #99156 and #109847 (duplicates), for call to
|
| 232 |
deprecated form_render() function in links_weblink.module.
|
| 233 |
|
| 234 |
Resolved issue #110317, faulty SQL query in update-weblinks.php.
|
| 235 |
|
| 236 |
Resolved issue #111251, with embedded link detection failing.
|
| 237 |
|
| 238 |
Rearranged menus to be more compliant with Drupal 5.0 menu
|
| 239 |
organization.
|
| 240 |
|
| 241 |
Put a stub message into the "links admin" page since that
|
| 242 |
module doesn't work yet. Developers will need to comment out
|
| 243 |
the stub return to see the under-development form.
|
| 244 |
|
| 245 |
2006-09-14 Syscrusher
|
| 246 |
|
| 247 |
Added .info files for each of the four modules in the package.
|
| 248 |
|
| 249 |
2006-09-10 Syscrusher
|
| 250 |
|
| 251 |
Updated links.module to make admin menu entries work. Still
|
| 252 |
some cosmetic issues with the main admin screen, and the
|
| 253 |
link content admin doesn't work at all yet, but it's another
|
| 254 |
step toward Drupal 5 compatibility.
|
| 255 |
|
| 256 |
2006-09-10 Syscrusher
|
| 257 |
|
| 258 |
Patch from Eaton, per issue #82088, to update Links core
|
| 259 |
functionality to Drupal 5.0 (prerelease). This represents a
|
| 260 |
significant fork from the 4.7 release. As Eaton points out, this
|
| 261 |
is not finished yet, and needs updates especially to the admin
|
| 262 |
screens, but it is a significant step forward. Thanks, Eaton!
|
| 263 |
|
| 264 |
2006-08-01 Syscrusher
|
| 265 |
|
| 266 |
Based on suggestions from others on development list, moved all
|
| 267 |
link administration functions to links_admin.module instead of
|
| 268 |
including them with links.module.
|
| 269 |
|
| 270 |
Fixed a bug with the outbound link from the links_admin module.
|
| 271 |
|
| 272 |
Branching all code *except* links_admin.module for DRUPAL-4-7.
|
| 273 |
We have a release!
|
| 274 |
|
| 275 |
2006-07-24 Syscrusher (contributions by RayZ)
|
| 276 |
|
| 277 |
Committed prompt text patch from RayZ per issue #73879.
|
| 278 |
|
| 279 |
Fixed internal links bug with patch from RayZ per issue #72459.
|
| 280 |
|
| 281 |
2006-06-21 Syscrusher (contributions by Eaton, moggy, and douggreen)
|
| 282 |
|
| 283 |
Additional bug correction and feature additions per issue #52639.
|
| 284 |
This incorporates all changes contributed by Eaton and posted to
|
| 285 |
that issue as of today.
|
| 286 |
|
| 287 |
Corrected problem with "weblinks" menu item, using patch supplied
|
| 288 |
by moggy pursuant to issue #53942.
|
| 289 |
|
| 290 |
Fixed top level link per patch from douggreen, issue #67796, with
|
| 291 |
modifications of my own added.
|
| 292 |
|
| 293 |
2006-04-17 Syscrusher (contributions by Eaton and RayZ)
|
| 294 |
|
| 295 |
Pursuant to issue #52639, initially committed links_views.inc.
|
| 296 |
This code is still experimental; please read the issue for details.
|
| 297 |
Also please note that this is intentionally *NOT* the latest version
|
| 298 |
of links_views.inc. There is some question as to correct handling of
|
| 299 |
link titles, and the "_0" version may not be committed, based on the
|
| 300 |
outcome of that discussion.
|
| 301 |
|
| 302 |
2006-04-17 Syscrusher
|
| 303 |
|
| 304 |
The link query functions that accept a URL now also accept the MD5
|
| 305 |
hash of a normalized URL to allow other applications to do a direct
|
| 306 |
query. This feature was requested in issue #55113.
|
| 307 |
|
| 308 |
Added EXPERIMENTAL statistics functions to links.inc, as suggested
|
| 309 |
in feature request issue #54503. This is just a start; more will
|
| 310 |
follow as time permits.
|
| 311 |
|
| 312 |
2006-04-08 Syscrusher
|
| 313 |
|
| 314 |
Fixed weblink filtering per issue #54619, to correct bug
|
| 315 |
where weblink filter could only find weblink-created links.
|
| 316 |
|
| 317 |
Minor documentation and code format fixes.
|
| 318 |
|
| 319 |
2006-04-07 Syscrusher
|
| 320 |
|
| 321 |
Remove leading slashes from URLs in links_l(), to fix
|
| 322 |
issue #57431.
|
| 323 |
|
| 324 |
Separated 'access links statistics' from 'access statistics'
|
| 325 |
permissions, per issue #57424.
|
| 326 |
|
| 327 |
2006-03-23 Syscrusher
|
| 328 |
|
| 329 |
API change: New function links_parse_url() added. This
|
| 330 |
function takes just about anything that works as a URL,
|
| 331 |
parses it out, and returns the parsed components as well
|
| 332 |
as a normalized version. The normalized version is
|
| 333 |
synthesized by concatenating the appropriate components
|
| 334 |
depending on the URL type, rather than just by using
|
| 335 |
regular expressions on the entire URL. This yields a more
|
| 336 |
thorough validation and normalization process.
|
| 337 |
|
| 338 |
API change: The function links_normalize_url() now calls
|
| 339 |
the new links_parse_url() function to do the heavy lifting.
|
| 340 |
|
| 341 |
NOTE: Because of the above, it is necessary to recalc all
|
| 342 |
of the MD5s in the {links} table. This can easily be done
|
| 343 |
by using "update.php" (from core Drupal) to apply UPDATE 2
|
| 344 |
to the Links package. Most of your URLs will not change,
|
| 345 |
but a few may be better normalized. In my testing, a
|
| 346 |
database with 500 real URLs had only two changes, both
|
| 347 |
of which were manually inspected and found to be legitimate
|
| 348 |
normalizations.
|
| 349 |
|
| 350 |
Changed links.install to fix length of {links_node}.module
|
| 351 |
to correct issue #55372. This had already been fixed in
|
| 352 |
links.mysql, but the change didn't propagate into the new
|
| 353 |
install file.
|
| 354 |
|
| 355 |
Removed trailing PHP delimiters from files per coding
|
| 356 |
standards (http://drupal.org/node/545), thereby fixing
|
| 357 |
issues #55577 and #45940.
|
| 358 |
|
| 359 |
Removed icky DOS carriage returns from lines in links.inc,
|
| 360 |
per issue #45940.
|
| 361 |
|
| 362 |
2006-03-17 Syscrusher
|
| 363 |
|
| 364 |
Added PREFIXES.txt file to explain module prefixes and to
|
| 365 |
establish an informal prefix registry.
|
| 366 |
|
| 367 |
Removed a lot of dead code from links_related.module that
|
| 368 |
was left over from its ancestor module before the links API.
|
| 369 |
|
| 370 |
Fixed missing ?> at end of links_related.module (the line
|
| 371 |
was mistakenly deleted by a patch).
|
| 372 |
|
| 373 |
Added some explanatory comments to the links.install file.
|
| 374 |
|
| 375 |
2006-03-14 Syscrusher
|
| 376 |
|
| 377 |
API change: The function links_goto_bynode now allows a zero
|
| 378 |
node ID, as long as the link ID is nonzero. This will perform
|
| 379 |
a redirect as usual, though it will not be able to tally the
|
| 380 |
click from any specific node.
|
| 381 |
|
| 382 |
Significant improvements to the weblink filter, fixing the
|
| 383 |
bug reported by RayZ in issue #53572 and improving its
|
| 384 |
handling of links.
|
| 385 |
|
| 386 |
2006-03-14 Syscrusher
|
| 387 |
|
| 388 |
Added links.install file contributed by drewish, per issue
|
| 389 |
#45940. Test reports welcome.
|
| 390 |
|
| 391 |
2006-02-20 Syscrusher
|
| 392 |
|
| 393 |
Committed patch by Webchick to fix issue #49987, SQL error
|
| 394 |
on weblinks directory when no weblinks are defined.
|
| 395 |
|
| 396 |
2006-02-02 Syscrusher
|
| 397 |
|
| 398 |
Moved node API calls into separate functions, fixing issue
|
| 399 |
#43177 reported by Steve Dondley.
|
| 400 |
|
| 401 |
2006-02-01 Syscrusher
|
| 402 |
|
| 403 |
Added new links directory view in links_weblink.module. Now
|
| 404 |
if you go to q=links/weblink you will see directory of all
|
| 405 |
"weblink" type nodes in the system, organized by taxonomy.
|
| 406 |
Gracefully handles assignment of multiple vocabularies to
|
| 407 |
"weblink" nodes, and gracefully handles taxonomy trees that
|
| 408 |
allow multiple parents. Uses the Drupal breadcrumbs functions
|
| 409 |
to show ancestry, but only one level up due to the multiple-
|
| 410 |
parentage possibility.
|
| 411 |
|
| 412 |
Flexible queries are possible, such as q=links/weblink/15,32
|
| 413 |
which would return all links for TIDs 15 or 32.
|
| 414 |
|
| 415 |
The new code is functional but still cosmetically primitive.
|
| 416 |
Also, the links catalog is controlled by a new security
|
| 417 |
permission, but the rest of the module doesn't respect the
|
| 418 |
new setting yet.
|
| 419 |
|
| 420 |
Added more link management functionality to links.module.
|
| 421 |
This feature is still not complete, however.
|
| 422 |
|
| 423 |
Updated update-weblinks-old.php to work with latest Drupal
|
| 424 |
HEAD version. This has been tested with over 200 nodes.
|
| 425 |
|
| 426 |
Updated update-webstory.php to work with the latest Drupal
|
| 427 |
HEAD version. This has now been tested with over 2600 nodes.
|
| 428 |
|
| 429 |
Initial commit of update-weblinks.php, which is designed to
|
| 430 |
work with Ber Kessels' newer weblinks module (the one written
|
| 431 |
for Drupal 4.6). This particular script is currently UNTESTED
|
| 432 |
because I do not have a site running Ber's version. Test reports
|
| 433 |
welcome, of course.
|
| 434 |
|
| 435 |
Initial commit of UPGRADE.txt, the instructions for using the
|
| 436 |
various update scripts.
|
| 437 |
|
| 438 |
2006-01-22 Syscrusher
|
| 439 |
|
| 440 |
DOCUMENTATION: The file API.txt is gone, replaced by API.html
|
| 441 |
which I believe will be easier to read.
|
| 442 |
|
| 443 |
The admin...links page is now display-functional. It still
|
| 444 |
doesn't actually *do* anything if you submit the form, but
|
| 445 |
it does run the query and let you page through the links.
|
| 446 |
This page also checks specifically for "links_monitor"
|
| 447 |
module and adds a link to Drupal path "admin/links/monitor/$lid"
|
| 448 |
if the module is found. This will provide a convenient hook
|
| 449 |
for the future monitoring module to use.
|
| 450 |
|
| 451 |
The form to display and edit all references to a given link
|
| 452 |
is now also created, though like the primary link admin form
|
| 453 |
it doesn't actually do anything yet if it is submitted.
|
| 454 |
|
| 455 |
There is a new administrator setting for links.module that
|
| 456 |
controls how many links appear on a page in admin screens.
|
| 457 |
|
| 458 |
URLs for sub-editing functions have been changed from the
|
| 459 |
form "admin/links/$lid/$op" to "admin/links/$op/$lid". This
|
| 460 |
will make it easier to hook add-in functions into the main
|
| 461 |
links admin screen. The plan is to implement a hook function
|
| 462 |
to allow any module to add link operations to this screen
|
| 463 |
easily.
|
| 464 |
|
| 465 |
2006-01-21 Syscrusher
|
| 466 |
|
| 467 |
DOCUMENTATION: I have officially renamed this set of modules
|
| 468 |
from "Links Bundle" to "Links Package". Please refer to the
|
| 469 |
collection as such in documentation files from here onward.
|
| 470 |
|
| 471 |
API CHANGE: The function links_format_goto_url() now returns
|
| 472 |
a raw "Drupal URL" (e.g., "links/goto/275/3") rather than
|
| 473 |
processing it through url() or l() before return. If you call
|
| 474 |
the links_format_goto_url() function, you need to add a local
|
| 475 |
call to the Drupal-corrective functions that manage non-clean-URL
|
| 476 |
(i.e., "index.php?q=drupal/url/path") sites. This fixes issue
|
| 477 |
#42908 reported by webchick and worked on by Ber Kessels and
|
| 478 |
Steve Dondley.
|
| 479 |
|
| 480 |
API CHANGE: The functions links_goto() and links_format_goto_url()
|
| 481 |
now accept an optional $module parameter to establish the module
|
| 482 |
scope of the request. links_goto_link(), which already accepted
|
| 483 |
this parameter, now defaults it to empty instead of 'links',
|
| 484 |
with that implying a generic redirection without tallying the
|
| 485 |
outbound click (see function comments for detailed explanation).
|
| 486 |
Normally, all other modules that call these functions should
|
| 487 |
specify their own names in the $module parameter. This change
|
| 488 |
enables correct tallying of outbound link clicks.
|
| 489 |
|
| 490 |
The link-hunting functionality for node bodies is working. The
|
| 491 |
"links" tab (if enabled) and links endnotes (if enabled) from
|
| 492 |
the links_related module now include a separate listing of all
|
| 493 |
links found in the node body text, whether raw URLs or enclosed
|
| 494 |
in HTML anchor tags. The feature still needs a lot of work --
|
| 495 |
in particular, the editing form displays but doesn't actually
|
| 496 |
do anything yet. This also addresses bug #44647 reported by
|
| 497 |
metapunk and aries. This functionality is part of links_related.
|
| 498 |
|
| 499 |
The display of the embedded links is now a site-configurable
|
| 500 |
option in the admin settings for the links_related module.
|
| 501 |
|
| 502 |
The next TODO is to finish bringing links.module up to the 4.7
|
| 503 |
forms API, per issue #37385. I am also working on other issues;
|
| 504 |
see the project page for details. The links package is still a
|
| 505 |
work in progress, but it is getting closer to completion.
|
| 506 |
|
| 507 |
2006-01-20 Syscrusher
|
| 508 |
|
| 509 |
Updated the database creation script for the UTF-8 patch per
|
| 510 |
http://drupal.org/node/22218#utf8_sql, and added links.install
|
| 511 |
for the new update system.
|
| 512 |
|
| 513 |
There was an error with key length being too long in the links_node
|
| 514 |
table, because of the new character set. Shortening the module
|
| 515 |
column to 60 characters fixed it; it's unlikely anyone would ever
|
| 516 |
name a module with a name bigger than that, anyway.
|
| 517 |
|
| 518 |
Corrected URL for setting which node types get related links, in
|
| 519 |
links_related.module, per issue #44643 (thanks metapunk).
|
| 520 |
|
| 521 |
Fixed the cosmetic error where link text was being truncated
|
| 522 |
even in the endnotes version of the display, in links.inc.
|
| 523 |
|
| 524 |
Applied Eaton's patch from issue #44748 to fix the context $module
|
| 525 |
parameter that was incorrect several places in links_related.module.
|
| 526 |
|
| 527 |
2005-12-27 Syscrusher
|
| 528 |
|
| 529 |
Fixed SQL query for links_weblink block handler, per issue #42139.
|
| 530 |
Patch by naudefj was correct in spirit but made against earlier
|
| 531 |
version of module, so applied an equivalent change manually.
|
| 532 |
|
| 533 |
2005-12-12 Syscrusher
|
| 534 |
|
| 535 |
NOTE: Users of the previous version need to execute a simple SQL
|
| 536 |
command to update the {links_node} table for this version:
|
| 537 |
|
| 538 |
UPDATE links_node SET module='links_related' WHERE module='links';
|
| 539 |
|
| 540 |
(Add the table prefix before links_node if required.)
|
| 541 |
|
| 542 |
Major rewrite of parts of links_weblink. This updated the behavior
|
| 543 |
of the forms API, building on contribs from drewish and Eaton. The
|
| 544 |
most significant change is that links_weblink now exploits the
|
| 545 |
module-context functionality of the links API, to maintain the
|
| 546 |
"primary" link for a weblink-type node as a distinct entity
|
| 547 |
separate from any related links that may or may not be attached
|
| 548 |
to that node (if related links are enabled for "weblink" nodes by
|
| 549 |
the sysadmin). In other words, it is now possible to have a weblink
|
| 550 |
whose semantics are "This weblink points to XYZ web site; here are
|
| 551 |
some related URLs as a 'see also' reference." Sites might use this
|
| 552 |
functionality to have the weblink itself point to a main page but
|
| 553 |
some related links point to especially interesting sub-pages. Since
|
| 554 |
related links are allowed/disallowed by the site admin, anyone who
|
| 555 |
doesn't like that notion can simply not enable them for weblink
|
| 556 |
nodes (that is the default situation).
|
| 557 |
|
| 558 |
In short the default behavior of links_weblink is now rather similar
|
| 559 |
to the behavior of the old weblinks module, but it can be configured
|
| 560 |
to add new flexibility if the webmaster prefers.
|
| 561 |
|
| 562 |
links_weblink now has a settings page to control its behavior.
|
| 563 |
Those who have been working with the previous version may need to
|
| 564 |
flush the cache to make this item visible in the admin menu.
|
| 565 |
|
| 566 |
Other significant changes:
|
| 567 |
|
| 568 |
New API: array links_get_list($module, &$node, $page, $teaser)
|
| 569 |
Builds a simple array containing links for the specified node, in
|
| 570 |
the specified module context. This function is simply a refactoring
|
| 571 |
of links_related_list() to make it available for reuse by other
|
| 572 |
modules (notably links_weblink).
|
| 573 |
|
| 574 |
API change: Re-ordered parameters for links_save_links_for_node()
|
| 575 |
to put $module second rather than last. This was done to make
|
| 576 |
the save and load functions more symmetrical, and because $module
|
| 577 |
was found to be used more often than expected.
|
| 578 |
|
| 579 |
API change: Added a $global flag to links_save_links_for_node().
|
| 580 |
When TRUE, this causes an altered URL for a link to change that
|
| 581 |
link globally in the {links} table. Without $global, a new URL
|
| 582 |
either catalogs the new link, or (if the new URL already exists
|
| 583 |
in the catalog) changes {links_node}.lid to point to the new URL
|
| 584 |
record in {links}. $global requires the 'change url globally'
|
| 585 |
user permission.
|
| 586 |
|
| 587 |
Added the 'change_url_globally' permission in links.module. (See
|
| 588 |
preceding paragraph for description.)
|
| 589 |
|
| 590 |
New API: string links_sort_get_parms($url)
|
| 591 |
Takes all of the GET parameters in the URL string and sorts them
|
| 592 |
alphabetically. This helps make URLs that have the same parms and
|
| 593 |
values, but in different order, normalize the same so they will
|
| 594 |
be merged in the database.
|
| 595 |
|
| 596 |
API change: links_get_links_for_node() renamed to
|
| 597 |
links_load_links_for_node() for consistency with the "load/save"
|
| 598 |
terminology used elsewhere in Drupal.
|
| 599 |
|
| 600 |
API semantics change: The $module parameter for functions
|
| 601 |
links_get_links_for_node() and links_load_links_for_node() has
|
| 602 |
changed to allow *any* module to use it. The string "links_"
|
| 603 |
is no longer automatically prepended. Correct syntax for this
|
| 604 |
parameter is now the full module name (e.g., "links_related"
|
| 605 |
or "links_weblink" or "my_other_module") rather than just the
|
| 606 |
part of the module after "links_". Default for the parameter
|
| 607 |
is now "links", implying a globally-shared link/node mapping.
|
| 608 |
Note that none of the modules in the links package itself
|
| 609 |
rely on that default, and normally external modules won't, either.
|
| 610 |
As before, leaving this parameter blank implies an operation that
|
| 611 |
affects *all* links for a node in *all* module contexts -- this
|
| 612 |
should be used with great caution, and probably only in sysadmin
|
| 613 |
situations rather than applications.
|
| 614 |
|
| 615 |
The database initialization scripts no longer drop tables.
|
| 616 |
|
| 617 |
2005-12-10 Syscrusher
|
| 618 |
|
| 619 |
Minor bug fixes in links.inc, related to the $module context
|
| 620 |
parameter on the save and load functions. Additional documentation
|
| 621 |
for developers in API.txt.
|
| 622 |
|
| 623 |
2005-12-09 Syscrusher
|
| 624 |
|
| 625 |
Fixed nonfunctional user-specific preference settings.
|
| 626 |
|
| 627 |
Fixed problems with missing explicitly-declared values for
|
| 628 |
settings fields, in option lists.
|
| 629 |
|
| 630 |
2005-12-07 Syscrusher
|
| 631 |
|
| 632 |
Committed links_weblink.module patch by drewish, per issue #40077.
|
| 633 |
|
| 634 |
Committed links_related.module patch by drewish (with help from
|
| 635 |
Eaton), per issue #39877.
|
| 636 |
|
| 637 |
Committed links.module patch by drewish, per issue #37385.
|
| 638 |
|
| 639 |
2005-12-05 Syscrusher
|
| 640 |
|
| 641 |
Committed changed by Eaton to improve form handling, per issue
|
| 642 |
#39877.
|
| 643 |
|
| 644 |
Committed a small patch by drewish to fix issue #40070.
|
| 645 |
|
| 646 |
There are still known bugs in the node editing form; I'm working
|
| 647 |
on those.
|
| 648 |
|
| 649 |
2005-11-19 Syscrusher
|
| 650 |
|
| 651 |
Added hook_node_info() implementation in links_weblink.module.
|
| 652 |
Fixes issue #38176, patch by Eaton.
|
| 653 |
|
| 654 |
2005-11-13 Syscrusher
|
| 655 |
|
| 656 |
Committed changes by Eaton, per issue #37385, to begin moving to
|
| 657 |
Drupal 4.7 forms API. A *big* thanks to Eaton for this patch set!
|
| 658 |
|
| 659 |
Corrected error in HTML pointed out by xqus in issue #36853.
|
| 660 |
Good catch, xqus.
|
| 661 |
|
| 662 |
Committed link editing code from xqus, per issue #35675, and then
|
| 663 |
converted this new code to Drupal 4.7 forms API.
|
| 664 |
|
| 665 |
WARNING: This version is NOT FULLY FUNCTIONAL. In particular, there
|
| 666 |
is a known infinite loop on adding content with related links. DO
|
| 667 |
NOT use for production, and the link admin page now does not show
|
| 668 |
any links in its list. This is an interim commit of work in progress.
|
| 669 |
|
| 670 |
2005-11-01 Syscrusher
|
| 671 |
|
| 672 |
Added links.pgsql, kindly contributed by "mok000". This addresses
|
| 673 |
issue #35006.
|
| 674 |
|
| 675 |
2005-07-13 Syscrusher
|
| 676 |
|
| 677 |
Fixed error with key being too long in the MySQL table creation
|
| 678 |
script. Addresses bug #26414.
|
| 679 |
|
| 680 |
2005-06-16 Syscrusher
|
| 681 |
|
| 682 |
Major enhancements to links_related.module, including a feature to
|
| 683 |
locate embedded links and make them available for editing and
|
| 684 |
migration into the catalog. THIS IS NOT YET COMPLETE; the module
|
| 685 |
is currently EXPERIMENTAL status.
|
| 686 |
|
| 687 |
2005-06-15 Syscrusher
|
| 688 |
|
| 689 |
Continued progress in the code building. Added new functions to
|
| 690 |
links.inc and links.module for more robust handling of the target
|
| 691 |
selection for links. There is now an option for new window only on
|
| 692 |
external links.
|
| 693 |
|
| 694 |
Fixed some bugs in the database updates, where trivial cases were
|
| 695 |
trying to execute empty queries.
|
| 696 |
|
| 697 |
Added new function links_l() which works like the l() from Drupal
|
| 698 |
core (and, indeed, calls it internally) but which respects the
|
| 699 |
admin and user settings for link targets.
|
| 700 |
|
| 701 |
2005-06-10 Syscrusher
|
| 702 |
|
| 703 |
Initial commit of links package code into modules directory of HEAD
|
| 704 |
branch. Package is usable but not yet completed. API is mostly stable,
|
| 705 |
database schema is (at least in theory) stable, in that no further
|
| 706 |
changes are *planned* at this time.
|
| 707 |
|
| 708 |
This is very definitely ALPHA TEST code, however, so use at own
|
| 709 |
risk, and only in a development/preview environment.
|