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 2 3 4 5 [6]   Go Down

Author Topic: Tag cloud from keywords  (Read 102005 times)

0 Members and 1 Guest are viewing this topic.

Saif

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 87
    • Free HD Wallpapers
Re: Tag cloud from keywords
« Reply #100 on: November 19, 2009, 06:50:12 am »

will this work with coppermine 1.4.25 ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Tag cloud from keywords
« Reply #101 on: November 19, 2009, 05:49:47 pm »

This thread is tagged as being for cpg1.4.x. In my book, this includes cpg1.4.25 as well as cpg1.4.3819. So yes, this mod is designed to be used with any version of the cpg1.4.x series, and this includes cpg1.4.25.
We can't tell for sure, as it's simply beyond the scope of this board to test each available mod or hack with each new maintenance release. Why don't you try it for us: apply the mod and let us know if it worked for you or not. This would be a good way to give something back to the community. Taking into account your negative record on this forum it's about time for you to become a giver instead of being a taker constantly. Don't come up with lame excuses like "I'm not a coder" - you don't need to be a coder to apply this mod, test if it works and post feedback here in this thread. Nobody has been born as a coder - you live and learn.

Anyway, I can see what your issue is: this mod suggests to replace one of coppermine's files with a modified file that is based on an outdated version of coppermine, which can be a bad idea in terms of security and stability. The instructions of this mod never should have been put the way they are. I will try to make that up and post instructions that should work (see next posting).
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Tag cloud from keywords
« Reply #102 on: November 19, 2009, 05:51:17 pm »

Here are the revised instructions to use this mod: do not replace the entire core file as the initial posting in this thread suggests. Instead, apply these steps:

Edit include/keyword.inc.php with a plain text editor

Find
Code: [Select]
  $keywords_array = array();and add after it (into a new line)
Code: [Select]
  $keyword_count = array();


Find
Code: [Select]
        if (!in_array($word = utf_strtolower($word),$keywords_array)) $keywords_array[] = $word;and replace with
Code: [Select]
        if (!in_array(strtolower($word),$keywords_array)) {
          $keywords_array[] = $word;
          $keyword_count[$word] = 1;
        } else {
          $keyword_count[$word]++;
        }
      


Find
Code: [Select]
    echo "<a href=\"thumbnails.php?album=search&amp;search=".$keywords_array[$i]."\">$keywords_array[$i]</a>";and replace with
Code: [Select]
    $em = ($keyword_count[$keywords_array[$i]] < 6) ? 12 : (12 + (int)(($keyword_count[$keywords_array[$i]] - 5) / 5)) * 2;
    if ($em > 24) {
      $span = 'font-size: 24px; font-weight: bold;';
    } else {
      $span = "font-size: {$em}px;";
    }
    echo "<a href=\"thumbnails.php?album=search&amp;search=".$keywords_array[$i]."\"><span style='$span'>$keywords_array[$i]</span></a>";
   


Find
Code: [Select]
      echo " | ";and replace with
Code: [Select]
      echo " ";
Logged

Saif

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 87
    • Free HD Wallpapers
Re: Tag cloud from keywords
« Reply #103 on: November 20, 2009, 11:03:41 am »

Thank you Joachim Müller for the help. I use dreamweaver as my editor. I edited the file as you said & attached herewith this post. But sadly i m unable to find the tag cloud on search page.I edited the keyword.inc.php in the include dir. & made a text copy & attached with my post.

http://www.orangewallpapers.com/search.php
Logged

Saif

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 87
    • Free HD Wallpapers
Re: Tag cloud from keywords
« Reply #104 on: November 23, 2009, 06:12:32 am »

Its working, thank you GuaGau for the help. Anyone can download the attachment file from this post, rename it to keyword.inc.php & overwrite incude/keyword.inc.php. Thank you for the mod. It will bring a tag cloud on search.php.

http://www.orangewallpapers.com/search.php
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Tag cloud from keywords
« Reply #105 on: November 23, 2009, 01:51:38 pm »

Anyone can download the attachment file from this post, rename it to keyword.inc.php & overwrite incude/keyword.inc.php.
No, that's exactly what people should not do. Instead, they should to as I suggested above and apply the mod with the FIND/REPLACE instructions posted above. It was a silly idea in the first place to offer a pre-modded file. That idea was corrected. I understand that you're trying to help others, but it's a bad idea to continue with something that was a bad idea in the first place.
Logged

brawsky

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Tag cloud from keywords
« Reply #106 on: December 24, 2010, 12:24:06 pm »

Thank you  ;) ;)
Logged

brawsky

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Tag cloud from keywords
« Reply #107 on: December 24, 2010, 12:26:01 pm »

Thank you  ;) ;)
_________________________________________________

Abu Ja football Lani was used instead of dice. gclub in South Africa. To create a high with gclub different these
Logged

Rain888

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Tag cloud from keywords
« Reply #110 on: February 23, 2011, 10:02:18 am »

Just added a new member for the first time.

ohooahaa

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Tag cloud from keywords
« Reply #111 on: March 05, 2011, 04:51:33 am »

Hello everyone I just came Register. Thanks for the great info.
__________________________________________________________________________________________________
คาสิโนออนไลน์-คาสิโน-แทงบอล-แทงบอลออนไลน์-บาคาร่าออนไลน์
Logged
Pages: 1 2 3 4 5 [6]   Go Up
 

Page created in 0.034 seconds with 19 queries.