RS2Gallery integration

17 years 1 month ago #34545 by peleg
RS2Gallery integration was created by peleg
Yes, I know that there were some posts about that, but I want to sum what I've read and ask some questions/suggest few ideas.

Well, as a sum of what I've read, there are people who use both systems (CB/RSG2), but most of them have difficulties with the integration.

Someone built a plugin (here: extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1359/Itemid,35/)

Well,
for my questions:
a. I have installed the plugin which was automatically published, and then I have published it in the Tab Manager, with the following parameters: "Display: tab", "Position: underall" or "Position: tabmain".
Both ways did nothing: I played with it a bit, but nothing happened... but the Simpleboard Forumplugin uses the same parameters and I CAN see it...
What can it be? Where to check?

b. A worse problem: mod_cblogin works just fine most of the time, but whenever I enter the RSG2 component, the mentioned module goes crazy: this message appears instead of the "Hi, Eddie":

<b>Notice</b>: Use of undefined constant _UE_SHOW_POFILE_OF - assumed '_UE_SHOW_POFILE_OF' in <b>/home/spanish4/public_html/modules/mod_cblogin.php</b> on line <b>415</b>

This is quite bad... for now, I can tell Joomla to hide that module while using the component: but I hope to find a better way to handle that...

This problem occurs only when one is registered and logged.

--

And for my suggestion:
Why not to open a forum to this 3rd party component? It's one of the most popular galleries for Joomla today.

I am willing to help in any technical issue concerning to that, if needed.

Thanks ahead,
Peleg.
Attachments:

Please Log in to join the conversation.

17 years 1 month ago #35173 by PureMom
Replied by PureMom on topic Re:RS2Gallery integration
Awesome!!! Thank you so much!!:kiss: :kiss: :kiss:

Please Log in to join the conversation.

17 years 3 weeks ago #35723 by peleg
Replied by peleg on topic Re:RS2Gallery integration
Non opinions about that? It really IS the future gallery for Joomla!

Anyone?
:dry:

Please Log in to join the conversation.

16 years 2 months ago #57401 by piersol
Replied by piersol on topic Re:RS2Gallery integration
The plugin for CB I am using works well. The only issue is is i lose the inherited background color and so my SITE background comes through distorting my layout.

Can anyone help me? The code is below from the php file.

<?php
/**
* Tab to display the link to the RSGallery2 edit page in Community Builder
* Author: Dave Ludwigsen (palamangelus) dave@daveludwigsen.com
*/

class getrsgallery2Tab extends cbTabHandler
{
function getrsgallery2Tab()
{
$this->cbTabHandler();
}

function getDisplayTab($tab,$user,$ui)
{
global $database, $mosConfig_live_site, $mosConfig_absolute_path, $mosConfig_lang;

//$params = $this->params;
//$eventLimit = $params->get('rsgallery2Link','');

//$query = "SELECT id FROM #__uhp WHERE user_id='".$user->id."'";
//$database->setQuery($query);
//$uhpid = $database->loadResult();

$return=$this->ShowUserGalleries($user);

return $return;
}

function ShowUserGalleries($user)
{
global $my, $database, $mosConfig_live_site, $Itemid;

$htmlText = "";

$htmlText .= "<div class=\"sectiontableheader\" style=\"text-align:left;padding-left:0px;padding-right:0px;margin:0px 0px 10px 0px;height:auto;width:100%;\">";

//if this user, show edit galleries link
if ($my->id == $user->id)
{
$htmlText.="<div align=left><a href=\"".$mosConfig_live_site."/index.php?option=com_rsgallery2&Itemid=".$Itemid."&page=my_galleries\">Edit Gallery Items</a></div><br>";
}
else
{
$htmlText.="<div align=left>Gallery Items</div><br>";
}


//Prepare query for gallery list

//$htmlText .= "<div class=\"sectiontableheader\" style=\"text-align:left;padding-left:0px;padding-right:0px;margin:0px 0px 10px 0px;height:auto;width:100%;\">";
//$htmlText .= "Galleries<br>";

$database->setQuery("SELECT * FROM #__rsgallery2_galleries WHERE published=1 AND uid=".$user->id." ORDER BY ordering ASC");
//$htmlText.="SELECT * FROM #__rsgallery2_galleries WHERE published=1 AND parent=0 AND uid=".$my->id." ORDER BY ordering ASC";
//Loop through the galleries
$galleries=$database->loadObjectList();

$i = 2;

foreach ($galleries as $gallery)
{
$i = ($i==1) ? 2 : 1;
$htmlText.= "<div class=\"sectiontableentry$i\">";
$htmlText.="<a href=\"index.php?option=com_rsgallery2&Itemid=".$Itemid."&catid=".$gallery->id."\">";

//get the first image for the gallery
//images/rsgallery/thumb/
$database->setQuery("SELECT * FROM #__rsgallery2_files WHERE gallery_id=".$gallery->id." LIMIT 1");
//$htmlText.="SELECT * FROM #__rsgallery2_files WHERE gallery_id=".$gallery->id." LIMIT 1";
$thumbnails=$database->loadObjectList();

//leave room in case we later want to expand for more thumbnails.
foreach ($thumbnails as $thumbnail)
{
if ($thumbnail->name == "")
break;
else
{
$htmlText.="<img src=\"images/rsgallery/thumb/".$thumbnail->name.".jpg\" border=0 alt=\"".$thumbnail->descr."\" valign=absmiddle> ";
break;
}
}

$htmlText.=$gallery->name;
$htmlText.="</a><br />";
}
$htmlText.="</div></div></div>";
return $htmlText;
}

}
?>

This ONLY happens with the RSG2 plugin published. Otherwise the plugin shows each members galleries nicely.

Post edited by: piersol, at: 2008/02/23 20:45

Post edited by: piersol, at: 2008/02/23 20:51
Attachments:

Please Log in to join the conversation.

16 years 2 months ago #57405 by piersol
Replied by piersol on topic Re:RS2Gallery integration
I found this non modified plugin that works great so far and does NOT distort my layout design.

Attachment cb_rsgallery2_plug-18bdd84bf4a8522a848601d00b8c5543.zip not found

Attachments:

Please Log in to join the conversation.

15 years 11 months ago #63511 by aussieskin
Replied by aussieskin on topic Re:RS2Gallery integration
It all seems to have installed correctly. Only no photos are showing, only the 'edit my galleres' link.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.236 seconds

Facebook Twitter LinkedIn