Please login or register.
Login with username, password and session length
May 21, 2013, 07:33:26 AM
News: We're back! And here to stay!
collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

Fatal error: by mailtobala04
[May 17, 2013, 04:36:20 PM]


Backend Items (Images) don't work by bauchinj
[May 15, 2013, 04:18:55 PM]


Permissions issue: a user can upload images in other user galleries by guidocx84
[May 11, 2013, 05:17:44 PM]


Payment after loggin by mirjam
[May 11, 2013, 03:02:56 PM]


image titles without dashes by mirjam
[May 11, 2013, 02:57:48 PM]


Batch Upload Fails by mirjam
[May 11, 2013, 02:52:08 PM]


Slow Gallery with many Photos by mirjam
[May 11, 2013, 02:49:36 PM]


500 error Rackspace by mirjam
[May 11, 2013, 02:23:09 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: Integration with kunena  (Read 1353 times)

Offline loke

  • Newbie
  • *
  • Posts: 3

Integration with kunena
« on: November 18, 2010, 07:52:59 AM »
Hello,

I'm using a modified RSG2 gallery and kunena 1.6 and would like to make a new button in my kunena  template to allow users to add photo from their galleries into their message. Anyone could advice on how to make this? the best method?
A popup window with a list and thumb? another way? I'm not a dev so any help on how to make this would be really appreciated.

Thanks in advance and thanks for the RSG2 component.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Integration with kunena
« Reply #1 on: November 19, 2010, 02:47:23 PM »
Hi Ioke, I don't have a ready-to-go answer, but... there is a plugin that inserts a single image from RSGallery2 in a content item. This plugin has just been updated by Radek to work in Joomla 1.5.x: http://www.rsgallery2.nl/rsgallery2_modules_and_plugins/plgrsg2singledisplay_j15_highslide_and_formating_paramater_16662.0.html

That might be a start, the plugin doesn't seem to work when used in a Kunena forum message directly (pasting the part {rsg2_singledisplay:6,thumb,true,left} in a forum message) where it does work in a regular Joomla article. You could find out wether or not it is possible to use such a content plugin in your Kunena forum?

Another approach could be:
In Kunena posts it is possible to insert an image with BBCode, by using a weblink to the image e.g. www.mysite.com/images/rsgallery/original/test_600x600.jpg. So you might use that and figure out how to create an extra Kunena button that does what you want it to do. Then you figure out how to supply the user with info when that button is clicked.
The image link to any RSGallery2 image needs the main location of the website, e.g. http://www.mysite.com, the path to the images images/rsgallery/ and the type of image, e.g. original, or display, or thumb, and the filename. Combined it gives the complete path. You will have to show your user a list of available images, or perhaps galleries and their images, and based on the users selection get the correct filename from the database. If you are able to create a list of images, then you are also able to get the correct filename... and you can create the path.
 
I'd love to hear if you get it to work, or any part of it.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline loke

  • Newbie
  • *
  • Posts: 3

Re: Integration with kunena
« Reply #2 on: November 19, 2010, 03:04:01 PM »
Thank you for the answer Mirjam.

I checked the module but I don't think it's a good way to go.
I'm doing it the BBcode way at the moment.
Hacking the template to add a table with the available photo from the connected user is done.
Now I need to figure out how to add the bbcode in the message when a button is pressed.

Should be able to finish it quite rapidly I hope!
Pages: [1]   Go Up
 

anything