Register Chat Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Users Can create their own drop down list in navbar Details »»
Users Can create their own drop down list in navbar
Mod Version: 1.00, by Michael Morris (Coder/Designer) Michael Morris is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (1 vote - 5.00 average) Installs: 34
Released: 16 Dec 2004 Last Update: Never Downloads: 2
Not Supported  

This hack is part of Lesson #6 of my Using the PHPINCLUDE_START template" tutorial thread. It is presented here individually. While techinically a user feature, it is put here with mini-mods since it requires no code edits. Instead you have 2 template edits: navbar and phpinclude_start. You must also add a user profile field.

For a more complete explaination of the code please visit the tutorial thread.

AND NOW THE HACK...

To begin create a user profile field that is multiple text lines and has a character limit of at least 2000. Note the user profile field # the system assigns to the new field - you'll need it below.

Once you do that crack into your navbar and look for this code:


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

Immediately after add.


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

Next look for this code in the navbar


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

Immediately above it insert the following code


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

Now insert the following into PHPINCLUDE_START at either the very start or the very end.


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

You will need to plug the correct user profile field # into the spot occupied by "fieldX" above. So if your new profile field created above was field #9 you'd refer to $bbuserinfo['field9']

And with that you're done. Enjoy.

Compatibility Note
If you are running a version of vbulletin prior to version 3.0.3 you'll need to run a database query in order to have field lengths longer than 250 characters. This query is:

ALTER TABLE userfield MODIFY COLUMN fieldX TEXT

You'll need to change fieldX to the field# appropriate to your forums.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	The Dropdown.jpg
Views:	1311
Size:	146.6 KB
ID:	22398Click image for larger version

Name:	The User Option.jpg
Views:	1107
Size:	210.3 KB
ID:	22399

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 16 Dec 2004, 23:55
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Sounds cool. A screenshot would be nice.
__________________
Ciao jluerken
Reply With Quote
  #3  
Old 17 Dec 2004, 00:15
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Thank you Michael Morris, I may use this
__________________
God180 <---------------------CHECK IT OUT
Reply With Quote
  #4  
Old 17 Dec 2004, 00:30
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Real name: Michael Morris
Originally Posted by jluerken
Sounds cool. A screenshot would be nice.
Two added.

Note, minor glitch found for RC4 - you can't have user input fields beyond 500 characters or so (odd). I presume this is fixed in later versions.
Reply With Quote
  #5  
Old 17 Dec 2004, 00:31
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Real name: Julie
Could this be domain specific (ie it can only be your domain they link to?
__________________
http://www.miyechi.com/storage/sig.png
Miyechi - Adventure inside
Reply With Quote
  #6  
Old 17 Dec 2004, 01:09
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Real name: Michael Morris
Not without major recoding. This simply takes advantage of an existing vbulletin mechanic (the url tag) and uses it to create the links for a new feature.
Reply With Quote
  #7  
Old 17 Dec 2004, 01:10
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by Koutaru
Could this be domain specific (ie it can only be your domain they link to?
Very cool, clicks install for near future use, thanks!
Reply With Quote
  #8  
Old 17 Dec 2004, 02:20
´ÀÉ`SÌLVÉR´ÀÉ`'s Avatar
´ÀÉ`SÌLVÉR´ÀÉ` ´ÀÉ`SÌLVÉR´ÀÉ` is offline
 
Join Date: Aug 2003
nice hack
Reply With Quote
  #9  
Old 17 Dec 2004, 02:22
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
works nicely. Only thing I've found is that if you don't put bb codes in that box correctly, it can make your browser hang up. Otherwise, nice addition.
Reply With Quote
  #10  
Old 17 Dec 2004, 02:54
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Nice Hack!!!!!!!!

(cool, you're from Enworld? We have our banner on your webring. That's awesome.)
Reply With Quote
  #11  
Old 17 Dec 2004, 15:39
SVTOA SVTOA is offline
 
Join Date: Oct 2002
I have it working in 3.0.0
I'm having trouble getting this to display on the navbar in my Vbadvanced CMPS index page though. Displays fine in the forum. Any ideas?
Reply With Quote
  #12  
Old 17 Dec 2004, 16:38
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Originally Posted by SVTOA
I'm having trouble getting this to display on the navbar in my Vbadvanced CMPS index page though. Displays fine in the forum. Any ideas?
Yes, thats right. Its also not displaying for me in the CMPS Portal.
Would be nice if this can be fixed
__________________
Ciao jluerken
Reply With Quote
  #13  
Old 17 Dec 2004, 16:53
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Real name: Michael Morris
I'm not having this problem - but my dropdown system was moved to the header template.

I guess check to make sure your cmps page isn't using a different navbar from you're forums - and that both are executing the PHPINCLUDE_START template.

Speaking of which - I intend to write a module that displays this information in vba cmps - eventually.
Reply With Quote
  #14  
Old 17 Dec 2004, 17:01
Lottis's Avatar
Lottis Lottis is offline
 
Join Date: Sep 2004
Sorry, but i need some help.

To begin create a user profile field that is multiple text lines and has a character limit of at least 2000. Note the user profile field # the system assigns to the new field - you'll need it below.

Im not quite shure what this means. :blush:
Reply With Quote
  #15  
Old 17 Dec 2004, 17:54
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Real name: Michael Morris
Originally Posted by Lottis
Sorry, but i need some help.

To begin create a user profile field that is multiple text lines and has a character limit of at least 2000. Note the user profile field # the system assigns to the new field - you'll need it below.

Im not quite shure what this means. :blush:
You can read up on creating user profile fields here.

In brief, log in to your admincp and scroll down the left menu till you see "User Profile Fields" Expand that box, then click "Create New"

In the first dialog select "Multiple line text box"

On the next screen choose "2000" as the maximum length of user input, then set the last option to display on "Edit Options - Other"

Leave everything else on their defaults. When you exit this screen you'll see a list of all the availabe user profile fields. Look at you're newly create one. You'll see an id#. Note that number and plug it into the phpinclude_start script above.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod 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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 13:16.

Layout Options | Width: Wide Color: