Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zhono

Pages: 1 [2] 3 4
16
I deleted your account so you can test again. I have been trying it repeatedly, and no matter what I do, when I fill in the password on the registration page, it will say "You are now registered. Please log in." but then it won't refresh. If I refresh it myself, I am not logged into the site, and there is no way to login except to click the Facebook logout, and then click again to login. If it works for you this time, but still not for me, then I really don't know what the problem could be.

17
I have activation disabled, so it's instant.

I fixed my redirect problems.

I changed:

Code: [Select]
<div id="fb-root"></div>
    <script>
  window.fbAsyncInit = function() {      
        FB.init({
          appId: '{fb_appid}',
          cookie: true,
          xfbml: true
        });
        FB.Event.subscribe('auth.logout', function(response) {
          window.location = '{fb_logout_url}';
        });
      };
      (function() {
        var e = document.createElement('script'); e.async = true;
        e.src = document.location.protocol +
          '//connect.facebook.net/{fb_language}/all.js';
        document.getElementById('fb-root').appendChild(e);
      }());
</script>

To:

Code: [Select]
<div id="fb-root"></div>
    <script>
  window.fbAsyncInit = function() {      
        FB.init({
          appId: '{fb_appid}',
          cookie: true,
          xfbml: true
        });
        FB.Event.subscribe('auth.logout', function(response) {
          window.location = '{fb_logout_url}';
        });
        FB.Event.subscribe('auth.login', function(response) {
          window.location = '{fb_login_url_z}';
        });
      };
      (function() {
        var e = document.createElement('script'); e.async = true;
        e.src = document.location.protocol +
          '//connect.facebook.net/{fb_language}/all.js';
        document.getElementById('fb-root').appendChild(e);
      }());
</script>

And changed in page_header.php:

Code: [Select]
$site_template->register_vars(array(
   "fb_appid" => $config['fb_appid'],
   "fb_language" => isset($lang['fb_language']) ? $lang['fb_language'] : $config['fb_language'],
   "fb_hide1" => $fb['hide1'],
   "fb_hide2" => $fb['hide2'],
   "fb_message" => $lang['fb_message'],
   "fb_loggedin" => $fb['loggedin'],
   "fb_pic_small" =>$user_info['fb_pic_small'],
   "fb_userid"=>$user_info['fb_userid'],
   "fb_name"=>$user_info['fb_name'],
   "fb_logout_url"=>(ROOT_PATH=="./") ? "logout.php" : $site_sess->url($script_url."/".substr(ROOT_PATH,2)."logout.php"),
  ));

to:

Code: [Select]
$site_template->register_vars(array(
   "fb_appid" => $config['fb_appid'],
   "fb_language" => isset($lang['fb_language']) ? $lang['fb_language'] : $config['fb_language'],
   "fb_hide1" => $fb['hide1'],
   "fb_hide2" => $fb['hide2'],
   "fb_message" => $lang['fb_message'],
   "fb_loggedin" => $fb['loggedin'],
   "fb_pic_small" =>$user_info['fb_pic_small'],
   "fb_userid"=>$user_info['fb_userid'],
   "fb_name"=>$user_info['fb_name'],
   "fb_logout_url"=>(ROOT_PATH=="./") ? "logout.php" : $site_sess->url($script_url."/".substr(ROOT_PATH,2)."logout.php"),
   "fb_login_url_z"=>($site_sess->url($self_url)),
  ));

Now it redirects me when I login with Facebook. Also, when I register a new account with Facebook, it sends me to the registration page, but after that the site still won't login the new user. He had to click the Facebook logout, and then login again.

Also about the need to click on the registration fields, I'll probably remove that so it works properly.
As for the login dropdown, it's custom. But even when I completely remove it(by using the standard template) it doesn't help anything.

18
Okay, I did some more testing. As you suggested, I used the normal template. I used a fresh copy of the default template from 1.7.11, and did the mods to header, register_form, user_loginform, and user_logininfo. All of the same problems exist. New user is not redirected to the registration page. Once he goes there himself and registers, he is still not logged in to the site(even though it says Facebook is logged in), and he sees no login form.

Users which already have a site account and just want to link Facebook, they can login, but there is also no redirect there either. They have to refresh.

Logout with Facebook button does refresh the page and logout as it should.

I'm going to look at fbmain.php and see what I can do. But it's your script, so you would know better than me how it works. Thanks for your help. Hopefully we can get it working. I'm already using your "Like" mod, and I've replaced the 4images comments with Facebook comments, so having the Facebook login makes sense.

*EDIT* Also, registration is not actually disabled. I'm using a mod that forces the user to enter all details in the proper format before he can click the register button. Seems to work fine when creating the account with Facebook.

19
I have a few problems with this great mod. I'll try to explain them well.

If a user already has an account on my site with the same email as his Facebook, if he clicks the Login with Facebook button, it links his account nicely, and he can now use Facebook to login and out.

But if he is a new user to my site, and wants to register with Facebook, there is trouble. Using an extra Facebook account, I tested it and this is what happens.

Completely logged out from my site. Logged into Facebook.com with my extra account. Go to my site, click Register, I get the standard registration page, no Facebook. Is that supposed to happen?

I instead, I click on the Login with Facebook button. The popup comes, asks for permission. I Agree and it says all good. But now, the user has to click on "Registration" again, where he has to agree to terms, enter username, password, and email. Shouldn't it all be one step/page? How does the user know to go find the "Registration" link after he already thinks he registered with Facebook in the popup?

After you fill out that registration form, and are registered on the site using Facebook info, it still only shows you the "Registration" link, and shows you as logged out. But even though it thinks you are logged out, it doesn't give you the login form. During all this, the Facebook button itself thinks you are logged in, but the rest of the site doesn't.

And the last problem is login/logout. If I logout from facebook, either on my site, or on facebook.com, I will automatically be logged out from both. So that works.
But, if I login on Facebook.com and then go to my site, it says I'm not logged in, but if I just refresh the page, it shows my all logged in. Is there a way to detect that, and make it refresh or something, so that a user does not try to login when he doesn't have to?


In case I messed up my user_loginform and user_logininfo, I'll include them here. I was using custom login and info forms, but it was too much trouble to edit, so I went back to the standard ones.

user_loginform.html
Code: [Select]
<table width="100%" height="100%" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <td valign="top" align="left">
    {ifnot fb_hide1}
      <form action="{url_login}" method="post">
        {lang_user_name}<br />
        <input type="text" size="10" name="user_name" class="logininput" />
        <br />
        {lang_password}<br />
        <input type="password" size="10" name="user_password" class="logininput" />
        <br />
        <table border="0" cellspacing="0" cellpadding="0">
          <tr valign="top">
            <td><input type="checkbox" name="auto_login" value="1" /></td>
            <td><span class="smalltext">{lang_auto_login}</span></td>
          </tr>
        </table>
        <br />
<input type="submit" value="{lang_login}" class="button" />
      </form>
      » <a href="{url_lost_password}">{lang_lost_password}</a><br />
      {endifnot fb_hide1}
     {ifnot fb_hide2}
 » <a href="{url_register}">{lang_register}</a><br>&nbsp;</td>
 {endifnot fb_hide2}
     {if fb_hide2}
     {fb_message}
     {endif fb_hide2}
 
  </tr>
  <tr><td valign="top" align="center">
  {if fb_loggedin}
   <table width="100%" border="0"><tr><td align="right">
   <fb:profile-pic uid='loggedinuser' facebook-logo='false'></fb:profile-pic></td><td valign="center" align="left"> Welcome,<BR> <fb:name uid='loggedinuser' useyou='false'></fb:name>
   </td></tr></table>
{endif fb_loggedin}
      <fb:login-button size="small" length="long" autologoutlink="true" scope="email,user_website,publish_stream" ></fb:login-button>
    </td></tr>
</table>

user_logininfo.html
Code: [Select]
<table width="100%" height="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
 {lang_loggedin_msg}<br />
      &raquo; <a href="{url_lightbox}">{lang_lightbox}</a><br />
      {if support_ticket_activ}
 &raquo; {url_support_ticket}<br />
 &raquo; <a href="{url_support_ticket_new}">{lang_support_new}</a><br />
 {endif support_ticket_activ}
 &raquo; <a href="{url_control_panel}">{lang_control_panel}</a><br />
 {ifnot fb_loggedin}
      &raquo; <a href="{url_logout}">{lang_logout}</a><br/>
      {endifnot fb_loggedin}
      <br /><b class="h2">{cp_link}</b>
</td>
  </tr>
  <tr><td valign="top" align="center">
{if fb_loggedin}
   <table width="100%" border="0"><tr><td align="right">
   <img src="{fb_pic_small}"></img></td><td valign="center" align="left"> Welcome,<BR> <a href="http://www.facebook.com/profile.php?id={fb_userid}">{fb_name}</a>
   </td></tr></table>
{endif fb_loggedin}
      <fb:login-button size="small" length="long" autologoutlink="true" scope="email,user_website,publish_stream" ></fb:login-button>
    </td></tr>
</table>

Thanks for any help you can provide for this great mod. It's appreciated.

*EDIT* Also, my site, if you want to have a look there. http://anime-themes.com Excuse the messy category list. I'm still finishing it up a bit.

*EDIT 2* When that new user tries to register with Facebook, but it doesn't show him as logged in, he can logout from Facebook completely, and login again, and he will be logged into the site.

20
There, I did it. Realized that I didn't need to change the way the id's are stored in the database. Now my users can set the order of every image in their lightbox, hit save, and it will reload the page with the images in the new order. The images also appear in the screensaver in the new order. Not quite sure I can remember all of the changes I made, but if someone needs this, let me know and I'll try to post it up for you.

*edit*

Might as well say exactly what it does. When you go to your lightbox, each thumbnail has a textbox with a default number. The first thumbnail gets 10, the next gets 20, then 30, then 40, and so on. Now you can change each one of those to any number you like and hit save. It will take the image ids from your lightbox, arrange them to match the values you chose, save them back to the database and then reload the page.

No what what numbers you set before, even though the thumbnails will be in the order you wanted, they get numbered 10, 20, 30, all over again. This makes it easy to change the order again and again(and there was no easy way to save the exact numbers in the database, not with editing a lot of code in 4images).

For a demo, try out my site: http://anime-themes.com. Create an account, add a few images to your lightbox, then click the screensaver link in the menu. You can then edit the order of the images in your favorites, and you can click the create screensaver button, and then edit that as well. Click the test button to see the screensaver in action. I'd also recommend pressing "F11" to view it fullscreen. I'm thinking about also making a mod that would allow you to use that page to view whole categories as a slideshow.

21
Okay, I'm about half-way done with creating it myself. Customized the lightbox.php file so that it can read the lightbox image ids as "001-65856, 002-846, 003-749" and display the thumbnails in the correct order. Now I need to create the system that will allow the user to set the "001 002 003" part, and have the lightbox.php file overwrite the image id's with the proper info.

22
So awhile back, I built a screensaver mod to replace the one that used to be available, but was taken down when he left the site. Basically it loads a custom page as a windows screensaver, and that page displays the users lightbox images as a fullscreen slideshow with controls. So now I'm looking for a way for the user to change the order of the images in his lightbox. That way you would also be changing the order that the images appear in the screensaver. Drag and drop would be awesome, but even if it's just setting a number for each image, that would work. Does such a mod exist somewhere?

23
I don't know how I missed that. Thanks! Now I don't have to customize a PhpBB install.

24
Where can I download this? I can't find it in the link provided in the first post.

25
Chit Chat / Re: Advice on my template...
« on: April 06, 2011, 07:38:58 PM »
Hey budduke, thanks for the reply.

I noticed that too, about the mouseovers sticking on the info if you go over them really fast. I spent like 40 minutes yesterday playing around, trying to see how many I could get to stick.

You mentioned blue with light text. That template is actually a template I originally built for a custom CMS I put together, and it was blue with gray text and white links. I then converted it for 4images and made it green. The two sites were meant to be used together, originally. You can see it at crimsonanime.com Is that kind of what you mean? I also made a purple/pink version for a third site, but I won't link to it since it has hentai/adult content.

I was definitely planning to make the Categories label bigger so it would stand out. And as you point out, I also thought about making the category thumbnails smaller. But if I did that, any category name that is too long wouldn't fit in it's place. Maybe if I just keep them as 4 across, but make them shorter, so you don't have to scroll down so far?

As for the new images part, I hadn't really thought about that much. You have a good point. Maybe instead of making the category thumbnails smaller, I can remove the new wallpapers part, and have each category thumbnail be the newest wallpaper instead of a random one. And then you can simply click the category link to view the category, or click a separate spot on the thumb(probably a "View this Wallpaper" link) to go directly to the details page for the new wallpaper that is displayed there.

And yeah, I kind of thought the arrow looked like part of the wallpaper design too. I'll probably remove it, and it won't be needed anyway, if I get rid of the mouseover info. I'm trying to get it to look nice, while still making it easy to tell where everything is, and how to get to what you want. Thanks again for the tips.

26
Chit Chat / Advice on my template...
« on: April 06, 2011, 04:26:54 PM »
Not sure if this is the right place for this thread or not. I don't really need help with my template, just suggestions/advice.

I'm rebuilding my template again and was looking to see what people think about what I'm doing with it, before I completely redo everything. My site: anime-themes.net

Everything that is green is from my original design, which means mostly everything is still the original. So far I've only redesigned thumbnail_bit and category_bit. I've modded the thumbnailer so that is crops all the thumbnails to the exact same size. If you look at the New Wallpapers section on the homepage, you'll see that each thumbnail is a perfect square. If it is new, it adds a flashing "New" logo in the corner. Every thumbnail has a curved arrow in the bottom corner to tell people to put their mouse there to "flip" it over. So when you mouseover, the thumbnail fades out, and you see the information about it. Now if you scroll down, have a look at the categories. It looks similar, but instead, it's a random thumb, and the category name is displayed on top of the thumb. So, do these look good? Do they seem easy to use and whatnot?

I was going to make the details part of the thumbnail_bit look nicer, with a nice table made with some graphics, and put more information about the image. But then I thought about instead, putting the details on top of the thumbnail, like I did with the categories, and get rid of the part that you get when you mouseover. Which way do you guys think would look better? And if I keep the mouseover part, does the arrow look okay, or does it look bad with so many arrows all over the place?

And as for the rest of the template, a few people told me that the green was ugly, and I should change it. I was just wondering what other people thought about the green colors. And what about the rest of the design in general? Any parts that you think look good or bad? And tips on things you think I should change? Like I said, just want to see what people think of it before I rebuild everything. Thanks to anyone to takes the time to have a look a tell me what they think.

*EDIT*

Oh, and I already know that the colors in the news section at the bottom are all messed up. I haven't fixed them yet because I might not keep the news section.

27
I'm working on modifying the code myself, so if no one else has a solution, I'll post mine. I couldn't use v@no's original code because I use jquery, and it breaks his code. With the layout of my site, it makes sense to have a favorites/lightbox button under the thumbnails. I built a screensaver mod(to replace KurtW's old one) and I want to be able to quickly add images to the favorites for use as a screensaver.


*EDIT*

Okay, I got it on my own. Here's what I did.


lightboxaction.php - same as yours above
Code: [Select]
<?php
define
('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$error 0;
if (isset(
$HTTP_GET_VARS['id']) || isset($HTTP_POST_VARS['id']))
{
  
$id = (isset($HTTP_POST_VARS['id'])) ? substr(trim($HTTP_POST_VARS['id']), 3) : substr(trim($HTTP_GET_VARS['id']), 3);
}
else
{
  
$id "";
}
if (
$id)
{
  if (
check_lightbox($id))
  {
    
$title = (remove_from_lightbox($id)) ? get_gallery_image("lightbox_no.gif") : get_gallery_image("lightbox_yes.gif");
  }
  else
  {
    
$title = (add_to_lightbox($id)) ? get_gallery_image("lightbox_yes.gif") : get_gallery_image("lightbox_no.gif");
  }
}
else
{
  
$error 1;
}


if (
$error)
{
  die(
"Security violation");
}
echo 
$title;
?>


javascript in header
Code: [Select]
<script type="text/javascript">
$(document).ready(function() {
$('div.lightbox img').click(function() {
var elementId = '#'+$(this).attr('id');
$.get(
"lightboxaction.php",
{ id: $(this).attr('id') },
function(data) {
$(elementId).attr('src', data);
},
"text");
return false;
});
});
</script>


first line
Code: [Select]
 $lightbox_button = "<div class=\"lightbox\"><a href=\"".$site_sess->url($lightbox_url)."\"><img id=\"img".$image_row['image_id']."\" src=\"".get_gallery_image("lightbox_yes.gif")."\" border=\"0\" alt=\"\" /></a></div>";          }


second line
Code: [Select]
     $lightbox_button = "<div class=\"lightbox\"><a href=\"".$site_sess->url($lightbox_url)."\"><img id=\"img".$image_row['image_id']."\" src=\"".get_gallery_image("lightbox_no.gif")."\" border=\"0\" alt=\"\" /></a></div>";


Works in thumbnail_bit anywhere I want it to.

28
Well, for those of you that could not make the MOD work using V@no's code, here is ther reworked code based on above post from bernd

Thanks for that. It works great, except for one problem. It adds and removes the image you want, just like it should. But when I use it on the categories page or the home page, in thumbnail_bit, it changes the lightbox button image for every one on the page. So if I click one, they all change to the "checked" image. Same thing if I click to remove from the lightbox. They all change. Any way to fix that?

29
Mods & Plugins (Releases & Support) / Re: [MOD] Ajax Username Checker
« on: December 09, 2010, 03:16:33 AM »
I updated my code above to include language tags. If you are already using the code, here are the changes.

In lang/english/main.php

Find:
Code: [Select]
?>
Before ADD:
Code: [Select]
//----------------------------------------------------------
//-- Mod Ajax Registration Checker --
//----------------------------------------------------------
$lang['ajax_username_empty'] = "Please enter a username";
$lang['ajax_username_length'] = "Username must be between 6 and 20 characters long";
$lang['ajax_username_taken'] = "This User name already exists";
$lang['ajax_username_good'] = "Username available to register";
$lang['ajax_password_empty'] = "Please enter a password";
$lang['ajax_password_length'] = "Password must be between 6 and 20 characters long";
$lang['ajax_password_good'] = "Password is good";
$lang['ajax_email_empty'] = "Please enter an email address";
$lang['ajax_email_invalid'] = "This email address is invalid!";
$lang['ajax_email_taken'] = "This email address is already registered";
$lang['ajax_email_good'] = "Email address is good to go";

In register.php

Find:
Code: [Select]
     "captcha_registration" => (bool)$captcha_enable_registration
Replace with:
Code: [Select]
     "captcha_registration" => (bool)$captcha_enable_registration,
      "lang_ajax_username_empty" => $lang['ajax_username_empty'],
      "lang_ajax_username_length" => $lang['ajax_username_length'],
      "lang_ajax_username_taken" => $lang['ajax_username_taken'],
      "lang_ajax_username_good" => $lang['ajax_username_good'],
      "lang_ajax_password_empty" => $lang['ajax_password_empty'],
      "lang_ajax_password_length" => $lang['ajax_password_length'],
      "lang_ajax_password_good" => $lang['ajax_password_good'],
      "lang_ajax_email_empty" => $lang['ajax_email_empty'],
      "lang_ajax_email_invalid" => $lang['ajax_email_invalid'],
      "lang_ajax_email_taken" => $lang['ajax_email_taken'],
      "lang_ajax_email_good" => $lang['ajax_email_good']

And then once again replace the whole javascript in register_form.html with this:
Code: [Select]
<script language="javascript">
//<!---------------------------------+
//  Developed by Roshan Bhattarai
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use
//  Extensive additions by Zhono
// --------------------------------->

$(document).ready(function()
{
var userOk = 0;
var passOk = 0;
var emailOk = 0;
$("#submitButton").attr("value", "Disabled");
$("#submitButton").attr("disabled", "true");
$("#username").blur(function()
{
//remove all the class add the messagebox classes and start fading
$("#msgbox").removeClass().addClass('messagebox').text('Checking...').fadeIn("slow");
//check the username exists or not from ajax
$.post("{url_user_availability}",{ user_name:$(this).val() } ,function(data)
        {
     if(data=='userblank') //if username not entered
 {
  $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_username_empty}').addClass('messageboxerror').fadeTo(900,1);
 
});
userOk = 0;
          }
 else if(data=='userlength') //if username is less than 6 or more than 20 characters
 {
  $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_username_length}').addClass('messageboxerror').fadeTo(900,1);
 
});
userOk = 0;
          }
 else if(data=='userno') //if username not avaiable
 {
  $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_username_taken}').addClass('messageboxerror').fadeTo(900,1);
 
});
userOk = 0;
          }
 else
 {
  $("#msgbox").fadeTo(200,0.1,function()  //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_username_good}').addClass('messageboxok').fadeTo(900,1);
 
});
userOk = 1;
 if (userOk==1 && passOk==1 && emailOk==1) {
 $("#submitButton").attr("value", "Register");
 $('#submitButton').removeAttr('disabled');
 } else {
$("#submitButton").attr("disabled", "true");
$("#submitButton").attr("value", "Disabled");
}
 }

        });
});
$("#userpassword").blur(function()
{
//remove all the class add the messagebox classes and start fading
$("#msgboxpass").removeClass().addClass('messagebox').text('Checking...').fadeIn("slow");
//check the username exists or not from ajax
$.post("{url_user_password}",{ user_password:$(this).val() } ,function(data)
        {
     if(data=='passblank') //if username not entered
 {
  $("#msgboxpass").fadeTo(200,0.1,function() //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_password_empty}').addClass('messageboxerror').fadeTo(900,1);
 
});
passOk = 0;
          }
 else if(data=='passlength') //if username is less than 6 or more than 20 characters
 {
  $("#msgboxpass").fadeTo(200,0.1,function() //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_password_length}').addClass('messageboxerror').fadeTo(900,1);
 
});
passOk = 0;
          }
 else
 {
  $("#msgboxpass").fadeTo(200,0.1,function()  //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_password_good}').addClass('messageboxok').fadeTo(900,1);
 
});
passOk = 1;
 if (userOk==1 && passOk==1 && emailOk==1) {
 $("#submitButton").attr("value", "Register");
 $('#submitButton').removeAttr('disabled');
 } else {
$("#submitButton").attr("disabled", "true");
$("#submitButton").attr("value", "Disabled");
}
 }

        });
});
$("#useremail").blur(function()
{
//remove all the class add the messagebox classes and start fading
$("#msgboxemail").removeClass().addClass('messagebox').text('Checking...').fadeIn("slow");
//check the username exists or not from ajax
$.post("{url_user_email}",{ user_email:$(this).val() } ,function(data)
        {
     if(data=='emailblank') //if username not entered
 {
  $("#msgboxemail").fadeTo(200,0.1,function() //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_email_empty}').addClass('messageboxerror').fadeTo(900,1);
 
});
emailOk = 0;
          }
 else if(data=='emailinvalid') //if username is less than 6 or more than 20 characters
 {
  $("#msgboxemail").fadeTo(200,0.1,function() //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_email_invalid}').addClass('messageboxerror').fadeTo(900,1);
 
});
emailOk = 0;
          }
 else if(data=='emailno') //if username not avaiable
 {
  $("#msgboxemail").fadeTo(200,0.1,function() //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_email_taken}').addClass('messageboxerror').fadeTo(900,1);
 
});
emailOk = 0;
          }
 else
 {
  $("#msgboxemail").fadeTo(200,0.1,function()  //start fading the messagebox
{
 //add message and change the class of the box and start fading
 $(this).html('{lang_ajax_email_good}').addClass('messageboxok').fadeTo(900,1);
 
});
emailOk = 1;
 if (userOk==1 && passOk==1 && emailOk==1) {
 $("#submitButton").attr("value", "Register");
 $('#submitButton').removeAttr('disabled');
 } else {
$("#submitButton").attr("disabled", "true");
$("#submitButton").attr("value", "Disabled");
}
 }

        });
 
});
});
</script>


And then just edit the language tags to suit your needs, obviously.

30
Mods & Plugins (Releases & Support) / Re: [MOD] Ajax Username Checker
« on: December 06, 2010, 05:12:26 PM »
I tried using language tags already, and they wouldn't work inside the javascript. Maybe I overlooked something. I have some personal stuff going on right now, so I can't work on it at the moment. If someone else wants to have a look at that, obviously they are free to. If I can sort out my personal stuff, I'll try again, but it's not likely to be soon.

Pages: 1 [2] 3 4