Author Topic: Clone of Gallery plugin  (Read 7330 times)

0 Members and 1 Guest are viewing this topic.

Offline Hendrik

Clone of Gallery plugin
« on: 25. May 2007, 10:27:08 »
Hello,

we made a clone of the gallery-plugin (named it "features-plugin") and installed it parallel to the gallery-plugin. Both show the images well.

BUT: everything we are changing in the gallery-plugin configuration is also changed in the features-plugin. When we change something in the features-plugin configuration, nothing is saved.

That means, that there is a "contact" between gallery- and features-plugin and we don´t know what we have to change, that BOTH plugins are completely independent of each other.

Is here someone, who knows about this problem and can show us the solution?

Thanks in advance

Hendrik
« Last Edit: 25. May 2007, 11:27:24 by Hendrik »
Carpe Diem
Country: Germany Germany |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile human[werk]

Offline Trinity

  • Sobi Team
  • Development
  • Sobi Hero
  • *
  • Posts: 8943
  • Reviews:

    What is it?

    • Sobi Team Member
Re: Clone of Gallery plugin
« Reply #1 on: 27. May 2007, 17:21:33 »
Hi Hendrik,

I assume, that you want to install the gallery clone in the original SOBI. The normal cloning procedure creates only a gallery clone for a SOBI2 clone.
If you want to have a second instance of a gallery in the original SOBI2 you have to do some more and some other changes. Check the XML file and you will see.

E.g. this line: <query>INSERT IGNORE INTO `#__sobi2b_config` VALUES ('countInListing', '1', 'sobi_gallery_b', NULL);</query>

It inserts the config key "countInListing" into the config table of a SOBI2 clone "#__sobi2b_config"

If you change the line to <query>INSERT IGNORE INTO `#__sobi2_config` VALUES ('countInListing', '1', 'sobi_gallery_b', NULL);</query>
to use the original SOBI2 tables the key "countInListing" would be used for the original gallery and the cloned gallery. So you have to change the key name to "countInListing_b". But you have to do that not only in the XML file but also in the code where the key is used.

Trinity
Support SobiPro - Submit a review on JED
If you want ongoing development for SobiPro and new applications being developed we need your review for SobiPro in the Joomla Extensions Directory.
Thank you very much :w00t:
Country: Germany Germany |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Sigsiu.NET

Offline am123

Re: Clone of Gallery plugin
« Reply #2 on: 24. November 2007, 23:24:52 »
Can You publish that gallery plugin clone on forum ?
Country: Poland Poland |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Trinity

  • Sobi Team
  • Development
  • Sobi Hero
  • *
  • Posts: 8943
  • Reviews:

    What is it?

    • Sobi Team Member
Support SobiPro - Submit a review on JED
If you want ongoing development for SobiPro and new applications being developed we need your review for SobiPro in the Joomla Extensions Directory.
Thank you very much :w00t:
Country: Germany Germany |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Sigsiu.NET

Offline am123

Re: Clone of Gallery plugin
« Reply #4 on: 25. November 2007, 09:55:07 »
But thats post is for "global" clone: Sobi and plugin, not for clone gallery for oryginal sobi, and that is whot i need.
Gallery, Gallery2, Gallery3 with self tag in template to one sobi2 installation.

Or meybe change <?php echo $plugins["gallery"]; ?> to show like this:

<?php echo $plugins["gallery1-5"]; ?>    for 1-5 images from gallery
<?php echo $plugins["gallery6-10"]; ?>   for 6-10 images from gallery
<?php echo $plugins["gallery11-15"]; ?> for 11-15 images from gallery

From one gallery, couse i need show on left side details view 5 icons vertical, on right 5 icons vaertical, 5 icons on bottom position horizontal.
« Last Edit: 25. November 2007, 14:20:44 by am123 »
Country: Poland Poland |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline maz

Re: 2nd Instance of Gallery plugin on a cloe - almost working
« Reply #5 on: 05. August 2009, 13:00:39 »
Hi
 has anything changed since the last posts? I am trying to get a second instance of gallery in a sobi2 clone. It works well BUt I am having the same problem as the first post mentioned here. ie changing features in the config doesn't update properly.
« Last Edit: 05. August 2009, 19:09:53 by maz »
Country: United Kingdom United Kingdom |  OS: Windows XP Windows XP |  Browser: MS Internet Explorer 7.0 MS Internet Explorer 7.0 | View Profile

Offline subzero

Re: Clone of Gallery plugin
« Reply #6 on: 04. February 2010, 18:55:03 »
Hello,
      i am also trying for a second instance of gallery in the main sobi2 component (not a clone). Are there any instructions on how to do that?
Country: Greece Greece |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.7 Firefox 3.5.7 | View Profile

Offline Greg Hunt

  • Quality & Testing
  • Sobi Hero
  • *
  • Posts: 1069
  • Reviews:

    What is it?

Re: Clone of Gallery plugin
« Reply #7 on: 10. July 2010, 20:24:55 »
Issues come up when you launch the two in different IFrames and Multiple instances of JavaScripts running.

Greg
Country: Canada Canada |  OS: Windows 7/Server 2008 R2 Windows 7/Server 2008 R2 |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile

Offline BC

Re: Clone of Gallery plugin
« Reply #8 on: 11. July 2010, 23:21:19 »
Quote
Issues come up when you launch the two in different IFrames and Multiple instances of JavaScripts running.

Greg
Confirmed. Worse yet, the install queries conflict. Removed prior posting with install file.
I can see how to deal with this issue but it's a lot of work.
« Last Edit: 11. July 2010, 23:58:14 by BC »
“We are what we repeatedly do. Excellence, then, is not an act, but a habit.” Aristotle

"Once you go MAC, you never go back" Bill Gates
www.spaclique.com
Country: United States United States |  OS: Mac OS X 10.4 Mac OS X 10.4 |  Browser: Firefox 3.6.6 Firefox 3.6.6 | View Profile SpaClique

Offline Greg Hunt

  • Quality & Testing
  • Sobi Hero
  • *
  • Posts: 1069
  • Reviews:

    What is it?

Re: Clone of Gallery plugin
« Reply #9 on: 12. July 2010, 03:08:54 »
I spent 2 weeks re-writing the sucker,
- Setup all of the scripting to use the Joomla API
- Each Instance runs in a Tab
- You can have multiple Galleries all with different settings

Plan is to expand it further, but the project is further down the list.

Greg
Country: Canada Canada |  OS: Windows 7/Server 2008 R2 Windows 7/Server 2008 R2 |  Browser: Firefox 3.6.6 Firefox 3.6.6 | View Profile

Tags: