Home | Community | Message Board


High Mountain Compost
Please support our sponsors.

Feedback and Administration >> Website Announcements and Feature Feedback

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!

Jump to first unread post. Pages: 1
OfflineRandolph_Carter
НơĻ?ĢΉō

Registered: 06/14/00
Posts: 29,281
Loc: Shroomery B-list.
Last seen: 6 years, 10 months
To any of you technical admin mofos
    #4023588 - 04/06/05 11:11 PM (11 years, 11 months ago)

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.)


Post Extras: Print Post  Remind Me! Notify Moderator
InvisibleYthanA
٩(●̮•̃)۶
Male

Registered: 08/08/97
Posts: 16,916
Loc: NY/MA/VT Borderlands, USA Flag
Re: To any of you technical admin mofos [Re: Randolph_Carter]
    #4023609 - 04/06/05 11:18 PM (11 years, 11 months ago)

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.


Post Extras: Print Post  Remind Me! Notify Moderator
OfflineRandolph_Carter
НơĻ?ĢΉō

Registered: 06/14/00
Posts: 29,281
Loc: Shroomery B-list.
Last seen: 6 years, 10 months
Re: To any of you technical admin mofos [Re: Ythan]
    #4023618 - 04/06/05 11:20 PM (11 years, 11 months ago)

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.)


Post Extras: Print Post  Remind Me! Notify Moderator
InvisibleYthanA
٩(●̮•̃)۶
Male

Registered: 08/08/97
Posts: 16,916
Loc: NY/MA/VT Borderlands, USA Flag
Re: To any of you technical admin mofos [Re: Randolph_Carter]
    #4023668 - 04/06/05 11:33 PM (11 years, 11 months ago)

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


Post Extras: Print Post  Remind Me! Notify Moderator
OfflineRandolph_Carter
НơĻ?ĢΉō

Registered: 06/14/00
Posts: 29,281
Loc: Shroomery B-list.
Last seen: 6 years, 10 months
Re: To any of you technical admin mofos [Re: Ythan]
    #4023710 - 04/06/05 11:40 PM (11 years, 11 months ago)

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.)


Post Extras: Print Post  Remind Me! Notify Moderator
OfflineAnnoA
Experimenter
 User Gallery

Folding@home Statistics
Registered: 06/18/99
Posts: 24,122
Loc: my room
Last seen: 16 hours, 53 minutes
Re: To any of you technical admin mofos [Re: Randolph_Carter]
    #4024926 - 04/07/05 05:21 AM (11 years, 11 months ago)



Post Extras: Print Post  Remind Me! Notify Moderator
Jump to top. Pages: 1

Feedback and Administration >> Website Announcements and Feature Feedback

Similar ThreadsPosterViewsRepliesLast post
* to the admins: irc chat?
( 1 2 3 all )
Jenny 4,443 52 05/15/04 07:16 PM
by geokills
* A question for the technical admins YSJ 1,113 2 02/25/03 06:22 PM
by YSJ
* who are admins now? eric_the_red 1,536 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 6,829 103 03/03/08 11:17 PM
by Thor
* Smartdrugs, Nutrients and Supplements (sub)Forum AsanteA 794 6 09/27/05 05:32 PM
by afoaf
* For Consideration of the Admin's MOTH 999 18 02/05/05 07:36 PM
by geokills
* Javascript Quote Function fireworks_godS 555 3 03/26/09 01:07 PM
by fireworks_god
* How about an Outdoor Sub-forum?
( 1 2 3 all )
kadakuda 3,809 45 01/13/05 09:42 PM
by ToTheSummit

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Ythan, Thor, Seuss, geokills
474 topic views. 1 members, 0 guests and 2 web crawlers are browsing this forum.
[ Toggle Favorite | Print Topic | Stats ]
Search this thread:
Lil Shop Of Spores
Please support our sponsors.

Copyright 1997-2017 Mind Media. Some rights reserved.

Generated in 0.038 seconds spending 0.004 seconds on 15 queries.