login javascript void

after re-installing my Dolphin 7.1 after my admin account was deleted, I am getting things back together, however one problem...the join page works fine but the Login button when clicked says 'javascript void' and the page freezes. so people will be able to join but not login afterwards. It doesn't do this on the admin login just the front end. I presume 'javascript void' means there is no link at the end of the button so how do i fix this?

Quote · 8 Feb 2013

I think the JavaScript void is a red herring and not related.

 

Try firebug or equivalent to see what you can find out.

Quote · 8 Feb 2013

I'm not sure quite what I will be looking for

Quote · 8 Feb 2013

There might be a jquery error. Can we have your site address?

so much to do....
Quote · 8 Feb 2013

Its very new again lol so no laughing hehehe

http://shoomboom.com

Quote · 8 Feb 2013

Javascript can't reference the site_url

To start go into dolphin admins cache settings and shut off JS cache and JS compression.

Also your code for cometchat was not properly added. It's creating incorrectly closed script tags that i can see in the source. And that could also be the cause.

Restore the file you made that change to and edit again and make sure it's added properly.

https://www.deanbassett.com
Quote · 8 Feb 2013
  1. Uncaught ReferenceError: site_url is not defined gzip_loader.php:1108
    1. showPopupLoginFormgzip_loader.php:1108
    2. onclick

      Edit: Deano beat me too it!
Quote · 8 Feb 2013

The people from cometchat installed that for me because it impossible for me to install it in the new version of Dolphin everything stopped working so they had to step in and do it

Quote · 8 Feb 2013

Well then they did it wrong. It has damaged the script tags.



https://www.deanbassett.com
Quote · 8 Feb 2013

gawd :(  *shakes head* will it be the header file i need to replace?

Quote · 8 Feb 2013

Looks like they edited _header.html

This is what i see on your site.

<link type="text/css" href="/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">
<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>

    </script>


Looks like they inserted the code Before the closing script tag in this section of _header.html

    <script type="text/javascript" language="javascript">
        var site_url = '<bx_url_root />';
        var aUserInfoTimers = new Array();
        $(document).ready( function() {
            $( 'div.RSSAggrCont' ).dolRSSFeed();
        } );
    </script>

From what i can see they put the code just before the closing tag of that section and it should have been put in after the closing tag. Thats where the problem is.

https://www.deanbassett.com
Quote · 8 Feb 2013

I have no file to back it up so i think i am suck trying to fix this one. This is what it looks like, so what am i removing or moving to where?

<title>__page_header__</title>

<base href="<bx_url_root />" />

__page_description__

__page_keywords__

<meta http-equiv="Content-Style-Type" content="text/css" />

<bx_include_css />

<bx_include_js />

    __dol_images__

    __dol_lang__

    __dol_options__

    <script type="text/javascript" language="javascript">

var site_url = '<bx_url_root />';

        var aUserInfoTimers = new Array();

$(document).ready( function() {

$( 'div.RSSAggrCont' ).dolRSSFeed();

} );

 

<link type="text/css" href="/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">

<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>

 

</script>

    __extra_js__

<bx_injection:injection_head />

    <script type="text/javascript">

        var oBxUserStatus = new BxUserStatus();

        oBxUserStatus.userStatusInit('<bx_url_root />', __is_profile_page__);

    </script>

</head>

__flush_header__

<body <bx_injection:injection_body /> class="bx-def-font">

    <bx_injection:injection_header />

    <div id="notification_window" class="notifi_window"></div>

<div id="FloatDesc" style="position:absolute;display:none;z-index:100;"></div>

Quote · 8 Feb 2013

I have attached a replacement with the code moved to the proper location.

_header.html · 1.5K · 375 downloads
https://www.deanbassett.com
Quote · 8 Feb 2013

Make sure you clear the dolphin cache after you replace the file.

https://www.deanbassett.com
Quote · 8 Feb 2013

WOOT! login now works and so does the cometchat! Maybe Cometchat should be employing you lol. Thanks for all your help your awesome 

Quote · 8 Feb 2013

That was a simple mistake that anyone could have made.

When they pasted their code in they misplaced it by one line.

Just goes to show you how easy it is to break the website.

https://www.deanbassett.com
Quote · 8 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.