Add "direct URL" to item page?

ddum

Joined: 2005-08-08
Posts: 37
Posted: Sat, 2007-04-21 19:51

Hello!

Some users (ok most of them) use the Gallery-site to store images which they then hot-link into variosu forums. So far so good, this is why i originally set it up.

The problem is that it seem way to many try to to use the URL of the _page_ of the image, instead of the URL to the image itself.

What i would like to do is add a field to each item-page with something like

"If you want to use this image on som other web-service, please use the following URL: http://....."

Even better if i could add a second field with the URL to the full-size image.

Could this be done? (Of course it _could_ but does someone have any suggestions?)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-04-21 21:59

In the 3rd party modules look for:
http://codex.gallery2.org/Gallery2:Modules:geturls

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ddum

Joined: 2005-08-08
Posts: 37
Posted: Sun, 2007-04-22 11:30

Thanks!

Looks to be what i needed, i had a version of G2 that was too old though. So iu upgraded it, and now i can not view my plugins page at all (Posted a separate thread on that).

Will look at this module when i get that working :)

 
ddum

Joined: 2005-08-08
Posts: 37
Posted: Sun, 2007-04-22 11:35

Aha! Clearing cache and login/logout soulved that problem.

GetURL wont load in my gallery, it says:

Show BBcode/HTML formatted URLs
Inkompatibel plugin!
Kärn-API Begärd: 6.10 (tillgänglig: 7.29)
Plugin API obligatorisk: 2.4 (tillgänglig: 3.6)

Which translated means, Incmopatible Plugin!
Core API Requested: 6.1 (available 7.29)
Plugin API mandatory: 2.4 (available 3.6)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2007-04-22 16:53

Updated the codex to reflect the proper documentation for using DP with this module:
http://codex.gallery2.org/Gallery2:Modules:geturls#Installation_via_downloadable_plugins_.28V2.2.1.2B.29

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ddum

Joined: 2005-08-08
Posts: 37
Posted: Sun, 2007-04-22 18:10

Spot on! Thanks, this was _precisely_ the functionality I was looking for.

 
ddum

Joined: 2005-08-08
Posts: 37
Posted: Sun, 2007-04-22 18:28

Actually, there is one thing missing.

WOuld it be possible to add a field that gives just the URL? As in just the "http://...."-part and no other tags?`I cannot find an option for that?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2007-04-22 19:39

You would have to edit the template file of that module to have the functionality you need.
Just copy an existing form on the template and remove what you don't need.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ddum

Joined: 2005-08-08
Posts: 37
Posted: Sun, 2007-04-22 20:00

Thanks again!

As a "quick-fix" i will just modify an existing template.

But, is there a quick way to tell me how i add another checkbox in the admin page, and how those are linked to the blocks?

Yes, i know i am prolly in over my head here, but i would like to get the hang of this.