Skocz do zawartości


- - - - -

Modyfikacje IP.Board 3.0.x: (DB30) Hide CODE Content

db30 hide code content

  • Proszę się zalogować aby odpowiedzieć
29 odpowiedzi na ten temat

#1 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 15 luty 2010 - 18:44

Nazwa pliku: (DB30) Hide CODE Content
Plik Dodał: Spanner
Plik wysłano: 15 lut 2010
Plik zaktualizowany: 15 lut 2010
Kategoria pliku: Modyfikacje IP.Board 3.0.x
Typ:: Modyfikacja
Wersja:: 1.0.0

Author: Spanner (IPSBeyond.pl)

Modyfikacja umożliwia ukrywanie zawartości tagu CODE przed wybranymi grupami.

Modification enables hiding the CODE tag content in selected groups.

Kliknij tutaj aby pobrać plik

#2 kissrocknroll

kissrocknroll

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 1 postów
  • Wersja:IP.Board 3.0.x

Napisany 23 kwiecień 2010 - 13:33

Doesnt work for me.

#3 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 23 kwiecień 2010 - 16:32

What does it mean ?

#4 doxs997

doxs997

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 1 postów
  • Wersja:IP.Board 3.0.x

Napisany 02 maj 2010 - 18:03

Witam i przepraszam za głupie pytania dopiero się uczę i nie wiem jak zainstalować to (DB30) Hide CODE Content

i mam pytanie czy dzieki temu bd ukryte linki na przykład w taki sposób
 Treść widoczna tylko dla zarejestrowanych użytkowników.
Kliknij tutaj aby się zarejestrować 

Edytowany przez doxs997, 02 maj 2010 - 18:04.


#5 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 02 maj 2010 - 18:17

Witaj,
instrukcję instalacji znajdziesz w archiwum.
Jeśli chodzi o pytanie co do treści. Treść tego ogłoszenia ustalasz sam, podobnie to jakie grupy będą widzieć takie ogłoszenie. Ukrywana jest cała treść objęta znacznikiem [code]

#6 TurkuSevdali_Aska

TurkuSevdali_Aska

    Coś tam wie o IP.Board

  • Premium
  • PipPip
  • 434 postów
  • Płeć:Kobieta
  • Skąd:Kraków
  • Wersja:IP.Board 3.1.x

Napisany 26 wrzesień 2010 - 23:37

Czy różni się ten mod od (T30) Hide Content 1.1.1 (poza tym, że ten jest darmowy)?
Czy w nim używa się kodu [hide]...[hide], którego zawartość jest widoczna po napisaniu odpowiedzi czy ten kod to coś innego?
Türkülerdir Sevdam...

#7 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 27 wrzesień 2010 - 07:12

W tym modzie używasz zwykłych znaczników [code] a w mod ukrywa zawartość tego znacznika dla wybranych w ACP grup, czyli np. wszystkie grupy, prócz gości widzą zawartość tagu

#8 TurkuSevdali_Aska

TurkuSevdali_Aska

    Coś tam wie o IP.Board

  • Premium
  • PipPip
  • 434 postów
  • Płeć:Kobieta
  • Skąd:Kraków
  • Wersja:IP.Board 3.1.x

Napisany 27 wrzesień 2010 - 11:06

A mogę prosić o jakieś przykłady? I czy [hide]...[hide] jest w standardzie czy to też modyfifikacja.
Türkülerdir Sevdam...

#9 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 27 wrzesień 2010 - 16:21

np. na forum ajo.pl masz takie coś

http://ajo.pl/programy-rozmowy-programs-discussions/1088887-program-graficzny.html

tylko tam jest na vB forum postawione forum, ale ukrywanie treści działa bardzo podobnie. Jeśli chodzi o hide to nie jest ono w standardzie

#10 spencer

spencer

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 5 postów
  • Wersja:IP.Board 3.1.x

Napisany 29 styczeń 2011 - 23:02

Hi. This mod works great for me but when the groups that I dont wanna see the hidden post inside the code tags click the reply or the multireply button. They see the hidden post at the post preview too. Can you fix them? I will be willing to donate something to you for your troubles.

#11 Fairlight

Fairlight

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 4 postów
  • Wersja:IP.Board 3.1.x

Napisany 01 luty 2011 - 17:07

sorry for my polish, im using a translator.

I think i found a bug. I entered in a long spoiler text and suddenly the mod does not work. It seems to only work for text that has a few short lines. Would be more than willing to donate if this is fixed. Also, is there a way to use another tag instead of <pre> with this?

Cytuj

Przepraszam za mój polski, im przy pomocy tłumacza.

Myślę, że znalazłem błąd. Wszedłem w długi tekst spoiler i nagle mod nie działa. Wydaje się, że tylko dla tekstu, który zawiera kilka krótkich wierszy. Czy jest więcej niż chętnych do oddania, jeśli zostanie to naprawione. Ponadto, istnieje sposób, aby użyć innego słowa, a nie <pre> z tym?

Edytowany przez Fairlight, 01 luty 2011 - 17:08.


#12 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 01 luty 2011 - 17:23

This mod is working only with [code] tag not spoiler :)

#13 Fairlight

Fairlight

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 4 postów
  • Wersja:IP.Board 3.1.x

Napisany 01 luty 2011 - 19:07

Zobacz postSpanner, o 01 luty 2011 - 17:23, powiedział:

This mod is working only with [code] tag not spoiler :)

I'm sorry, i should have made my post more clear. I am using the hide code mod as an advanced form of spoiler. Using it to prevent guests from viewing TV spoilers on my forum. I am not using the [spoiler] tag.

Unfortunately, long texts do not seem to work with this at all. After just a few lines of text, guests are able to see the hidden content.

#14 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 01 luty 2011 - 20:07

OK, I'll try to repair the thing with long content. Did you use specific content or normal text ?

#15 Fairlight

Fairlight

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 4 postów
  • Wersja:IP.Board 3.1.x

Napisany 01 luty 2011 - 20:17

Zobacz postSpanner, o 01 luty 2011 - 20:07, powiedział:

OK, I'll try to repair the thing with long content. Did you use specific content or normal text ?

Normal text with no special formatting: Below is a portion of exactly what i was trying to hide.




The Impact Zone is full with obvious curiosity over who "they" is especially since "they" aren't who they were supposed to be.

Dark Match:

* Robbie E w/Cookie vs. Josh Daniels. Winner with Madison Rayne's boot to the chin drop finisher, Robbie E.

TNA Impact (Airing Thursday on Spike TV):

* Impact starts with Immortal out (everybody but Hulk Hogan and Ric Flair). Eric Bischoff says they have business to take care of. They sent Scott Steiner a special invitation so come on down. Scott Steiner joins Immortal in the ring. Bischoff says they've known each other way too long. He'll forget about the last few weeks and talk business. He found out a few hours ago that Dixie Carter got a continuance so Hulk Hogan won't be here tonight. That's the bad news. Now even though Steiner's saying "They" are here, he knows there's no "They." Kevin Nash called him and Bischoff told him to take the money. Get a new action figure, dye your hair and do it. As for Booker T, who cares what he's doing? Sting isn't here either. So Scott, be a man, grab your bags and join us. Bischoff extends his hand and says this is his last shot. Scott asks if that's his choice? Bischoff says door one is join him, door two is getting your a-- kicked. Steiner says how about door 3, where I shove my foot up your a--? He says he's known Eric a long time and right away knew he was a piece of s---. He's more of a man than any of these p------ in the ring. If he was a man he'd say yes sir and no sir. So he has 5 seconds to apologize or he'll break his skinny neck. Bischoff says bite me. Kurt Angle and Crimson come out. Angle says Bischoff is a piece of s---. He says "They" are here. It's real. It's d--- real. Steiner, Angle and Crimson leave a confused Immortal in the ring.

* The main event is Mr. Anderson vs. Jeff Hardy for the TNA Championship.

* Ink Inc. defeated Gunner and Murphy. Ink Inc. won the match by pinfall.

*Jeremy Buck defeated Jay Lethal and Douglas Williams to enter the Against All Odds Four Way for the X-Division championship. Max Buck was doing commentary and came to the ring to help his brother.

#16 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 06 luty 2011 - 12:05

I look for that but there is a problem, because I can't create regexp which will work in all cases.

#17 spencer

spencer

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 5 postów
  • Wersja:IP.Board 3.1.x

Napisany 06 luty 2011 - 18:53

What about my question? Will you please look into it? I am willing to donate to you if you find a solution.

#18 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5430 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 06 luty 2011 - 20:25

Zobacz postFairlight, o 01 luty 2011 - 20:17, powiedział:

Normal text with no special formatting: Below is a portion of exactly what i was trying to hide.




The Impact Zone is full with obvious curiosity over who "they" is especially since "they" aren't who they were supposed to be.

Dark Match:

* Robbie E w/Cookie vs. Josh Daniels. Winner with Madison Rayne's boot to the chin drop finisher, Robbie E.

TNA Impact (Airing Thursday on Spike TV):

* Impact starts with Immortal out (everybody but Hulk Hogan and Ric Flair). Eric Bischoff says they have business to take care of. They sent Scott Steiner a special invitation so come on down. Scott Steiner joins Immortal in the ring. Bischoff says they've known each other way too long. He'll forget about the last few weeks and talk business. He found out a few hours ago that Dixie Carter got a continuance so Hulk Hogan won't be here tonight. That's the bad news. Now even though Steiner's saying "They" are here, he knows there's no "They." Kevin Nash called him and Bischoff told him to take the money. Get a new action figure, dye your hair and do it. As for Booker T, who cares what he's doing? Sting isn't here either. So Scott, be a man, grab your bags and join us. Bischoff extends his hand and says this is his last shot. Scott asks if that's his choice? Bischoff says door one is join him, door two is getting your a-- kicked. Steiner says how about door 3, where I shove my foot up your a--? He says he's known Eric a long time and right away knew he was a piece of s---. He's more of a man than any of these p------ in the ring. If he was a man he'd say yes sir and no sir. So he has 5 seconds to apologize or he'll break his skinny neck. Bischoff says bite me. Kurt Angle and Crimson come out. Angle says Bischoff is a piece of s---. He says "They" are here. It's real. It's d--- real. Steiner, Angle and Crimson leave a confused Immortal in the ring.

* The main event is Mr. Anderson vs. Jeff Hardy for the TNA Championship.

* Ink Inc. defeated Gunner and Murphy. Ink Inc. won the match by pinfall.

*Jeremy Buck defeated Jay Lethal and Douglas Williams to enter the Against All Odds Four Way for the X-Division championship. Max Buck was doing commentary and came to the ring to help his brother.

Try:

Find:
$post_data[$k][$key]['post'] = preg_replace('#<pre class=\'prettyprint\'>(.*?)</pre>#', '<pre class="prettyprint">'.$this->settings['hcc_text'].'</pre>',  $post['post']);

Reply with:
$post_data[$k][$key]['post'] = preg_replace('#<pre class=\'prettyprint\'>(?:[^\]]+?)</pre>#', '<pre class="prettyprint">'.$this->settings['hcc_text'].'</pre>',  $post['post']);




Zobacz postspencer, o 06 luty 2011 - 18:53, powiedział:

What about my question? Will you please look into it? I am willing to donate to you if you find a solution.


Try:

Open: /admin/applications/forums/sources/classes/post/classPostForms.php

Find:

$posts[ $row['pid'] ] = $row;

Add Above:

			if($this->settings['hcc_enable'])
			{
				$groups = explode(',', $this->settings['hcc_groups']);
				
				if(in_array($this->memberData['member_group_id'], $groups))
				{
					$row['post'] = preg_replace('#<pre class=\'prettyprint\'>(?:[^\]]+?)</pre>#', '<pre class="prettyprint">'.$this->settings['hcc_text'].'</pre>',  $row['post']);
				}
			}

Save and thats all :) (I tried in IP.B 3.1.x, I don't have installed 3.0.x)

#19 spencer

spencer

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 5 postów
  • Wersja:IP.Board 3.1.x

Napisany 06 luty 2011 - 21:48

Thank you very much. I will try it out this week. What about the portal please? How can I hide it there too?

#20 spencer

spencer

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 5 postów
  • Wersja:IP.Board 3.1.x

Napisany 06 luty 2011 - 22:01

Sorry for the double post. But how to hide it for when an use uses the reply and the multiquote buttons?

And please pm me your paypal account. I plan to make a donation to you as soon as my paycheck is in. You have been very helpful. Thank you again sir.


[Invisionize.eu] IP.Board 3.2.1, IP.Calendar 3.2.1, IP.Content 2.2.1, and IP.Nexus 1.3.1 Released , Jak odzyskac dane | IPBoard 2.1.x , [Invisionize.eu] IPS Company Blog - IP.Content 2.0 Dev Update: Interface Improvements to Pages , [Invisionize.eu] IPS Company Blog - IP.Content 2.1 Dev Update: Block Variable Help , [Invisionize.eu] IPS Company Blog - IP.Board 3.3 and IP.Content 2.3 Coming Soon!



0 użytkowników czyta ten temat

0 użytkowników, 0 gości, 0 anonimowych użytkowników