vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - vBH-Add new tabs (https://vborg.vbsupport.ru/showthread.php?t=228507)

Mosh 12-21-2009 06:21 PM

Quote:

Originally Posted by stained (Post 1931607)
Thanks very much for this.

I had a request from one of my members to have tabs which, when clicked, will take him to a listing of his posts with another tab taking him to his threads. Obviously he could achieve the same by going through the 'my profile' link in the header but it would be nice to get to the posts and threads with just one click. The problem is that I don't know which url to point the buttons at to achieve this. I'd appreciate any help.

You could just use my View Your Threads Or Posts From The Navbar hack, as it does exactly what your members want.

Mosh 12-21-2009 06:25 PM

Quote:

Originally Posted by bbcentral (Post 1933316)
What about this link?
search.php?do=finduser&userid={USERID}&contenttype =vBForum_Post&showposts=1
(Replace {USERID} with whatever the phrase is to display their user ID)
That will show all his posts.

I'm not exactly sure how you can show the threads, I get different results when I change "showposts=1" to "showthreads=1", but I'm not sure what the difference is exactly.

"showposts=1" shows the search results as posts, so if you have say 4 posts in 1 thread, then you will 4 posts in the search results.

"showthreads=1" shows the search results as threads, so if you have say 4 posts in 1 thread, then you will only have the one thread in the search results.

kpa4941 12-21-2009 06:53 PM

I made a custom tab that links to a custom template via: http://xxxxx.com/forum/misc.php?do=page&template=xxxxx

Is it possible for the tab to be "selected", because currently if I click on it, it leads me to the page alright but the "Forum" tab remains the default selected tab.

Mosh 12-21-2009 07:06 PM

Quote:

Originally Posted by kpa4941 (Post 1934751)
I made a custom tab that links to a custom template via: http://xxxxx.com/forum/misc.php?do=page&template=xxxxx

Is it possible for the tab to be "selected", because currently if I click on it, it leads me to the page alright but the "Forum" tab remains the default selected tab.

Not with this hack unfortunately, as all it does at the moment is take you to external sites only, which is why you had to put the full url and which is why it does not highlight the tab.

If you look at my signature, I have a product that does the lot.

alnassrah 12-21-2009 10:31 PM

When they are updated to vb 4.0.0 gold ?

Edrondol 12-21-2009 11:05 PM

Not compatible with v4 Gold.

Error:

Quote:

1. This product is not compatible with version 4.0.0 of vBulletin. (Compatible starting with 4.0.0 Beta / Incompatible with 4.0.0 and greater)

Alteran Ancient 12-21-2009 11:19 PM

Edit the XML file and remove the "maxversion=" setting. The addon still works.

Edrondol 12-21-2009 11:51 PM

Quote:

Originally Posted by Alteran Ancient (Post 1934995)
Edit the XML file and remove the "maxversion=" setting. The addon still works.

Cool. Thanks, man.

RDX1 12-22-2009 08:32 AM

Works great. Will probably be dysfunctional in vB5 when they offer customers to add their own tabs.

firstimecaller 12-22-2009 11:23 AM

Amazing that this isn't part of vB out-of-the-box. They are selling a CMS without a simple method of modifying menu navigation? World class!


All times are GMT. The time now is 05:15 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.01567 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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