![]() |
Hi,
just two short questions, what about posts that are made in forums, a user has no access to? Are these posts also counted? What about a users own posts, are these also counted?! Regards, Tobi |
Quote:
I'll see if I can tweak that somehow. Hmmmmmm |
Hi, is there a way to bold the number of threads/posts if they are new and not bold when there's only 0?
I tried with the PHP, but am not too familiar with with it. |
Quote:
This would be a little tricky, but yes, anything can be done with conditionals. conditionals are things like "if statements" for those wondering: HTML Code:
<if condition="$newposts"> So to make JUST THE NUMBER be bold IF that number is not zero: HTML Code:
<br /><span class="smallfont"><a href="search.php?$session[sessionurl]do=getnew"><if condition="$newposts"><b>$newposts</b><else />$newposts</if> New Posts</a> in $newthreads Threads.</span> HTML Code:
<br /><span class="smallfont"><a href="search.php?$session[sessionurl]do=getnew"><if condition="$newposts"><b></if>$newposts New Posts</a> in $newthreads Threads.<if condition="$newposts"></b></if></span> HTML Code:
<if condition="$newposts"><br /><span class="smallfont"><a href="search.php?$session[sessionurl]do=getnew">$newposts New Posts</a> in $newthreads Threads.</span></if> Hope that didn't confuse you too much. If so, say so. P.S. - As for previous request of hiding non viewable posts ... sorry I'm taking so long but I've devoted a ton of time to to another very intricate hack of mine because developing THAT is teaching me a ton of stuff which will help me design other small tweaks such as this with much better code. Along my travels, I did find another hack that accomplishes something similar (forgot which for now but I'll get back to it when I'm ready) but I refuse to implement it until I either get permission from other author to do so and/or I learn enough to develope something like that on my own without having to cut n paste from someone elses work (meaning I fully understand the code). |
Quote:
visible = 1 should take care of that shouldn't it? |
Quote:
I think the counts they want to hide are posts in private subforums like a Moderator's Forum or such for example which (I THINK) requires checking user and/or forum permissions somewhere along the line. I think it was a hack by Paul M where I saw something like this, but don't quote me. |
PM me and I can give you the single query I used in my forumhome stats cache hack for vB 3.0 for this. I think it handled private forums like it should be. ;)
|
Quote:
A discussion about what is/isn't neccessary in the file would be great. My opinion ... I think we need something a little more along the lines of this. As you'll see, ummmm, I didn't use your query. :D Click Me to goto Blunts Welcome Member & Guests hack thread :banana: Whole New Product .... It evolved too far to keep in here as a plugin. How should I kill this old thread?? Delete the file and put a redirect in the top post?? A few people have this installed so I don't think deleting the thread is the answer. What do guys normally do in this situation?? Reference is always a nice thing I think. I changed the hack's name BECAUSE I'm thinking this might expand someday beyond just post/thread counts so the old name won't really suit my needs and I figure sooner is better than later. Quote:
New Hack has a New Answer to your questions!! 1) If the can't see the post, then the post isn't part of the counts. 2) Test this and let me know how it goes. :D Quote:
I took a different route for now, but we can still tweak things if anyone offers up some opinions on the new hack. There are 3 lines of text now, for 3 different search types. If the number would be zero, then I don't display the line at all. Let me know what you think. |
All times are GMT. The time now is 01:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|