My member login popup shows up in the top left corner. I saw that a memebr had this issue but there were no posts on how they fixed the issue. Can anyone help? Also, I have a basic question on how to set up paths for images in blocks. Can someone give me a basic tutorial. |
I had a similar ajax issue on the home page. I ended up doing away with the ajax/pop up and using the direct link to member.php for login instead for the time being.
If you are trying to insert an image into a block, you will first have to have the image uploaded somewhere doesn't matter really where although some locations are easier to find and add to in the future.
So if you create a folder/directory like yoursite.com/myimages
You put your images in there like: yoursite.com/myimages/mypicture1.jpg
Then you can use the editor or click on the html button and add html code like: <center> <img src="http://www.yoursite.com/myimages/mypicture1.jpg" alt="My Picture"> </center>
Add text or links or whatever you want.
If you use the editor there should be a little icon looks like a tree. A new window will open and you enter image src url: http://www.yoursite.com/myimages/mypicture1.jpg
And update/save the changes.
I hope that might be what your are looking for or help a little. gameutopia
http://www.dialme.com
DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources |
Can you give me a walk through on doing away with the ajax pop up? Also, thanks for the help. |
The way I did it was the following:
In /templates/tmpl_uni/scripts/functions.php
Near the bottom find: <div class="topMemberBlock"> <div class="no_hello_actions"> <a href="<?= $site['url'] ?>join.php"><?= _t( '_Join Now Top' ) ?></a> <a href="<?= $site['url'] ?>member.php" onclick="showItemEditForm('login_div'); $( '#login_div' ).show().load( '<?= $site['url'] ?>member.php?action=show_login_form&relocate=' + encodeURIComponent( window.location ) );return false;"><?= _t( '_Member Login' ) ?></a> </div>
Change to: <div class="topMemberBlock"> <div class="no_hello_actions"> <a href="<?= $site['url'] ?>join.php"><?= _t( '_Join Now Top' ) ?></a> <a href="<?= $site['url'] ?>member.php"><?= _t( '_Member Login' ) ?></a> </div>
This will prompt them to login with the old style login password screen/boxes.
gameutopia DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources |
What Browsers are you 2 using??? |
|
I ment I use firefox and exporer |
review in your templates/tmpl_XXX/css/general.
css
.login_ajax_wrap { width:350px; margin:250px auto 0px; }
.login_ajx_close { position: absolute; right: -1px; top: 3px; z-index: 150; cursor: pointer; }
|
If you are still having issues with this I finally sat down and took the time to figure mine out. Although I still removed the ajax and went with the old style login I thought I'd post what I did or what my sort of problem is or was so possibly others could benefit from it. I honestly don't know why I didn't think of this sooner. Guess I was busy and didn't have the time to sit down and take the time for my own site.
At any rate. Mine was a .htaccess issue. I added some security code, which I actually intend to keep and continue using the old style login and due away with the ajax login. I pick security over fancy ajax, but this is just me.
So check your .htaccess for any code conflicts and remove the code causing issues.
For me I addeded the following to mysite.com/.htaccess:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{QUERY_STRING} ^http [OR] RewriteCond %{QUERY_STRING} ^.+www\. [OR] RewriteCond %{QUERY_STRING} ^.+https [OR] RewriteCond %{QUERY_STRING} ^.+\.txt [OR] RewriteCond %{QUERY_STRING} ^.+ftp RewriteRule .* - [L,F] RewriteCond %{HTTP_USER_AGENT} ^libwww [OR] RewriteCond %{HTTP_USER_AGENT} ^Wget RewriteRule .* - [F]
RewriteRule ^articles/{0,1}$ articles.php [QSA,L]
etc...etc...
I removed the first part so it looks more like this now and all is well for the ajax popup login:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_USER_AGENT} ^libwww [OR] RewriteCond %{HTTP_USER_AGENT} ^Wget RewriteRule .* - [F]
RewriteRule ^articles/{0,1}$ articles.php [QSA,L]
etc..etc...
Like I said I am going to keep my setting but if you really want the ajax pop up you might check for similar. I also noticed that this will also affect sharring. When logged in and you click on sharing on a media page you will get not found for the digg, delic, etc. I can modify this to work with the above code, but if you edit or remove the first part as mentioned it will then work as well. Not something I need either, so again security wins.
Just wanted to update this in case anyone has similar issues or problems.
gameutopia DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources |
I also am having issues with getting the ajax popup to work. I made a few simple text color mods and image swaps to the website but never touched anything relating to the ajax popup portion.
I get the overlay just fine but the login form has disappeared.
Any advice?
|
|
I had a simliar issue and found that this is because the URL does not accept the characters that are passed through ajax request.
I solved this issue with following steps.
In the In /templates/tmpl_uni/scripts/functions.php file near about 218 line I changed the code as follows
Before :
<a href="<?= $site['url'] ?>member.php" onclick="showItemEditForm('login_div'); $( '#login_div' ).show().load( '<?= $site['url'] ?>member.php?action=show_login_form&relocate=' + encodeURIComponent(window.location ));return false;"><?= _t( '_Member Login' ) ?></a>
After :
<a href="<?= $site['url'] ?>member.php" onclick="showItemEditForm('login_div'); $( '#login_div' ).show().load( '<?= $site['url'] ?>member.php?action=show_login_form&relocate=index.php');return false;"><?= _t( '_Member Login' ) ?></a>
That is I Just change the onclick URL.
Hope this will help you
Regards,
Vishal
www.veblogy.com
|
Wouldnt removing the encodeURIComponent make it less secure??
|