I am creating a custom theme for my site and with this I am interested in using Janrain as my log in.
I have tested my janrain set up on various theme downloadable through drupal and it works.
I started writing my own theme from the ground up. I created everything I needed for a basic site (left sidebar, right sidebar, content, footer, etc) and placed the Janrain block inside the left sidebar.
Everything shows up in my side bar fine. I can log in perfectly with the regular log in fields.
When I click one of the icons to say log in with facebook, the regular lightbox does not show up.
I inspect the fb icon element with google crome and and press the fb icon again and this is the error i receive from the source tab.
Uncaught ReferenceError:RPXNOW is not defined (repeated 14 times)
This is what that error points to:
<div class="form-actions form-wrapper" id="edit-actions"><input type="submit" id="edit-submit" name="op" value="Log in" class="form-submit" /></div><div class="item-list"><ul class="rpx-links"><li class="rpx-link first last"><a href="https://eval.rpxnow.com/openid/v2/signin?token_url=http%3A//johnr.rrc.com/rpx/token_handler%3Fdestination%3Dnode/4" class="rpxnow" onclick="return false;" onmousedown="delete RPXNOW.default_provider;">Sign in using one of these accounts:</a><br /><a href="https://eval.rpxnow.com/openid/v2/signin?token_url=http%3A//johnr.rrc.com/rpx/token_handler%3Fdestination%3Dnode/4" class="rpxnow" onclick="return false;" onmousedown="RPXNOW.default_provider = 'facebook';"><div class="rpx-icon-small rpx-facebook-small" id="rpx-facebook"></div></a><a href="https://eval.rpxnow.com/openid/v2/signin?token_url=http%3A//johnr.rrc.com/rpx/token_handler%3Fdestination%3Dnode/4" class="rpxnow" onclick="return false;" onmousedown="RPXNOW.default_provider = 'twitter';"><div class="rpx-icon-small rpx-twitter-small" id="rpx-twitter"></div></a><a href="https://eval.rpxnow.com/openid/v2/signin?token_url=http%3A//johnr.rrc.com/rpx/token_handler%3Fdestination%3Dnode/4" class="rpxnow" onclick="return false;" onmousedown="RPXNOW.default_provider = 'google';"><div class="rpx-icon-small rpx-google-small" id="rpx-google"></div></a><a href="https://eval.rpxnow.com/openid/v2/signin?token_url=http%3A//johnr.rrc.com/rpx/token_handler%3Fdestination%3Dnode/4" class="rpxnow" onclick="return false;" onmousedown="RPXNOW.default_provider = 'yahoo';"><div class="rpx-icon-small rpx-yahoo-small" id="rpx-yahoo"></div></a><a href="https://eval.rpxnow.com/openid/v2/signin?token_url=http%3A//johnr.rrc.com/rpx/token_handler%3Fdestination%3Dnode/4" class="rpxnow" onclick="return false;" onmousedown="RPXNOW.default_provider = 'aol';"><div class="rpx-icon-small rpx-aol-small" id="rpx-aol"></div></a><a href="https://eval.rpxnow.com/openid/v2/signin?token_url=http%3A//johnr.rrc.com/rpx/token_handler%3Fdestination%3Dnode/4" class="rpxnow" onclick="return false;" onmousedown="RPXNOW.default_provider = 'openid';"><div class="rpx-icon-small rpx-openid-small" id="rpx-openid"></div></a></li>
What am I missing for my custom theme that janrain needs so it works properly?
Note: As another test i did this with a completely blank theme and still the same issue.
Comments
Comment #1
jdriselvato commentedIn my html.tpl.php I had
?>
and it needed to be replaced with
print $page;print $page_bottom;?>
For more information on this fix visit my Drupal Stack post
Comment #1.0
jdriselvato commentedadded more details