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)

hamidkh 06-19-2007 05:19 PM

i slove my problem

i customize XML file and it's work for my customize style

Trana 06-19-2007 07:59 PM

I upgraded two hacks that I had previously installed and this is no longer working.

VBSEO 3.0RC to 3.0Gold
VBA CMPS 2.0 to 3.0

I did not make any other changes and this seems to be broken now.

Does anyone have any idea what I should check?

Thanks.

Paul M 06-19-2007 09:00 PM

Define broken.

I run VBSEO and that has no effect on this. I don't see how CMPS would affect it (unless you mean just on the portal page).

Yours 06-20-2007 01:01 AM

I have this installed on 3.6.7 and It doesn't show where it should be. Is there any possible template edits I could do to fix this?

Trana 06-20-2007 04:02 AM

Quote:

Originally Posted by Paul M (Post 1272022)
Define broken.

I run VBSEO and that has no effect on this. I don't see how CMPS would affect it (unless you mean just on the portal page).

I don't understand it either. Basically it doesn't show up anymore. I reinstalled the XML product, is there anything else that should be done?

Trana 06-20-2007 04:42 AM

Ahh, I figured it out. I had removed the </ br> in the navbar during a template edit. It would be helpful to have an install file that explains in a note the method you use for changing the screen since us old school hackers are used to manually putting variables into our templates.

Paul M 06-20-2007 09:57 AM

Quote:

Originally Posted by Yours (Post 1272153)
I have this installed on 3.6.7 and It doesn't show where it should be.

I would guess you have customised your Navbar and removed the code this looks for.

Dotara 06-21-2007 05:05 PM

[Solved] working just fine.

brvheart 06-21-2007 09:08 PM

Paul, I would I get this to work if I wanted to use it in the header instead of the navbar? I believe that it is looking for the navbar, but on my mobile style I use the header for everything...any help would be greatly appreciated :)

Paul M 06-21-2007 10:01 PM

Easiest way is to insert a comment in the header template where you want this to appear (such as <!-- UNREAD -->) and then edit the mods Auto-Template settings to search for that comment.

Edit: Hmm actually, I never put those settings in this mod, so you will have to edit the $search_text variable in the plugin.

Note to self: I must update this.

brvheart 06-21-2007 10:02 PM

ok thanks, I wwas on the right track....I just dont know how to edit the auto template correctly....I tried but had to revert as the regular styles use the navbar and the mobile does not :-/

Could help me out? if not no worries as know you are busy ;)

Paul M 06-21-2007 10:09 PM

I've pretty much told you how above, which part don't you understand ?

brvheart 06-21-2007 10:12 PM

well I am not a coder, I know just enough to do basics.

brvheart 06-21-2007 11:14 PM

Quote:

Originally Posted by Paul M (Post 1273556)
Easiest way is to insert a comment in the header template where you want this to appear (such as <!-- UNREAD -->) and then edit the mods Auto-Template settings to search for that comment.

Edit: Hmm actually, I never put those settings in this mod, so you will have to edit the $search_text variable in the plugin.



Note to self: I must update this.

so can I just the comment variable to look for either place so that it works either way?

example:

PHP Code:

$vbulletin->templatecache['navbar'] = str_replace($search_text,$search_text.$unread,$vbulletin->templatecache['navbar']); 

to:

PHP Code:

$vbulletin->templatecache['navbar''header'] = str_replace($search_text,$search_text.$unread,$vbulletin->templatecache['navbar''header']); 


like I said I am just a novice still learning so that may be way off and a laughable offense ;)

Paul M 06-21-2007 11:37 PM

Laughable offence I'm afraid :D

These two lines ;

PHP Code:

$search_text '</strong><br />';
$vbulletin->templatecache['navbar'] = str_replace($search_text,$search_text.$unread.'<br />',$vbulletin->templatecache['navbar']); 


... become this ;

PHP Code:

$search_text '<!-- UNREAD -->';
$vbulletin->templatecache['header'] = str_replace($search_text,$search_text.$unread.'<br />',$vbulletin->templatecache['header']); 



And you add <!-- UNREAD --> to your header template, where you want the mod to appear.

brvheart 06-21-2007 11:55 PM

can I make the search text for both the navbar as it is and add for the header so that it works in the regular styles that use the navbar?

brvheart 06-22-2007 12:02 AM

well, I just added your code to the bottom of the plugin....

PHP Code:

$search_text '</strong><br />';
    
$vbulletin->templatecache['navbar'] = str_replace($search_text,$search_text.$unread,$vbulletin->templatecache['navbar']);


        
$search_text '<!-- UNREAD -->';
        
$vbulletin->templatecache['header'] = str_replace($search_text,$search_text.$unread.'<br />',$vbulletin->templatecache['header']); 


or like this and have it still look for <strong>

PHP Code:

$search_text '</strong><br />';
    
$vbulletin->templatecache['navbar'] = str_replace($search_text,$search_text.$unread,$vbulletin->templatecache['navbar']);
    
$vbulletin->templatecache['header'] = str_replace($search_text,$search_text.$unread.'<br />',$vbulletin->templatecache['header']); 


it appears to work, see any issues with doing it like that?....thank you for the help....I hope to get better with this code stuff....but in time ;)



At least I gave you a laughable offense ;)

Paul M 06-22-2007 06:43 AM

There is no real issue with having it as per your first example (where you just added the new code below the existing code) - it means it will still work as intended as well as the extra code for yourself.

brvheart 06-22-2007 11:43 PM

sweet that is what I was after :) thanks Paul you ROCK!!!!

MadKad 06-24-2007 02:27 PM

I have a little proble, when a member registers it tells them that they have something like 24,0000 posts unread, but I relly think it should say you have 0 unread posts as they are new.

Is there a way of sorting this problem out?

I have had this mod installed for a while :)

Paul M 06-24-2007 06:23 PM

I guess that's how vb thread marking works.

valdet 06-25-2007 09:10 AM

As far as custom skin that have custom navbars, what variable needs to be inserted in the appropriate place in custom navbar?

Thanks.

Paul M 06-25-2007 10:38 AM

Read the last two pages. :)



(JFYI, This will be updated soon to add the Auto Template settings as vbulletin options).

Paul M 06-25-2007 09:05 PM

v1.21 Released.

This adds the auto-template changes options to the (new) vbulletin options page - to bring it in line with most of my other mods. The option to turn the mod off has also been added. There are no other changes so upgrading is not necessary unless you need access to these options.

eclectica 06-26-2007 12:53 AM

Quote:

Originally Posted by MadKad (Post 1275429)
I have a little proble, when a member registers it tells them that they have something like 24,0000 posts unread, but I relly think it should say you have 0 unread posts as they are new.

Is there a way of sorting this problem out?

That's the way vBulletin does it. Just have your members mark the forums read using your own site's domain such as the following:

https://vborg.vbsupport.ru/forumdisplay.php?do=markread

markblair 06-26-2007 03:41 AM

I installed v1.20 of this mod last night on a new forum that was just setup. I previously had this installed at a different location but with this one it doesn't appear to be working properly. I do get the 4 Unread Posts since your last visit message in the appropriate place but after being idle on my site for awhile and then refreshing, it went back to No Unread Posts since your last visit. When I clicked on the link for Unread Posts or went to New Posts, my forum still showed that there were the initial 4 unread posts. Is this something new or is something possibly not working correctly? The forum in question is in my signature.

Paul M 06-26-2007 08:24 PM

It's working fine - your forum session timed out (so your last visit time changed).

markblair 06-27-2007 03:37 AM

Hmm, it doesn't seem to be doing that now however that was not how it worked on my old forum. The point of Unread Posts (of course depending on the 'Thread/Forum Read Marking Type' option) is that the messages aren't read until you view them. I have had at times 50-100+ unread posts and only read a few of them only to return the next day to take care of the rest. All the while, this modification never reset back to 'No Unread Posts'.

Just to make sure however, the Thread/Forum Read Marking Type option should be set to Database (automatic forum marking), correct?

halcyoncmdr 06-27-2007 03:53 AM

That is how this hack has always worked on my forum. Because your session timed out, they are no longer "unread since your last visit" which is what the hack counts. If you click the link, it will still list those posts. If there is a combination of the two, it will separate them, but all will still be there to view.

Changing the user timeout will adjust the timeframe in which it adjusts... :)

eclectica 06-27-2007 08:09 AM

Quote:

Originally Posted by markblair (Post 1277435)
Just to make sure however, the Thread/Forum Read Marking Type option should be set to Database (automatic forum marking), correct?

yes

eclectica 06-27-2007 08:14 AM

It would be nice if it were to display both the total amount of unread posts, as well as the amount of unread posts since last visit.

Paul M 06-27-2007 11:03 AM

Quote:

Originally Posted by markblair (Post 1277435)
Hmm, it doesn't seem to be doing that now however that was not how it worked on my old forum. The point of Unread Posts (of course depending on the 'Thread/Forum Read Marking Type' option) is that the messages aren't read until you view them. I have had at times 50-100+ unread posts and only read a few of them only to return the next day to take care of the rest. All the while, this modification never reset back to 'No Unread Posts'.


Maybe you need to read the notes in the main post ? I suspect you changed this setting.

Quote:

There are two options (using a setting in the vBulletin Options). If set to 'yes', it will only count the unread posts since your last visit, if set to 'no' it will count all posts considered unread. This setting reflects the divider in the getnew search display.

transitbus 06-27-2007 03:23 PM

Quote:

Originally Posted by Paul M (Post 1269700)
Are you sure you haven't changed back to the cookie based thread marking system.


Yes, I am sure. I'll try your update and check to see if things improve

Ren? Kunze 07-01-2007 07:55 AM

Hello,

i used the RSS Feed and the problem is: I have 50 or 100 new Post in the Forum every day.

It is possible to determined forumid.

Ren? Kunze 07-05-2007 06:08 PM

Hello it is supported.

Paul M 07-05-2007 06:15 PM

Quote:

Originally Posted by Ren? Kunze (Post 1283696)
Hello it is supported.

Assuming you actually mean "is this supported ?" then yes, it is.

As for the previous post - your question makes no sense to me, and seems totally unrelated to this mod, so won't get an answer.

RedTyger 07-05-2007 07:09 PM

I'm guessing he's saying that he uses the RSS Feed importer and it's racking up the New Post count, so can he exclude forums from the count.

To which I would answer that your users can exclude forums using a separate modification:
https://vborg.vbsupport.ru/showthread.php?t=91025

Ren? Kunze 07-06-2007 10:58 AM

There I RSS use a great many contributions with me meet daily by the RSS.
I have extra a category made for the RSS.
There however now also the RSS is taken in account with unread message wanted I to ask whether it is possible certain forums not take in account not to let.
Only contributions should be taken in account also the members to have written.

Paul M 07-06-2007 11:10 AM

There is no facility to exclude forums from the count (note: only forums that a member has permission to view are included).

Ren? Kunze 07-06-2007 11:21 AM

The RSS message is to regard it, is always up to date the messages.
One can insert somehow that, it used nevertheless many this RSS however it interested not to all the messages.
Therefore I thought it would be a beautiful possibility stop to insert which one certain forums not take in account do not let.
I know still another few the yours chop use however the same problem have as I. Unfortunately I deactivated it at present, if someone logs in and sees as the first 100 contributions of it however only 20 of members, then soon none more chop with me to use because her no desire to have everything to then go through around to see who a new contribution wrote.
Or one could make it also in such a way it by a user is not counted. For the RSS one must indicate a user for me is called it Harry deer and that the user ID 28 whether one could exclude then.


All times are GMT. The time now is 08:07 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.01655 seconds
  • Memory Usage 1,847KB
  • 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
  • (9)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