Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Feb 2015, 09:07
Dave Strider's Avatar
Dave Strider Dave Strider is offline
 
Join Date: Sep 2011
Keep div hidden on different page

I currently have this code:

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

What I would like to do is for it to remember the users selection. Essentially if the user is on the home page and chooses to hide the menu, it will stay hidden while they are on a different page.
Reply With Quote
  #2  
Old 22 Feb 2015, 10:33
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
what you need is an Oreo =)
take a look at this, seems you understand what you're doing. So im going to point you in the right direction
Double Stuffed Oreo's
Chocolate Chip Cookies
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote
  #3  
Old 23 Feb 2015, 01:13
Dave Strider's Avatar
Dave Strider Dave Strider is offline
 
Join Date: Sep 2011
Originally Posted by Dr.CustUmz View Post
what you need is an Oreo =)
take a look at this, seems you understand what you're doing. So im going to point you in the right direction
Double Stuffed Oreo's
Chocolate Chip Cookies
I have no clue what I'm doing with jQuery. I found this code online lol.
Reply With Quote
  #4  
Old 23 Feb 2015, 17:50
greigeh greigeh is offline
 
Join Date: Jan 2015
Real name: Greig David
Here is something what you're looking for, I use this on my forum as an alternative to the confusing templates that is used within vB3. You can alter this to suit your needs


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

Reply With Quote
  #5  
Old 24 Feb 2015, 04:08
Dave Strider's Avatar
Dave Strider Dave Strider is offline
 
Join Date: Sep 2011
Originally Posted by greigeh View Post
Here is something what you're looking for, I use this on my forum as an alternative to the confusing templates that is used within vB3. You can alter this to suit your needs


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
It still appears when going to a new page even if it was hidden on the previous one.
Reply With Quote
  #6  
Old 24 Feb 2015, 09:01
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
did you modify it to fit your classes? take the time to read the links i shared, get an understanding of what you're trying to accomplish, you should have no issue adapting grieg's code.

http://stackoverflow.com/questions/1...ie-with-jquery

if your looking more for a "will you do it for me" and not actually wanting to learn anything, share your template
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote
  #7  
Old 24 Feb 2015, 12:49
Dave Strider's Avatar
Dave Strider Dave Strider is offline
 
Join Date: Sep 2011
Originally Posted by Dr.CustUmz View Post
did you modify it to fit your classes? take the time to read the links i shared, get an understanding of what you're trying to accomplish, you should have no issue adapting grieg's code.

http://stackoverflow.com/questions/1...ie-with-jquery

if your looking more for a "will you do it for me" and not actually wanting to learn anything, share your template
Well I just solved the issue. I forgot to include jquery.cookie.js file. I probably should have double checked to see if that was included. Honest mistake really. Thanks for the help!
Reply With Quote
  #8  
Old 24 Feb 2015, 21:35
greigeh greigeh is offline
 
Join Date: Jan 2015
Real name: Greig David
Sorry I should really have mentioned you needed that file! Glad you got it to work though.
Reply With Quote
Reply



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

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


New To Site? Need Help?

All times are GMT. The time now is 01:58.

Layout Options | Width: Wide Color: