Lampwrights Forum

Lampwrights Forum (http://www.lampwrights.com/index.php)
-   vBulletin Wordpress Bridge (http://www.lampwrights.com/forumdisplay.php?f=13)
-   -   Bridge and search error (http://www.lampwrights.com/showthread.php?t=192)

kkj 08-13-2011 02:15 AM

Bridge and search error
 
first special thanks to jeff because of this great plugin

second sorry about my bad english

my problem is :
The bridge works great but when ever I use search widget and search something in wordpress the user logs out I had disabled all of plugins but the problem remains.

if I go to wp-admin I steal loged in but in front page of wp and in vbuletin I have loged Out!!

wordpress : 3.1.3
vbulettin : 4.0.1
bridge : 10.0.8

kkj 08-27-2011 01:44 AM

there is no idea ?!

kkj 10-02-2011 06:41 AM

finally I solved my problem by installing vBulletin Welcome Block Widget

after installing this widget I should always have the Remember me Box Checked.

Amaca 10-05-2011 10:48 AM

Quote:

Originally Posted by kkj (Post 867)
finally I solved my problem by installing vBulletin Welcome Block Widget

after installing this widget I should always have the Remember me Box Checked.

totaly awesome, great tip man. It works for the normal wp search engine. I installed an ajax search with suggestion and the user has unlogged every search...do you know what could be the problem? the plugin is: Dave's WordPress Live Search

kkj 10-06-2011 12:23 AM

I will search it and if I found any solution I will notice you.

Amaca 10-13-2011 04:32 AM

Thank you for your support. Unfortunately your fix doesn't work anymore. Without the live ajax search, too. My wp searches disconnect the user login, and i need to login again. any idea? :confused:

Amaca 10-13-2011 04:43 AM

Quote:

Originally Posted by Amaca (Post 901)
Thank you for your support. Unfortunately your fix doesn't work anymore. Without the live ajax search, too. My wp searches disconnect the user login, and i need to login again. any idea? :confused:

Update: if i use the login box into the vBulletin Welcome Block Widget, it works. But if i use the forum login into the header, in the user panel where you can find the notifications, the search disallows the login.

Amaca 10-13-2011 05:47 AM

I have fixed it changing the code in the vBulletin HEADER file with the same code of the vBulletin Welcome block Widget for wordpress.

go to the vBulletin admin cp -> style manager -> edi template -> header

and search the line <form id="navbar_loginform" ecc.. Select all the form and replace the code with this:


Code:

<form id="navbar_loginform" action="http://yourwebsitename/forum/login.php" method=post onsubmit=md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)>
                <script type=text/javascript src="http://yourwebsitename/forum/clientscript/vbulletin_md5.js"></script>
                <fieldset id="logindetails" class="logindetails">
                <div>
                        <div>

                        <input class="textbox<vb:if condition="!$username"> default-value</vb:if>" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" />
                        <input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" />
                        <input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" />
                        <input type=submit class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s"/>               
                       
                                </div>
                        </div>
                </fieldset>
               
                  <div id="remember" class="remember">
        <label for=cb_cookieuser_navbar>Remember me</label>
        <input name=cookieuser type=checkbox id=cb_cookieuser_navbar value=1 checked=checked />
                        </div>
               
                               
                <input type=hidden name=s value= />
                <input type=hidden name=do value=login />               
                <input type=hidden name=vb_login_md5password />
                <input type=hidden name=vb_login_md5password_utf />
                </form>

Remember to change the URL in the first line.
it works for me, hope it helps.

kkj 10-16-2011 01:01 AM

inteligent tip ;) ::: sorry because of my delay but I am too busy these days ::: if I found time I will test your solution, it seems good tip :)

Amaca 10-24-2011 03:55 AM

Quote:

Originally Posted by kkj (Post 910)
inteligent tip ;) ::: sorry because of my delay but I am too busy these days ::: if I found time I will test your solution, it seems good tip :)

thanks :) it works with me, but in order to make work all the forms, in addiction to the header you must change all the vBulletin login forms and adapt it with the code above. not exactly the same...depends on which form you are editing, but the big changes are written into the code above.


All times are GMT -4. The time now is 01:52 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.