RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 20, 2008, 09:41:15 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  RSgallery2 modules and plugins (mambots) (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  RSGallery2 Display Plugin
Advanced search
  « previous next »
Pages 1 2
Author
Topic: RSGallery2 Display Plugin  (Read 21067 times)
Reply #15
« on: July 30, 2008, 06:15:53 pm »
inrzeszow Offline
Newbie
*
Posts: 3

View Profile WWW Email

I have same problem.
joomla version: 1.5.4
RSGALLERY: 2.00.0 (SVN 802)
Plugin version: 2.1   (enabled)

And when I tryin install SuperClean template, I get information:
"Fatal error: Call to a member function on a non-object in /home/dealer/rzeszowek/html/administrator/components/com_rsgallery2/options/templateManager/adapters/rsgtemplate.php on line 55"
Logged
 
Reply #16
« on: August 06, 2008, 05:30:36 am »
Andrew Baker Offline
Newbie
*
Posts: 1

View Profile Email

I got it working by changing these lines in plg_rsg2_display.php

function plg_rsg2_display( &$row, &$params, $page=0 ) {
   $text = null;
   if (is_object($row))
      $text = $row->text;
   else
      $text = $text;
      
   // define the regular expression for the bot
   $regex = "#{rsg2_display\:*(.*?)}#s";

   // perform the replacement
   $row->text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );

   return true;
}

Logged
 
Reply #17
« on: August 09, 2008, 11:29:48 am »
Bernd Duhnke Offline
Newbie
*
Posts: 1

View Profile Email

Sorry, but the same problem. Only text no photos   Undecided Huh

Any other ideas?
Logged
 
Reply #18
« on: August 11, 2008, 02:16:07 am »
sousei Offline
Newbie
*
Posts: 16

View Profile

Add me to the list of people who can't get the photos to show.

I'm using J1.5. Display works beautifully in Joomla1.0. Soon as I migrated to Joomla 1.5, nothing.

(BTW, I gotta say that using Joomla 1.5 only makes me appreciate Joomla 1.0.15 more....  Cry )
Logged
 
Reply #19
« on: August 12, 2008, 07:08:01 am »
SanValerius Offline
Newbie
*
Posts: 2

View Profile Email

I got it working by changing these lines in plg_rsg2_display.php

function plg_rsg2_display( &$row, &$params, $page=0 ) {
   $text = null;
   if (is_object($row))
      $text = $row->text;
   else
      $text = $text;
      
   // define the regular expression for the bot
   $regex = "#{rsg2_display\:*(.*?)}#s";

   // perform the replacement
   $row->text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );

   return true;
}

Thanks a lot, It works for me

Joomla 1.5.4
RS Gallery2 2.0.1b2

However, it isn't possible to show 2 galleries on the same Article ??
Logged
 
Reply #20
« on: August 13, 2008, 04:23:07 pm »
inrzeszow Offline
Newbie
*
Posts: 3

View Profile WWW Email

I got it working by changing these lines in plg_rsg2_display.php

function plg_rsg2_display( &$row, &$params, $page=0 ) {
   $text = null;
   if (is_object($row))
      $text = $row->text;
   else
      $text = $text;
      
   // define the regular expression for the bot
   $regex = "#{rsg2_display\:*(.*?)}#s";

   // perform the replacement
   $row->text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );

   return true;
}



When I done it I get blank page with information:

Fatal error: Cannot redeclare plg_rsg2_display_replacer_clean_data() (previously declared in /home2/dealer/main/rzeszowek/html/plugins/content/plg_rsg2_display.php:40) in /home2/dealer/main/rzeszowek/html/plugins/content/plg_rsg2_display.php on line 40
Logged
 
Reply #21
« on: August 13, 2008, 08:03:37 pm »
sousei Offline
Newbie
*
Posts: 16

View Profile

I got it working by changing these lines in plg_rsg2_display.php

function plg_rsg2_display( &$row, &$params, $page=0 ) {
   $text = null;
   if (is_object($row))
      $text = $row->text;
   else
      $text = $text;
      
   // define the regular expression for the bot
   $regex = "#{rsg2_display\:*(.*?)}#s";

   // perform the replacement
   $row->text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );

   return true;
}



What did you change the code to??
Logged
 
Reply #22
« on: August 21, 2008, 05:53:38 pm »
SanValerius Offline
Newbie
*
Posts: 2

View Profile Email

I got it working by changing these lines in plg_rsg2_display.php

function plg_rsg2_display( &$row, &$params, $page=0 ) {
   $text = null;
   if (is_object($row))
      $text = $row->text;
   else
      $text = $text;
      
   // define the regular expression for the bot
   $regex = "#{rsg2_display\:*(.*?)}#s";

   // perform the replacement
   $row->text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );

   return true;
}



What did you change the code to??

In the "plugins\content" folder, edit the plg_rsg2_display.php file.

   // ORIGINAL perform the replacement
   $text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );

Proposed by Andrew Baker:

        // perform the replacement
        $row->text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );


Then it works for me. I'm able to show 1 gallery in an article. However, if I try to show a 2nd gallery, the same message than inrzeszow appears :
  Fatal error: Cannot redeclare plg_rsg2_display_replacer_clean_data() (previously declared in /xxx/yyy.php


Logged
 
Reply #23
« on: August 30, 2008, 03:07:01 am »
jbonevia Offline
Newbie
*
Posts: 1

View Profile Email

Solved for me - took me about an hour of playing around to get it to work.

Ubuntu 8.04
PHP5
Joomla 1.5.6
RSGallery2 2.0.0 beta1
plg_rsg2_display_2.1

Here is what i had to do:

Step1: Make sure the plugin is enabled:
Extensions -> Plugin Manager -> RSGallery2 Display

Step 2: Make the **correct** changes to plg_rsg2_display.php - as per the original poster - three lines to change not just one:

#vi /usr/share/joomla/plugins/content/plg_rsg2_display.php (or wherever it is located on your site)
line 23
was:      $text &= $row->text;
now:     $text = $row->text;

line 25
was:     $text &= $text;
now:    $text = $text;

line 31
was:      $text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );
now:     $row->text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );

Save and re-start apache:
#/etc/init.d/apache2 restart

Step 3: Use the **correct** syntax for the text in an article:
As per the description shown when editing the plugin -
Usage: {rsg2_display: template, GID}

Template first then Gallery ID number.

For Gallery number 1 it is:
{rsg2_display: Semantic, 1}

NOT as reported by others in this post as:
{rsg2_display: 1, Semantic}

Logged
 
Reply #24
« on: September 14, 2008, 11:19:00 pm »
sousei Offline
Newbie
*
Posts: 16

View Profile

Thanks jbonevia!  Grin
Logged
 
Reply #25
« on: September 15, 2008, 08:03:30 am »
Teon Offline
Newbie
*
Posts: 1

View Profile

Hi there,

Here still some problems fixing the Displayplugin.
Details:

Joomla: 1.5.7
RSGallery2: 1.14.3 Alpha - SVN 649
RSGallery2 Display: 2.1
Plugin is enabled.

When I create a new content-item and just paste: {rsg2_display: Semantic, 1} in the content, it is displayed as text

When I then edit plg_rsg2_display.php it looks like:

Code:
function plg_rsg2_display( &$row, &$params, $page=0 ) {
$text = null;
if (is_object($row))
$text = $row->text;
else
$text = $text;

// define the regular expression for the bot
$regex = "#{rsg2_display\:*(.*?)}#s";

// perform the replacement
$row->text = preg_replace_callback( $regex, 'plg_rsg2_display_replacer', $text );

Unfortunately the site then doesn't work anymore and throws me the following errors:

Quote
Warning: require_once(/components/com_rsgallery2/lib/j15backport/j15backport.php) [function.require-once]: failed to open stream: No such file or directory in /home/user/domains/user/public_html/joomla/administrator/components/com_rsgallery2/init.rsgallery2.php on line 16

Fatal error: require_once() [function.require]: Failed opening required '/components/com_rsgallery2/lib/j15backport/j15backport.php' (include_path='.:/usr/local/lib/php') in /home/user/domains/user/public_html/joomla/administrator/components/com_rsgallery2/init.rsgallery2.php on line 16

Anyone an idea?


Logged
 
Reply #26
« on: October 03, 2008, 04:37:22 am »
Antti Offline
Dev Team
Newbie
*
Posts: 25

View Profile Email

jbonevia's suggestion worked for me also.
Joomla 1.5.7
RSGallery2 2.0.0 beta1
plg_rsg2_display_2.1

Hopefully this fix can be included to next version..?
Logged

RSGallery2: 1.5Native - Dev
 
Reply #27
« on: October 03, 2008, 10:27:04 am »
jaytier Offline
Newbie
*
Posts: 1

View Profile

The fix worked for me too, but only the first page of my thumbnails show.  When I click on the next page, it is blank.  Is anyone else having this problem?  Thanks
Logged
 
Print  Pages 1 2
« previous next »
Jump to: