PDA

View Full Version : Cyb - Advanced 'New Posts'


Valter
04-28-2006, 10:00 PM
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.

Valter
04-29-2006, 01:47 AM
Reserved.

alshehi
04-29-2006, 10:45 AM
thanksssssss

RDX1
04-29-2006, 10:46 AM
Very cool, thanks. :D

Rickie3
04-29-2006, 11:53 AM
very handy well done and thankyou *installed*

Snake
04-29-2006, 12:06 PM
Awesome! I will install this right away...

wizardan
04-29-2006, 12:29 PM
Simple and handy.
Installed:)

rmxs
05-27-2006, 05:12 PM
can you tell me y i get this? 27 New Posts (In Array Threads)

and not the numbers of thread?

A_N_K_A_R_A
05-28-2006, 05:18 AM
Very cool, thanks....

rmxs
06-05-2006, 06:06 PM
can you tell me y i get this? 27 New Posts (In Array Threads)

and not the numbers of thread?
SOMEONE PLZ.....

Valter
06-24-2006, 10:05 PM
v1.5 - Jun 25. 2006.
- Added - advanced searching of new posts (see screenshots)
- Improved codes (recommended to upgrade because of this)

Valter
06-25-2006, 01:09 PM
v1.6 - Jun 26. 2006.
- Advanced searching of new posts splitted into two menu items

-Screenshots updated.
-To upgrade import XML and allow overwrite.

wizardan
06-25-2006, 01:12 PM
How do I change the green font color of the new navbar links.
It clashes horribly with my style.
Still a great hack, by the way;)

Valter
06-26-2006, 08:46 AM
How do I change the green font color of the new navbar links.
It clashes horribly with my style.
Still a great hack, by the way;)
In Phrases:
cyb_newpoststhreadscounter_x_posts_in_y_threads
cyb_newpoststhreadscounter_new_posts_in

Ian Emu-UK
06-28-2006, 08:16 AM
I have a small request....

Would it be possible to make it say 1 new post (in 1 thread), 2 new posts (in 1 thread), 2 new posts (in 2 threads) etc. etc.

Other than that small thing, this hack is great.

Valter
06-28-2006, 10:19 AM
It is possible to make. I'll look into it when I have some time.

Valter
06-28-2006, 12:15 PM
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. Screenshot (https://vborg.vbsupport.ru/attachment.php?attachmentid=50024)
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.

wizardan
06-28-2006, 02:35 PM
In Phrases:
cyb_newpoststhreadscounter_x_posts_in_y_threads
cyb_newpoststhreadscounter_new_posts_in
Thanks very much, Cyb.

Ian Emu-UK
06-28-2006, 02:36 PM
Thanks, I have installed it, works a treat.

Valter
06-28-2006, 03:44 PM
Thanks very much, Cyb.
You're welcome.

Be noted that latest version has several phrases to edit. Read v1.7 release notes.

rmxs
06-30-2006, 08:37 AM
Someone tell why i get ARAY istead of number of threads??

New Posts: 52 (In Array Threads)

Valter
08-04-2006, 08:27 AM
vB 3.6 version:
https://vborg.vbsupport.ru/showthread.php?t=122995

Valter
07-28-2007, 07:48 AM
v1.9
-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.

Valter
07-30-2007, 10:50 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.

Loller
10-26-2007, 09:29 PM
When i install this mod, in default forum skin all works fine, but in some custom skins (CSS changes only) - bad. For example i create <td class="vbmenu_control"> with a border. And when i use this wonderful mod, on forum i will see empty <td> with a border.

In HTML source bug looks like this:

<a href="calendar.php">Calendar</a></td> <td class="vbmenu_control"><a href="search.php?do=getnew" accesskey="2"></a></td> <td class="vbmenu_control"> <a href="search.php?do=getnew" > No New Posts </a> </td>

Second <td> is unnecessary and field between <td> and </td> are empty! Reason of this - line 65 in product XML.

Help me please! :) I want to get rid of empty <td> :)