![]() |
|
|
Mod Options |
Users Can create their own drop down list in navbar Details »»
|
|||||||||||||||||||||||||||||||
|
Users Can create their own drop down list in navbar
Developer Last Online: Jun 2009 This modification is in the archives.
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:
Immediately after add.
Next look for this code in the navbar
Immediately above it insert the following code
Now insert the following into PHPINCLUDE_START at either the very start or the very end.
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 Show Your Support
|
|||||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Sounds cool. A screenshot would be nice.
__________________
Ciao jluerken |
|
#3
|
||||
|
||||
|
Thank you Michael Morris, I may use this
![]() |
|
#4
|
||||
|
||||
|
Originally Posted by jluerken
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. |
|
#5
|
||||
|
||||
|
Could this be domain specific (ie it can only be your domain they link to?
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
Originally Posted by Koutaru
Very cool, clicks install for near future use, thanks!
|
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
|||
|
|||
|
Nice Hack!!!!!!!!
(cool, you're from Enworld? We have our banner on your webring. That's awesome.) |
|
#11
|
|||
|
|||
|
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? |
|
#12
|
||||
|
||||
|
Originally Posted by SVTOA
Yes, thats right. Its also not displaying for me in the CMPS Portal.
Would be nice if this can be fixed ![]()
__________________
Ciao jluerken |
|
#13
|
||||
|
||||
|
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. |
|
#14
|
||||
|
||||
|
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: |
|
#15
|
||||
|
||||
|
Originally Posted by Lottis
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. |
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 13:16.







