Welcome, Guest. Please Login or Register.
May 13, 2025, 05:47:16 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Flip Text? « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: Flip Text?  (Read 774 times)
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Flip Text?
« Reply #15 on: April 14, 2003, 02:43:40 AM »
Reply with quote

i really have no idea what u did, oldiesmann
i tried it and it worked fine too -> test topic: http://www.monkey-pirate.com/php/test/index.php?board=1;action=display;threadid=2

i only did the code change above and remove xhtml doctype
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:Flip Text?
« Reply #16 on: April 14, 2003, 12:54:29 PM »
Reply with quote

What's this about xhtml doctype? I don't know what you're talking about there... (Almost got the move tag doing what I want it to do now... It at least picks up the bgcolor part...)
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Flip Text?
« Reply #17 on: April 14, 2003, 06:31:04 PM »
Reply with quote

xhtml doctype is the first line in your default template.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:Flip Text?
« Reply #18 on: April 14, 2003, 10:34:31 PM »
Reply with quote

Ah. So if I remove that, it will work?
Thanks! Now see if you can help me with my javascript problem... ;D
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:Flip Text?
« Reply #19 on: April 15, 2003, 01:22:47 PM »
Reply with quote

Well, that would explain why it wasn't working on my test board... I was using the default YaBB template... *goes to try it out again*
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:Flip Text?
« Reply #20 on: April 15, 2003, 07:25:04 PM »
Reply with quote

Ok. I got it to accept the proper parameters:

I modified your code to the following:

'/\[fliph=(.+?),(.+?)/](.+?)\[\/fliph\] /is',
'/\[flipv=(.+?),(.+?)/](.+?)\[\/fliph\]/is',


and

'<span style="filter:fliph; width=' . ('\\1' < 300 ? '\\1' : '300') . '; font-size=' . ('\\2' < 20 ? '\\2' : '20') . ';">//3</span>'
'<span style="filter:flipv; width=' . ('\\1' < 300 ? '\\1' : '300') . '; font-size=' . ('\\2' < 20 ? '\\2' : '20') . ';">//3</span>'


The changes to the above code are to prevent people from posting rediculously large flipped text on your board (basically keeps the width from being larger than 300 pixels and the font size less than 20). I tested it and it works fine now... Thanks for the tips!
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Flip Text? « 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 1.416 seconds with 21 queries.