Sitemap

Begonnen von algebre, 20 November 2010, 11:15:10

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

Glauben Sie, dass dieses Modul standardmäßig  integriert werden sollte in "pragmxMx"?

Ja
10 (76.9%)
Nein
2 (15.4%)
Ja, mit mehr Funktionen
1 (7.7%)
Ja, mit weniger Funktionen
0 (0%)
Keine Stellungnahme
0 (0%)

Stimmen insgesamt: 11

Umfrage geschlossen: 20 Dezember 2010, 11:15:10

algebre

Translated
Hallo
Heute komme ich mit einem neuen Modul "Sitemap".
Mit neuen Features:
1 - konfigurierbar über eine Datei "setings.php".
2 - W3C gültig.
3 - Verwaltung von Berechtigungen mit "mxModuleAllowed", für "SMF Forum & Coppermine Galerie" ihre eigenen jeweiligen Berechtigungen System.
4 - Zusammenbruch / Erweitern Sie den Baum mit Treeview 1.4 - jQuery plugin. (Im Pack inbegriffen)
5 - eine externe Datei (in der Site Root) für den schnellen Zugriff für Suchmaschinen (Bots) oder für benutzerdefinierte Fehlerseiten (zB 404, 403). für SEO -Optimierung.
   NB: Wenn die Sitemap-Modul ist deaktiviert oder nicht  zulässig, diese Datei wird nicht funktionieren.
6 - und mehr .....


Original
Hello
Today, I come with a new module "sitemap".
With new features:
1 - configurable via a file "setings.php".
2 - W3C valid.
3 - Manage permissions with "mxModuleAllowed", for "SMF Forum & Coppermine gallery" use their own respective permissions system.
4 - collapse/Expand the tree with Treeview 1.4 - jQuery plugin. (Included in the pack)
5-  one external file (in the  site's root) for quick access for search engines (bots), or for custom error pages (eg 404, 403). for SEO optimization.
   nb: if the sitemap module is deactivated or not allowed this file will not work.
6 - and more .....

Olaf

Hi,

in the file 'functions.php' is a bug.

Line 630 : sql_query(...)
   the name of the table 'eboard' is wrong... the right name is 'mxboard'

this modul is great !!  :thumbup:

Thanks
g

Olaf

Kein Support über PN, Mail etc.!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

algebre

Hi
@TerraProject
Do you think, I should include this file'/modules/eBoard/settings.php'  for retrieve de table name in this function ? Because mine is "eBoard"

Olaf

ok, thats right. in older versions is it 'mxboard'. better, the variable would be read out from the 'settings.php' from eBoard.
g

Olaf

Kein Support über PN, Mail etc.!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

algebre


lemming

hey algebre,
sounds very very interessting, I'll try it later, for sure! :thumbup:
greetz,
Jörg

------------------------
Mitgliedersuche v.0.3 *new*

lemming

again, very nice but my first thougt was "why are all modules listed and not only my activated modules????"
greetz,
Jörg

------------------------
Mitgliedersuche v.0.3 *new*

algebre

Hi
Zitat von: lemmingwhy are all modules listed and not only my activated modules?
Because you are logged as admin , that's all
Look here

Next time I will use mxModuleActive() implemented in Pmx 0.1.12.RC2

algebre

Hi

I found a bug in modules/Site_map/functions.php
if index = 1 and  one of the blocks of coppermine is included! ==> fatal error (mysql)
so I modified the function gallery.

<?php // this line is only for code highlighting 
/**
 * mapGallery()
 * 
 * @param string $module_name
 * @param integer $map_limit
 * @return
 */
function mapGallery($module_name 'Gallery'$map_limit)
{
    global 
$map_output$uinfo;
        if (!isset(
$CONFIG['TABLE_PICTURES'])) {
    global 
$CONFIG;
        }
    if (!
defined("MXCPG_BLOCKFILE_LOADES")){
        if (!
defined("IN_COPPERMINE")) define("IN_COPPERMINE",1);
      if (@
file_exists('modules/' $module_name '/include/config.inc.php')) {
        include(
'modules/' $module_name '/include/config.inc.php');
        } else {
            if (
MX_IS_ADMIN) {
            echo 
'The module "' $module_name '" doesn\'t exist or is not correctly installed.';
            }
            return;
        } 
    }
    
$prefix $CONFIG['TABLE_PREFIX'] ;
    
$who_view = array(0$uinfo['user_ingroup'] + 5);
    if (
MX_IS_USER$who_view[] = 2;
    
$who_view implode(',',$who_view);
    
$print = array();
        
$qry "SELECT link.aid as cat_id, if(link.title<>'',link.title,link.filename) as link_title, link.pid as link_id, 
            cat.title as cat_title, cat.description as cat_desc, link.hits as link_hits, link.position as link_pos,
            if(link.caption<>'',link.caption,if(link.title<>'',link.title,link.filename)) as link_desc, link.owner_id as owner_id
            FROM " 
$prefix "pictures AS link
            LEFT JOIN " 
$prefix "albums AS cat ON (link.aid = cat.aid)
            WHERE (cat.visibility IN(" 
$who_view ") OR link.owner_id='" intval($uinfo['uid']) . "') AND link.approved='yes'
            ORDER BY link.ctime DESC, link.aid  LIMIT " 
intval($map_limit) . " ";
     
$result sql_query($qry);
     if (!
$result) return;
     while (
$row sql_fetch_assoc($result)) {
     
$album_owner mxGetUserDataFromUid($row['owner_id']);
     
$row['cat_title'] =$row['cat_title'] .' ( ' $album_owner['uname'].' )';
     
$row['link_desc'] = altDisplay($row['link_desc'], $row['link_title'], $row['link_hits']);
     
$row['link_desc']  = htmlentities ($row['link_desc']);
     
$row['link_title'] = htmlentities ($row['link_title']);
     
$row['href_cat']  = 'modules.php?name=' $module_name '&amp;act=thumbnails&amp;album=' $row['cat_id'];
     
$row['href_link'] = 'modules.php?name=' $module_name '&amp;act=displayimage&amp;pos=-' $row['link_id'];
     
$print[$row['cat_id']][] = $row;
}
    return 
_mapTemplate($print$module_name); 
}

algebre


Eren Aslan

Goog Modulu  Thanks

Saygılarımla...

algebre

 hi

UP :skipping:

ugurcan44

cooles modul hat wirklich gefehlt gehabt :).

mfg
ugurcan44

algebre

hi
new version with administration panel an more features
http://www.megaupload.com/?d=TPHX3ZH8

Olaf

very cool, thx

sorry, in the file "case.map.php" is a little bug.
Line 23:
$mod = 'Site_map';    is wrong
the right name is 'Site_Map', with  big 'M' 
or rename the folder of the modul in 'Site_map'
ok?

great work, thanks a lot
g

Olaf

Kein Support über PN, Mail etc.!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

Eren Aslan

#15
Başarılarının devamını dilerim..
Ich wünsche Ihnen weiterhin viel Erfolg ..


Saygılarımla..

comedi

Very good, thx !!   :thumbup:
LG Michael


Kein Support über PN, Mail oder ICQ!

CMS-Version: pragmaMx 1.12.3 --- PHP-Version: 5.3.5
MySQL-Version: 5.1.63 --- Server-Version: Apache 2.2.4

Wer den Weg zum Ziel kennt - dann aber Umwege nimmt - muss sich nicht wundern wenn er sein Ziel nicht findet!


Gemeinschaftseite: www.pragmamx-erweiterungen.de

algebre


Smiley

Hi algebre  :drinks:

A very good work, thx !  :thumbup:

Smiley

waltkemper

Hi agebre, this is very nice. But i have a little Problem: When i go to the Administration sitemat i became this Answer:

Diese Funktion ('map') ist nicht vorhanden. What i do wrong?

Greetz