Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Custom Quick Links Details »»
Custom Quick Links
Version: 1.1, by Soup Soup is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 03-07-2005 Last Update: 03-08-2005 Installs: 13
DB Changes
 
No support by the author.

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)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-09-2005, 01:03 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using 3.07, no problems
Reply With Quote
  #13  
Old 03-09-2005, 06:00 PM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 03-10-2005, 06:19 AM
Zoints Zoints is offline
 
Join Date: Feb 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I PM'd pimpery to ask him why this hack was resource intensive.

Quote:
Originally Posted by pimpery
Quote:
Originally Posted by thegunowner149
Hi, I have a question for you:

https://vborg.vbsupport.ru/showthrea...106#post623106

Thanks.
on EVERY page(its in the navbar) load. extra queries have to be made for the custom quicklinks. multiply that be all your users, viewing pages constantly.
If you review the code, you will see that he has no idea what he is talking about. People should not disparage other's hacks if they can't code their way out of a wet paper bag that is already torn and has arrows pointing the way.

The quicklinks are stored in the usertextinfo table which is queried automatically on every page.
Reply With Quote
  #15  
Old 03-11-2005, 01:13 AM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RMS-Chef
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 installed this on another site that has the navbar moved to header in a style and it again did not work. But it did work on a child style that had the navbar still in the navbar template. Any help?
Reply With Quote
  #16  
Old 03-11-2005, 01:41 AM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack dude!

wheres the other hack gone which used custom fields? I can't seem to find it on vbt or here.
Reply With Quote
  #17  
Old 03-11-2005, 09:35 AM
Soup Soup is offline
 
Join Date: Feb 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RMS-Chef
I installed this on another site that has the navbar moved to header in a style and it again did not work. But it did work on a child style that had the navbar still in the navbar template. Any help?

You moved the quick navbar into the header template?

In that case, you need to edit global.php and move the section
PHP Code:
// Custom Quick Links
if ($bbuserinfo['customquicklinks'])
{
    
$cqlinks unserialize($bbuserinfo['customquicklinks']);
    
$customquicklinks '';
    if (
$cqlinks)
    {
        
$show['customquicklinks'] = true;
        foreach (
$cqlinks AS $cqlink)
        {
            
$cqlink unserialize($cqlink);
            eval(
'$customquicklinks .= "' fetch_template('customquicklink') . '";');
        }
    }

a few lines higher, ABOVE this line:

PHP Code:
eval('$header = "' fetch_template('header') . '";'); 
Reply With Quote
  #18  
Old 03-11-2005, 12:34 PM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Soup
You moved the quick navbar into the header template?
Exactly. For an example attached is a shot of my neXusBlue vB3 conversion. I have several styles with the navbar taken out of the navbar/breadcrumb area and moved to header.

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.
Reply With Quote
  #19  
Old 03-12-2005, 03:36 PM
lefthome's Avatar
lefthome lefthome is offline
 
Join Date: Feb 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #20  
Old 03-12-2005, 05:51 PM
Soup Soup is offline
 
Join Date: Feb 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lefthome
I must have done something very wrong. I couldn't get past the first step. Here is what I got running the query:
Are you using table prefixes? If so, you need to add the prefix before "usertextfield" in the query. ie, if your prefix is "forum_" you need to change usertextfield to "forum_usertextfield"
Reply With Quote
  #21  
Old 03-12-2005, 05:53 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@lefthome
If you are using a table prefix for your vB tables, you will have to add that in front of the usertextfield tablename.
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 09:55 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.04592 seconds
  • Memory Usage 2,304KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete