![]() |
Code Help
Tried to make a forum block that signs you up for a usergroup. I have the template set to join the group and the join part works but for some reason it will not redirect to the Usergroup Roster Page i have created for that group. Any help will be appreciated. If need be I can post the code for the template too just to make sure I didnt screw anything in there up.
Code:
<a href="/roster.php?roster=EBAFreeAgent" onclick="document.getElementById('EBA').submit();return false;"> |
So when they click on the link, it should submit a form somewhere...?
It's not clear what you exactly want. Might also want to remove "return false;" in the onclick. |
Quote:
Code:
<vb:if condition="$GLOBALS[forumid] == 50"><li> |
So does anyone see what I did wrong? I am sure I screwed something up. Just looking for a little help. Basically to break it down again. This forum block is displayed in Sidebar Anywhere on a specific forum. Once the individual clicks on the image they are assigned to UG 197 and should be redirected to a Memberlist page with just that UGs members shown that I have already created. The only part of the process that is not working is the redirect. Removing the return false; from the top code stops the UG Join. If anyone can aide me in figuring out what I did wrong please let me know, because this is driving me bonkers.
|
In your template code for the link ... shouldn't there be a . in front of /roster.php?
|
Or no leading slash.
|
Quote:
Quote:
|
Provide a link to the forum where the forum block is and a link to the roster page.
|
http://www.eliteteamplay.com/forumdi...ll-Association
the forum block is to the right. http://www.eliteteamplay.com/roster....r=EBAFreeAgent That is the roster page. |
The problem is that the hyperlink has an onclick which submits the form, you can't submit a form and go to a link at the same time. The form has to actually be submitted in order for the form to be processed.
You have to hook into profile_complete and redirect the user to that page when they are sending a request to join a group. |
All times are GMT. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|