Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 05-17-2016, 06:26 PM
Schneeflocke Schneeflocke is offline
 
Join Date: Apr 2016
Location: Germany - Berlin
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey noypiscripter,

first of all I appreciate all your help and support, but I guess my request is not solvable?

Ok, I think I have tried now all the options provided, but still the counter is increasing when posting in those channels. Only to hide it, is not what I was looking for. But maybe my request is not possible at all? Can one deactivate this counter for given channels or only hide it?

Best Regards.
Reply With Quote
  #22  
Old 05-17-2016, 11:18 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a typo in the CSS selector. Do a copy/paste of this one:

Code:
.page249 .b-userinfo__additional-info-block .b-userinfo__additional-info:nth-child(2) {
    display: none;
}
Reply With Quote
  #23  
Old 05-18-2016, 06:03 AM
Schneeflocke Schneeflocke is offline
 
Join Date: Apr 2016
Location: Germany - Berlin
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guten Morgen noypiscripter,

thanks!
Now, the counter is hidden.

But, it still counts the number of entry the user makes. Im looking for a solution with completely deaktivates counting for seletctet channels.

Is there a possibility to do that????
Reply With Quote
  #24  
Old 05-18-2016, 12:18 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't help with the issue, since I would not touch vB5 with a stick, but: There seems to be a huge misunderstanding here. She does not want to hide postcounters. What she's looking for is a possibility to not have posts in certain channels increase the total posts counter of a user.

- User post count: 123
- User posts in nonsense channel xy
- User post count: 123
- User posts in seriously important channel yz
- User post count: 124

This is nothing that can be achieved with css or template edits. If it's not in the core (as it is in vB4), then this will require some sort of plugin (is that even possible in vB5 by now?) or core file edit.
Reply With Quote
Благодарность от:
Schneeflocke
  #25  
Old 05-18-2016, 12:44 PM
Schneeflocke Schneeflocke is offline
 
Join Date: Apr 2016
Location: Germany - Berlin
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes!

That's what I mean.

(My new post: https://vborg.vbsupport.ru/showthread.php?t=322664)
Reply With Quote
  #26  
Old 05-18-2016, 10:52 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm aware the OP wanted to deactivate the post counts in some forums/threads but that's not possible without editing core php files. That's why I suggested an easier and more maintainable workaround.

If the OP explicitly mentioned right away that they don't want to increase the post count when users post to selected forums, then I wouldn't have suggested the CSS solution.
Reply With Quote
  #27  
Old 05-19-2016, 04:30 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You know, if you don't know the right terminology plus english obviously not being your mother language its often not that simple to find the right words. I'm pretty sure she thougt that she did mention exactly that. Perhaps I understood her better since she's obviously German, which sometimes shows in one's english (as I'm sure it does in mine).

Anyway, what you offered is not a workaround - it's a perfect solution, just not for the problem at hand. For that, its not even a workaround, since it does not do what was (really) requested. But as I said: not your fault, not anyone's fault at all - just a misunderstanding.
Reply With Quote
  #28  
Old 05-19-2016, 08:20 AM
Schneeflocke Schneeflocke is offline
 
Join Date: Apr 2016
Location: Germany - Berlin
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey,

Cellarius is completely right, first I am a non-native speaker (my english is really bad) and second not a programming expert (3 weeks of vbulletin usage). So, I definetly will miss the correct terms from time to time or every time.
So now, that this misunderstanding seems to be resolved, I still have the problem which is not solved yet.

I really appreciate the help offered by noypiscripter, but as Cellarius pointed out it was not what I am looking for. The hiding of the counter is like a first step to my problem, but still not fully deactivated as I would like.

Best Reagrds.
Reply With Quote
  #29  
Old 06-06-2016, 10:09 AM
robertw795 robertw795 is offline
 
Join Date: Feb 2016
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disabeling this feature without editing the core files is indeed not possible, but you might be able to achieve this using a (not so pretty) workaround. You can implement a front-end hook in the createcontent.php that triggers as soon as anyone posts a post and pass along the post data as a parameter. Using the ancestorId's array in the post data you can determine from what channel the posts originated. Using an if conditional you can then catch if the posts was posted in an unrelevant subforum, and if so subtract 1 from the users post count, this way when the post will be added to the postcount, the postcount will remain as it was before.

EDIT: The postcount is found in the user table in the column posts
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04333 seconds
  • Memory Usage 2,261KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete