Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Myyco.com Shop: Golden Teacher Liquid Culture For Sale

Jump to first unread post Pages: 1
To any of you technical admin mofos
    #4023588 -

Got a person that would love to look at your super- and sub-scripting dealies.
Share with me so i can share with him?

thanks.


--------------------
"..all those molecules thrashing their kinky little tails, hot for destiny and the street."  Gibson


Nuke baby seals for Jesus!

(This has been a +1 production.)

Extras: Filter Print Post Top
Re: To any of you technical admin mofos [Re: Randolph_Carter]
    #4023609 -

You mean the [sub] and [sup] additions to UBB Code?

I can pull out the modified code if you want but it's really straightforward to add yourself. Just copy and change the code for the [b], [i] or [u] tag.

Extras: Filter Print Post Top
Re: To any of you technical admin mofos [Re: Ythan]
    #4023618 -

He's a tad overworked, and i'm sure the straight modified code would be welcome, if it's not too much trouble.

Thanks mang. :sun:


--------------------
"..all those molecules thrashing their kinky little tails, hot for destiny and the street."  Gibson


Nuke baby seals for Jesus!

(This has been a +1 production.)

Extras: Filter Print Post Top
Re: To any of you technical admin mofos [Re: Randolph_Carter]
    #4023668 -

Yeah yeah everybody's overworked, but hey I'll help you anyway. :smile:

ubbt.inc.php

Find:

Code:

$Body =preg_replace("/\[\/u\]/i","</u>",$Body);



Under this add:

Code:

$Body =preg_replace("/\[sup\]/i","<sup>",$Body);
$Body =preg_replace("/\[sub\]/i","<sub>",$Body);
$Body =preg_replace("/\[\/sup\]/i","</sup>",$Body);
$Body =preg_replace("/\[\/sub\]/i","</sub>",$Body);



Find:

Code:

$Body =str_replace("</u>","[/u]",$Body);



Under this add:

Code:

$Body =str_replace("<sup>","[sup]",$Body);
$Body =str_replace("<sub>","[sub]",$Body);
$Body =str_replace("</sup>","[/sup]",$Body);
$Body =str_replace("</sub>","[/sub]",$Body);



ubbt_instant_ubbcode.tmpl

Find:

Code:

var currentMessage = document.replier.Body.value;



Under this add:

Code:

if (action == "sup") {
surroundText("[sup]" , "[/sup]", document.replier.Body);
document.replier.Body.focus();
return;
}

if (action == "sub") {
surroundText("[sub]" , "[/sub]", document.replier.Body);
document.replier.Body.focus();
return;
}



Find:

Code:

<td class="darktable">
<a href="javascript: x()" onclick="DoPrompt('code');">{$ubbt_lang['J_CODE']}</a>
</td>



Under this add:

Code:

<td class="darktable">
<a href="javascript: x()" onclick="DoPrompt('sup');">Superscript</a>
</td></tr><tr>
<td class="darktable">
<a href="javascript: x()" onclick="DoPrompt('sup');">Superscript</a>
</td>



I think that should do it. It's possible some of our customizations have changed the code a little from what he'll find in his install. I'm sure he'll be able to figure it out though.

Edit: Actually on second thought I know it'll be different from what's in his install. The 'surroundText' Javascript function doesn't exist in the stock BB. He can copy the code from our page source if he wants, or reuse the BB's Javascript for underline.

Peace,

-Y

Extras: Filter Print Post Top
Re: To any of you technical admin mofos [Re: Ythan]
    #4023710 -

Thank you very much sirrah. :thumbup: :heart: :mushroom2:


--------------------
"..all those molecules thrashing their kinky little tails, hot for destiny and the street."  Gibson


Nuke baby seals for Jesus!

(This has been a +1 production.)

Extras: Filter Print Post Top
Re: To any of you technical admin mofos [Re: Randolph_Carter]
    #4024926 -


Extras: Filter Print Post Top
Jump to top Pages: 1

Myyco.com Shop: Golden Teacher Liquid Culture For Sale


Similar ThreadsPosterViewsRepliesLast post
* to the admins: irc chat?
( 1 2 3 all )
Jenny 6,191 52 05/15/04 07:16 PM
by geokills
* A question for the technical admins YSJ 1,321 2 02/25/03 06:22 PM
by YSJ
* . eric_the_red 1,817 12 12/17/03 09:03 AM
by fireworks_god
* Congratulations to the admin team for reaching a new low
( 1 2 3 4 5 6 all )
ivi 8,807 103 03/03/08 11:17 PM
by Thor
* Technical problem with this site DaCultivater 443 4 11/22/05 04:00 PM
by DaCultivater
* Moderators, admins, and ...
( 1 2 all )
SeussA 6,052 32 05/17/03 05:30 PM
by Ripple
* Admins... particularly Thor... RoseM 1,108 3 12/08/05 12:15 PM
by geokills
* Ytahn Help Others Can't edit my documents Montanahunter420 926 4 07/13/07 01:54 PM
by Ythan

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Ythan, Thor, Seuss, geokills
589 topic views. 0 members, 2 guests and 7 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2026 Mind Media. Some rights reserved.

Generated in 0.026 seconds spending 0.005 seconds on 14 queries.