I'm looking to add the join form as a popup as a link in the service menu.
Anyone up for the challenge?
I'm looking to add the join form as a popup as a link in the service menu. Anyone up for the challenge? This is my signature, there are many like it but this one is mine... |
If you will go into the functions.js file and examine how the pop-up login form is generated, you can get an idea how to do this for other forms. Geeks, making the world a better place |
Thanks GG, I've had a look into that file but got a little lost in js. This is my signature, there are many like it but this one is mine... |
Right, this is what I've done so far to get the join form to popup, although only the fog (background) wants to display:
Added this to inc/js/functions.js by copying the function showPopupLoginForm - changes in orange
function showPopupJoinForm() { var oPopupOptions = { fog: {color: '#666', opacity: .8} };
if ($('#Join_div').length) $('#Join_div').dolPopup(oPopupOptions); else { $('<div id="Join_div" style="visibility: none;"></div>').prependTo('body').load( site_url + 'join.php', { action: 'show_Join_form', relocate: String(window.location) }, function() { $(this).dolPopup(oPopupOptions); } ); } }
Also in field sys_sm_join in the table sys_menu_service, I removed the link (join.php) and added showPopupJoinForm(); return false; What am I missing? Thanks This is my signature, there are many like it but this one is mine... |
Let me explain how that function works. The page will hold a division which is hidden from view which holds the join form. That division will have a unique id associated with it. When you click on the link, the code will present that division in a pop-up. By the way, you can use the menu builders to edit the action of the link. If you look at the login link, you will see that instead of a URL, it has the script part filled in; you can just go by the login script to see calling instead of editing the database directly. Geeks, making the world a better place |
what you will need to do is to figure out where the join form block is generated and add these two divisions around the join form. By the way, this may not work for a multi-page join form; you can try and find out of course. <div class="login_ajax_wrap"> That will add the CSS for the pop-up form. Geeks, making the world a better place |
The join form is not designed to work in a popup. https://www.deanbassett.com |
If Dean has tried and fail, I suggest you don't waste your time as Dean is very well skilled in Dolphin code. Geeks, making the world a better place |
It can be done, as I hired EmmetBytes to do something similar, just not in the service menu. The join page pops up in a container within Modzzz Gigs module. He's gone AWOL so I'm trying to do this myself now. As attached Send me a PM if you want to see it in action .. This is my signature, there are many like it but this one is mine... |
It can be done, as I hired EmmetBytes to do something similar, just not in the service menu. The join page pops up in a container within Modzzz Gigs module. He's gone AWOL so I'm trying to do this myself now. As attached Send me a PM if you want to see it in action .. Then study the Gigs module to see how Modzzz did it. Geeks, making the world a better place |