vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Unread Posts and Reputation Comments (welcome box) (https://vborg.vbsupport.ru/showthread.php?t=123886)

Silver_2000_)! 12-29-2006 01:35 AM

Great mod

Can you offer suggestion on how to get it to work with VBAcmps ?
http://www.vbadvanced.com/products.p...roductinfo&p=4

The link shows up in the cmps but the link doesnt work since its in a different folder

Thanks in advance

Paul M 12-29-2006 02:35 AM

Edit the unread posts phrase and change the link from search.php?do=getnew to /forumpath/search.php?do=getnew

Silver_2000_)! 12-29-2006 03:17 AM

Quote:

Originally Posted by Paul M (Post 1146722)
Edit the unread posts phrase and change the link from search.php?do=getnew to /forumpath/search.php?do=getnew

You rock !!

I knew it would be easy - just didnt know where to look

THANKS
Doug

Brew 01-02-2007 05:13 PM

Thanks for this great hack PaulM!

I was using this hack and it stopped working.

It seems that it's not compatible with Plugin Based Template Cache:

https://vborg.vbsupport.ru/showthread.php?t=121876

After the template cache was installed your hack stopped working :(

I'll be posting to the template cache thread about this problem too.

Thanks for your help!

Smoothie 01-02-2007 11:53 PM

Hey Paul, I know your talented, is there a slim possibility to get this mod to work with this:
https://vborg.vbsupport.ru/showthrea...nicer+greeting

In a nutshell instead of saying:

Quote:

Welcome, Admin.
You Have 157 Unread Posts
this other mod combined with this mod would show this(depending on the time of day):

Quote:

Good morning/afternoon/evening, Admin.
You Have 157 Unread Posts

Paul M 01-02-2007 11:58 PM

In the plugin, change

PHP Code:

    $search_text '</strong><br />'

to
PHP Code:

    $search_text '$ng_greeting<br />'

and it should work.

Smoothie 01-03-2007 12:14 AM

Quote:

Originally Posted by Paul M (Post 1149513)
In the plugin, change

PHP Code:

    $search_text '</strong><br />'

to
PHP Code:

    $search_text '$ng_greeting<br />'

and it should work.

I'll give it a shot. Thanks.

Smoothie 01-03-2007 12:19 AM

Quote:

Originally Posted by Paul M (Post 1149513)
In the plugin, change

PHP Code:

    $search_text '</strong><br />'

to
PHP Code:

    $search_text '$ng_greeting<br />'

and it should work.

Didn't work, it reverted back to the standard greeting:
Quote:

Welcome, Admin.
You last visited: Today at 08:58 PM

Paul M 01-03-2007 05:27 AM

Assuming you had edited your navbar as per the other hacks instructions then I can't see why it wouldn't. There is nothing else I can tell you.

Smoothie 01-03-2007 08:47 AM

Quote:

Originally Posted by Paul M (Post 1149685)
Assuming you had edited your navbar as per the other hacks instructions then I can't see why it wouldn't. There is nothing else I can tell you.

ah, I just changed the plugin, I leftout the NB edit. Will try again.

Smoothie 01-03-2007 02:07 PM

Quote:

Originally Posted by Paul M (Post 1149685)
Assuming you had edited your navbar as per the other hacks instructions then I can't see why it wouldn't. There is nothing else I can tell you.

It works and thank you!

TrIn@dOr 01-05-2007 11:35 AM

Paul, how can i exclude certains forums to be inspected for the count?

Thanks.

Paul M 01-05-2007 04:28 PM

There is no such feature in this.

stomph 01-05-2007 09:09 PM

Thanks for the hack!

Just in case anyone wants to know (and sorry, if it's already been mentioned):
I also had the Text visible only in the default template. Inserting $unread in the other template (Kirsch) worked, but the URL to search.php contained backslashes. My first attempt to simply remove the backslashes from the phrases broke the default template. So I added a variable $unreadss in the product's xml-File ($unreadss = stripslashes($unread);) at around line 97 and can now insert $unreadss in the Kirsch-Template... works fine! :-)

firstrebel 01-15-2007 07:37 PM

Quote:

Originally Posted by GrendelKhan{TSU (Post 1062535)
anyway to EXCLUDE certain threads or forums from the count?

eg: I don't RSS feeds showing up on this as it turns out to be new thread/information overload and drowns out 'legitimate' new posts.

You can exclude any forum this way. You need to edit these phrases

dup_no_posts
dup_no_posts_visit
dup_posts
dup_posts_visit

add this after do=getnew
Quote:

&exclude=1,2,3,4
where 1,2,3,4 are the ID's of the forums you want to exclude. This is how mine looks
Quote:

<a href=\"search.php?do=getnew&exclude=41,51,102,103, 104,105,106\">
Paul is quite right in stating he is not going to include this as an option, as vB should have done that when they brought RSS Feeds out. There should have been the facility in ACP to exclude selected forums. This has been a nightmare for many who have used the RSS system. Hopefully it will be included in the next update. :rolleyes:

Bob

eclectica 01-23-2007 08:04 AM

Quote:

History:

v1.19 : Modified slightly to exclude moderated or soft deleted posts (unless moderator)
There's a significant update. That's for the better so that users don't go crazy trying to find posts that they can't see.

Thanks for the continuing updates and for providing a well-polished hack.

BuyHostCheap 01-24-2007 03:19 AM

simply the best

rjmjr69 01-27-2007 01:55 PM

Did not work with 3.6.4

Paul M 01-27-2007 02:20 PM

Works fine with any 3.6 version.

mandy71480 01-27-2007 02:39 PM

Nice! Thanks so much! :) Works beautifully with 3.6.4

Gaspanic 01-28-2007 09:05 PM

Is there anyway to exclude 1 forum from the count at all, maybe a little piece of code I can add?

I need it to stop displaying new posts for just 1 forum.
Cheers

nitro 02-16-2007 08:17 AM

Is there one similar to this that counts and displays x # for new threads with zero replies since last visit ?
I thought this was the one but it doesnt look like it, is it another of yours Paul ?

Paul M 02-16-2007 10:59 AM

Quote:

Originally Posted by nitro (Post 1183730)
Is there one similar to this that counts and displays x # for new threads with zero replies since last visit ?
I thought this was the one but it doesnt look like it, is it another of yours Paul ?

I'm guessing you mean the code we run on Cable Forum - that is not publicly available anywhere.

NaughtyStud 02-18-2007 05:34 PM

Love this hack, thank you so much. ;)

Smoothie 02-24-2007 04:32 PM

Trying to remove the <br /> in this so I don't have 4 lines in the welcome box, but when I do that it breaks the mod. Any idea why or how to remove that without it causing problems?

Paul M 02-24-2007 06:57 PM

You can't, it's part of the text the template replacement looks for. It would look pretty stupid without anyway.

Smoothie 02-24-2007 08:54 PM

Quote:

Originally Posted by Paul M (Post 1189894)
You can't, it's part of the text the template replacement looks for. It would look pretty stupid without anyway.

No way around that? I'd prefer to put the <br /> somewhere else.

Paul M 02-24-2007 09:28 PM

Nope, not unless you want to start re-writing part of it.

Smoothie 02-25-2007 11:20 PM

Quote:

Originally Posted by Paul M (Post 1189987)
Nope, not unless you want to start re-writing part of it.

Well, that's a shame. By removing a simple<br />, it also breaks the mod. :down:

soletrader 03-01-2007 01:14 AM

Is it possible for this to not show posts from a certain subscription only forum? Thanks

Scooterpig 03-01-2007 07:10 AM

Great little hack and I thank you for it as like it..:)

Just wondering with the edit for it not showing certain forum numbers, which works for me no worries, but am curious if that also not shows up as Unread Posts at the top or did it just show for me cause I am admin anyways?

MusicMan? 03-01-2007 08:09 AM

Great hack.. thankyou :)

PoetJA-1975 03-02-2007 11:30 AM

Quote:

Originally Posted by Paul M (Post 1146722)
Edit the unread posts phrase and change the link from search.php?do=getnew to /forumpath/search.php?do=getnew

Hey PAUL - Great hack = Thanx
Question: JPiC is run from http://JPiCForum.info and doesn't have a forum path.
Anyway idea on how to work with vBAdvanced? Hope this doesn't sound too stupid LOL

Jacquii.

JohnBee 03-02-2007 11:37 AM

This hack would be awesome if we could move it around freely in the WB instead of it being bound or located by a statement. Any chance it could be done as a variable?

Smoothie 03-02-2007 02:25 PM

Quote:

Originally Posted by JohnBee (Post 1194018)
This hack would be awesome if we could move it around freely in the WB instead of it being bound or located by a statement. Any chance it could be done as a variable?

Agree 100%. While on the subject, it's redundant to have the unread posts as a link and new posts link in the navbar.

Paul M 03-02-2007 05:09 PM

There are no plans to change anything in this mod.

BarryoBrien 03-13-2007 01:02 PM

over the past few days the new post link says there is 10 posts unread even tho they have all been read my members are saying the same thing for about 30 posts it was working fine the past few weeks I havent installed any other hacks since this one please help thanks

Paul M 03-13-2007 07:16 PM

There is nothing I can tell you without admin/sql access to your forum.

PoetJA-1975 03-15-2007 08:06 AM

OK - I'm pretty sure this modification should be seen on vBadvanced portal page. I can't see it!?!? Any ideas?

Thanx in advance,

Jacquii.

Paul M 03-15-2007 10:49 AM

I think you would need to ask the vba team about that, I don't use it.


All times are GMT. The time now is 04:58 AM.

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.01608 seconds
  • Memory Usage 1,827KB
  • 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
  • (6)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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