vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Cyb - Advanced 'New Posts' (https://vborg.vbsupport.ru/showthread.php?t=122995)

Valter 08-03-2006 10:00 PM

Cyb - Advanced 'New Posts'
 
vB 3.7 VERSION HERE:
https://vborg.vbsupport.ru/showthread.php?t=177930


======

Info:
This hack will show how many new posts/threads have been posted on forums since user last visit. "New Posts" in navbar menu will be replaced by "New Posts: x (In y Threads)". Optionally you can enable and configure Smart Search Menu to give users ability to search only wanted forums. See screenshots...


Installation:
Import product XML: AdminCP > Plugin System > Manage Products > [Add/Import Product]


To set options:
Go to: AdminCP > vBulletin Options > Cyb - Advanced 'New Posts'


Versions:
v1.0 - Apr 29. 2006.
-First Release
v1.5 - Jun 25. 2006.
-Added - advanced searching of new posts (see screenshots)
-Improved codes (recommended to upgrade because of this)
v1.6 - Jun 26. 2006.
-Advanced searching of new posts splitted into two menu items
v1.7 - Jun 28. 2006.
-Changed the way of showing new posts info. Now we have flexible phrase depending on number of new posts/updated threads.
New Posts: 0
New Posts: 1
New Posts: 2 (In One Thread)
New Posts: 3 (In 2 Threads)
-Added links to used phrases on hack options page so you can easily find and change/translate them.
v1.8 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.9 - Sep 28. 2006.
-Added Product Version Checking
-Fixed links to phrases in ACP (used to easily customize phrases)
-Added option to change text color
-Fixed bug ("Advanced New Posts Search Menu" not centered between other items in navbar menu)
-Hack name changed to "Cyb - Advanced 'New Posts'"
NOTE: Before upgrading save somewhere content of "Menu Items" field to restore it after upgrade. It will be removed during upgrade process.
v2.0 - Jul 31. 2007.
-Added "No New Posts" to show when there is no new posts after user last visit
-Smart Search Menu (SSM) improved (no more need to write lines of code, just put forum IDs in setting field)
-SSM automatically hidden when there is no new posts
-A lot of improvements and optimization done, including:
*two templates removed
*improved integration with different styles (to avoid manual template edits)


Mark as installed to get support and updates.


Cybernetec

Snatch 08-08-2006 06:48 AM

Great Hack, but one thing. Is it possible to make it, that the hack shows me also only new threads ?

GreeTz
Snatch

wizardan 08-16-2006 03:11 PM

I desperatly need to change the font color of the links in the Navbar.
I tried the tricks you gave me for the 3.5.4 version, in Phrases.
My changes won't stick.

noel_leon 08-25-2006 10:54 PM

Awesome, just what I like. Thanks for making this public.

edit: I just noticed that the numbers are gone when viewing the forum from my vbadvanced index. Got any ideas on how to fix that?

Ninth Dimension 08-25-2006 11:52 PM

I like the idea of this hack, but it doesn't work with the template I've got installed. The navbar has been moved into the header template, which is fair enough, I was able to find the required code and change it, but upon doing it, the table got all screwed up (and the text was a diffrent colour).

SCRIPT3R 09-12-2006 07:48 PM

any chance of putting this into the member block rather then the navbar; similar to PaulM's hack here?

Valter 09-12-2006 09:15 PM

Quote:

Originally Posted by GearTripper
any chance of putting this into the member block rather then the navbar; similar to PaulM's hack here?

Yes, use Paul's hack.

SCRIPT3R 09-12-2006 09:36 PM

well, they're way different - guess i'll write my own merging both of yours.

Gaia 09-15-2006 12:47 PM

Hi, i'm trying to install this on vB 3.6.1 and when i try to import it as a product it says that it is a plugin and that i should use the plugin manager to upload. So i went to Upload/download plugin, uploaded it, and nothing happened.

Fenriz 09-21-2006 04:04 AM

Thank you! It is a long-awaiting hack for me!
One question - I have a big space between the "New Posts In" item and the next item. How could I reduce this space? Thank you.

CrystaStarLight 09-27-2006 02:43 PM

I'd like to know how to prevent the font from being another color in the NavBar too. I need it to change it to how the rest of my links in the NavBar look. Thank you!

SCRIPT3R 09-27-2006 03:44 PM

Quote:

Originally Posted by CrystaStarLight
I'd like to know how to prevent the font from being another color in the NavBar too. I need it to change it to how the rest of my links in the NavBar look. Thank you!

here's the product (v1.8) without the text formatting. just Import and Allow Overwrite.

Valter 09-28-2006 05:23 AM

<font size="6">Phrase Manager</font>

captainslater 09-28-2006 06:34 AM

If I click in the vBulletin-Settings > Cyb product > on the three phrase links there comes an error: "No phrases found"

If I'm searching via "Browse Phrases" there they are.

I don't edit anything before this.

Valter 09-28-2006 10:37 AM

v1.9 - Sep 28. 2006.
-Added Product Version Checking
-Fixed links to phrases in ACP (used to easily customize phrases)
-Added option to change text color
-Fixed bug (unneded extra space after "Advanced New Posts Search Menu" in navbar menu)
-Hack name changed to "Cyb - Advanced 'New Posts'"
NOTE: Before upgrading save somewhere content of "Menu Items" field to restore it after upgrade. It will be removed during upgrade process.

nathanrich 09-28-2006 09:54 PM

Nice Hack.

1 Question. Is there a way to combine the two links in the navbar into just one?

Thanks

Valter 09-28-2006 11:54 PM

nathanrich,

It was one link previously but it was boring to expand menu every time when you want to search new posts. Believe me, you don't need this. :rolleyes:

nathanrich 09-29-2006 12:16 AM

Quote:

Originally Posted by Cybernetec
nathanrich,

It was one link previously but it was boring to expand menu every time when you want to search new posts. Believe me, you don't need this. :rolleyes:

hehe, fair enough :)

SCRIPT3R 09-29-2006 12:20 AM

Quote:

Originally Posted by nathanrich
1 Question. Is there a way to combine the two links in the navbar into just one?

yes, very easy to do.

gator777 10-02-2006 08:38 AM

Nice hack, but I have one problem. I am using VBAvanced, and it will not display the number of posts when viewing the CMPS main page. Your help would be appreciated. :D

Eagle Creek 11-07-2006 08:44 AM

I do like the hack, but as soon as I enable it my server CPU starts to go crazy!
Therfore I had ti disable it.

Terminatoronly 01-01-2007 01:08 PM

nice hack installed of course :D but how can i make it for showing the new threads?????

IceBurn3000 01-08-2007 07:56 AM

Quote:

Originally Posted by gator777 (Post 1088232)
Nice hack, but I have one problem. I am using VBAvanced, and it will not display the number of posts when viewing the CMPS main page. Your help would be appreciated. :D

I have this same problem and another one:

For some reason, I can have read all threads (thus there being no new posts), and the "Advanced New Posts" link will tell me I have x-amount new posts in y-amount new threads.

I have the problem in both FF2 and IE7.

Apoco 01-08-2007 06:40 PM

Quote:

Originally Posted by IceBurn3000 (Post 1153390)
I have this same problem and another one:

For some reason, I can have read all threads (thus there being no new posts), and the "Advanced New Posts" link will tell me I have x-amount new posts in y-amount new threads.

I have the problem in both FF2 and IE7.

I am having the same problems.

Roonie 01-08-2007 10:06 PM

Thnks a lot for your hack :)

brvheart 01-08-2007 10:36 PM

great mod as usual cyb :)

anyway to put this in the welcome block (not the menu part...just the post/threads?

TheBlackPoet 01-25-2007 06:20 AM

Cyb!!!! man, your hacks are the best... you have an ear to the ground and seem to know what people need! thanks for this hack..

Makc666 04-02-2007 10:36 AM

1.
Can you add phrase translation to "Menu Items", please.
The same as for:
Phrase 1 Phrase 2 Phrase 3 Phrase 4

2.
Why not to add "Phrase 5" with text like: "There is no new posts".
It will be a replace for "New Posts: 0".

3.
Allow uses to add picture before $cyb_nptc_menu1 via ACP

Valter 04-02-2007 12:52 PM

Quote:

Last Update: 28-09-06
I must do something here when I have some time. :)

Thanks ;)

Xplorer4x4 06-19-2007 04:59 AM

Well if you feel like adding new things..:p

A Large edit button would be nice for the "Menu Items" section. Otherwise not to much i can think of.

legion! 06-19-2007 07:40 AM

i get the error that looks like this New Post ( Array Threads)

so i disabled the hack

Valter 07-30-2007 10:49 PM

v2.0 - Jul 31. 2007.
-Added "No New Posts" to show when there is no new posts after user last visit
-Smart Search Menu (SSM) improved (no more need to write lines of code, just put forum IDs in setting field)
-SSM automatically hidden when there is no new posts
-A lot of improvements and optimization done, including:
*two templates removed
*improved integration with different styles (to avoid manual template edits)

To upgrade: Import product XML, allow overwrite.

Fenriz 07-31-2007 02:23 AM

I have a modified navbar and use $cyb_nptc_menu1 and $cyb_nptc_menu2 lines of code. After upgrading to the 2.0 they don't work and just disappeared.
What kind of code should I use instead of?

Fenriz 07-31-2007 02:32 AM

..and where are the links to all the phrases?

Valter 07-31-2007 08:40 AM

You don't need to do any template changes. It should work with no problems (unless you miss navbar template on your board :)). To find/customize phrases use Search function in PhraseManager.

Fenriz 07-31-2007 12:18 PM

Cybernetec, it works only with unmodified navbar template for me. I have heavy modified navbar and need to define where the phrase "New Posts" will be.. What I need to insert then?

Quote:

To find/customize phrases use Search function in PhraseManager.
Heh. And what phrases do I need to search (exept New Posts:))?

Valter 08-01-2007 12:34 AM

Quote:

Originally Posted by Fenriz (Post 1306145)
Cybernetec, it works only with unmodified navbar template for me. I have heavy modified navbar and need to define where the phrase "New Posts" will be.. What I need to insert then?

Replace table cell (td) which contains "New Posts" with "$cyb_anp".
Quote:

Originally Posted by Fenriz (Post 1306145)
Heh. And what phrases do I need to search (exept New Posts:))?

No New Posts
New Posts: {1}
New Posts: {1} (In One Thread)
New Posts: {1} (In {2} Threads)
New Posts In
Show All New Posts
All New Posts
Show New Posts From
Show Today's Posts

Fenriz 08-02-2007 01:49 AM

Cybernetec, thank you! Now everything is ok. Your hack rocks!

yaoren 08-02-2007 02:11 AM

does it show ALL new posts to ALL members since last visit...including the ones posted in a private forum. I don't need "non private forum members" wondering where all the other posts are that they can't read.

Valter 08-02-2007 11:08 AM

Quote:

Originally Posted by yaoren (Post 1307688)
does it show ALL new posts to ALL members since last visit...including the ones posted in a private forum. I don't need "non private forum members" wondering where all the other posts are that they can't read.

It will not show anything which is not shown without this hack installed.


All times are GMT. The time now is 02:09 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.01335 seconds
  • Memory Usage 1,819KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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