Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
My Links Details »»
My Links
Version: 1.00, by blind-eddie blind-eddie is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: End-User Options - Version: 3.7.6 Rating:
Released: 07-11-2008 Last Update: 07-12-2008 Installs: 14
Supported Template Edits
Re-useable Code Translations  

My Links

This will work with any version of vbulletin up to 3.8.7

Huge Thanks goes to Hasann for pointing me in the right direction. Also hats off to all members here for helping me in the past. You guys are great.

I have wanted to give my members a way to add their own links within the navbar. I tried many times to make this happen, but never could.
I searched for it everywhere. I have seen members here request it.
I used lines codes from Templates & Products to make this one.

Members Custom Links




Description: This Template edit add's user specified links in the QuickLinks Dropdown, that can be edited via usercp, in the Settings & Options Section, edit options.


Demo: Installed on my site. See screen shots

First, go to your admincp/User Profile Fields/User Profile Field Categories/AddNewProfile Field Category.

Title: My Links
Description: Here you can display links you go to on a regular basis
Location on Profile Page: Where ever you wish.
Click Save.

Now, you will need to add at least Two New User Profile Fields, You will need to duplicate these steps for each "My Links" link's you wish to display.
I made 6 links for my members, but this number can be any number you wish.
But, you will need to make twice as many User Profile Fields as the number of links you wish to display.

In the User Profile Fields Section in your admincp, click Add New User Profile Field

Profile Field Type: Single-Line Text Box

( All New User Profile Field Profile Fields are Single-Line Text Box )

Title: Link One URL

Description: Add link you wish to go to.

Profile Field Category: My Links

Max length of allowed user input: 100

Field Length: 25

Field Required: No

Field Editable by User: Yes

Private Field: No

Field Searchable on Members List: No

Show on Members List: No

Which page displays this option? : Options : Other
Remember this number each time you make a new user profile field.
Click Save


Example, each link you wish to show in your My Links section in your navbar takes two User Profile Fields to create.
One for url, and one for the name you wish to display in the link.


After you have completed all the User Profile Fields open your Styles & Templates dropdown in your admincp, Search in Templates, search for navbar.

To get this info, click installed & download the My Links text doc. :up:

The two xx must be the same number as the profile field you made for the URL Link.
The other xx must be the same number as the profile field you made for the link name you want displayed in your My Links section in the Quicklinks Dropdown.
Use that code above for each Link you wish to display, changing the profile field numbers as you go. ENJOY!!!



-----------------------------------------------------------------------------------------------------

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 07-12-2008, 05:52 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is only a template edit & can be used on any version of vb. I will be cleaning up a few things on this (Learning everyday) and make improvements. Click installed to receive updates.

In the edit options Image above, you see I made mine With all Link to URL on top & All Link Names Below that.
To have example Link One URL & Link One Name With each other, Just make the URL Profile field first, Then the URL name
next, repeat these steps when adding more links.
Reply With Quote
  #3  
Old 07-12-2008, 08:08 PM
Rideharder's Avatar
Rideharder Rideharder is offline
 
Join Date: Jan 2008
Location: Florida
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
This is only a template edit & can be used on any version of vb. I will be cleaning up a few things on this (Learning everyday) and make improvements. Click installed to receive updates.

In the edit options Image above, you see I made mine With all Link to URL on top & All Link Names Below that.
To have example Link One URL & Link One Name With each other, Just make the URL Profile field first, Then the URL name
next, repeat these steps when adding more links.

Sweet. thanks!
Reply With Quote
  #4  
Old 07-12-2008, 09:43 PM
ahmedeldeep's Avatar
ahmedeldeep ahmedeldeep is offline
 
Join Date: Jun 2007
Location: Egypt
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod
Reply With Quote
  #5  
Old 07-12-2008, 09:47 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am glad you can use it. My members love it.
Reply With Quote
  #6  
Old 07-12-2008, 10:55 PM
topspeeforum topspeeforum is offline
 
Join Date: Mar 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not working right for me. It only displays My Links and doesnt show the info i put into the profile fields
Reply With Quote
  #7  
Old 07-12-2008, 11:19 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<tr><td class="thead">My Links</td></tr>
<if condition="$bbuserinfo['fieldxx']"><td class="vbmenu_option"><a href="$bbuserinfo[fieldxx]$session[sessionurl_q]" TARGET="_blank">$bbuserinfo[fieldxx]</td></tr> </if>
Remember:
The two xx must be the same number as the profile field you made for the URL Link.
The other xx must be the same number as the profile field you made for the link name you want displayed in your My Links section in the Quicklinks Dropdown.
Use that code above for each Link you wish to display, changing the profile field numbers as you go.

topspeeforum, please click installed, Thanks
Reply With Quote
  #8  
Old 08-13-2009, 04:13 PM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod is exactly what I needed. Thanks for pointing me to it in the other thread. I do have one question though, how can I get this mod to work with this one... Additional navbar with dropdowns.

I've used that mod to add the navbar2 above my site's breadcrumb/welcome block. I would like your mod to be in the far right of navbar2 (right about the welcome block).

If it helps, here is my current navbar2 template:

HTML Code:
<!-- nav buttons bar -->
<div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px; border-bottom-width:0px">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
	<tr align="center">	

<!-- Home link in navbar non drop down menu -->
		<td class="vbmenu_control"><a href="/index.php?$session[sessionurl]">Home</a></td>
<!-- / Home link in navbar non drop down menu -->

<!-- Forum link in navbar non drop down menu -->
		<td class="vbmenu_control"><a href="/forum/index.php?$session[sessionurl]">Forums</a></td>
<!-- / Forum link in navbar non drop down menu -->

<!-- Member List link navbar non drop down menu -->
		<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
			
<!-- / Setup for down menu #1 in navbar-->

<!-- Setup for drop down menu #2 in navbar -->
<td class="vbmenu_control"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>

<!-- / Setup for drop down menu #2 in navbar -->

<!-- Non drop down menu's in navbar -->
		<td class="vbmenu_control"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<!-- / Non drop down menu's in navbar -->




	</tr>
	</table>
</div>

<!-- / nav buttons bar -->

<!-- NAVBAR POPUP MENUS -->
	





<!-- / NAVBAR POPUP MENUS -->
<!--####### end of navbar2 #######-->
I've not cleaned up some the comment lines at the bottom in case I need them back in there.

Thanks again!
Reply With Quote
  #9  
Old 08-13-2009, 04:41 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look here, this will help you to add My Links to your top navbar.

I will add the option to add this to top navbar with proper edits later tonight.

Happy editing.
Reply With Quote
  #10  
Old 08-13-2009, 05:35 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have made edits for this to show a My Links Dropdown in the top Navbar on one of my sites with info from my last post.

I will post results after I return home this evening. Late for work now, gotta go.
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 01:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06956 seconds
  • Memory Usage 2,315KB
  • Queries Executed 24 (?)
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)bbcode_code
  • (1)bbcode_html
  • (1)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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