Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #16  
Old 16 May 2016, 15:52
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
Oh I thought you wanted to hide the post count in the topic list page like this one http://wortkompass.de/forum/aktuelle...C3%BCndigungen
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
  #17  
Old 16 May 2016, 16:37
Schneeflocke Schneeflocke is offline
 
Join Date: May 2016
Real name: Alex
Yes, thats okay.

I also like to hide these postcount:


Is there a possibility to do that?
Reply With Quote
  #18  
Old 16 May 2016, 19:16
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
Yes. You add this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Each page in the forum has a unique page id in the <body> class. In the case of Ankündigungen forum page, it has page249 in the body class. You can find it by inspecting the page (right click > Inspect) and looking for the <body> tag.

Btw, my initial suggestion of hiding the post count in the forum list is not good. Here's the better one. Replace the original CSS with this one.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
  #19  
Old 17 May 2016, 08:16
Schneeflocke Schneeflocke is offline
 
Join Date: May 2016
Real name: Alex
Hey,

I inserd your code in the additional template for the correct style.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But something is wrong. Because nothing seemed to have changed (post in the thread Ankündigungen).

It counts - post count:43 and the next 44.
But my intention is, that these counter counts only entries of the "important" channels. The counter should remain unchanged when somebody posts an entry in the channels which are set to be not counted.
Reply With Quote
  #20  
Old 17 May 2016, 19:36
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
Remove this comment in the CSS:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or change it to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
  #21  
Old 17 May 2016, 20:26
Schneeflocke Schneeflocke is offline
 
Join Date: May 2016
Real name: Alex
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 18 May 2016, 01:18
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
There's a typo in the CSS selector. Do a copy/paste of this one:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
  #23  
Old 18 May 2016, 08:03
Schneeflocke Schneeflocke is offline
 
Join Date: May 2016
Real name: Alex
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 18 May 2016, 14:18
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
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.
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #25  
Old 18 May 2016, 14:44
Schneeflocke Schneeflocke is offline
 
Join Date: May 2016
Real name: Alex
Yes!

That's what I mean.

(My new post: http://www.vbulletin.org/forum/showthread.php?t=322664)
Reply With Quote
  #26  
Old 19 May 2016, 00:52
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
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.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic

Last edited by noypiscripter; 19 May 2016 at 01:11.
Reply With Quote
  #27  
Old 19 May 2016, 06:30
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
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.
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #28  
Old 19 May 2016, 10:20
Schneeflocke Schneeflocke is offline
 
Join Date: May 2016
Real name: Alex
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 Jun 2016, 12:09
robertw795 robertw795 is offline
 
Join Date: Feb 2016
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

Last edited by robertw795; 06 Jun 2016 at 12:57.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Administrative and Maintenance Tools Disable Post Count Decrease Per Forum paul41598 vBulletin 3.6 Add-ons 20 19 Jan 2009 03:40
Post Count Modifier - Minimum Post Characters to Count towards Post Count Chris M vBulletin 2.x Full Releases 35 13 Oct 2003 19:29



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 06:02.

Layout Options | Width: Wide Color: