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)

Lionel 03-09-2005 01:03 PM

I am using 3.07, no problems

RMS-Chef 03-09-2005 06:00 PM

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.

Zoints 03-10-2005 06:19 AM

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.

RMS-Chef 03-11-2005 01:13 AM

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?

-=Sniper=- 03-11-2005 01:41 AM

nice hack dude!

wheres the other hack gone which used custom fields? I can't seem to find it on vbt or here.

Soup 03-11-2005 09:35 AM

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') . '";'); 


RMS-Chef 03-11-2005 12:34 PM

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. :)

lefthome 03-12-2005 03:36 PM

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?

Soup 03-12-2005 05:51 PM

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"

Marco van Herwaarden 03-12-2005 05:53 PM

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


All times are GMT. The time now is 06:14 AM.

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.01200 seconds
  • Memory Usage 1,748KB
  • 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
  • (6)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