Modyfikacje IP.Board 3.0.x: (DB30) Hide CODE Content
#21
Napisany 08 luty 2011 - 07:12
Dawid Baruch - Portfolio Webmastera, IPB, php, grafika, sql, skiny IPB, mody IP.Board
IP.Board NEWS
Licencje IP.Board
#22
Napisany 08 luty 2011 - 18:00
Spanner, o 08 luty 2011 - 07:12, powiedział:
I mean when someone quotes or multiquotes the post with the hidden code they see the hidden part. And also for the Ipb portal. The hidden content shows there at the recent topics.
I did not see the paypal link. I will make it worth while. Are you available for paid work? You seem to know a lot about oding and I need several mods. Can you please pm your hourly rates?
#23
Napisany 12 luty 2011 - 10:52
try
Open: /admin/sources/handlers/han_editor.php
Find:
if( $this->method == 'rte' )
{
$text = preg_replace( '#(<|<|&lt;|&\#60;)script#si', "&lt;script", $text );
}
Add below:
if($this->settings['hcc_enable'])
{
$groups = explode(',', $this->settings['hcc_groups']);
if(in_array($this->memberData['member_group_id'], $groups))
{
$text = preg_replace('#\[code\](?:[^\]]+?)\[\/code\]#', '[code]'.$this->settings['hcc_text'].'[ /code]', $text);
}
}
Remember to replace [ /code] to [/code]
Portal
try
Open: /admin/applications/forums/extensions/portalPlugins/recent_topics.php
Find:
$entry['post'] = IPSText::getTextClass( 'bbcode' )->memberViewImages( $entry['post'] );
Add below:
if($this->settings['hcc_enable'])
{
$groups = explode(',', $this->settings['hcc_groups']);
if(in_array($this->memberData['member_group_id'], $groups))
{
$entry['post'] = preg_replace('#<pre class=\'prettyprint\'>(?:[^\]]+?)</pre>#', '<pre class="prettyprint">'.$this->settings['hcc_text'].'</pre>', $entry['post']);
}
}
That's all
Dawid Baruch - Portfolio Webmastera, IPB, php, grafika, sql, skiny IPB, mody IP.Board
IP.Board NEWS
Licencje IP.Board
#24
Napisany 13 luty 2011 - 20:53
[hide_me] [/hide_me] or [hide][/hide]
Can you please help me fix this? Thank You
#25
Napisany 13 luty 2011 - 21:04
in posts do not have to intercede [hide]
P.S.
sorry for my English
2.5 V6 i500 by Duke_ - Black Pearl 
Pomoglem ? Podziekuj naciskajac " + " to nic nie kosztuje a dobrze o Tobie swiadczy ;)
#26
Napisany 14 luty 2011 - 03:20
If someone can help me fix this so i can get this hide hack to work that would be great. Thank You!
#27
Napisany 15 luty 2011 - 15:14
Spanner, o 06 luty 2011 - 20:25, powiedział:
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']);
sorry i did not get back to you sooner. I was waiting for this week's spoilers to test it out. Unfortunately, you are right. it is difficult to get it to work on all occasions. Hiding this week's television spoilers does not work.
#28
Napisany 09 kwiecień 2011 - 19:28
Wykryłem dzisiaj, że modyfikacja nie działa do końca poprawnie. Otóż 1 link umieszczony w tagu code nie bedzie wyswietlony dla goscia i tu jest ok, jednak wystarczy dodac w tagu code 2 linki lub 1 link i kawalek tekstu (od nowego wiersza jak probowalem) no i juz sie sypie i kazdy widzi zawartosc tagu.
Wiekszosc ludzi wpisuje 1 link + lub cos tam dopisuje...Ogolnie mysle ze dla kazego moze to sprawiac w jakims stopniu problem. W jaki sposob to rozwiazac?
Edytowany przez spawn3d, 09 kwiecień 2011 - 19:32.
#29
Napisany 10 kwiecień 2011 - 09:25
Dawid Baruch - Portfolio Webmastera, IPB, php, grafika, sql, skiny IPB, mody IP.Board
IP.Board NEWS
Licencje IP.Board
#30
Napisany 10 kwiecień 2011 - 18:57
Edytowany przez spawn3d, 10 kwiecień 2011 - 18:57.
Także otagowane jako db30, hide code content
IP.Board Support →
IP.Board 3.2.x →
Support Modyfikacji →
Modyfikacje IP.Board 3.2.x: (DB32) Hide CODE ContentRozpoczęte przez Spanner, 23 paź 2011 |
|
|
||
IP.Board Support →
IP.Board 3.0.x i 3.1.x →
Support Modyfikacji →
Modyfikacje IP.Board 3.0.x i 3.1.x: (DB30) Resynchronize Forums TaskRozpoczęte przez Spanner, 13 maj 2010 |
|
|
||
IP.Board Support →
IP.Board 3.0.x i 3.1.x →
Support Modyfikacji →
Modyfikacje IP.Board 3.0.x: (DB30) Reputation HistoryRozpoczęte przez Spanner, 28 paź 2009 |
|
|
||
IP.Board Support →
IP.Board 3.0.x i 3.1.x →
Support Modyfikacji →
Modyfikacje IP.Board 3.0.x: (DB30) Google SiteMap GeneratorRozpoczęte przez Spanner, 29 lip 2009 |
|
|
0 użytkowników czyta ten temat
0 użytkowników, 0 gości, 0 anonimowych użytkowników



















