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 17252 times)
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: [YaBB2.1] Power Hide 1.0a beta
Reply #15 - Jan 19th, 2007 at 7:06pm
Print Post  
Quote:
Hi Ron

ok, here we go, but need extra string for Visible for:  Wink This is need for posting page  Wink

Code
Select All
%read_txt = (
'visible_for' => "Diese Nachricht ist für: ",
'only_visible_for' => "Diese Nachricht ist nur für ",
'and_up' => "und höher.",
'0' => "Jeden",
'1' => "Mitglieder sichtbar",
'3' => "Moderatoren sichtbar",
'4' => "Global Moderatoren sichtbar",
'5' => "Administratoren sichtbar",
); 



Not sure what you mean with extra string Jet Li.
In the post page there is the string visible_for in front of the radio button set so where do you need it then ?

How about

Code
Select All
%read_txt = (
'visible_for' => "Diese Nachricht ist sichtbar für: ",
'only_visible_for' => "Diese Nachricht ist nur sichtbar für ",
'and_up' => "und höher.",
'0' => "Jeden",
'1' => "Mitglieder",
'3' => "Moderatoren",
'4' => "Global Moderatoren",
'5' => "Administratoren",
); 



PS
If you are wondering where '2' is.... this is reserved for Membergroups I still like to implement in this.
  

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


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [YaBB2.1] Power Hide 1.0a beta
Reply #16 - Jan 19th, 2007 at 7:10pm
Print Post  
aha on german need sichtbar extra string too.

in View Post display like this.

Diese Nachricht ist nur für Administratoren sichtbar.

But in Postpage are 'Administratoren' etc...  Tongue
  

greetings
Jeff
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.0a beta
Reply #17 - Jan 19th, 2007 at 7:17pm
Print Post  
I changed your German language to have the "sichtbar" in the frontpart of the sentence Tongue
  

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


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [YaBB2.1] Power Hide 1.0a beta
Reply #18 - Jan 19th, 2007 at 7:20pm
Print Post  
Ok, Posting Page are ok. In view post need this


Diese Nachricht ist nur für Global Moderatoren und höher sichtbar.
  

visible.gif (Attachment deleted)

greetings
Jeff
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.0a beta
Reply #19 - Jan 19th, 2007 at 7:24pm
Print Post  
the sentence is built like this:

The message is only visible for <who> <and higher if (not admin)>

In German (with the language part I posted below yours) it should say

Diese Nachricht ist nur sichtbar für <who> <und höher (if not admin)>

The sichtbar after the Administrators is not neccesary if you place the word sichtbar in the frontpart like I suggested Wink

this works in dutch and in english and in my German version now Wink
No need for an extra visible string.
  

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


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [YaBB2.1] Power Hide 1.0a beta
Reply #20 - Jan 19th, 2007 at 7:31pm
Print Post  
ok. But right german Spelling/Gramatik are this.

Diese Nachricht ist nur für Mitglieder und höher sichtbar.
Diese Nachricht ist nur für Global Moderatoren und höher sichtbar.
Diese Nachricht ist nur für Administratoren sichtbar.

ok, I add after höher sichtbar, but for Administrator need extra string at the end.
  

greetings
Jeff
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.0a beta
Reply #21 - Jan 19th, 2007 at 7:45pm
Print Post  
Are you sure that:

Diese Nachricht is nur sichtbar für Administratoren

is not correct in German ?

In Dutch (which uses the same grammar rules as German) for placing proverbs this sentence is absolutely correct.

And in a sence you are not consequent as in Post the sentence is the same as in the Display with the exception of the word only/nur.

But if you want it, just add it in the language file and in Display.pl in the section where the sentence is generated (just above the message field).
I will not change the code just because of the Germans as code is universal and language should be adapted to the code.
  

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


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [YaBB2.1] Power Hide 1.0a beta
Reply #22 - Jan 19th, 2007 at 7:53pm
Print Post  
ok. I have talk with a german user. he say this is right.

Diese Nachricht ist nur für Administratoren sichtbar.

you can make . no hardcoded.

Yep, the dot should not be hardcoded, and (like you) I also checked the German just now in the way I suggested it and found it to be absolutely grammatically correct too Wink
(It's nice to have a German language professor living next door to you who likes a cold beer Wink)

You know as well as I do that there are several ways for a sentence to be formed and to be correct and to be honest, in the five years I have been coding for YaBB I never had to add extra code for either German or Dutch.
  

greetings
Jeff
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.0a beta
Reply #23 - Jan 19th, 2007 at 7:55pm
Print Post  
Quote:
In Recent we loop through $message again with a for/next loop but now with $i as counter variable.

No... I not about this...

I insert code for check here...

Code
Select All
	for ($i = 0; $i < @data; $i++) {
		($mtime, $curboard, $tnum, $treplies) = split(/\|/, $data[$i]);

		fopen(REC_THRETXT, "$datadir/$tnum.txt") || next;
		while (<REC_THRETXT>) { $message = $_; }

		# get only the last post for this thread.
		fclose(REC_THRETXT);
		chomp $message;

		if ($message) {
			($msub, $mname, $memail, $mdate, $musername, $micon, $mattach, $mip, $message, $mns) = split(/\|/, $message);
			$messages[$numfound] = "$curboard|$tnum|$treplies|$msub|$mname|$mdate|$musername";
			$numfound++;
		}
		if ($numfound == $display) { last; }
	}
 



After insert...

Code
Select All
	for ($i = 0; $i < @data; $i++) {
		($mtime, $curboard, $tnum, $treplies) = split(/\|/, $data[$i]);

		fopen(REC_THRETXT, "$datadir/$tnum.txt") || next;
		while (<REC_THRETXT>) { $message = $_; }

		# get only the last post for this thread.
		fclose(REC_THRETXT);
		chomp $message;

		if ($message) {
			($msub, $mname, $memail, $mdate, $musername, $micon, $mattach, $mip, $message, $mns) = split(/\|/, $message);

			$readlevel = 0;
			if ($message =~ /^\[admin only\]/) { $readlevel = 5; }
			elsif ($message =~ /^\[gmod only\]/) { $readlevel = 4; }
			elsif ($message =~ /^\[mod only\]/) { $readlevel = 3; }
			elsif ($message =~ /^\[member only\]/){ $readlevel = 1; }
			else { $readlevel = 0; }
			if (($iamguest && $readlevel > 0) || (!$iamguest && !$iammod && !$iamgmod && !$iamadmin && $readlevel > 2) || (($iammod && !$iamadmin) && $readlevel > 3) || ($iamgmod && $readlevel > 4)){
				next;
			}

			$messages[$numfound] = "$curboard|$tnum|$treplies|$msub|$mname|$mdate|$musername";
			$numfound++;
		}
		if ($numfound == $display) { last; }
	}
 



And for user forum print last 10 messages, and not confused he... if on forum last 5 messages posting with flag GMod only...

I make this on my forum...
  
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.0a beta
Reply #24 - Jan 19th, 2007 at 7:58pm
Print Post  
Ok, got you there MF-B makes sence Wink
I will change that in the next version of the mod.

Edited:
changed the code for recent and search to use identical code, which makes the messages disappear also in the views)
Thanks MF-B
New mod in the first message

  

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.0b beta
Reply #25 - Jan 19th, 2007 at 9:55pm
Print Post  
Cool Cheesy

What about usersrecentposts in Profile.pl? Wink
  
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [YaBB2.1] Power Hide 1.0b beta
Reply #26 - Jan 19th, 2007 at 10:18pm
Print Post  
Hi Ron
can you make this? If this possible?

Quote:
%read_txt = (
'visible_for' => "Diese Nachricht ist sichtbar für: ",
'only_visible_for' => "Diese Nachricht ist nur für ",
'and_up' => "und höher sichtbar.",
'0' => "Jeden",
'1' => "Mitglieder",
'3' => "Moderatoren",
'4' => "Global Moderatoren",
'5' => "Administratoren",
'6' => "sichtbar.",
);


because Administratoren. are in Posting Page.
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Zoo
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 290
Joined: Jan 22nd, 2003
Re: [YaBB2.1] Power Hide 1.0a beta
Reply #27 - Jan 19th, 2007 at 10:57pm
Print Post  
MF-B wrote on Jan 19th, 2007 at 7:55pm:
And for user forum print last 10 messages, and not confused he... if on forum last 5 messages posting with flag GMod only...

(it's the last topics, not last posts code Wink )

i think this confused the user. a simple only admin/gmod.. message very clear. (like multimedia file view only ...)

and i now reading "Post Reply" topic ..
http://www.yabbforum.com/community/YaBB.pl?action=post;num=1168724006

what happen if it's mixed with this ?
how many 'last' will be store?
normal/hide with admin/gmod/mod/user/anybody ?
and what will be replies counter?
what the pagenumbers, pagelinks, quote refs..
  
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.0b beta
Reply #28 - Jan 21st, 2007 at 11:34am
Print Post  
Quote:
Hi Ron
can you make this? If this possible?


because Administratoren. are in Posting Page.

Making it is not a problem, but it makes no sense as in other languages including Dutch I do not need the extra word Tongue
I will try to get it in sometime next week (as I have a business trip to Sweden first)
  

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


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [YaBB2.1] Power Hide 1.0b beta
Reply #29 - Jan 21st, 2007 at 12:00pm
Print Post  
Hi Ron
but you no need extra word.

example in dutch
'5a' => ".",

german
'5a' => "sichtbar.",

Have fun in sweden.  Wink



  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 5
Send TopicPrint