![]() |
Custom Quick Links
What does this do?
Lets members of your forum add custom links at the bottom of the Quick Links popup in the navbar. Overview: Queries: 1 (during install) Phrases: 8 New Templates: 3 - customquicklinks - usercp_quicklinks - usercp_quicklinks_exist Edit Templates: 2 - USERCP_SHELL - navbar Edit Files: 3 - profile.php - global.php - includes/functions_user.php More Info: Members will be able to add customized links to the quick links popup via the "UserCP -> Edit Quick Links" link. These links will appear under 'Custom Links' at the bottom of the Quick Links popup. It adds no additional queries during pageloads. (the data is stored in usertextfield which is grabbed on every page by default) The links are individual to each user, not global for everyone. The link titles are HTML safe. The only drawback is that very long link titles also distort the quick links popup and make it very wide, but that is up to each member. Changelog: v1.1: - Added quicklinks to construct_usercp_nav() (Thanks Lionel) |
There is a template mod at vbulletintemplates that allows you to do that. It's call the favorites and make use of the custom profile fields. Except it does not put them in the navbar.
|
Well, I''l take that back. I went to your site and saw it. Pretty impressive....
|
in functions_user.php
PHP Code:
|
Quote:
|
Quote:
|
Checked over everything and it is not wokring for me which is rare. I can add links, there is stuff in the created DB table. Just nothing shows up in my menu. If I take the <if> condition out of the navbar edit, I do see the thead row but no links under it. I will look over my steps in the morning though.
|
Quote:
|
I like this hack and want to install but I am upgrading from vb3.06 to vb3.07 this weekend. does this hack work in 3.07?
|
Quote:
|
I am using 3.07, no problems
|
I checked my install and I can't see anything wrong. Would the fact that my navbar is in my header template have anything to do with this not displaying?
As I said, I can add sites my CP and the created table now has info in it. It's just the Quicklinks drop down does not show any of this hack's display. |
I PM'd pimpery to ask him why this hack was resource intensive.
Quote:
The quicklinks are stored in the usertextinfo table which is queried automatically on every page. |
Quote:
|
nice hack dude!
wheres the other hack gone which used custom fields? I can't seem to find it on vbt or here. |
Quote:
You moved the quick navbar into the header template? In that case, you need to edit global.php and move the section PHP Code:
PHP Code:
|
Quote:
And that fix worked. Thank you for this nice addition. I ended up taking this out of QuickLinks and making it's own "My Links" drop down. I also added target="_blank" to the code in customquicklink template to have these open in a new window. :) |
I must have done something very wrong. I couldn't get past the first step. Here is what I got running the query:
An error occurred while attempting to execute your query. The following information was returned. error number: 1146 error desc: Table 'forum.usertextfield' doesn't exist I'd like to add this to our 3.07 version but can't. Any help? |
Quote:
|
@lefthome
If you are using a table prefix for your vB tables, you will have to add that in front of the usertextfield tablename. |
how can I use conditionals to let specific usergroups access the quick links? I dont want to do it at the navbar level (people can manually type in the direct link), I would like profile.php to check if the user belongs to usegroupid 3 and 4 (for example) and only let those groups update or add the quick links...thank you for any help.
|
I installed it on www.webmastershelp.com and it works great! Thanks :).
|
Excellent hack, Soup. :)
|
Incidentally, you should cache the templates.
In profile.php, find: PHP Code:
PHP Code:
|
Okay, I'm sure I'm missing something simple and I'll feel silly, but I'm begging for some help here (insert *impish grin* smilie here). :cheeky:
I have this working on my forums and my members love it. However, I've just recently installed the Additional Navbar hack and for the life of me, I can NOT get this to work there. The $customquicklinks just will not show. I have the $navbar2 value in the navbar template, so I don't think the modification listed above will be helpful. Suggestions are very welcome, I've lost some hair over this one. :nervous: |
No one?
|
This is a very nice hack and works fine :)
Just out of interest though, will there be an add-on in the future to allow it to work on the vBAdvanced CMPS page? It doesn't appear on any page that isn't within the /forum directory although it is fine everywhere else.. Maybe there is quick and easy way to adjust this? ^^;; |
installed easily in 3.0.8 - thanks for sharing!
|
any chance for a 3.5.X update to this?
|
All times are GMT. The time now is 04:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|