Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Change the URL category  (Read 2133 times)

0 Members and 1 Guest are viewing this topic.

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Change the URL category
« on: June 30, 2012, 03:45:23 pm »

Help please to change. The file index.php:
Code: [Select]
$link = "<a href=\"index.php?cat={$cid}\">{$cat['details']['name']}</a>";changing this:
Code: [Select]
$link = "<a href=\"cat={$cid}\">{$cat['details']['name']}</a>";But the URL stops working. What should still change the code? Thank you :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Change the URL category
« Reply #1 on: July 02, 2012, 10:31:55 am »

Without having a clue what you're doing, try
Code: [Select]
$link = "<a href=\"?cat={$cid}\">{$cat['details']['name']}</a>";
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Change the URL category
« Reply #2 on: July 02, 2012, 08:14:24 pm »

Thank you  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.