Changeset 169

Show
Ignore:
Timestamp:
01/11/08 20:46:54 (5 years ago)
Author:
d0nut
Message:

many relevant bugfixes on tagging reloaded util and seo

Location:
taggingreloaded
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • taggingreloaded/files/lib/page/PublicSEORewriterTagging.class.php

    r167 r169  
    11<?php 
    2 require_once(WCF_DIR.'lib/data/page/PublicSEORewriter.class.php'); 
     2require_once(WCF_DIR.'lib/page/PublicSEORewriter.class.php'); 
    33 
    44/** 
  • taggingreloaded/files/lib/page/TaggingPage.class.php

    r168 r169  
    9797         */ 
    9898        public function show() { 
    99  
    10099                // switched from non-seo to seo? 
    101                 if(isset($_GET['tag']) && strpos($_SERVER['REQUEST_URI'], '?tag=') === false) { 
    102                         $url = $this->rewriter->publicParseTagURLs($_GET['tag']);                        
     100                if(defined('SEO_ENABLE') && defined('SEO_REWRITE_TAGGING') && strpos($_SERVER['REQUEST_URI'], '&tag=') !== false) { 
     101                        $url = $this->rewriter->publicParseTagURLs($_GET['tag']); 
    103102                        header("HTTP/1.1 301 Moved Permanently"); 
    104103                        header("location: $url"); 
  • taggingreloaded/files/lib/util/TaggingReloadedUtil.class.php

    r158 r169  
    169169                        $color = 255 - (($tag['weight'] * ($maxcolor-$mincolor) / ($max-$min) )+$c); 
    170170                         
    171                         $tmp[$key] = array( 
    172                                         'weight'=> $tag['weight'], 
    173                                         'color'=> intval($color), 
    174                                         'size'=> intval($size) 
    175                                 ); 
     171                        $tmp[$key] = $tag; 
     172                        $tmp[$key]['weight'] = $tag['weight']; 
     173                        $tmp[$key]['color'] = intval($color); 
     174                        $tmp[$key]['size'] = intval($size); 
    176175                } 
    177176                return $tmp; 
  • taggingreloaded/optionals/de.easy-coding.wcf.taggingreloaded.seo/files/lib/system/event/listener/TaggingReloadedSEOOptionFormListener.class.php

    r165 r169  
    1010 * @license     GNU General Public License <http://opensource.org/licenses/gpl-3.0.html> 
    1111 */ 
    12 class TaggingRealoadedSEOOptionFormListener implements EventListener { 
     12class TaggingReloadedSEOOptionFormListener implements EventListener { 
    1313        /** 
    1414         * @see EventListener::execute() 
     
    2121                 
    2222                        if ($options['SEO_ENABLE']) { 
     23                        return; //TODO 
    2324                                require_once(WCF_DIR.'lib/data/page/seo/RewriteRulesFile.class.php'); 
    2425                                $file = new RewriteRulesFile(WBB_DIR.'.htaccess'); 
  • taggingreloaded/optionals/de.easy-coding.wcf.taggingreloaded.seo/options.xml

    r165 r169  
    1515                                <defaultvalue><![CDATA[tags/{TAG}]]></defaultvalue> 
    1616                        </option> 
     17                </options> 
    1718        </import> 
    1819</data> 
  • taggingreloaded/package.xml

    r167 r169  
    2525                <optionalpackage file="optionals/de.easy-coding.wcf.stopwords.de.tar.gz">de.easy-coding.wcf.stopwords.de</optionalpackage> 
    2626                <optionalpackage file="optionals/de.easy-coding.wcf.stopwords.en.tar.gz">de.easy-coding.wcf.stopwords.en</optionalpackage> 
     27                <optionalpackage file="optionals/de.easy-coding.wcf.taggingreloaded.seo.tar.gz">de.easy-coding.wcf.taggingreloaded.seo</optionalpackage> 
    2728        </optionalpackages> 
    2829 
  • taggingreloaded/templates/taggingCloud.tpl

    r167 r169  
    11<ul class="taggingCloud" name="taggingCloud"> 
    22{foreach from=$tags key=tag item=i} 
    3         <li><a href="index.php?page=Tagging&amp;tag={$i.url}" style="font-size:{$i.size}%;color:rgb({$i.color},{$i.color},{$i.color})">{@$tag}</a></li> 
     3        <li><a href="{@$i.url}" style="font-size:{$i.size}%;color:rgb({$i.color},{$i.color},{$i.color})">{@$tag}</a></li> 
    44{/foreach} 
    55</ul>