Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2006, 08:04 PM
DrewM DrewM is offline
 
Join Date: Oct 2005
Posts: 564
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Any way to alienate these edits?

Well like acople of my last posts I'm making the user quick link hack for personall use and there were two edits that I'm wondering if there was a hook for, the edits are:
In global.php
find
PHP Code:
 // #############################################################################
// ######################### END TEMPLATES & STYLES ############################
// ############################################################################# 
and add below:
PHP Code:
if ($vbulletin->userinfo['customquicklinks']) 

    
$cqlinks unserialize($vbulletin->userinfo['customquicklinks']); 
    
$customquicklinks ''
    if (
$cqlinks
    { 
        
$show['customquicklinks'] = true
        foreach (
$cqlinks AS $cqlink
        { 
            
$cqlink unserialize($cqlink); 
            eval(
'$customquicklinks .= "' fetch_template('customquicklink') . '";'); 
        } 
    } 

the second edit is:
In /includes/functions_user.php
Find:
PHP Code:
        'options',
        
'password'
and add Below
PHP Code:
        'quicklinks'
Thanks for any help!
Reply With Quote
  #2  
Old 03-06-2006, 08:48 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all you have to do is look at the file...
search for any "hooks" in the file...
if you find a hook around the area where your edits are needed than you found your answer

by the way, what exactly is this for? where will this function be located? CP?
Reply With Quote
  #3  
Old 03-06-2006, 09:03 PM
DrewM DrewM is offline
 
Join Date: Oct 2005
Posts: 564
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeton
all you have to do is look at the file...
search for any "hooks" in the file...
if you find a hook around the area where your edits are needed than you found your answer


by the way, what exactly is this for? where will this function be located? CP?
I looked threw global.php but I dod not find any thing for the second it's just a preload templeat But I was wondering if you new how to do this threw hook.

This is for user quick links.
Reply With Quote
  #4  
Old 03-06-2006, 09:08 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can try global_start for the first set of code

for the second set... use usercp_nav_start
PHP Code:
$cells array_merge($cells, array(
        
'quicklinks',
    )
); 
Reply With Quote
  #5  
Old 03-06-2006, 09:12 PM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Larrysw
I looked threw global.php but I dod not find any thing for the second it's just a preload templeat But I was wondering if you new how to do this threw hook.

This is for user quick links.
https://vborg.vbsupport.ru/showthread.php?t=108977

Is your friend for any future needs
Reply With Quote
  #6  
Old 03-06-2006, 10:43 PM
DrewM DrewM is offline
 
Join Date: Oct 2005
Posts: 564
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeton
you can try global_start for the first set of code

for the second set... use usercp_nav_start
PHP Code:
$cells array_merge($cells, array(
        
'quicklinks',
    )
); 
thanks I've tried global_start but why not try again?

Quote:
Originally Posted by Trigunflame
https://vborg.vbsupport.ru/showthread.php?t=108977

Is your friend for any future needs
thanks also
Reply With Quote
Reply


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 08:14 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.03781 seconds
  • Memory Usage 2,225KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete