Integration:WBB3DE - Gallery Codex
Personal tools

Integration:WBB3DE

From Gallery Codex

Revision as of 15:33, 1 July 2013 by Bharat (Talk | contribs) (Text replacement - "codex.gallery2.org" to "codex.galleryproject.org")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Beschreibung

Hi,
ich werde diesen Text, den ich eigentlich für das Wiki in der Gallery geschrieben habe ins Deutsche überstzen, das wird allerdings noch ein bisschen dauern. Es geht also um die Gallery2 Bildergalerie. Was macht dieses Addin? Dazu sollte man wissem, dass die Gallery2 eine Schnittstelle zur Verfügung stellt, mit der sie in andere Applikationen eingebunden werden kann. Diese Schnittstelle wird "embed" genannt und beinhaltet hervoragende technischen Möglichkeiten. Durch Embed ist es möglich die Gallery2 über das WCF/WBB zu betreten und über die Gallery2 Seite selber. Zu mir selber Markus Wilhelm. Informationen zum Gallery2 Embedding könnt ihr hier finden Gallery2:Embedding und alle verf+gbaren Integrationen für die Gallery1 hier Integration.

There is a problem with the rating module of Gallery in combination with WCF. I reported this issue to Gallery Bugtracker: http://sourceforge.net/tracker/index.php?func=detail&aid=1868824&group_id=7130&atid=107130

To solve this please use the following changes RatingHelper.class and store it to gallery2/modules/rating/classes/. You can find the changed classfile here: http://www.bessieundmarkus.de/docman/cat_view/26/60.html


  1. Gallery2 Embed ins WBB 3 einbinden.
  2. User des WBB in Richtung Gallery2 Syncronisieren (nur in diese eine Richtung).
  3. Gruppen des WBB in Richtung Gallery2 Syncronisieren (nur in diese eine Richtung).
  4. User in der Gallery2 anlegen, falls sie noch nicht syncronisiert sind.
  5. Ihr dürft keinen User in der Gallery2 Administration löschen!!!!! Dies könnt ihr übers ACP des WBB umsetzen.



Informationen über Gallery2 Embedding findet ihr hier: http://codex.galleryproject.org/Gallery2:Embedding

Es gibt ein Problem mit dem Rating (abstimmen) Module der Gallery in Verbindung mit dem WCF. Diesen Fehler habe ich in den Bugtracker der Gallery gemeldet, ihr könnt den Status über folgenden Link abfragen: http://sourceforge.net/tracker/index.php?func=detail&aid=1868824&group_id=7130&atid=107130

Um das Problem zu lösen könnt ihr als Workarround die Datei RatingHelper.class in folgendes Verzeichnis speichern gallery2/modules/rating/classes/. Die Klasse könnt ihr hier herunterladen: http://www.bessieundmarkus.de/docman/cat_view/26/60.html


Gallery and WCF/WBBB Versions

Das Plugin ist für alle Versionen von WBB 3 and Gallery 2.2 and 2.3 freigegeben.


Download

Ihr könnt das Plugin hier herunterladen: http://www.bessieundmarkus.de/docman/cat_view/26/60.html

Demo Embed: http://www.rettungshundeforum.de/portal/index.php?page=Gallery2
Demo Gallery2: http://gallery.rettungshundeforum.de/
PHPDoc: http://phpdoc.bessieundmarkus.de/de.bessieundmarkus.gallery2
Readme: http://g2forum.bessieundmarkus.de/5-readme.html
Wiki (Englisch): http://codex.galleryproject.org/Integration:WBB3
Bugs: http://bugs.rescue-dogs.de
Subversion Repository:

  1. Ongoing Developments: svn://www.bessieundmarkus.de/wcf/trunk/de.bessieundmarkus.gallery2
  2. Released Versions: svn://www.bessieundmarkus.de/wcf/tags/
  3. Username: gast
  4. Passwort: gast

Subversion Repository Webbrowser: http://websvn.bessieundmarkus.de/


Discussion

You can discuss topics on Gallery2 Embeding into WBB3/WCF in


Development History

Welche änderungen wann vollzogen wurden könnt ihr in unserem Bugtracker sehen, denkt daran das richtige Projekt auszuwählen: http://bugs.rescue-dogs.de/

de.bessieundmarkus.gallery - Version 1.1.0 RC1
==============================================
- 0000524: [Layout] Weisse Portal-Seite (markuswilhelm) - geschlossen.
- 0000472: [Development] Portal Box für Alben (Dynamische Alben, alle drei anbieten, plus fixed Item) (markuswilhelm) - geschlossen.
- 0000476: [Development] User group permissions for sync (markuswilhelm) - geschlossen.
- 0000477: [Development] New handling for gallery settings (Caches) (markuswilhelm) - geschlossen.
- 0000481: [Development] Einstellungen im ACP unter Inhalte / Gallery / Einstellungen (markuswilhelm) - geschlossen.
- 0000484: [Development] canViewG2 als Berechtigung einführen (HeaderMenü und Page) (markuswilhelm) - geschlossen.
- 0000487: [Development] Menu Icon ist 24*21 und nicht 24*24 Pixel (markuswilhelm) - geschlossen.
- 0000502: [Layout] Schreibfehler im Profil (markuswilhelm) - geschlossen.
- 0000505: [Development] index.php/index.php und SEO / Kurze Url (markuswilhelm) - geschlossen.


Installation

Upgrade from Version 1.0 to 1.1

You have to deinstall the Version 1.0 first and than install 1.1. This is due to the change of the Plugin Parent application which has been WBB and is now WCF.


Installation

Just install it like any other kind of plugin. Remember to install Gallery2 first. To be able to change Gallery2 settings in ACP you will have to adopt changes to the WBB roles. Goto: User - Groups - Lust Groups and change any group you want to, preferable is the Administrator group. Then navigate to the administration rights tab and in the sub tab to content. Scroll down to the Gallery permissions and change like you want to have them.

After Installation you will have to change one template manually: userProfile.tpl

Search for:

{if $user->getAvatar()}

And Include before:

 {if $usergallerypages|isset}
	<div id="userProfileAvatar">
		<div class="border">
			<div class="containerHead">
				<div class="containerIcon"><img src="{@RELATIVE_WCF_DIR}icon/avatarM.png" alt="" /></div>
				<h3 class="containerContent"><a href="{$usergalleryurl}">Bilder von {@$user->username}</a></h3>
			</div>
			<div class="container-1">
				{@$usergallerypages}
			</div>
		</div>
	</div>
 {/if}


What can the Plugin do?

The Pugin has three parts. Just display the Gallery2 Embed page, offering the user to change settings and offering the administrator several automized steps the configure and maintain the plugin data.

  1. Gallery Page
  2. User Profile
  3. Administration


Gallery Page

Just display the Gallery2 Embed page. Several settings possible to maintain in Administration Control Panel (ACP).


User Profile

The part is about how the user can handle the gallery and its pictures.


Profile Page

If for any reason the creation of an own album failed it is possible for the user to create his own album from his profile settings page.


User Page

Display og the users Album together with a random image realized with an image Block.


Eventlistener: Password change

Not jet realized. The idea is to offer (if whished) the possibility to use the Gallery Embed or as standalone witht the same users password, therefor the change of a password must be stored as well in the Galery2 database.


Eventlistener: User Registration

Not jet realized. The idea is to offer (if whished) the possibility to use the Gallery Embed or as standalone witht the same users password, therefor the initial password must be stored as well in the Galery2 database.


Eventlistener: User Deletion

Not jet realized. If a user is deleted in WBB than what has to happen to the user inside Gallery2 and its pictures?


Administration

The part is about how the Admin can handle the gallery and what are the possible settings and problems.


Gallery Settings

The initial settings for your galler can be set inside the ACP: System - Options - Gallery

  • Set the paths to Gallery2
  • Set the URL to your Gallery2
  • Display Login Link
  • Display Sidebar
  • Syncronize Users and Groups by cronjob or manually.


Link to Gallery

You can find the settings after changing the respective roles inside the ACP, goto: Content Then you should see the Gallery as one entry in the menu bar. If not refresh you Window and/or check the groups settings for the Gallery.

The startpage of Gallery can be set to:

  1. Root Album
  2. UpdatesAlbum
  3. PopularAlbum
  4. RandomAlbum


User Sync Page

Sync the users and groups data and display all users available in wbb and Gallery


Group Sync Page

Sync the users and groups data and display all groups available in wbb and Gallery


Eventlistener: Passwor change

Not jet realized. The idea is to offer (if whished) the possibility to use the Gallery Embed or as standalone witht the same users password, therefor the change of a password must be stored as well in the Galery2 database.


Embed and Rewrite URL

See http://codex.galleryproject.org/Gallery2:Modules:rewrite#URL_Rewrite_Embedded for general Dokumentation.

You have to proceed as follows:

  1. Logon to WBB and go to your Gallery e.g. http://www.rettungshundeforum.de/portal/index.php?page=Gallery2
  2. Go to the Gallery Administration page (Inside WBB, not inside Gallery standalone).
  3. Activate Short URL (Mod Rewrite) on the plugin page
  4. Go to configuration of Mod Rewrite
  5. Enter Path to WBB .htaccess, e.g. /your/path/to/wbb/installation/ (not the wcf path) when your WBB installation is stored in installation folder
  6. Enter URL to your WBB, e.g. /portal/ when your wbb is running in http://www.rettungshundeforum.de/portal/ like mine.
  7. Activate Plugin
  8. Finished

You can see an example on the demo page: http://www.rettungshundeforum.de/portal/updates or http://www.rettungshundeforum.de/portal/v/user/bessie/


To Do

  • Ettliche Dinge sind noch zu tun, das könnt ihr aber im Bugtracker finden.
advertisements