Welcome, Guest. Please Login or Register.
April 11, 2021, 08:15:05 PM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Topic: [code 1.51/1.52] Improved Move Tag « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [code 1.51/1.52] Improved Move Tag  (Read 2795 times)
oldiesmann
YaBB God
*****
Posts: 577


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


WWW
[code 1.51/1.52] Improved Move Tag
« on: April 16, 2003, 10:22:58 AM »
Reply with quote

Ok. This is pretty much the same thing as what I had posted out there a few days ago. This improves the functionality of the "move" tag in YaBB to allow more parameters, taking advantage of some options for the marquee tag. This won't work in all browsers, so make sure you test it in your browser before you install it (see instructions at the bottom).

New: I noticed it was a little confusing to have it default with all those "options", so I've edited it so you can either have no options or all the options (I'm looking into making it function better by allowing you to specify which options you want so if you don't specify an option, no problem).

In Subs.php
search for:
Code: [Select]
'/\[move\](.+?)\[\/move\]/is',
add after:
Code: [Select]
'/\[move=(.+?),(.+?),(.+?),(.+?),(.+?)\](.+?)\[\/move\]/is',
search for:
Code: [Select]
<marquee>\\1</marquee>
add after:
Code: [Select]
'<marquee direction=\\1 behavior=\\2 scrollamount=\\3 style="background-color:\\4" width=\\5>\\6</marquee>'
Ok. That should do it. Now you have two options - if you click on the "move" tag in post, it will just act like the default move tag, and you will have to add the options yourself. I'm still working on getting it to act more like the marquee tag does in HTML, so that you can specify what options you do want, and it will work that way. To test your browser's capability to display marquee, open up notepad or whatever text/HTML editor you prefer, and create a document called Test.html with the following contents:

Code: [Select]
<html>
<title>Test Marquee</title>

<body>
<p>This document will test your browser's ability to display scrolling text. If the text below is moving, your browser is fine. If you don't see the text moving, your browser probably doesn't support marquee.
<br><br>
<marquee>Is this text scrolling?</marquee>

</html>
« Last Edit: May 05, 2003, 10:59:09 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)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830



WWW
Re:[code 1.51 Final] Improved Move Tag
« Reply #1 on: April 16, 2003, 10:30:19 AM »
Reply with quote

Use [ code ] instead of  [ quote ].  I see moving text there :P.

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


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


WWW
Re:[code 1.51 Final] Improved Move Tag
« Reply #2 on: April 16, 2003, 01:07:51 PM »
Reply with quote

OOOPS! I always use quote because the text is more visible that way... *goes to change that*
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)
Fizzy
Full Member
***
Posts: 214



Re:[code 1.51 Final] Improved Move Tag
« Reply #3 on: April 17, 2003, 07:19:10 AM »
Reply with quote

Nice one !

They even scroll up and down too  8)
Logged
oldiesmann
YaBB God
*****
Posts: 577


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


WWW
Re:[code 1.51 Final] Improved Move Tag
« Reply #4 on: April 17, 2003, 09:19:35 AM »
Reply with quote

Yep.  ;D Glad you like it...
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)
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!


Re:[code 1.51/1.52] Improved Move Tag
« Reply #5 on: May 25, 2003, 03:05:42 AM »
Reply with quote

This is a nice mod :)

How can it be changed to have a transparent background?

Logged

To the world - you are just one person, but to one person you are the world!
oldiesmann
YaBB God
*****
Posts: 577


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


WWW
Re:[code 1.51/1.52] Improved Move Tag
« Reply #6 on: May 25, 2003, 08:37:47 PM »
Reply with quote

Simple... Just put "transparent" as the fourth argument in the tag:

[move=direction,behavior,scrollamount,background-color, width]text[/move] - just substitute whatever values you want for the others (see my Lycos board for more details on this mod).
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)
Anguz
YaBB God
*****
Posts: 641


llama me?!


WWW
Re:[code 1.51 Final] Improved Move Tag
« Reply #7 on: May 26, 2003, 01:53:56 AM »
Reply with quote

Use [ code ] instead of  [ quote ].  I see moving text there :P.

-[Unknown]

did the marquee html tag work in the post? I thought html tags wouldn't work...

*** Anguz tries it :P

edit: nope, didn't work...
« Last Edit: May 26, 2003, 01:57:10 AM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830



WWW
Re:[code 1.51/1.52] Improved Move Tag
« Reply #8 on: May 26, 2003, 01:56:23 AM »
Reply with quote

No he had [ move ] in there.... so it was moving.

-[Unknown]
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!


WWW
Re:[code 1.51/1.52] Improved Move Tag
« Reply #9 on: May 26, 2003, 02:01:14 AM »
Reply with quote

No he had [ move ] in there.... so it was moving.

-[Unknown]

aaaaah!! that explains everything and then some! lol

^^;;
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
oldiesmann
YaBB God
*****
Posts: 577


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


WWW
Re:[code 1.51/1.52] Improved Move Tag
« Reply #10 on: May 27, 2003, 10:53:00 AM »
Reply with quote

Yeah... The main reason I originally used the quote tag instead of the code tag is because it's easier to read that way...
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] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Topic: [code 1.51/1.52] Improved Move Tag « 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.0.15 | SMF © 2017, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.062 seconds with 34 queries.