Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
Verify if user is logged in for non-vb pages, using Jquery
xman_79
Join Date: Jun 2006
Posts: 65

Romania
by xman_79 xman_79 is offline 04 Mar 2013

1 - vbconnect.php

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2- jquery_cookie.js
Create this file using the code from this page

3- jquery_vbulletin.js
Change XXX with any another prefix wich do you want

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4- In your php file (external file and not in directory of the forum)
Change XXX with your prefix using in jquery_vbulletin.js file

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

5- Your output (html / php)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Views: 5592
Reply With Quote
Comments
  #2  
Old 04 Mar 2013, 18:19
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Real name: Joe Velez
interesting...

thanks for sharing
__________________
Former vBulletin.org Staff Member

Latest Articles:
Liquid Layout = Less Ad Revenue?
How to Monetize Your Site
Improve Web Page Performance
How To Write For The Web


If it needs instructions, there's room for improvement.
Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them!
Reply With Quote
  #3  
Old 04 Mar 2013, 22:54
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
nice coding, but what versions are compatible?
__________________
Egypt News website, latest Egyptian news updated instantly.
Reply With Quote
  #4  
Old 04 Mar 2013, 23:01
xman_79's Avatar
xman_79 xman_79 is offline
 
Join Date: Jun 2006
Real name: Suleiman
@Princeton: with pleasure
@abdobasha2004: vb3 - vb4
--> for vb5 I don't have this version but I think it is the same. You can do a simple test only with vbconnect.php (with little modification)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Go to www.yourdomain.com/vbconnect.php and see the result
Reply With Quote
  #5  
Old 25 May 2013, 03:27
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Real name: CM
4- In your php file (external file and not in directory of the forum)
Change XXX with your prefix using in jquery_vbulletin.js file



Hello,
If you could please explain about part 4?

I dont really understand if I should create a php file or where its located if there is one! Thank you very much in advance
__________________
I am having a little break from vB Developing. I am trying to finish my PHP and MYSQL courses for now. I will answer all my PM's if anyone needed help for my products, but only when I can be online on vB.org. Its great to see new and old developers keeping vB.org alive! Thank you all for your support!CM
Reply With Quote
  #6  
Old 27 May 2013, 20:50
Lee Roberts's Avatar
Lee Roberts Lee Roberts is offline
 
Join Date: Jun 2008
Real name: Lee
Originally Posted by ChiNa-Man View Post

Hello,
If you could please explain about part 4?

I dont really understand if I should create a php file or where its located if there is one! Thank you very much in advance
This would be the file you create, as this is about working with external pages, note the bit that reads "(external file and not in directory of the forum)". This would be the page/file you want to do something like this in:

// The guest is logged in
}
else
{
// The guest is not logged in

.Me
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Mini Mods jQuery Accordian Module for vBAdvanced Pages gothicuser vBulletin 3.8 Add-ons 5 19 Jul 2011 03:03
Mini Mods jQuery Accordian Menu for vBAdvanced Pages gothicuser vBulletin 3.8 Add-ons 0 13 Jul 2011 07:04
Verify User Email Addresses Gary King vBulletin 2.x Full Releases 60 04 Jun 2006 10:38



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 08:15.

Layout Options | Width: Wide Color: