coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Gephri on April 04, 2007, 11:07:43 PM

Title: drop to location on page
Post by: Gephri on April 04, 2007, 11:07:43 PM
I can click on an image supplied by cpmfetch.php and it will take me to the page with that image - great, works beautifully!  But I would like that click to also drop me lower onto the page because that's where the image is - without all the top-of-page banners, navigation and stuff.

How can I have CPMFetch add the following onto its links, please:
#auto_shift

Thanks,
J
Title: Re: drop to location on page
Post by: vuud on April 04, 2007, 11:27:03 PM
Quote from: Gephri on April 04, 2007, 11:07:43 PM
I can click on an image supplied by cpmfetch.php and it will take me to the page with that image - great, works beautifully!  But I would like that click to also drop me lower onto the page because that's where the image is - without all the top-of-page banners, navigation and stuff.

How can I have CPMFetch add the following onto its links, please:
#auto_shift

Thanks,
J

You are going to have to use the custom url feature I think.  Let me write the documentation for that tonight and send you a link.  Its in the readme if you are impatient (providing you are using a 1.9.x version).  there is no way under 1.6 to do it without modifying the code.

Here is the easiest way to see it:
http://cpmfetch.fistfullofcode.com/downloads/releasenote_1.9.12.txt

Then search on linktemplate  (one word)








Title: Re: drop to location on page
Post by: Gephri on April 05, 2007, 12:36:55 AM
Oh that's hillarious!  I went to your docs and search the code - trying to keep you from going to any trouble.  Then I read your code notes - HA !
I think I'd better wait for whatever you're able to put together tonight.
Thanks for the laugh!
Title: Re: drop to location on page
Post by: vuud on April 05, 2007, 03:10:20 AM
Quote from: Gephri on April 05, 2007, 12:36:55 AM
Oh that's hillarious!  I went to your docs and search the code - trying to keep you from going to any trouble.  Then I read your code notes - HA !
I think I'd better wait for whatever you're able to put together tonight.
Thanks for the laugh!



Hmmm, I actually thought the notes in there were pretty self explanatory...