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: Change the URL category  (Read 2167 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.017 seconds with 19 queries.