Welcome, Guest. Please Login or Register.
June 03, 2025, 02:16:21 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  |  Flip Text? « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Flip Text?  (Read 795 times)
oldiesmann
YaBB God
*****
Posts: 577


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

oldiesmann@oldiesmann.us WWW
Flip Text?
« on: April 13, 2003, 10:35:05 PM »
Reply with quote

I'm not sure how easy it would be to do this, since the main UBBC function (doUBBC) is buried in subs.php, but I would like something like the "flip BBCode" mod for phpBB (see http://www.phpbb.com/phpBB/viewtopic.php?t=74725). Any ideas?
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 #1 on: April 13, 2003, 10:53:09 PM »
Reply with quote

i don't see the use of flipping texts ::)
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 #2 on: April 13, 2003, 11:10:40 PM »
Reply with quote

Just another fun thing to do... Does there have to be a use for everything other than just making your board a little bit more exciting?
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 #3 on: April 13, 2003, 11:27:57 PM »
Reply with quote

untested:

open Subs.php, search for         '/\[email=(.+?)\](.+?)\[\/email\]/is',add after         '/\[fliph\](.+?)\[\/fliph\]/is',
        '/\[flipv\](.+?)\[\/flipv\]/is',

search for         '<a href="mailto:\\1">\\2</a>',add after         '<span style="filter: fliph; height: 1px;">\\1</span>',
        '<span style="filter: flipv; height: 1px;">\\1</span>',


warning: this will not work on mozilla/phoenix, and maybe some other cool browsers
reference: http://www.endamcg.com/main/guides/css/guides/visual-filters.shtml
« Last Edit: April 14, 2003, 12:58:57 AM by Spaceman-Spiff » 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 #4 on: April 13, 2003, 11:47:34 PM »
Reply with quote

Cool! Thanks... now all I need is a button for that... I'll see what I can do...
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 #5 on: April 14, 2003, 12:31:14 AM »
Reply with quote

Well, after going nuts do to a constant parse error, I finally got it to at least accept the code on my test board (a supermoded board on Lycos UK) by putting a ; at the end of each line instead of a , but now when I test it out, it just inserts a blue line across the screen instead... Let me try it out on my other board and see what happens...
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)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Flip Text?
« Reply #6 on: April 14, 2003, 12:34:32 AM »
Reply with quote

Quote from: oldiesmann on April 14, 2003, 12:31:14 AM
Well, after going nuts do to a constant parse error, I finally got it to at least accept the code on my test board (a supermoded board on Lycos UK) by putting a ; at the end of each line instead of a , but now when I test it out, it just inserts a blue line across the screen instead... Let me try it out on my other board and see what happens...

You added it in the wrong place, then... or something.

-[Unknown]
Logged
oldiesmann
YaBB God
*****
Posts: 577


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

oldiesmann@oldiesmann.us WWW
Re:Flip Text?
« Reply #7 on: April 14, 2003, 12:45:59 AM »
Reply with quote

Well, when I added it directly after the <a href=mailto: ... line, it complained about "expecting ')..." or whatever that line right after it is, so I moved the code to below that, and it kept complaining about a parse error and call to undefined function clicklog() until I put the ; after it... I'm still playing around with it on my lycos board...
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 #8 on: April 14, 2003, 12:51:05 AM »
Reply with quote

Ah... I think I figured out what was causing the parse error... that '\\1'); was the end of the function... I removed the ) and replaced the ; with a , so it now looks like:

'\\1',
'<span style=filter: fliph;">\\1</span>',
'<span style=fliter: flipv;">\\1</span>');

Will upload and try again... I think this will work...
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 #9 on: April 14, 2003, 12:51:07 AM »
Reply with quote

copy and paste that part of the code, also with 2-3 lines above and below it
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 #10 on: April 14, 2003, 12:55:21 AM »
Reply with quote

Okay... Here's what it looks like... Some changes have been made because of the supermod, but that's about it...

         '<a href="mailto:\\1">\\2</a>',
         '\\1',
         '<span style="filter: fliph;">\\1</span>',
         '<span style="filter: flipv;">\\1</span>');
//         "<table style=\"Filter: Glow(Color=\\1, Strength='.(('\\2'<400)?'\\2':400).')\" width='.(('\\3'<400)?'\\3':400).'\>\\4</table>",
//         "<table style=\"Filter: Glow(Color=\\1, Strength=(?(\\2<400)\\2|400)\" width=\"(?(\\3<400)\\3|400)\"\>\\4</table>",
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 #11 on: April 14, 2003, 01:00:04 AM »
Reply with quote

it requires width or height attibute too to work somehow, so i i edited the code above
here's my subs.php:

        "('\\4' != '/' && '\\1' != '=' ? '<a href=\"mailto:\\2\">\\2</a>' : '\\1\\2')",
        '<a href="mailto:\\1">\\2</a>',
        '<span style="filter: fliph;">\\1</span>',
        '<span style="filter: flipv;">\\1</span>',
        '\\1');
//         "<table style=\"Filter: Glow(Color=\\1, Strength='.(('\\2'<400)?'\\2':400).')\" width='.(('\\3'<400)?'\\3':400).'\>\\4</table>",
//         "<table style=\"Filter: Glow(Color=\\1, Strength=(?(\\2<400)\\2|400)\" width=\"(?(\\3<400)\\3|400)\"\>\\4</table>",



it also doesn't work when u have xhtml doctype
« Last Edit: April 14, 2003, 01:06:58 AM by Spaceman-Spiff » 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 #12 on: April 14, 2003, 01:09:06 AM »
Reply with quote

Ok. I moved that '\\1') line, but it didn't do anything different... It still shows up as a blue line all across the screen...
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 #13 on: April 14, 2003, 02:35:15 AM »
Reply with quote

Well, it appears that the UBBC code is more complicated than I thought... I tried doing it similar to the "glow" and "shadow" functions, but no matter what I did, I got the stupid blue horizontal line instead... I tried

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

and did the table style thing like with glow and shadow, only I replaced the , with a ;, but I kept getting the following error:
2: Compilation failed: missing terminating ] for character class at offset 36
(/data/members/free/tripod/uk/o/l/d/oldiesmann/htdocs/Sources/Subs.php ln 995)

so I just deleted the code and gave up... Spiff, if you get it working, let me know... (Goes to see about editing the "move" tag to allow for extra marquee options such as scrollamount, behavior and direction).
« Last Edit: April 14, 2003, 02:38:42 AM by oldiesmann » 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)
king_killa
Full Member
***
Posts: 132


king killa big wheela cat peela

WWW
Re:Flip Text?
« Reply #14 on: April 14, 2003, 02:38:14 AM »
Reply with quote

I have tryed replacing bbc tags, I got html errors.. Oh I changed some crap in display and got it working, I don't think I was suppose to though, It caused other problems that took forever to fix
Logged

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 0.786 seconds with 20 queries.