neobug103 Posted December 10, 2009 Share Posted December 10, 2009 I'm trying to find out how to make the invoice links open in a popup window instead of a new window. (I think it would look cool) I know I've done it before but I lost that code and I'm trying to recreate a popup but i haven't been successful yet. I've tried various javascript popup methods all with no success. If somebody has or can accomplish I would very much appreciate some help on how to do this. 0 Quote Link to comment Share on other sites More sharing options...
tomdchi Posted December 10, 2009 Share Posted December 10, 2009 Have you checked into using some of the jquery plugins for this. It shouldn't be to hard to do. Check here http://leandrovieira.com/projects/jquery/lightbox/ 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted December 10, 2009 Author Share Posted December 10, 2009 As far as I know, jquery is for displaying images, not popup windows? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 10, 2009 Share Posted December 10, 2009 It will do popups as well... I have it working on my site 0 Quote Link to comment Share on other sites More sharing options...
tomdchi Posted December 10, 2009 Share Posted December 10, 2009 As far as I know, jquery is for displaying images, not popup windows? jquery can be used for a whole host of things. For example in whmcs all of the tabs that slide are using jquery tabs. That link I posted to lightbox is pulling the images from a anchor link. I would think that the link could be to a invoice instead of an image. 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted December 10, 2009 Author Share Posted December 10, 2009 sparky, may I ask what code you are using to create your popups? I can't seem to get it working 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 10, 2009 Share Posted December 10, 2009 This is part of it $("#invoicedue").dialog(); It will be part of a new enhanced clientareahome 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted December 10, 2009 Author Share Posted December 10, 2009 just trying to find out what the code is that would make the link popup in a popup window? Not sure what code you provided 0 Quote Link to comment Share on other sites More sharing options...
wsani Posted January 19, 2010 Share Posted January 19, 2010 This might be of use to you: http://willsani.com/2010/01/18/whmcs-client-email-log-link-modification/ 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted January 19, 2010 Share Posted January 19, 2010 (edited) This might be of use to you: http://willsani.com/2010/01/18/whmcs-client-email-log-link-modification/ Thanks for the hint, it works (and looks) great. Why isn't this integrated by default yet? Edited January 19, 2010 by m00 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted January 19, 2010 Author Share Posted January 19, 2010 Thanks for that, seems great. There is a potential issue here though. If you click the view invoice for an unpaid invoice and your credit card either declined or whatnot, it will take you to the credit card details page for the client to enter the credit card info in there. Same thing for paypal when you pay an invoice, it would have to take you to paypal for that. I think there is also a process that might try and open another window, not sure how that would be handled. I'll integrate this and perform extensive testing to make sure that all outgoing links and functions arising from the invoice page still function with this extension 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted January 19, 2010 Author Share Posted January 19, 2010 I've tested this with paypal and it works great. However there seems to be an issue with credit cards. If you view an unpaid invoice and click the 'pay now' button nothing will happen. Something will happen but you have to close the window, re-open it and press the 'pay now' button again. Oddly enough it only works if you press the 'pay now' button two times before it redirects you to the credit card details page. 0 Quote Link to comment Share on other sites More sharing options...
wsani Posted January 19, 2010 Share Posted January 19, 2010 Thanks for the hint, it works (and looks) great.Why isn't this integrated by default yet? Nice look! I wondered that myself actually I'm sure Matt will include it in the coming versions, then again that's why we have Smarty templates. I've tested this with paypal and it works great. However there seems to be an issue with credit cards. If you view an unpaid invoice and click the 'pay now' button nothing will happen. Something will happen but you have to close the window, re-open it and press the 'pay now' button again. Oddly enough it only works if you press the 'pay now' button two times before it redirects you to the credit card details page. Hm, I personally haven't gotten that far yet. I've been fiddling with the templates a lot, so I'll add this to the to-do list. Thanks for pointing it out though. 0 Quote Link to comment Share on other sites More sharing options...
ChrisGooding Posted January 20, 2010 Share Posted January 20, 2010 Hi guys... Just a pointer, as I am a fan of the overlay feel. To be able to get some even better looks and feels, head over to http://flowplayer.org/tools/index.html The overlay system there is fabulous. Far lighter than lytebox, and you can do sooooo much more with it Our new template has some very interesting features thanks to this. Once I have it finished I will put some up 0 Quote Link to comment Share on other sites More sharing options...
msaunders Posted April 1, 2010 Share Posted April 1, 2010 Our new template has some very interesting features thanks to this. Once I have it finished I will put some up Did anyone get this working correctly ? 0 Quote Link to comment Share on other sites More sharing options...
Stream101 Posted April 13, 2010 Share Posted April 13, 2010 I would love to see some of these mods in action 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted April 13, 2010 Share Posted April 13, 2010 That's going to be a bit difficult since most are client area mods. 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted April 13, 2010 Share Posted April 13, 2010 Thanks for the hint, it works (and looks) great.Why isn't this integrated by default yet? I tried to get it working under the admin area also but ran into a problem. It starts to open but then I get a new admin window which closes right away. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.