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/O Code)
 Need some advice on a mod I'm working on.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Dan Martin
Average Member

USA
528 Posts

Posted - 22 June 2001 :  04:22:52  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
I have an idea that I think would make a really nice mod. You can see the general idea at http://www.getitcrunk.com/wysiwyg/snitzwysiwyg.htm

If you get to the page, and don't know what it's supposed to show....just start typing and I'm sure you'll quickly figure out why I'm so excited. Yes, it's very rudimentary. The interface WILL be greatly improved before I release it, I promise. Smilies, links, and all that good stuff will most likely be in there. And the table won't do a goofy resize.

Here's the real problem: To output true wysiwyg, I have to replace spaces with  . If I don't, the WYSIWYG just isn't very WYSIWYG. You hit space more than once, and your cursor just sits there.

Why is this a problem? Well, I hope to implement this as a "Mode". When people edit posts (or reply with quote) created in this WYSIWYG mode with other modes they will be looking at some ugly data. Data never meant for human eyes in raw form, that's for sure. If you try the example above, hit the "Get Message Output" button, and you'll see what I mean.

Any ideas to get around that issue?
-Dan



Edited by - Dan Martin on 22 June 2001 04:24:17

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 June 2001 :  09:18:37  Show Profile  Visit dayve's Homepage
First of all, VERY NICE!!!


quote:

Here's the real problem: To output true wysiwyg, I have to replace spaces with  . If I don't, the WYSIWYG just isn't very WYSIWYG. You hit space more than once, and your cursor just sits there.



I am not having that problem with IE 5.5

Question: When I click view message it shows the raw html, is this what is going to be passed to the database directly? or are we going to use inc_functions to convert to Forum Coding??


Dayve
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 22 June 2001 :  13:07:51  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
quote:

I am not having that problem with IE 5.5


You shouldn't have a problem, I'm outputting   right now. But it's also in the output that would end up in the database, and viewed when edited in another mode, or "reply with quote" in another mode.
quote:

Question: When I click view message it shows the raw html, is this what is going to be passed to the database directly? or are we going to use inc_functions to convert to Forum Coding??


Well, I'm still contemplating this. One good thing about this mod, is the need for Forum Code goes away. As long as the software I'm writing always outputs "safe" HTML, the need for Forum Code isn't there.

If it just had to output forum code, it's possible I could write something in Javascript that would convert from forum code to HTML. However,
A. That seems a little backwards, since this mod, in a sense, eleviates the need for forum code.
B. It still doesn't solve the issue of   in place of every space. Maybe a [space] forum code.....but that would be just as ugly to look at.



Edited by - Dan Martin on 22 June 2001 13:08:36
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 June 2001 :  13:28:36  Show Profile  Visit dayve's Homepage
could you add a replace function in inc_functions for   to equal " " ? something like:


fString = replace(fString, "& n b s p;"," ", 1, -1, 1)


or something similar? also, I am familiar with DHTML and the use of innerHTML/innerTEXT, I was wondering if.... let me go look at your source again...

Dayve

I had to space out the & n b s p tag because this forum interpreted it as a space already... how come your above post did not do that??

Edited by - dayve on 22 June 2001 13:31:27

Edited by - dayve on 22 June 2001 13:32:30

Edited by - dayve on 22 June 2001 13:33:51
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 22 June 2001 :  13:45:38  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
quote:

also, I am familiar with DHTML and the use of innerHTML/innerTEXT, I was wondering if.... let me go look at your source again...


It's all there. No code is hiding on the above example. In fact, notice that page isn't ASP (its just a proof of concept right now).

quote:
I had to space out the & n b s p tag because this forum interpreted it as a space already

A little trick I learned from one of the Snitz authors (I forget which). Here's what I wrote with some spaces so you can see: [ b]&[ /b][ b]nbsp;[ /b]


Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 June 2001 :  14:27:37  Show Profile  Visit dayve's Homepage
thanks for the tip... doh, I should have known that. as for your source, I know it is purely html, that's why I said I was going to go look at the source

&nbsp

so that would work with this too:

[img] I think...

Dayve
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 25 June 2001 :  20:47:40  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
Hmm, woulda thought you Snitz guru's would be interested in helping me complete this. (subtle thread bumping)

quote:

Here's the real problem: To output true wysiwyg, I have to replace spaces with  . If I don't, the WYSIWYG just isn't very WYSIWYG. You hit space more than once, and your cursor just sits there.



Go to Top of Page
  Previous Topic Topic Next Topic  
 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.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07