RSGallery2 Forum Portal

RSGallery2 support forums => RSGallery2 modules and plugins => Topic started by: bashanam on October 13, 2006, 07:04:41 PM

Title: insert catagory pictures by plugin into content
Post by: bashanam on October 13, 2006, 07:04:41 PM
{rscat random catid=# link max=# cols=#}

number of images will be alway $pagesize (from component)

example
{rscat random}
random images from all the gallery images

{rscat random link}
random images from all the gallery images with link to the original gallery on each image !!!

{rscat catid=# }
images from catid. # stand for catagory number in the gallery.

{rscat catid=# link}
images from catid. # stand for catagory number in the gallery with link to the original gallery.

{rscat catid=# random}
random images from catid. # stand for catagory number in the gallery (not the first images)

{rscat catid=# random link}
random images from catid. # stand for catagory number in the gallery (not the first images) with link to the original gallery.

new version 1.0
Bugs Fixed !


don't forget the READ the readme file

Amit Bashan

[attachment no longer available]
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on October 22, 2006, 09:20:40 AM
i've tried it and it works ok, only problem is the, thumbnails don't link to the pictures in the gallery

maybe you could also write a plugin for just one picture like: {rspic catid=# limitstart=#}
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 23, 2006, 09:10:42 AM
i use lightbox as a popup.
i dont need a link, only link to the catagory itself.
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on October 23, 2006, 11:25:21 AM
maybe you don't but other people might like it, it would be great if you could modify it, if you don't want to, you are free to choose so, let me know, I might be able to figure out how you got it to work
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 23, 2006, 10:08:30 PM
i will try to put a choise so everybody could do what is better for his site ...
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on October 23, 2006, 10:27:45 PM
great, thanks
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 24, 2006, 12:09:21 AM
As wise man one time said ...
your wish is my command ...
DONE.
plz download the new file....
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on October 24, 2006, 03:20:18 PM
the links to the pictures in the gallery are not correct, they respond now to limitstart +1 but this should be limitstart -1 (haven't tried it) but otherwise, very good progress keep it up  ;D
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 24, 2006, 07:41:28 PM
working fine on my site... but i will check on other one as well ....
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on October 24, 2006, 07:55:13 PM
i uploaded those pictures a long time ago, i'll check with new upload lateron
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 24, 2006, 08:02:03 PM
i found a little bug but i dont think it should do what your said.
try the new file before you check you files ... i might be worng ...


[attachment no longer available]
Title: Re: insert catagory pictures by plugin into content
Post by: Michele on October 24, 2006, 09:37:53 PM
I installed the 0.6 release, but I have some problem... if my understanding is correct.

1) It seems to me that the number of thumbnails that rscat will show is exactly what is defined for RsGallery for the thumbnails of a specific gallery...
This is not worthful...
I think that showing only one image it is more flexible. If you need more than one, simply code twise or more the rscat command...

2) I'm not able to see the thumbnails correctly. Only a little square become visible. Clicking on that the actual image become visible...

This is my testing site:
maya.ilbello.com

Cheers,
Michele
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 24, 2006, 11:00:51 PM
the mambot isn't to display 1 image.
did you chage the directories of rsgallery ?
if not, maybe it's because you dont have lightbox in your site
add the word link after the catid and then test it .....
i have made examples so it will be easy to understand....
Title: Re: insert catagory pictures by plugin into content
Post by: Michele on October 25, 2006, 06:55:06 AM
Quote
did you chage the directories of rsgallery ?

Yes I changed the RsGallery default folder.

I moved it from images/ to images/stories

Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 25, 2006, 11:08:19 AM
that what cause the problem !
in line 42 in rscat.php change the path your what
Title: Re: insert catagory pictures by plugin into content
Post by: Michele on October 25, 2006, 06:43:52 PM
Now it works, but I still have some problem:

Cheers,
Michele
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 25, 2006, 08:02:21 PM
i will do some changes tonight and u will have a option to define the amount of images
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 25, 2006, 11:01:13 PM
Now it works, but I still have some problem:
  • the command non specifying the selected category, doesn't work
  • the number of displayed images is the as per RsGallery settings (in my site this is two now). But I would like to make this different from that of RsGallery... is it possible?

Cheers,
Michele

Done, download the new file
Title: Re: insert catagory pictures by plugin into content
Post by: Michele on October 25, 2006, 11:20:41 PM
I installed the 0.7 release, but I don't find how to define the images number.

Thanks,
Michele
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 26, 2006, 12:59:46 AM
max=number
{rscat random link max=9 cols=3}
Title: Re: insert catagory pictures by plugin into content
Post by: Michele on October 26, 2006, 07:03:23 AM
Now it works, but I still have some problem:
  • the command non specifying the selected category, doesn't work
  • the number of displayed images is the as per RsGallery settings (in my site this is two now). But I would like to make this different from that of RsGallery... is it possible?

Cheers,
Michele

With the 0.7 release the second point it's solved: great!
But for the first one I still have problem.

Using the command
rscat catid=1 random max=3 cols=3
I've no problem

But using the command
rscat random max=3 cols=3
I've the following answer: "No category was given in plugin!"

Is it correct?

Cheers,
Michele


command [rscat catid=1 random link max=3 cols=3]
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 26, 2006, 09:33:06 AM
let me check, i will back with an answer ...
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 26, 2006, 12:18:31 PM
done, download the new ver
Title: Re: insert catagory pictures by plugin into content
Post by: Michele on October 27, 2006, 02:55:03 PM
It seems not to run properly...

Look at http://maya.ilbello.com/
In the middle you find at the left the command description and at the right the command that seems to be not processed by rscat.

Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on October 27, 2006, 07:18:52 PM
check - all seems 2 be ok ( i am running 2 sites with rsgallery)
Title: Re: insert catagory pictures by plugin into content
Post by: Michele on October 27, 2006, 09:11:06 PM
You're write... it works very well...

Anyway, if you don't mind, I have unother request for you, in order to make your pluging more powerful.

The point is that the thumbnails are not uniform... sometimes they have square shape, in other cases the shape is proportional to the original photo...

So the points are two:

So you can put in some of your pages some three or for photos... randomly taken from the gallery but sized accordingly to the graphic request of the page. Clicking on each of them you have visualize the original image.

If my request seem to you unuseful... let it go...

Many thanks for this plugin.

Michele
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on October 27, 2006, 11:38:21 PM
michelle, the thumbnails are created by the upload script, if you selected them to be squared, squared images are created, this means that no other form can be used, unless you recreate thumbnails from the original or display picture, last time I checked, mambots cannot do that  ;), so sorry about that

it could be that there is some script that creates squared thumbnails on the fly rather then using the thumbnails from the thumb directory
Title: Re: insert catagory pictures by plugin into content
Post by: belldandy on November 24, 2006, 03:59:07 PM

plz download the new file....


Hi all!

Where can I download the plugin? This would be exactly what I'm looking for...
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on November 26, 2006, 01:46:07 PM
the first post....
Title: Re: insert catagory pictures by plugin into content
Post by: Ryan on November 26, 2006, 07:20:41 PM
This plugin is perfect for what I need it for. However it seems to mess up my template when used. Any thoughts on why?

Heres the page in question, and what it is doing.

http://speedfreakinc.com/v1/index.php?option=com_content&task=view&id=16&Itemid=46
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on November 26, 2006, 11:10:34 PM
i visited your site.
i think that your template is the problem.
i are the only one that reported me about this problem.
Title: Re: insert catagory pictures by plugin into content
Post by: Ryan on November 27, 2006, 12:32:36 AM
its possible that the template is the issue. I haven't had any trouble with any other plugins or anything though.

I hadn't seen anybody else run into a similar problem after looking around this forum
Title: Re: insert catagory pictures by plugin into content
Post by: Guillaume on November 28, 2006, 11:06:44 PM
Hello,

I must say first, this plugin is great, really what I need. But I have a problem, in a content a put the code {rscat catid=1}, it works perfectly I see a thumbmail and click on the link to go to the gallery page.

But the problem is that, at the top of the page I have those error messages
Notice: Undefined variable: module in C:\Workbench\joomla_test_site\Joomla\mambots\content\RScat.php on line 40
Notice: Undefined variable: outputhtml in C:\Workbench\joomla_test_site\Joomla\mambots\content\RScat.php on line 97

And I don't know what to do to solve this problem, if you can help me.

I tried with the 0.7 and 0.8 version and both display those messages.

Thanks a lot for your help.
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on November 29, 2006, 11:37:18 AM
did you change the rsgallery directory ?
Title: Re: insert catagory pictures by plugin into content
Post by: Guillaume on November 29, 2006, 04:48:32 PM
No I let the default directories for the images "/images/rsgallery/" and th rsgallery component has been install by joomla and I didn't change its location.

Plus I see the thumbmails, but I got those two notice messages at the top of my page.
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on November 30, 2006, 04:14:18 PM
try to add this line before line 97
Code: [Select]
$outputhtml =  "";tell me what happened ....
Title: Re: insert catagory pictures by plugin into content
Post by: Guillaume on November 30, 2006, 05:04:05 PM
Cool it works for that bug, but I still have the one on line 40
Notice: Undefined variable: module in C:\Workbench\joomla_test_site\Joomla\mambots\content\RScat.php on line 40

If you a solution for that one too that will be great.

Thanks.
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on December 01, 2006, 06:50:37 PM
try add
Code: [Select]
$params to line 34
Code: [Select]
global $params,$mainframe,$database,$mosConfig_absolute_path,$mosConfig_live_site,$mosConfig_dbprefix;
Title: Re: insert catagory pictures by plugin into content
Post by: Guillaume on December 01, 2006, 09:30:22 PM
No it doesn't work, I still get the same notice error its same that the problem comes from the variable $module as it says on the error but I don't more.

If you have another idea for that it will be great.

Thanks.
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on December 02, 2006, 09:58:13 AM
try to put
Code: [Select]
$module in line 34 after global
Title: Re: insert catagory pictures by plugin into content
Post by: Guillaume on December 04, 2006, 04:50:30 PM
it works, thanks a lot for your help.
Title: Re: insert catagory pictures by plugin into content
Post by: Stefan Willoughby on February 10, 2007, 04:45:31 AM
I'm using bot_rscat1 and I'm getting this error on page load...

Fatal error: Call to undefined function: loadconfig() in /var/www/html/mambots/content/RScat.php on line 20

Any idea how to fix it?
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on February 14, 2007, 06:34:00 PM
which version of rsgallery2 are you using, which php version and joomla version are you using?

does it help to upgrade your rsgallery2 component to the latest nightly build?
Title: Re: insert catagory pictures by plugin into content
Post by: tmalyska on February 15, 2007, 11:29:28 AM
Hello
I have this same problem
I using rs Gallery 1.12.1 Alpha SVN 541
PHP 4
Title: Re: insert catagory pictures by plugin into content
Post by: Stefan Willoughby on February 17, 2007, 01:36:05 AM
which version of rsgallery2 are you using, which php version and joomla version are you using?

does it help to upgrade your rsgallery2 component to the latest nightly build?

I'm using
RSGallery2: 1.12.2
PHP Version: 4.3.9
Joomla: 1.0.12 Stable [ Sunfire ]

Latest nightly build doesn't help.
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on February 17, 2007, 06:12:01 PM
PHP 4

4.x.x?
please be more specific about the number, it is crucial for this bug I also have encountered
Title: Re: insert catagory pictures by plugin into content
Post by: Stefan Willoughby on February 19, 2007, 01:42:45 PM
Just tried RSGallery2 1.12.2 Alpha - SVN: 598 and still got the same error
Fatal error: Call to undefined function: loadconfig() in /var/www/html/mambots/content/RScat.php on line 20

Any idea why this is happening? it obviously isn't happening to everyone.

Any help would be greatly appreciated
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on February 20, 2007, 09:03:18 AM
please state your php version
Title: Re: insert catagory pictures by plugin into content
Post by: tmalyska on February 20, 2007, 10:15:18 AM
Joomla! 1.0.11 Stable
MySQL::       4.1.21-standard-log
PHP::       4.4.4
Serwer WWW::       Apache
Title: Re: insert catagory pictures by plugin into content
Post by: Zach on March 23, 2007, 08:05:39 PM
After installing the plugin, I get Fatal error: Call to undefined method rsgConfig::loadConfig() in /home/tgmzone3/public_html/mambots/content/RScat.php on line 20
 
PHP Version:  5.2.0 
Joomla! Version:  Joomla! 1.0.12 Stable
RSGallery2 1.12.2 Alpha

Never moved any folders or files.

Thanks
Title: Re: insert catagory pictures by plugin into content
Post by: sawa on March 24, 2007, 07:37:33 PM
Will this mambot work for the latest RSGallery2 (1.12.2 Alpha) sometime? If yes, when? or is there a fix? or its there another mambot?
Title: Re: insert catagory pictures by plugin into content
Post by: boerio on March 30, 2007, 06:33:58 AM
I too am having this problem.

PHP: 4.4.4
Database version: 4.1.21-standard
Web Server: Apache
Joomla! Version: 1.0.11 Stable [Sunbow]

Would love to hear a solution!

If I can help troubleshoot, let me know.
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on March 30, 2007, 06:53:14 AM
Will this mambot work for the latest RSGallery2 (1.12.2 Alpha) sometime? If yes, when? or is there a fix? or its there another mambot?
Not at the moment, don't know when, not at the moment, there is no other mambot as far as I know
Title: Re: insert catagory pictures by plugin into content
Post by: boerio on March 30, 2007, 09:31:42 AM
Well, I just tried it with an older rsgallery2 build ... 1.11.11, and it didn't work for that one, either.
Title: Re: insert catagory pictures by plugin into content
Post by: boerio on March 31, 2007, 07:28:01 PM
I sent email to the developer, and he responded saying he hoped to fix the problem next week.  I hope so 'cause it sounds like just the plugin I need!  :)
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on April 05, 2007, 01:11:51 AM
hi.
i will try 2 fix the mambot soon.
sorry but i had exams and then i got married and then some spain with my new wife(i didn't have "old wife" .. :D)
and now when i back at home with 932570932457 e-mail i have to catch up with work and then i hope the fix the mambot before the exams will show up at my door again ???.
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on April 05, 2007, 07:33:25 AM
good to have you back, congrats on your marriage
Title: Re: insert catagory pictures by plugin into content
Post by: jelle on June 27, 2007, 11:23:12 AM
After installing the plugin, I get Fatal error: Call to undefined method rsgConfig::loadConfig() in /home/tgmzone3/public_html/mambots/content/RScat.php on line 20
 
PHP Version:  5.2.0 
Joomla! Version:  Joomla! 1.0.12 Stable
RSGallery2 1.12.2 Alpha

Never moved any folders or files.

Thanks

Is there any news, I would realy like this to work.. but encounter this same error...

Joomla 1.0.12 stable
PHP 5.2.1
Simple image gallery 1.12.2
Title: Re: insert catagory pictures by plugin into content
Post by: Jeremy Stratton on July 04, 2007, 05:28:29 PM
I just installed RSGallery2, this week.  I'm getting the same "...error in lline 20" problem that many here have reported.

Of course I'm also wondering if a fix is on the way for the mambot, but also if I need anything else.  So far I only installed RSG2 and the Mod to display thumbs on my frontpage. Electric Panda (http://www.electricpanda.newgengamers.com)
Thanks.
-Jeremy
Title: Re: insert catagory pictures by plugin into content
Post by: Daniel Tulp on July 04, 2007, 06:04:38 PM
there is a plugin in the making
Title: Re: insert catagory pictures by plugin into content
Post by: Jeremy Stratton on July 05, 2007, 10:51:27 PM
Many Thanks ;D
Title: Re: insert catagory pictures by plugin into content
Post by: Jonah on July 11, 2007, 07:16:43 AM
Two plugins are working right now with the latest nightly.  They will be released with RSGallery2 1.14.0.

plg_rsg2_singledisplay - This inserts any image into any content item.
plg_rsg2_display - This displays an entire gallery using whatever template you want in any content item.

Please be patient, we are working very hard on 1.14.0 and it will be very nice when it comes out.
Title: Re: insert catagory pictures by plugin into content
Post by: Max on July 16, 2007, 12:47:33 PM
Hi all, i had to modify the bot_rscat1.zip to fix the loadconfig() error. I simply commented out a pair of lines.
I fixed a little layout bug too.

In attached the new file with my patch :D


[attachment no longer available]
Title: Re: insert catagory pictures by plugin into content
Post by: bashanam on July 31, 2007, 12:54:11 PM
thank you for fixing my work!. i didnt have the time to fix it my self (i'm working student - i have a production compeny).
after the templates will work as aspected i will try to work with them.

thank you again,
amit bashan



Title: Re: insert catagory pictures by plugin into content
Post by: Richard on October 24, 2008, 06:02:10 PM
as soon as i install this mambot my site disappears completely! I need to get a slideshow of gallery images on my site but this did not do the trick so far. Help is wanted because this is what I need.

Regards

Richard