MyXoops Forum

Aw:: myalbums 2.88 - Klonen [Module für Bildergalerien, Downloads und Faq] - myXOOPS German Support

alfred

Administrator
Gepostet am:25.03.2009 18:03
alfred
alfred Offline (Show more)
Administrator
Posts: 7619
Since: 06.12.2004
#16

Aw:: myalbums 2.88 - Klonen

Zitat:
The xoRewriteModule makes it possible to rewrite XOOPS URLs. It is not a real module and its installation is quite different from the way XOOPS modules are usually installed. This howto describes how to install it. How to rewrite URLs with the xoRewriteModule in XOOPS: Important issues before you start Before you start: - back up your website! - check if you have an Apache webserver with mod_rewrite enabled as this is required. Getting the files Download the module from this location by clicking on "Téléchargez maintenant". Extract it. Define the modules of which you will rewrite the URLs For the purpose of simplicity, let's assume that you only want to rewrite the URLs of the module "tag" from yoursite/modules/tag/ to yoursite/tags/. You need to edit the file /configs/xoRewriteModule.ini.php. Change: [xoRewriteModule] news="actualite" newbb="forum" wfdownloads="telechargement" smartpartner="partenaires" sitemap="plandusite" formulaire="contact" rss="filrss" extgallery="galerie" in [xoRewriteModule] tag="tags" * news="actualite" * newbb="forum" * wfdownloads="telechargement" * smartpartner="partenaires" * sitemap="plandusite" * formulaire="contact" * rss="filrss" * extgallery="galerie" The line tag="tags" defines the new URL of the tag module, by commenting the other lines the other modules are not affected. You need to change this file again if you want to rename these modules another time, but for the purpose examplification, rewriting the URLs of the tag module will do. Send the files to your server FTP the files to your server. The three folders should be FTP-ed to the root of your site. This will only add the contents of these folders to your current files, not overwrite the folders. Edit yoursite/header.php You need to edit your header.php file in the root of your XOOPS site to add these lines: //xoRewritemodule $xoopsTpl =& $xoTheme->template; $xoopsTpl->load_filter('output', 'xoRewriteModule'); I added these lines just before these two lines $xoopsLogger->stopTime( 'XOOPS output init' ); $xoopsLogger->startTime( 'Module display' ); and it worked well. Rewrite URLs in .htaccess Next step is editting your .htaccess file. The previous steps ensured that XOOPS recognises your new URLs, this step is the actual URL rewriting. If there isn't an .htaccess file, create one. Merge the following lines with your .htaccess file: RewriteEngine On RewriteRule ^tags/(.*) /modules/tag/$1 [QSA,L] The second line rewrites the URLs for the tags module, make simular changes for other modules. Redirect old pages with PHP At this moment, every thing should be working. The URLs are rewritten and the internal links in XOOPS refer to the new, rewritten URLs. However, the old URLs are still working as well and these are probably indexed by search engines. To avoid duplicate content, you need to 301-redirect these to their new location. A 30-redirect is a signal for browsers and search engines that your files are on a new location. Unfortunately, you can't do this in .htaccess as you will create an infinite loop. For this reason, you need to do this in php. Add the following code to yoursite/modules/tag/header.php: if(strpos(getenv('REQUEST_URI'), '/modules/tag/') === 0) { $oldurl = getenv('REQUEST_URI'); $newurl = str_replace("modules/tag", "tags", $oldurl); header("HTTP/1.1 301 Moved Permanently"); header("Location: $newurl"); } just below: http://www.xoops.org/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @author Taiwen Jiang (phppp or D.J.) <php_pp@hotmail.com> * @since 1.00 * @version $Id$ * @package module::tag */ That's it: your URLs are rewritten and your old pages are redirected to the new ones.
das ist der Text der Seite

grizzli

"myXOOPs"-Fortgeschrittener
Gepostet am:25.03.2009 16:54
grizzli
grizzli Offline (Show more)
"myXOOPs"-Fortgeschrittener
Posts: 132
Since: 09.12.2005
#15

Aw:: myalbums 2.88 - Klonen


ich hab nix spektakuläres bei mir installiert, und ich bin kein Spammer. Die spinnen doch

Wie komm ich denn jetzt an die Infos? Die Meldung kommt immer noch

Advertisement

Gepostet am:0
Advertisement (Show more)
Posts: 0
Since: 0


Hier könnten Sie Ihre Anzeige aufgeben!
Bitte kontaktieren Sie uns, um mehr darüber zu erfahren.

alfred

Administrator
Gepostet am:24.03.2009 22:08
alfred
alfred Offline (Show more)
Administrator
Posts: 7619
Since: 06.12.2004
#14

Aw:: myalbums 2.88 - Klonen

naja, ich weiss ja nicht was du alles installiert hast, jedenfalls kommt bei mir das nicht, sondern die Website

Die IP ist auf einer sogenannten Blcklist gelandet, weil da wohl viel Spam herkam, hat aber jetzt nix mit dieser Website zu tun.

grizzli

"myXOOPs"-Fortgeschrittener
Gepostet am:24.03.2009 22:01
grizzli
grizzli Offline (Show more)
"myXOOPs"-Fortgeschrittener
Posts: 132
Since: 09.12.2005
#13

Aw:: myalbums 2.88 - Klonen


wenn ich die Seite aufrufen möchte bekomme ich folgende Meldung:
Zitat:
This IP is reported as a known Spammer. Please refer to http://www.projecthoneypot.org to change your status. Found a Suspicious (1) with a score of 2, last seen since 3 days


Was will man mir damit sagen *verwirrtbin*

Ich bin ja niemand der dann einfach auf irgendwelche www-Adressen klickt ... *vorsichtigbin*

alfred

Administrator
Gepostet am:24.03.2009 09:28
alfred
alfred Offline (Show more)
Administrator
Posts: 7619
Since: 06.12.2004
#12

Aw:: myalbums 2.88 - Klonen

Zitat:

grizzli schrieb:
Eine Frage hätte ich doch noch

kann man das ändern das in der URL jetzt immer myalbum bzw. myalbum0 steht?

Zitat:

Ich hätte da gerne galerie bzw. graphics stehen


ja geht siehe:
http://www.howtodude.net/howto/view.article.php/203

grizzli

"myXOOPs"-Fortgeschrittener
Gepostet am:23.03.2009 22:58
grizzli
grizzli Offline (Show more)
"myXOOPs"-Fortgeschrittener
Posts: 132
Since: 09.12.2005
#11

Aw:: myalbums 2.88 - Klonen

Eine Frage hätte ich doch noch

kann man das ändern das in der URL jetzt immer myalbum bzw. myalbum0 steht?

Zitat:

Ich hätte da gerne galerie bzw. graphics stehen

grizzli

"myXOOPs"-Fortgeschrittener
Gepostet am:23.03.2009 22:12
grizzli
grizzli Offline (Show more)
"myXOOPs"-Fortgeschrittener
Posts: 132
Since: 09.12.2005
#10

Aw:: myalbums 2.88 - Klonen

ok, schade, aber vielen lieben Dank für Deine Hilfe :)

alfred

Administrator
Gepostet am:23.03.2009 22:05
alfred
alfred Offline (Show more)
Administrator
Posts: 7619
Since: 06.12.2004
#9

Aw:: myalbums 2.88 - Klonen

Zitat:

grizzli schrieb:
bedeutet ich kann nur dieses myalbum0 ... usw. benutzen
also myalbum kopieren und in myalbum0 umbenennen ohne weitere Änderungen?


Ja, sieht so aus.

Zitat:

Ich hätte gerne dieses seperated module :) deshalb dachte ich ich muss das so machen


mh, dann dürfte doch wohl etwas mehr Arbeit dahinter stecken

grizzli

"myXOOPs"-Fortgeschrittener
Gepostet am:23.03.2009 22:00
grizzli
grizzli Offline (Show more)
"myXOOPs"-Fortgeschrittener
Posts: 132
Since: 09.12.2005
#8

Aw:: myalbums 2.88 - Klonen

nach der die im modul drinne war

Zitat:
HOW TO use myAlbum-P multiply copy the directory of modules/myalbum/ into modules/myalbum* entirely. (Symbolic linking will not be useful. Because __FILE__ returns true file path.) The directory names are usable like this: myalbum0 myalbum1 myalbum2 Thus, you can use 4 of myAlbum-P at same time. If you want to use more myAlbum-P's as separated modules, use mk_templates.sh and mk_slogo.sh, and edit sql/myalbum*.sql manually. The important notice: the 1st one should not be older than 2.7. If you've already use myAlbum-P 2.6x or older, update it at first.



bedeutet ich kann nur dieses myalbum0 ... usw. benutzen
also myalbum kopieren und in myalbum0 umbenennen ohne weitere Änderungen?

Ich hätte gerne dieses seperated module :) deshalb dachte ich ich muss das so machen

alfred

Administrator
Gepostet am:23.03.2009 21:46
alfred
alfred Offline (Show more)
Administrator
Posts: 7619
Since: 06.12.2004
#7

Aw:: myalbums 2.88 - Klonen

Zitat:

grizzli schrieb:

2. mk_templates.sh geöffnet und alle myalbum in galerie geändert

3. mk_slogo.sh geöffnet und alle myalbum in galerie geändert
...

oder versteh ich das alles falsch??



irgendwie wahrscheinlich schon, denn beide Dateien werden wahrscheinlich auch ausgeführt werden müssen.
Und der Endung nach sind es Shellscripte die auf normalen Webspace wahrscheinlich nicht zugelassen sind.

Das die Tabellen da sind liegt an der sql Datei, aber:
Deinstalliere mal das Modul und du wirst sehen, das nur die originalTabellen auch gelöscht werden, die anderen bleiben.

Nach welcher Anleitung bist du vorgegangen ?
Diesen Thread durchsuchen:  1 Anonyme Benutzer

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
OffOffTopic [Wichtig] Übernahme myXOOPS 0 597 11.12.2023 18:57
alfred Gehe zum letzten Beitrag
Die Installation und Administration von XOOPS 2.5.X [Offen] Upgrade 2.5.11 3 2343 07.05.2023 07:03
Goffy Gehe zum letzten Beitrag