1
dgbauer
Re: New Spoiler Tag Hack!
  • 2006/3/26 22:22

  • dgbauer

  • Just popping in

  • Posts: 5

  • Since: 2005/11/12


Very cool! I will try this with my site tonight, but just for safety sake, what version of XOOPS are you using? (Or at least what version did you test this with?)



2
dgbauer
Re: New Spoiler Tag Hack!
  • 2006/3/26 9:55

  • dgbauer

  • Just popping in

  • Posts: 5

  • Since: 2005/11/12


Any chance that you will have (or even already do) code available for that soon? I am really impressed and interested with your modification there! If so, you can e-mail it to me at: dgbauer<AT>bauerbox<DOT>com (avoiding spam bots)

I may be able to help with your problem on not being able to have more than one in a post.



3
dgbauer
Re: Possibilty of Spoiler Hack?
  • 2006/3/25 10:00

  • dgbauer

  • Just popping in

  • Posts: 5

  • Since: 2005/11/12


I know this is a fairly old thread, but for those of you still in search of a spoiler hack, I have made one!

Find it here!

Enjoy!



4
dgbauer
New Spoiler Tag Hack!
  • 2006/3/25 9:54

  • dgbauer

  • Just popping in

  • Posts: 5

  • Since: 2005/11/12


There was many requests for a [spoiler] tag on my site, and after searching the internet fruitlessly for a hack that would allow me to add a spoiler tag, I decided to do it myself. I would like to post my results for everyone to use if you would like.

Go here for a demo

First, open (xoopsroot)/class/module.textsanitizer.php and find this:
// [/rhl]
$patterns[] = "/[q[color=000000]u[/color]ote]/sU";
$replacements[] = _QUOTEC.'<div class="xoopsQuote"><blockquote>';
//$replacements[] = 'Quote: <div class="xoopsQuote"><blockquote>';
$patterns[] = "/[/quote]/sU";
$replacements[] = '</blockquote></div>';


In my XOOPS 2.2.3a Final version of this file, it was lines 223 through 227 (Editing with Dreamweaver)

After that, add this:
//Start Spoilers Hack - By Don Bauer
$patterns[] = "/[spoiler]/sU";
$replacements[] = 'Spoiler: <div class="xoopsSpoiler"><blockquote>';
$patterns[] = "/[/spoiler]/sU";
$replacements[] = '</blockquote></div>';
//End Spoilers Hack - By Don Bauer


But you aren't done!!! You need to add the new CSS code to your theme's style.css theme! So next, open (xoopsroot)/themes/(yourtheme)/style.css and find the div.xoopsQuote block (this is mine, yours can, and probably will look different):
div.xoopsQuote background#FFFFFF; border: 1px inset #000080; font-family: "Courier New",Courier,monospace; padding: 0px 6px 6px 6px;}


After that, add your new div.xoopsSpoiler block (this is mine):
div.xoopsSpoiler background#000000; color:#000000; border: 1px inset #000080; font-family: "Courier New",Courier,monospace; padding: 0px 6px 6px 6px;}


Ass you can see, all I did to this CSS block for div.xoopsSpoiler was change background: #FFFFFF; to background: #000000; and I added in color: #000000; after that.

This will make a black block with black text, but you can change that to whatever you want, just make sure that the background and the color values are exactly the same!


I would recommend copying and pasting your div.xoopsQuote block and just adding in the 'color: #000000'; and changing the color after 'background:' to '#000000'.

That's it!

Please use at your own risk as I hold no responsibility for damages done because of your use of this hack. I have tested with XOOPS 2.2.3a Final.

Enjoy!



5
dgbauer
Re: Direct Friends Problem
  • 2005/12/8 12:33

  • dgbauer

  • Just popping in

  • Posts: 5

  • Since: 2005/11/12


I know this topic is over a month old now, but for what it's worth, I am working on one of two things depending on how the first goes...

1. Fixxing the bug in the directfriends module

-or-

2. Writing a completely new friends module for XOOPS 2.0.x and higher.

You guys let me know what you would prefer before I get too far in, and that's what I will do.


Also, if either of you have gotten the directfriends module working, can you please let me know and post the code?




TopTop



Login

Who's Online

197 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits