Skip to Content Skip to Menu

Modal compose form

12 years 11 months ago #183542 by colinflack
Modal compose form was created by colinflack
Hi

New user with CB and UddeIM.

I'd like UddeIM compose to appear in a modal (popup / lightbox) window

It doesnt seem to be an option out of the box, and I've searched but I cant find anything that seems to work.

Have I missed something obvious, or if it doesnt exist has any body done this?

Any tips or pointers gratefully accepted.

thnx

c.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 11 months ago #183545 by slabbi
Replied by slabbi on topic Re: Modal compose form
I am sorry but this feature is not available.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

12 years 11 months ago #183561 by colinflack
Replied by colinflack on topic Re: Modal compose form
Hi

thx for reply

Ok yea I figured out afterwards it wasnt there.
So how to make it work? Well this is what I think...
I already have the makings of the modal box
And I had a look at the code, and it seems that if I do this in uddeim.php:
1) add a new $task case
Code:
case "newpopup": uddeIMnewModalMessage($userid, $item_id, $to_id, $recip, $runame, $pmessage, $config);

2) copy uddeIMnewMessage to uddeIMnewModalMessage
and strip out some stuff, mainly just comment out the top menu:
//uddeIMprintMenu($myself, 'new', $item_id, $config);
and fiddle about with css

3) then create link for my modalbox like this
Code:
$link = JRoute::_ ( "index.php?option=com_uddeim&task=newpopup&format=raw&recip=" . $row->user_id );

with those hacks I'm almost there
well it does work - it just doesnt submit via an ajax call so the whole page refreshes rather than the modal win closing and return to the existing page

So I'll have a look at the form submit.

does that make any sense - or will the uddeIM world explode around me?!

tnx

Please Log in or Create an account to join the conversation.

  • serjo
  • serjo
  • OFFLINE
  • Posts: 25
  • Thanks: 2
  • Karma: 0
12 years 6 months ago #200493 by serjo
Replied by serjo on topic Re: Modal compose form
Hi
can you please provide the full code for the uddim.php in order to have the modal popup to send messages? Or maybe even step by step instructions wher to ad your code?
much appreciated, thanks!

using:
CB v2.0.x
CBsubs v 4.1.x
Joomla 3.3+

Please Log in or Create an account to join the conversation.

12 years 6 months ago #200499 by colinflack
Replied by colinflack on topic Re: Modal compose form
Hi

yea I did get it to work OK - altho from memory it was a bit of a hack.

And I think that is pretty much step by step how I did it.
Except the form submit bit - which I cant remember(!) or get to just now. I'll see if I can dig it out and post it up here, but it might be a day or two.

Anyway it wasnt that difficult --- and it ought really to be an option in the package.

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum