Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Update Zoom Plugin
Date: 2007/03/09 05:35 By: laurie_lewis Status: CB Doc subscriber  
Karma: 1  
Fresh Joomlapolitan

Posts: 15
graphgraph
I am sorry I am sure this is not the correct place to upload this but I have added a parameter to the Zoom Plugin so that you can define the directory that you have placed the Zoom media files in. Did this after I moved them from the default location.

First go at it but it appeared to work for me.

Sorry about putting it up here.

Laurie
File Attachment:
File name: plug_zoom.zip
File size:3881 bytes

Laurie
My Community Site: http://thelewisfamily.id.au
Click here to see the profile of this user The administrator has disabled public write access.

Re:Update Zoom Plugin
Date: 2007/03/09 08:42 By: nant Status: Admin  
Karma: 463  
Admin

Posts: 6011
graph
Thanks for sharing!
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:Update Zoom Plugin
Date: 2007/04/03 15:00 By: WingDude Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
Nant,
We are currently deciding which Gallery plugin to use.
We need the following functionality:

# resize thumbnails
# build B & W thumbnail images
# comment photo
# rate photo
# Video thumbnails - Zoom has this feature
# CB plugin that works.
# Compatibility with tools such as imagemagik.

CAn you advise whether we can do all the above with CB Gallery
Regards
Click here to see the profile of this user The administrator has disabled public write access.

Re:Update Zoom Plugin
Date: 2007/04/03 16:12 By: folmolen Status: User  
Karma: 0  
Junior Joomlapolitan

Posts: 27
graphgraph
I installed this version of the CB Zoom plugin. I got the tab but the pictures thumbs are not being shown although it indicates that they are there. The links of the pictures does work correctly. What to do??
Click here to see the profile of this user The administrator has disabled public write access.

Re:Update Zoom Plugin
Date: 2007/04/03 17:35 By: nant Status: Admin  
Karma: 463  
Admin

Posts: 6011
graph
WingDude wrote:
Nant,
We are currently deciding which Gallery plugin to use.
We need the following functionality:

(1)# resize thumbnails
(2)# build B & W thumbnail images
(3)# comment photo
(4)# rate photo
(5)# Video thumbnails - Zoom has this feature
(6)# CB plugin that works.
(7)# Compatibility with tools such as imagemagik.

CAn you advise whether we can do all the above with CB Gallery
Regards



1 - sized during upload - no resizing afterwards
2 - nope
3 - nope
4 - nope
5 - nope
6 - dont need one
7 - yes
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:Update Zoom Plugin
Date: 2007/06/22 07:17 By: SRTKOTA Status: User  
Karma: 1  
Fresh Joomlapolitan

Posts: 2
graphgraph
Great work.. I'm running the 2.5.1 RC2 version because I found there were too many bugs in 2.5b3 with my server config.

I modified your code to make the thumblinks open to the full pic in a new window when clicked. I don't know if this will work with the 2.5b3 so proceed with caution. I'm also no coder by any means but it works for me quite nicely.

NOTE: If your Joomla installation is in a different folder than root, update the two instances of /images/zoom/.... to /yourjoomlafolder/images/zoom....

EDIT FILE /...comprofiler/plugin/user/plug_cbzoomtab/zoom.php

Code:

 <?php /** * Zoom Tab Class for handling the CB tab api * @package Community Builder * @author Unknown, PeterMixt, JoomlaJoe, Beat */ class getZoomTab extends cbTabHandler {     /**     * Constructor     */     function getZoomTab() {         $this->cbTabHandler();     }     /**     * Generates the HTML to display the user profile tab     * @param object tab reflecting the tab database entry     * @param object mosUser reflecting the user being displayed     * @param int 1 for front-end, 2 for back-end     * @returns mixed : either string HTML for tab content, or false if ErrorMSG generated     */         function getDisplayTab($tab,$user,$ui) {         global $database,$mosConfig_live_site,$acl,$my,$mosConfig_absolute_path;         $return="";         if(!file_exists('components/com_zoom/etc/zoom_config.php')){             return _UE_ZOOMNOTINSTALLED;         }         $params=$this->params;         $imgNumberPerPage $params->get('imgNumberPerPage''10');         $imgTextIfNoImg $params->get('imgTextnoImg'_UE_NOZOOMIMGS);         $imgTextAbovePics $params->get('imgTextAbovePics'_UE_ZOOMGALLERY);         if ($imgTextAbovePics == ""$imgTextAbovePics " ";         $imgPhotoName $params->get('imgPhotoName''1');         $imgSortByAllowed $params->get('imgSortByAllowed'0);                  $pagingParams $this->_getPaging(array(),array("img_"));                  if ($imgSortByAllowed != '1'$pagingParams["img_sortby"] = null;         switch ($pagingParams["img_sortby"]) {             case "category":                 $order "z.catname ASC, zf.imgdate DESC";                 break;             case "hits":                 $order "zf.imghits DESC, zf.imgdate DESC";                 break;             case "date":             default:                 $order "zf.imgdate DESC, zf.imghits DESC";                 break;         }         $queryGet "SELECT zf.imgid, zf.imgfilename, zf.imgname, zf.imgdate, zf.imghits, zf.imgdescr, zf.published,  zf.catid, zf.uid, z.catdir, z.catname";         $queryCount "SELECT COUNT(zf.imgfilename)";         $queryRest "\n FROM #__zoomfiles zf"                 "\n INNER JOIN #__zoom z ON zf.catid=z.catid"                 "\n WHERE zf.uid=".$user->id;         $queryLimit "\n ORDER  BY ".$order         "\n LIMIT ".($pagingParams["img_limitstart"]?$pagingParams["img_limitstart"]:"0").",".$imgNumberPerPage;                  $database->setQuery($queryCount.$queryRest);         $total $database->loadResult();                      if($total<1) {             if ($imgTextIfNoImg) {                 if ($tab->description != null$return .= "\t\t<div class=\"tab_Description\">".unHtmlspecialchars(getLangDefinition($tab->description))."</div>\n";                 $return .= $imgTextIfNoImg;             }             return $return;         }          if ($tab->description != null$return .= "\t\t<div class=\"tab_Description\">".unHtmlspecialchars(getLangDefinition($tab->description))."</div>\n";         $database->setQuery ($queryGet.$queryRest.$queryLimit);         $photos $database->loadObjectList();                  $database->setQuery("SELECT id FROM #__menu WHERE link = 'index.php?option=com_zoom' AND published=1");         $Itemid $database->loadResult();         if ($Itemid$itemurl "&Itemid=".$Itemid;         else $itemurl "";                 $ZoomPath =$params->get('ZoomPath') ;                  if ($imgSortByAllowed) {             $return.= "<div class=\"cbZoomSorting\" style=\"margin-bottom:10px;\">".sprintf(_UE_CLICKTOSORTBY":");             $return .= "<span style=\"margin:12px;\">".$this->_writeSortByLink($pagingParams,"img_","date",_UE_FORUMDATE,true)."</span>";             $return .= "<span style=\"margin:12px;\">".$this->_writeSortByLink($pagingParams,"img_","category",_UE_FORUMCATEGORY)."</span>";             $return .= "<span style=\"margin:12px;\">".$this->_writeSortByLink($pagingParams,"img_","hits",_UE_FORUMHITS)."</span>";             $return.= "</div>";         }                  foreach ($photos as $photo) {             $thumbphoto $photo->imgfilename;             $photoname $photo->imgname;             $photoname wordwrap($photoname8"\n"1);             $imgdir $photo->catdir;             $thumbpath "/thumbs/";                                             $return.= "<div class=\"containerBox\">";             $return.=  "<a href=\"".sefRelToAbs("index.php?option=com_zoom".$itemurl."&catid=".$photo->catid)."\"><b>".$imgTextAbovePics."</b></a><br />";             $return.= "<a href=\"".sefRelToAbs("/images/zoom/".$photo->catdir."/".$thumbphoto)."\" target=\"u_blank\">"                     ."<img src=\"/images/zoom/$photo->catdir$thumbpath$thumbphoto\" border=\"0\" alt=\"\" title=\"".htmlentities(stripslashes($photo->imgdescr))."\" />"                     ."</a>\n";                          if ($imgPhotoName == 1) {                 $return.= "<br />".htmlentities(str_replace("\n"," ",stripslashes($photoname)))."\n";             }                      $return.= "</div>";         }         $return .= "<div style=\"clear:both;\"> </div>";         if ($imgNumberPerPage $total) {             $return .= "<div style='width:95%;text-align:center;'>"             .$this->_writePaging($pagingParams"img_"$imgNumberPerPage$total)             ."</div>";         }         return $return;     } }    // end class getZoomTab. ?>



Post edited by: SRTKOTA, at: 2007/06/22 07:19

Post edited by: SRTKOTA, at: 2007/06/22 07:20
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login