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)

ZoltanN 12-18-2009 10:09 AM

Quote:

Originally Posted by microlight (Post 1932415)
Hi.

However, I don't know the code to search for Todays Posts. I wanted to emulate the 3.8.4 navbar a little and I found the code from within the userCP, cut and pasted it but it didn't work. Any ideas?


New posts are tagged by default in Vb 4 but should end with
Code:

search.php?do=getnew&contenttype=vBForum_Post
For today's posts (Also in Navbar) should end with

Code:

search.php?do=getdaily
All the above after the correct path to your forum

bbcentral 12-19-2009 06:13 AM

Very nice! I may have to use this, I don't have the CMS installed so I only have 2 tabs, "Forum" and "What's New".
I'll be installing ibProArcade, so I can use this mod to add a tab for "Arcade". I might also have to add one for "Social Groups" and "Albums".

Nicely done! :D

bbcentral 12-19-2009 06:20 AM

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.

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.

ageurtse 12-19-2009 06:45 AM

are you planning on adding dropdown button's

that would be great for us

balkanboy 12-19-2009 07:00 AM

thanks working great on RC4

khaoula 12-20-2009 07:49 AM

thanks... good works

zonaenlinea 12-20-2009 10:02 AM

thanks....

gyaronn 12-20-2009 10:11 AM

So simple and to the point wow :-). Thanks allot man i was looking for this for ages :-)

janaf 12-20-2009 03:19 PM

Great mod! *****

One typo in the code in the settings text:

This one will open in a new window, visible only to administrators.
vBulletin.org|http://www.vbulletin.org=>blank
If you don't specify a usergroup, that means that will be visible to all users.

A live list of usergroup (IDs) on the settings page would be nice.

radmoose 12-21-2009 08:20 AM

Nice..

The only problem I have had (using the vB4 default template in RC4) is when the screen size is small, the added tabs wrap down to a second line, and therefore mess us the layout.

It seems to be due to the design of the template itself, however, is there a way to fix this within this plug in or do I need to modify the template to keep the fixed with? (and if I do, it kind of defeats the purpose)


All times are GMT. The time now is 04:13 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.01807 seconds
  • Memory Usage 1,736KB
  • 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_code_printable
  • (2)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