vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Custom Quick Links (https://vborg.vbsupport.ru/showthread.php?t=77715)

Soup 03-07-2005 10:00 PM

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)

Lionel 03-08-2005 01:08 PM

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.

Lionel 03-08-2005 01:27 PM

Well, I''l take that back. I went to your site and saw it. Pretty impressive....

Lionel 03-08-2005 11:49 PM

in functions_user.php
PHP Code:

I added in the 
 
$cells 
= array( 
 
after 
 
'profilepic',
'quicklinks'

That makes it consistent with the rest of the left navigation bar.

pimpery 03-08-2005 11:54 PM

Quote:

Originally Posted by Lionel
in functions_user.php
PHP Code:

I added in the 
 
$cells 
= array( 
 
after 
 
'profilepic',
'quicklinks'

That makes it consistent with the rest of the left navigation bar.

be cautious of this hack: its resource intensive.

Zoints 03-09-2005 05:24 AM

Quote:

Originally Posted by pimpery
be cautious of this hack: its resource intensive.

How is it resource intensive? Could you elaborate please?

RMS-Chef 03-09-2005 06:09 AM

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.

Boofo 03-09-2005 06:59 AM

Quote:

Originally Posted by pimpery
be cautious of this hack: its resource intensive.

I'd be curious to know myself. How bad is it and how did you come to this conclusion? ;)

lefthome 03-09-2005 11:02 AM

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?

Soup 03-09-2005 11:22 AM

Quote:

Originally Posted by lefthome
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?

I don't see a reason why it wouldn't work in 3.0.7, since it is not really editing any existing functions to change functionality. Though I can't say 100% that it will.


All times are GMT. The time now is 01:50 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
  • Page Generation 0.01053 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete