/
liesmich.txt
331 lines (240 loc) · 14.3 KB
/
liesmich.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
Sitemap XML 4.2.0 für Zen Cart 1.5.7 deutsch
Dieses Modul generiert für Google und Bing geeignete XML Sitemaps nach den hier beschriebenen Spezifikationen:
https://support.google.com/webmasters/answer/156184?hl=de&topic=8476&ctx=topic
https://www.sitemaps.org/
Die Sitemaps können laufend vollautomatisch aktualisiert werden, indem das Script per Cronjob angesteuert wird
Falls Zusatzmodule wie Testimonial Manager oder News Box Manager im Shop verwendet werden, können auch Sitemaps für die Seiten dieser Module generiert werden.
Anpassung und Überarbeitung des Moduls Sitemap XML 3.9.5 von Andrew Berezin zur Verwendung in der deutschen Zen Cart Version 1.5.7
Dieses Modul setzt mindestens Zen Cart 1.5.7h deutsch voraus!
Changelog:
Version 4.2.0
webchills - März 2024
Anpassungen für 1.5.7h und PHP 8.2.x
Ping Funktionalität entfernt, da von den Suchmaschinen nicht mehr unterstützt
Anleitung aktualisiert
Version 4.1.3
webchills - Dezember 2023
Anpassungen für 1.5.7g und PHP 8.1x
Version 4.1.3
webchills - Juni 2022
Bugfix für MySQL in strict mode
Codekommentare vereinheitlicht
veraltete Sitemap für News Manager entfernt und mit neuer für News Manager ab 3.1.2 ersetzt
Version 4.1.2
webchills - Februar 2022
Umlaute in Installer entfernt
Aktualisierung für 1.5.7
Version 4.1.1
webchills - Juni 2021
Nicht mehr verwendete zen_admin_demo() Functon entfernt aus DEINADMIN/sitemapxml.php
Version 4.1.0
webchills - Juni 2019
Fehlenden Konfigeintrag SITEMAPXML_CATEGORIES_PAGING hinzugefügt
Autoinstaller geändert, so dass Installationsmeldungen immer sichtbar sind
Version 4.0.0
webchills - Oktober 2018
Originalmodul:
https://www.zen-cart.com/downloads.php?do=file&id=367
Änderungen gegenüber dem Originalmodul:
- Unnötige und zen-cart.com spezifische Funktionen entfernt
- Veraltete Links entfernt
- Installer auf normalen Autoinstaller umgestellt
- Konfiguration und Sprachfiles auf deutsch übersetzt
INSTALLATION:
WICHTIG:
Falls im Shop bereits eine ältere Version dieses Moduls älter als 4.0.0 (z.B. die amerikanische Version 3.9.5 oder älter) verwendet wird, dann vor der Installation dieses Moduls das alte Modul komplett entfernen.
Komplett entfernen bedeutet:
Alle, wirklich alle von diesem alten Modul angelegten Dateien vom Server löschen
Und dann auch die Datenbankeinträge des alten Moduls komplett entfernen.
Dazu kann folgender Befehl über Tools > SQL Patches installieren abgesendet oder direkt via phpMyAdmin eingespielt werden:
DELETE FROM configuration WHERE configuration_key LIKE '%SITEMAPXML%';
DELETE FROM configuration_language WHERE configuration_key LIKE '%SITEMAPXML%';
DELETE FROM configuration_group WHERE configuration_group_title = 'Sitemap XML';
DELETE FROM admin_pages WHERE language_key LIKE '%SITEMAPXML%';
Erst dann Version 4.2.0 installieren
Die Installation ist sehr einfach, es werden keinerlei bestehende Dateien geändert oder überschrieben.
Im Ordner NEUE DATEIEN den Ordner DEINADMIN auf den Namen Ihres Adminverzeichnisses umbenennen
Dann die Odner/Dateien in der vorgegebenen Struktur ins Shopverzeichnis hochladen.
Es werden dadurch keine bestehenden Dateien überschrieben.
Dem Verzeichnis sitemaps Schreibrechte geben (chmod 777)
Der Datei sitemap.xml im Shopverzeichnis schreibrechte geben (chmod 666)
In der Zen Cart Administration auf irgendeinen Menüpunkt clicken.
Sie sehen grüne Erfolgsmeldungen und danach sind unter Konfiguration und Tools zwei neue Menüpunkte vorhanden.
Nun unter Konfiguration > Sitemap XML Konfiguration wie gewünscht einstellen.
Und dann unter Tools > Sitemap XML die Sitemaps generieren.
Um die Sitemaps automatisch zu aktualisieren einen Cronjob anlegen, der das Script regelmäßig aufruft, z.B.
https://www.meinshop.de/index.php?main_page=sitemapxml&rebuild=yes&token=abc123abc123
Infos dazu unter Tools > Sitemap XML
UPDATE VON VERSION 4.x
Einfach die 4.2.0 Dateien hochladen und alle bestehenden 4.x Dateien damit überschreiben. Modul aktualisiert die Versionsnummer dann automatisch.
Falls Sie für das Generieren der Sitemaps bereits einen Cronjob eingerichtet haben, beachten Sie bitte, dass die Ping Funktionalität in Version 4.2.0 entfernt wurde, da die Suchmaschinen das nicht mehr unterstützen.
Sollte Ihre Cronjob URL also noch &ping=yes enthalten, dann entfernen Sie das aus Ihrer URL!
DEINSTALLATION:
Alle von diesem Modul hinzugefügten Dateien wieder vom Server löschen
Dann im Ordner UNINSTALL die uninstall.sql mit einem Texteditor öffnen, Inhalt kopieren und absenden unter Tools > SQL Patches installieren
ORIGINAL ENGLISCHE README:
(Die Hinweise zu Installation und Upgrade in der englischen readme sind NICHT für dieses Modul zu gebrauchen, sie liefert aber einige wichtige detaillierte Infos zur Funktionsweise dieses Moduls)
# SitemapXML
## Version
v 3.9.3 16.04.2017 18:35
Author
Andrew Berezin http://eCommerce-Service.com
Thanks
Special thanks to DivaVocals for the quality of the readme.
## Description
This Script generates an Sitemap as described here:
http://www.sitemaps.org/
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=156184&topic=8476&ctx=topic
Zen-Cart Version
--------------
1.3.8, 1.3.9x, 1.5.5
Support thread
--------------
http://www.zen-cart.com/showthread.php?126810-SitemapXML-v-2
http://zen-cart.su/plugins/sitemap-xml/msg7/
https://github.com/AndrewBerezin/zen-cart-sitemap-xml
Affected files
--------------
None
Affects DB
--------------
Yes (creates new records into configuration_group, configuration and admin_pages tables).
DISCLAIMER
--------------
Installation of this contribution is done at your own risk.
Backup your ZenCart database and any and all applicable files before proceeding.
Features:
--------------
* supports Search-Engine Safe URLs (including MagicSeo)
* could be accessed by http or command line
* autogenerates multiple sitemaps for sites with over 50.000 URLs
* autogenerates multiple sitemaps if filesize exceeded 10MB
* writes files compressed or uncompressed (You can use the gzip feature or compress your Sitemap files using gzip)
* using index.php wrapper - http://domain.com/index.php?main_page=sitemapxml
* using languages file and etc.
* auto-notify Google and other SE.
* generation of a sitemap index file
* generation of xml-sitemaps for (separate files):
1. Products with images (supports multilangual products, support hideCategories)
2. Categories with images (supports multilangual categories, support hideCategories)
3. Manufacturers with images
4. Main (Home) page
5. Reviews
6. EZ-pages
* multi-language support,
* 'EZ pages rel=nofollow attribute' support (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=944),
* 'date_added'/'last_modified' support,
* check internal links ('alt_url') by "noindex" rule (main_page in ROBOTS_PAGES_TO_SKIP),
* toc_chapter proccessing
7. Testimonial Manager http://www.zen-cart.com/downloads.php?do=file&id=299
8. News Box Manager http://www.zen-cart.com/downloads.php?do=file&id=147
9. News and Article Manager & Optional Sideboxes http://www.zen-cart.com/downloads.php?do=file&id=791
10. Product reviews page
If the products, categories, reviews have not changed since the last generation (time creation corresponding xml-sitemap file), a new xml-sitemap file not created (using existing xml-sitemap).
Priority is calculated on the basis of the positions in the selection from the database, ie the operator ORDER BY in the sql query. First item have priority=1.00, last=0.10. So can no longer be situations where all items in the file have the same priority.
* Products - ORDER BY p.products_sort_order ASC, last_date DESC
* Categories - ORDER BY c.sort_order ASC, last_date DESC
* Reviews - ORDER BY r.reviews_rating ASC, last_date DESC
* EZ-pages - ORDER BY p.sidebox_sort_order ASC, last_date DESC
* Testimonials - ORDER BY last_date DESC
* Box News - ORDER BY last_date DESC
$_GET parameters:
-------------------------
ping=yes - Pinging Search Engine Systems.
inline=yes - output file sitemapindex.xml. In Google Webmaster Tools you can define your "Sitemap URL":
http://your_domain/index.php?main_page=sitemapxml&inline=yes
And every time Google will get index.php?main_page=sitemapxml he will receive a fresh sitemapindex.xml.
genxml=no - don't generate xml-files.
rebuild=yes - force rebuild all sitemap*.xml files.
Comments and suggestions are welcome.
If you need any more sitemaps (faq, news, etc) you may ask me, but I will do only if it matches with my interests.
Install:
--------------
0. BACK UP your database & store.
1. Unzip the SitemapXML package to your local hard drive, retaining the folder structure.
2. Rename the "YOUR_Admin" folder in the "sitemapXML" folder to match the name of your admin folder.
sitemapXML/YOUR_Admin/
3. Upload the files from "sitemapXML" to the root of your store. (DO NOT upload the "sitemapXML" folder, just the CONTENTS of this folder (copy ALL of the add-on files to your store!! Most issues are caused by store owners who decide to NOT load ALL of the module files)
4. Set permissions on the directory /sitemap/ to 777.
5. Go to Admin -> Configuration -> Sitemap XML and setup all parameters.
6. Go to Admin -> Tools -> Sitemap XML (If error messages occur, change permissions on the XML files to 777).
7. To have this update and automatically notify Google, you will need to set up a Cron job via your host's control panel.
8. For Zen-Cart version 1.3.9f and earlier. Edit file includes/.htaccess:
Find
<FilesMatch ".*\.(js|JS|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF)$">
Replace by
<FilesMatch ".*\.(js|JS|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF|xsl|XSL)$">
Upgrade:
--------------
0. BACK UP your database & store.
1. Unzip the SitemapXML package to your local hard drive, retaining the folder structure.
2. Rename the "YOUR_Admin" folder in the "sitemapXML" folder to match the name of your admin folder.
sitemapXML/YOUR_Admin/
3. Upload the files from "sitemapXML" to the root of your store. (DO NOT upload the "sitemapXML" folder, just the CONTENTS of this folder (copy ALL of the add-on files to your store!! Most issues are caused by store owners who decide to NOT load ALL of the module files)
Deleting OLD copies of this mod (circa 1.3.8 - such as version 2.1.0, which was around for a number of years)
--------------
a) Delete the following files from your admin directory:
- ./includes/boxes/extra_boxes/googlesitemap_tools_dhtml.php
- ./includes/extra_datafiles/googlesitemap.php
- ./includes/languages/english/googlesitemap.php
- ./includes/languages/english/extra_definitions/googlesitemap.php
- ./includes/languages/italian/extra_definitions/googlesitemap.php
- ./includes/languages/italian/googlesitemap.php
- ./includes/languages/russian/googlesitemap.php
- ./includes/languages/russian/extra_definitions/googlesitemap.php
- ./googlesitemap.php
b) Run the following SQL in admin->tools->install SQL Patches:
- SET @configuration_group_id=0;
- SELECT (@configuration_group_id:=configuration_group_id) FROM configuration_group WHERE configuration_group_title= 'Google XML Sitemap' LIMIT 1;
- DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
- DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
Un-Install:
--------------
1. Go to Admin -> Tools -> Sitemap XML and click "Un-Install SitemapXML SQL".
2. Delete all files that were copied from the installation package.
History
--------------
v 2.0.0 02.02.2009 19:21 - Initial version
v 2.1.0 30.04.2009 10:35 - Lot of changes and bug fixed
v 3.0.2 11.08.2011 16:14 - Lot of changes and bug fixed, Zen-Cart 1.5.0 Support, MagicSeo Support
v 3.0.3 27.08.2011 13:11 - Small bug fix, delete Zen-Cart 1.5.0 Autoinstall
v 3.0.4 30.09.2011 14:58 - Code cleaning, Readme corrected, Small bug fix, Zen-Cart 1.5.0 compliant - replace admin $_GET by $_POST
v 3.0.5 02.12.2011 02:11 - Support Box News module, cleaning
v 3.1.0 14.12.2011 13:32 - Code cleaning, Readme corrected, Small bug fix,
Replace Configuration parameter 'Generate language for default language' by 'Using parameter language in links',
Modified algorithm for processing multi-language links
Add Sitemap Files List to admin
v 3.2.2 07.05.2012 19:12 - Bug fixes
Traditional code cleaning
Correct MagicSeo Support
Truncate additional multi files
Add sitemapXML simple file manager
Add 'Start Security Token'
Rename sitemapxml_homepage.php to sitemapxml_mainpage.php
Add image sitemap support http://support.google.com/webmasters/bin/answer.py?answer=178636 for products, categories, manufacturers
v 3.2.4 28.05.2012 13:38 - Bug fixes
Add parameter "Check Dublicates"
Add parameter "Sitemap directory"
v 3.2.5 31.05.2012 14:52 - Add parameter "Use cPath parameter in products url". Coordinate this value with the value of variable $includeCPath in file init_canonical.php
v 3.2.6 17.06.2012 16:13 - Bug fixes
Rewrite gss.xls
v 3.2.7 24.09.2012 13:23 - ReadMe editing - thanks to Scott C Wilson aka swguy (http://www.zen-cart.com/member.php?22320-swguy)
Products additional images sitemap support
Bug fix 'inline=yes'
v 3.2.8 24.01.2013 18:10 - Add url encoded for RFC 3986 compatibility.
v 3.2.9 24.02.2013 13:48 - Bug fixes
Delete xml validations
Delete absolute path from information message
v 3.2.10 22.04.2013 8:15 - Add confirm() to delete/truncate
v 3.2.12 19.09.2013 8:06 - Replace absolute path to .xsl
v 3.3.1 31.01.2015 16:27 - Bug fixes
Add Product reviews pages
Add plugin control
v 3.6.0 26.04.2016 10:33 - Bug fixes
v 3.7.0 07.07.2016 11:25 - Add configuration parameter for categories paging
v 3.8.0 07.07.2016 12:39 - Code Review. Thanks to steve aka torvista
v 3.9.1 29.08.2016 18:56 - Add auto installer. Thanks to Frank Riegel aka frank18
v 3.9.2 09.11.2016 13:37 - Bug fixes (Select plugins)
v 3.9.3 16.04.2017 18:35 - Auto installer Bug fixes
v 3.9.4 17.04.2017 14:27 - Another Auto installer Bug fixes
v 3.9.5 17.04.2017 15:55 - Add configuration multilanguage support