Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Forum Code editor
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 4

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 20 November 2000 :  17:53:01  Show Profile
As Richard said, this mod is already included into the forums. It's those buttons you see above the message box when you're posting a message. It's the Format Buttons. The Bold, Italics, Underline, Center, etc. etc.
And if it is working ok on your forum, then there are no bugs in it. <img src=icon_smile.gif border=0 align=middle>

<center><font color=green>*----*----*----*----*----*----*----*----*----*----*----*
<font size=2>"However, if you suffer as a Christian, do not be ashamed,
but praise God that you bear that name."</font id=size2>
1 Peter 4:16</font id=green></center>
Go to Top of Page

infinity
New Member

New Zealand
90 Posts

Posted - 20 November 2000 :  18:42:21  Show Profile  Visit infinity's Homepage
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
As Richard said, this mod is already included into the forums. It's those buttons you see above the message box when you're posting a message. It's the Format Buttons. The Bold, Italics, Underline, Center, etc. etc.
And if it is working ok on your forum, then there are no bugs in it. <img src=icon_smile.gif border=0 align=middle>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Wonderful
Thanks,

Infinity

Life is but a dream... and that dream is Here and Now. Therefore, Be here Now.
Go to Top of Page

Halus
Starting Member

20 Posts

Posted - 21 January 2001 :  18:46:52  Show Profile
My friend have a great modification of the forum code editor, (or his new one?)

I cannot post his code without his permission, but you can have a look what it looks at: http://showme.gya.com.tw/wormz/default.asp

advances:
1. add code at exactly where the flag located, but not the very end of text

2. add code to the selected paragraph, both in the beginning and and the end of some selected paragraph

3. new function as [iframe][/iframe]

4. the size and color option is modified so that repeated selection of the same color is possible

Besides,
I think some asp coding can detect the screensize of the connected PC, and maybe auto-detect screensize instead of letting user choose one is better

Regards


Edited by - Halus on 21 January 2001 22:35:10
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 January 2001 :  20:42:37  Show Profile
that does look nice.
Go to Top of Page

Therion93
Junior Member

USA
263 Posts

Posted - 22 January 2001 :  00:53:28  Show Profile  Send Therion93 an ICQ Message
That's very nice. You ought to see if you can post his code

Therion93
"Stare Deep Into The Heart Of Darkness...There Is No Good, No Evil - Only Me"

Because Legends Never Die! - Kiss-Forever Community Forum
Go to Top of Page

(.)z
New Member

United Kingdom
85 Posts

Posted - 29 January 2001 :  08:17:13  Show Profile  Visit (.)z's Homepage  Send (.)z an AOL message  Send (.)z an ICQ Message  Send (.)z a Yahoo! Message
Where can I get this mod? The ZIP file I downloaded was corrupt.

Regards - z - http://www.discuss-online.co.uk/
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 29 January 2001 :  12:41:32  Show Profile
This mod is already part of the Snitz Forums. It's those Format buttons you see when you are posting a message. Here are some of them:



*----*----*----*----*----*----*----*----*
"Even when you feel you have nothing left,
You still have prayer--And that's enough."

*----*----*----*----*----*----*----*----*
Go to Top of Page

Halus
Starting Member

20 Posts

Posted - 03 March 2001 :  21:25:30  Show Profile
I will put the modified code there

I think the center of the change in post.asp begin since line 429 of the zipped file.
and the most important function is
==============
function insertSmileyTag(smileyTag) {
AddText(smileyTag);
}

function getActiveText(selectedtext) {
text = (document.all) ? document.selection.createRange().text : document.getSelection();
if (selectedtext.createTextRange) {
selectedtext.caretPos = document.selection.createRange().duplicate();
}
return true;
}
function AddText(NewCode) {
if (document.PostTopic.message.createTextRange && document.PostTopic.message.caretPos) {
var caretPos = document.PostTopic.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? NewCode + ' ' : NewCode;
}
else {
document.PostTopic.message.value+=NewCode
}
setfocus();
}

==============

hope this will be helpful



Edited by - Halus on 03 March 2001 21:26:38
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 March 2001 :  23:23:15  Show Profile
That's the code that allows users to insert text and code exactly where the caret is, isn't it? Thanks for posting it.

Why don't you create a new topic under this forum with the code? You can title it: "MOD: Forum Code Addition" or something like that. Not many people are gonna find it buried in this topic. And I'm sure a LOT of users will like this code.

Thanks again for sharing it.

Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 07 March 2001 :  19:52:00  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
hey halus, I can't download the zip file from the link you've posted.

Also I messed around with some of the code you post up however it didn't quite work. I think it's messing that part that calls the function getActiveText.

This would be a great addition to the Forum Code Editor.

- Alan
www.iamviet.com
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 March 2001 :  20:53:19  Show Profile
knight, I posted the working code in the new topic that Halus created about this mod. I don't know the link to it but you can look in the the MOD Add-On Forum(W/Code) forum. Should be a recent topic.

Also, the link works ok for me.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 08 March 2001 :  02:20:12  Show Profile
Here is a link to that topic: http://forum.snitz.com/forum/link.asp?TOPIC_ID=5873
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07