Welcome, Guest. Please Login or Register.
April 30, 2025, 11:16:20 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Yabb.php 1.0.0 Hide Hack Needed « previous next »
Pages: 1 [2] 3 Reply Ignore Print
Author Topic: Yabb.php 1.0.0 Hide Hack Needed  (Read 1477 times)
Techz
Noobie
*
Posts: 15


:-)

Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #15 on: March 11, 2002, 09:11:49 PM »
Reply with quote

no one can do this then to hard for you all
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #16 on: March 12, 2002, 06:35:43 PM »
Reply with quote

Quote from: Techz on March 11, 2002, 09:11:49 PMno one can do this then to hard for you all

What? That wouldn't be hard. I already wrote one. Well sort of. I wrote a Spoiler hack! lol. The only thing that I can see as being remotely hard is the "only allowed see if you reply" bit. Still.. if that's your attitude then I guess it'll never be done..  :P ::)
Logged

PHPNews has been released!!! Download it now!!!
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #17 on: March 13, 2002, 10:37:28 AM »
Reply with quote

Quote
Quote from: Big P on March 12, 2002, 06:35:43 PMno one can do this then to hard for you all
I already wrote one. Well sort of. I wrote a Spoiler hack!
That spoiler hack, is it publicly available? That would be quite useful...
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #18 on: March 13, 2002, 10:05:11 PM »
Reply with quote

Quote from: Daniel Hofverberg on March 13, 2002, 10:37:28 AM
Quote
Quote from: Big P on March 12, 2002, 06:35:43 PMno one can do this then to hard for you all
I already wrote one. Well sort of. I wrote a Spoiler hack!
That spoiler hack, is it publicly available? That would be quite useful...


Nope, someone just asked me for it. I'll release it, if i find it that is.. Somewhere on my comp methinks ;)
Logged

PHPNews has been released!!! Download it now!!!
tazthedev
Full Member
***
Posts: 161


I'm a llama!

Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #19 on: March 14, 2002, 02:40:46 AM »
Reply with quote

big P... i would appreciate if you can make it :)

really need it too :)
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #20 on: March 14, 2002, 08:44:17 AM »
Reply with quote

Yeah, please try to find it!
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #21 on: March 14, 2002, 10:13:26 PM »
Reply with quote

Quote from: Daniel Hofverberg on March 14, 2002, 08:44:17 AMYeah, please try to find it!

I'm doing it tomorrow. Hopefully it'll be done then.  ;)
Logged

PHPNews has been released!!! Download it now!!!
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #22 on: March 15, 2002, 07:05:21 AM »
Reply with quote

[hide]I have it here somewhere on my computer.[/hide]

Really I have nothing to hide.  :P
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #23 on: March 15, 2002, 06:40:46 PM »
Reply with quote

Quote from: Nemesis on March 15, 2002, 07:05:21 AM[hide]I have it here somewhere on my computer.[/hide]

Really I have nothing to hide.  :P
So do I. The SE version! :P I won't have it finished until next week as Im going away for Paddy's Weekend.
Plus one part I a bit stuck on! So a holiday is a great excuse!  ;D
Logged

PHPNews has been released!!! Download it now!!!
StefanPool
Noobie
*
Posts: 38


I'm a llama!

Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #24 on: March 16, 2002, 01:01:13 PM »
Reply with quote

Still haven't got it completed???????
Logged
Techz
Noobie
*
Posts: 15


:-)

Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #25 on: March 23, 2002, 07:21:22 PM »
Reply with quote

Right here is the hide hack for SP1 CGI can someone convert it to YaBBSe 1.0 for me please

If you can icq me on 41724112 PLEASE PLEASE

<id>
[hide] tag mod with button
</id>

<version>
1.0
</version>

<mod info>
This mod allows users to hide parts of their posts with a [hide]...[/hide] tag. It will be replaced with [hidden] in the message list, in the quote and the summary below the quote.
Other users must post a reply in the same thread to see the hidden text. Guest can never see the hidden text. A hide button is incorporated to YaBBC.
Known bug: When you reply  w/ quote to a post with a hidden text, the hidden text will appear as [hidden] in the quote, even when you can see any other hidden text.

To install this mod, make sure you move ubbc.js to the same folder as YaBB.pl, then move it back once the mod is installed.
Upload hide.gif to your YaBBImages dir.

YaBBC button based on the code by Tony C.
</mod info>

<author>
cae, Manuel Medina, SP1 By Ken Ault
</author>

<homepage>

</homepage>

<edit file>
ubbc.js
</edit file>

<search for>
function list() {
   AddTxt="[list][*][*][*][/list]";
   AddText(AddTxt);
}
</search for>

<add after>
function hide() {
   AddTxt="[hide][/hide]";
   AddText(AddTxt);
}
</add after>

<edit file>
Sources/Post.pl
</edit file>

<search for>
      if($quotemsg ne '') {
         ($msubject, $mname, $memail, $mdate, $musername, $micon, $mattach, $mip, $mmessage, $mns) = split(/\|/,$messages[$quotemsg]);
         $message=$mmessage;
</search for>

<add after>
### hide mod
         if( $message =~ /\[hide\]/)
         {
         $message =~ s/\[hide\](.+?)\[\/hide\]/\[HIDDEN]/g;
         }
### hide mod
</add after>

<search for>
         foreach (@censored) {
            ($tmpa,$tmpb) = @{$_};
            $message =~ s~\Q$tmpa\E~$tmpb~gi;
         }
</search for>

<add after>
         ### hide mod
         if( $message =~ /\[hide\]/)
         {
      
         $message =~ s/\[hide\](.+?)\[\/hide\]/\[HIDDEN\]/g;

         }
         ### hide mod
</add after>

<search for>
          document.write("<a href=javascript:list()><img src='$imagesdir/list.gif' align=bottom width=23 height=22 alt='$txt{'261'}' border='0'></a>");
</search for>

<add after>

   document.write("<a href=javascript:hide()><img src='$imagesdir/hide.gif' align=bottom width=23 height=22 alt='Top Secret' border='0'></a>");
</add after>

<edit file>
Sources/Recent.pl
</edit file>

<search for>
         foreach (@censored) {
            ($tmpa,$tmpb) = @{$_};
            $message =~ s~\Q$tmpa\E~$tmpb~gi;
            $msub =~ s~\Q$tmpa\E~$tmpb~gi;
         }
</search for>

<add after>
         ### hide mod
         if( $message =~ /\[hide\]/)
         {
      
         $message =~ s/\[hide\](.+?)\[\/hide\]/\[HIDDEN\]/g;

         }
         ### hide mod
</add after>

<edit file>
Sources/Display.pl
</edit file>

<search for>
   $maxmessagedisplay ||= 10;
</search for>

<add after>
   ## hide mod
   my ($showhide,$tempdef);
   ## hide mod
</add after>

<search for>
      # Run UBBC interpreter on the message.
      $message = $postmessage; # put the message back into the proper variable to do ubbc on it
</search for>

<add after>
      ### hide mod
      if( $message =~ /\[hide\]/ && $showhide ne 'doit')
      {
      
      $message =~ s/\[hide\](.+?)\[\/hide\]/\[HIDDEN\]/g;

      }
      ### hide mod
</add after>

<search for>
   for($counter = 0; $counter < $maxmessagedisplay && ($buffer = <FILE>); $counter++) {
      $messages[$counter] = $buffer;
   }
   fclose(FILE);
</search for>

<add after>
   ### hide mod
   $showhide='';
   foreach $tempdef (@messages)
   {
      chomp($tempdef);
      ($msub, $mname, $memail, $mdate, $musername, $micon, $mattach, $mip, $postmessage, $ns, $mlm, $mlmb) = split(/[\|]/, $tempdef);
      if( $musername eq $username && $username ne 'Guest')
      { $showhide ='doit';}
   }
   ### hide mod
</add after>

<edit file>
Sources\YaBBC.pl
</edit file>

<search for>
   $message =~ s~\[list\]~<ul>~isg;
   $message =~ s~\[\*\]~<li>~isg;
   $message =~ s~\[/list\]~</ul>~isg;
</search for>

<add after>

   $message =~ s~\[hide\](.+?)\[/hide\]~$1</p>~isg;
</add after>
« Last Edit: March 23, 2002, 07:22:49 PM by Techz » Logged
Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #26 on: March 23, 2002, 08:40:29 PM »
Reply with quote

At this time YaBB SE mod writers are 2/3 people so be patient :)
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Techz
Noobie
*
Posts: 15


:-)

Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #27 on: March 24, 2002, 07:11:28 PM »
Reply with quote

Come on people it can`t be that hard please need it bad
Logged
Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #28 on: March 24, 2002, 09:29:58 PM »
Reply with quote

Quote from: Techz on March 24, 2002, 07:11:28 PMCome on people it can`t be that hard please need it bad

It's hard to find time, we have a life take yours too :)
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:Yabb.php 1.0.0 Hide Hack Needed
« Reply #29 on: March 24, 2002, 09:31:29 PM »
Reply with quote

sheesh. calm down techz
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
Pages: 1 [2] 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Yabb.php 1.0.0 Hide Hack Needed « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.053 seconds with 20 queries.