Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: static url for cpg  (Read 6240 times)

0 Members and 1 Guest are viewing this topic.

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
static url for cpg
« on: June 12, 2006, 12:25:59 am »

Dear Friends,
          I wish to setup links in copermine gallery as static becouse what realy happens that the links are made according to position and when ever new imagea are added the position get changed.

i have readed some where in cpg 1.3 to do that but it wont work in 1.4 any one please help me out...

i wisht to see this link like it is a pic of aishwarya rai but when i send it to some one after few days as new pics added the position get changed
http://www.lakesparadise.com/wallpapers/displayimage.php?album=26&pos=0

some what like
http://www.lakesparadise.com/wallpapers/displayimage.ph?image_id=5265

thanks
Niks
Logged

Nibbler

  • Guest
Re: static url for cpg
« Reply #1 on: June 12, 2006, 01:01:02 am »

Use the static url provided in the pic info section below each picture in the intermediate view.
Logged

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: static url for cpg
« Reply #2 on: June 12, 2006, 06:03:42 pm »

Dear Sir,
      Thanks for your reply i know that the static link is provided below the image in pic info but when it comes to linking it links or the links follow in following fashion

http://www.lakesparadise.com/wallpapers/displayimage.php?album=26&pos=1

instead of

http://www.lakesparadise.com/wallpapers/displayimage.php?pos=-2626

the above first link is not static as it can be changed or will not follow same image all the time but the second one certainly in copermine support forum few months back i have readed a tecnic through which we can convert these not static links to static as non static is not search engine friendly but now i cant find that any where.

if it is possible to convert those links to static then it will be best for site as search engines can find then better..
...


Thanks
Niks

Logged

casNuy

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: static url for cpg
« Reply #3 on: June 21, 2006, 06:28:45 pm »

Logged

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: static url for cpg
« Reply #4 on: October 24, 2006, 02:34:05 am »

I got static URLs working in my gallery by changing this line in include/themes.inc.php (in the theme_display_thumbnails function, around line 1815):

Code: [Select]
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}$uid_link",
to:
Code: [Select]
'{LINK_TGT}' => "displayimage.php?pos=-" . $thumb['pid'],
I suppose this would work in the other functions, as well in the themes.inc.php file.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: static url for cpg
« Reply #5 on: October 24, 2006, 07:21:37 am »

You mustn't edit themes.inc.php, under no circumstances. Edit themes/yourtheme/theme.php instead!
Logged

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: static url for cpg
« Reply #6 on: October 24, 2006, 07:30:31 am »

You mustn't edit themes.inc.php, under no circumstances. Edit themes/yourtheme/theme.php instead!
Oh, ok. Would my change cause a security risk?

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: static url for cpg
« Reply #7 on: October 24, 2006, 07:35:15 am »

Indirectly - it will vanish when upgrading, or keep you from upgrading. Changes to custom themes stick. We have noticed in the past that users are reluctant to apply security-related updates because they modified coppermine core files and are afriad to lose their changes. That's why we always suggest changing your custom theme (which will override the default behaviour specified in themes.inc.php).
Logged

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: static url for cpg
« Reply #8 on: October 24, 2006, 08:03:07 am »

Indirectly - it will vanish when upgrading, or keep you from upgrading. Changes to custom themes stick. We have noticed in the past that users are reluctant to apply security-related updates because they modified coppermine core files and are afriad to lose their changes. That's why we always suggest changing your custom theme (which will override the default behaviour specified in themes.inc.php).
Gotcha, thanks for the explanation. ;)
Pages: [1]   Go Up
 

Page created in 0.046 seconds with 19 queries.