Author |
Topic |
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 20 November 2000 : 17:53:01
|
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> |
|
|
infinity
New Member
New Zealand
90 Posts |
Posted - 20 November 2000 : 18:42:21
|
<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. |
|
|
Halus
Starting Member
20 Posts |
Posted - 21 January 2001 : 18:46:52
|
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 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 January 2001 : 20:42:37
|
that does look nice. |
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 22 January 2001 : 00:53:28
|
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
|
|
|
(.)z
New Member
United Kingdom
85 Posts |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 29 January 2001 : 12:41:32
|
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." *----*----*----*----*----*----*----*----* |
|
|
Halus
Starting Member
20 Posts |
Posted - 03 March 2001 : 21:25:30
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 03 March 2001 : 23:23:15
|
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.
|
|
|
Aznknight
Senior Member
USA
1373 Posts |
Posted - 07 March 2001 : 19:52:00
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 07 March 2001 : 20:53:19
|
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.
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
|
Topic |
|