Page Index Toggle Pages: 1 2 3 [4] 5  Send TopicPrint
Very Hot Topic (More than 25 Replies) [DONE] Power Hide 1.1 Final (Read 17250 times)
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #45 - Feb 7th, 2007 at 7:41pm
Print Post  
Ok, seems to be a bug in YABB, cause this mods don't see the Options for Sticky, Close and Hide in this board too.

Larian
  
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #46 - Feb 8th, 2007 at 12:29pm
Print Post  
Strangely enough I tested this on a clean unmodded board and I see no reason why these mods do not see the sticky/lock/hide stuff ?

In other words, on my testforum I can give a member an additional group membership (which has moderator rights on one board), and in thhe board that has this group this user can select the restrict view to moderator without a problem Wink

Isn't there any other mod interfering with the $iammod variable being set ?


This is the original 2.1 code in Post.pl setting the moderator flag.

Code
Select All
	if ($post ne "imsend") {
		$iammod = 0;
		if (scalar keys %moderators > 0) {
			while ($_ = each(%moderators)) {
				if ($username eq $_) { $iammod = 1; }
			}
		}
		if (scalar keys %moderatorgroups > 0) {
			&LoadUser($username);
			while ($_ = each(%moderatorgroups)) {
				if (${$uid.$username}{'position'} eq $_) { $iammod = 1; }
				foreach $memberaddgroups (split(/\, /, ${$uid.$username}{'addgroups'})) {
					chomp $memberaddgroups;
					if ($memberaddgroups eq $_) { $iammod = 1; last; }
				}
			}
		} 



Should set $iammod to 1 if any primary or additional group is equal to the moderator group.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #47 - Feb 8th, 2007 at 3:24pm
Print Post  
@Spike: Try to give two additional groups (one the moderator group and one other extra group) and try again! The problem appears only for mod-members with two additional groups.

I have the same code in my post.pl, it's not modified!

Larian
  
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #48 - Feb 8th, 2007 at 7:36pm
Print Post  
Ok. recap....
Have a member with only two additional groups and make one of these groups moderatorgroup on a forum ?
Who ever invented that combination Tongue

Will test it

Mmmm, for some strange reason it first failed but now it works without changing one byte of code ???
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
hydepark2
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 80
Joined: Jun 28th, 2005
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #49 - Feb 14th, 2007 at 6:14am
Print Post  
Will this mod also act as a "hide all posts" from a given user? Someone thrased my boards with a bunch of posts and it'd be easier than deleting them all one by one.
  
Back to top
 
IP Logged
 
TheSkier
Junior Member
**
Offline



Posts: 94
Location: Sakhalin
Joined: Jul 9th, 2004
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #50 - Feb 14th, 2007 at 1:48pm
Print Post  
hydepark2 wrote on Feb 14th, 2007 at 6:14am:
Will this mod also act as a "hide all posts" from a given user? Someone thrased my boards with a bunch of posts and it'd be easier than deleting them all one by one.

you better use the << AnnoyMod 1 (Change all of users posts) >> Wink
  
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #51 - Feb 16th, 2007 at 6:52pm
Print Post  
hydepark2 wrote on Feb 14th, 2007 at 6:14am:
Will this mod also act as a "hide all posts" from a given user? Someone thrased my boards with a bunch of posts and it'd be easier than deleting them all one by one.

No, it just gives power users (admin/gmod and mod) the option to hide single messages within a thread upto their own level.

The annoying user hide mod i something completely different.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #52 - Mar 10th, 2007 at 12:30pm
Print Post  
Hi Ron,

just installed the mod, and it works nearly fine.

Only the message over the Post is not visible in my Yabb, there it is empty.

Have I forget something?


@MF-B  which lines do you change to have it like in your post #11 in this thread?

Thanks a lot
  
Back to top
WWW  
IP Logged
 
MF-B
Senior Member
****
Offline



Posts: 410
Location: Moscow
Joined: Apr 11th, 2006
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #53 - Mar 10th, 2007 at 2:36pm
Print Post  
aerow90 wrote on Mar 10th, 2007 at 12:30pm:
@MF-B which lines do you change to have it like in your post #11 in this thread?
I change all lines...  Grin
I not kill layout for post... Only kill text in this post...
  
Back to top
WWW  
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #54 - Mar 10th, 2007 at 2:40pm
Print Post  
okay, thank you for answer
  
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #55 - Mar 12th, 2007 at 6:07am
Print Post  
Actually the mod strips of a complete reply from the thread (if it is hidden) so to the observing reader the reply #xx numbers will not be in sequence but hidden messages are missing in the reply count.

I tried to also have the numbers get into sequence again, but as all links are Googled and hidden messages could be reset to normal viewing (after review by moderators) this would mean the reply numbers are not constant.
By keeping the reply numbers constant (allthough this shows in the thread as missing numbers) I did overcome Google mistakingly Googling tread replies that could change after approval.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
MF-B
Senior Member
****
Offline



Posts: 410
Location: Moscow
Joined: Apr 11th, 2006
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #56 - Mar 12th, 2007 at 1:49pm
Print Post  
@Spikecity
On hidden messages you make
Code
Select All
			$counter++;	## increase message count to maintain correct reference
			$endpage++;	## compensate page length for hidden messages
			next; 		## skip to next message if visibility is restricted
 



This not needed, I make

Code
Select All
			$message = '';
			$posthandelblock = '';
 



That all. Message not visible, quote button to this message not visible...

I insert this code after

Code
Select All
		my $outblock	  = $messageblock;
		my $posthandelblock = $posthandellist;
		my $contactblock    = $contactlist;
 


Wink

And need add chexk in if ($quotemsg ne '') { Wink
  
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: [YaBB2.1] Power Hide 1.0c beta
Reply #57 - Mar 12th, 2007 at 2:52pm
Print Post  
I think my way (just skipping to the next message in the for/next loop is faster as I skip the complete processing of the skipped message.

Checking for quotes of hidden messages inside other messages would be hard to do as it means reading every hidden message and comparing it with every quote.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Imp_In_Training
God Member
*****
Offline


Don't follow me, I'm lost
too!

Posts: 608
Location: Aberdeen
Joined: Jun 17th, 2004
Gender: Male
Re: [DONE] Power Hide 1.1 Final
Reply #58 - Apr 7th, 2007 at 8:12pm
Print Post  
Great mod.

Can I make a suggestion?  It might be very useful if you added the capability to send a hidden message to just one person.  Any chance that could happen in a future version?
  
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: [DONE] Power Hide 1.1 Final
Reply #59 - Apr 10th, 2007 at 12:29pm
Print Post  
Imp_In_Training wrote on Apr 7th, 2007 at 8:12pm:
Great mod.

Can I make a suggestion?  It might be very useful if you added the capability to send a hidden message to just one person.  Any chance that could happen in a future version?

Not likely as I made this mod for one particular forum that needed single messages to be hidden within a tread for only power users (meaning from moderator upwards to admins).
Sneaky messages we call PM Wink
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 5 
Send TopicPrint