vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WYSIWYG New thread/Reply (https://vborg.vbsupport.ru/showthread.php?t=40130)

TECK 06-22-2002 03:04 AM

Quote:

Originally posted by eiSecure
That's also fixed.:)
is not. sorry, i will wait until you sort it out:

Admin 06-22-2002 04:53 AM

Quote:

Originally posted by eiSecure
Yes. Like what was mentioned on the first page, HTML needs to be enabled.
Thanks, but I rather have a secured forum. :) (no offence, good job nonetheless)

Velocd 06-22-2002 04:53 AM

How goes the compatibility issues? Would people using an older Internet Explorer or browser still be able to use this? Or say, a user using another browser other than Internet Explorer?

Incase there are issues, that is one reason It would be nice to have a USER CP option for members to choose which posting/replying interface they would like ;)

PS: Don't forget to add it to the PM interface also

RDX1 06-22-2002 06:21 AM

instead of making it so you have to have html enabled, why not either insert new tags into the database, or have the user put new tags in?

then html wont be on :)

N9ne 06-22-2002 09:20 AM

I saw this hack working first :D he showed me first :D but he made me sign up for his forums lol

GameCrash 06-22-2002 10:28 AM

Seems not to work with Mozilla 1.0 :( That is not really good as it is used by some of my users (including me).

Why do you create html and not just bbcode text? The vB-Code bar is just not working, so you don't need it anymore. And Enabling HTML means you can't let your users choose what interface they want because of security reasons. And enabling HTML is not secure only because this one interface parses html - just create another form on your computer and submit it...

Anyway, this is a great hack, as far as it works with Mozilla I's install it :)

bluecat 06-22-2002 11:06 AM

Excellent idea. I'll be adding this later today. :)

GameCrash 06-22-2002 11:50 AM

Hm, is it right that this does not take effect if you edit a message? That would be another security problem as then everyone can insert html code without problems...

Floris 06-22-2002 01:20 PM

Quote:

Originally posted by NerdNations
haha, nice try, i say make a guets account or a screen shot
We were thinking the same, sorry. But I have no intention to register on your forum, just to check a feature. You are finding ways to *spam* your site don't ya. It is either a little bit to obvious to me, or it just damn sure looks to me that way.
Sorry if it isn't your intention. Thank you for sharing this hack. I will download the files, try them on my test server and see how it looks there :)

eiSecure 06-22-2002 01:28 PM

Nakkid, by fixed, I meant fixed in my copy.

I will release a more updated version, that includes support for BBCodes and add in the interface for PMs.

Also, I'll see what I can do about making it use BBCode instead of HTML, but it will be kind of hard, as all the functions in Javascript are native to HTML...:\

Xiphoid, no, this isn't a scheme to get registrations and spam my forum. The only reason I said that you can check out my forum for it is because I have the hack installed there, and nobody else does.

Also, I'm planning on adding something like the BBCode enhanced/normal mode to it, where the user can choose WYSIWYG mode or plain-text mode.:)

eiSecure 06-22-2002 02:14 PM

Okay, here's an updated version.

Bug Fixes:
- Ability to quote
- You can submit form without pressing 'save'

ToDo:
- Add BBCode support
- Hack vbcode.js to allow inserts of smilies and BBCode.
- Allow toggling of HTML/WYSIWYG mode.
- Add this hack to the edit and PM templates.

Just replace your existing newthread and newreply templates with your new ones.:)


Update: New templates and instructions in post #79.

Vinney 06-22-2002 04:50 PM

can create it so that it works when people want to edit there posts too ???

eiSecure 06-22-2002 04:52 PM

Quote:

Originally posted by Vinney
can create it so that it works when people want to edit there posts too ???
As I said in my previous post, I'm working on it...

Vinney 06-22-2002 04:58 PM

i love this hack but there is a prob :

look my this thread on my forum

http://forum.peugeot-gti.net/showthr...threadid=10741

if some types, it goes scrolls way way to the right.

eiSecure 06-22-2002 05:03 PM

It seems that that person added a few tags of his/her own to the post... when I go to view source, everything looks normal, except for the presence of some <xmp> tags...

eiSecure 06-22-2002 05:04 PM

Okay... I found out the problem... it seems that there is a <pre> tag between the text...

It'll be fixed when I upload the next update.:)

Vinney 06-22-2002 05:20 PM

cheers.

Martin CX 06-22-2002 06:12 PM

When I click submit, it says "please complete message form"?

I've more or less cut&pasted the templates from post #51 (with slight alterations to make it fit the layout).

Some of the earlier posts mention a save-function, but where am I supposed to insert it in the template?

eiSecure 06-22-2002 06:17 PM

Quote:

Originally posted by Martin CX
When I click submit, it says "please complete message form"?

I've more or less cut&pasted the templates from post #51 (with slight alterations to make it fit the layout).

Some of the earlier posts mention a save-function, but where am I supposed to insert it in the template?

When you modified it, did you change any of the javascript and/or input box code?

Martin CX 06-22-2002 06:46 PM

Quote:

Originally posted by eiSecure
When you modified it, did you change any of the javascript and/or input box code?
I didn't think I had, but when I tried to run your template unaltered I had no problems. :surprised: Dayum. Now, I have to search through my modified template now to find the error. ;)

Martin CX 06-22-2002 07:52 PM

OK. Now it works! Great hack... but before I'll implement on my boards there are a few hurdles: :)

1) How do you alter the style of the iFrame? It's a rather horrid darkish grey and the font is weird. I tried to put a ' style="background-color: #FFF" ' in the iFrame tag, but nothing happened?

2) It seems to make a <p> instead of a <br> when you hit ENTER, is it possible to change that?

3) Perhaps related to 2) - I've hacked the quote-function so I'm usually given an output that looks like this...

?skldfjsfd sdsf hh strh nnb sfdkjsdkfj
?
?skldfjsfd sfjjkdsf slfdkfsf sfdkjsdkfj
?dfjsdf dsgtretoi gjdfkgj sdf.

...when I quote. But now it seems to eat the <br>'s and output this...

?skldfjsfd sdsf hh strh nnb sfdkjsdkfj ? ?skldfjsfd sfjjkdsf slfdkfsf sfdkjsdkfj ?dfjsdf dsgtretoi gjdfkgj sdf.

...instead.

I hope somebody is able to help, thanks. :)

Vivi Ornitier 06-22-2002 08:22 PM

hmm . ..this hack looks hella nice but I'm just confused on how to install it. I mean, you just gave us the two templates but my newthread and newreply are already edited a bit. So can you tell us what to edit specifically in the two templates or is that too much?

eiSecure 06-22-2002 09:17 PM

Quote:

Originally posted by Martin CX
OK. Now it works! Great hack... but before I'll implement on my boards there are a few hurdles: :)

1) How do you alter the style of the iFrame? It's a rather horrid darkish grey and the font is weird. I tried to put a ' style="background-color: #FFF" ' in the iFrame tag, but nothing happened?

2) It seems to make a <p> instead of a <br> when you hit ENTER, is it possible to change that?

3) Perhaps related to 2) - I've hacked the quote-function so I'm usually given an output that looks like this...

?skldfjsfd sdsf hh strh nnb sfdkjsdkfj
?
?skldfjsfd sfjjkdsf slfdkfsf sfdkjsdkfj
?dfjsdf dsgtretoi gjdfkgj sdf.

...when I quote. But now it seems to eat the <br>'s and output this...

?skldfjsfd sdsf hh strh nnb sfdkjsdkfj ? ?skldfjsfd sfjjkdsf slfdkfsf sfdkjsdkfj ?dfjsdf dsgtretoi gjdfkgj sdf.

...instead.

I hope somebody is able to help, thanks. :)

As to the first problem with the background color of the iframe...

The background color is already white... what browser are you using it on?

As for the quote issue, that has already been fixed, and I'll release an update on Monday that will include support for BBCode as well.:)

eiSecure 06-22-2002 09:18 PM

Quote:

Originally posted by Vivi Ornitier
hmm . ..this hack looks hella nice but I'm just confused on how to install it. I mean, you just gave us the two templates but my newthread and newreply are already edited a bit. So can you tell us what to edit specifically in the two templates or is that too much?
There are way too many modifications to list.

You are better off installing this postbit, and then applying the template modifications of your other hacks, since I doubt that there are other hacks that change these templates as much as this one.:bunny::)

Slynderdale 06-22-2002 09:36 PM

These are nice template edits, not a hack, but i enjoy it, it could esily be made a hack if you have a user option where they can choose if they wanna use the new reply template or the old one when posting. Wouldnt be hard to do.

eiSecure 06-22-2002 09:45 PM

The BBCode integration that i'm going to release later will put it in hack territory.:D

Paul 06-23-2002 04:18 AM

Glad to see someone read my request ;) (I think)... or at least had the same idea! :D I look forward to your updated release, as html in postings simply *isn't* an option (my biggest hurdle in getting this to work for me was finding a way to replace the html tags IE5.x+ supports converted to vbcode :D)

Paul

Superman53142 06-23-2002 04:39 AM

Quote:

Originally posted by LoveShack
as html in postings simply *isn't* an option (my biggest hurdle in getting this to work for me was finding a way to replace the html tags IE5.x+ supports converted to vbcode :D)

Paul

If someone could get that worked out, it'd be pretty darn nice. I would, but I'm lazy. Did I mention I am brutally honest? :p :D

Erwin 06-23-2002 11:22 AM

Nice.

As long as I don't have to enable HTML I will install this one. Do I have to enable HTML or not?

Admin 06-23-2002 11:47 AM

Yes you do.

eiSecure 06-23-2002 12:33 PM

Well, I'm working on a non-HTML version, but the problem is with the <a href> and the <img src> tags. They both have an ending tag (">), which makes it so much harder to do a search and replace using javascript.

Erwin 06-23-2002 06:58 PM

Alright. Thanks. I will wait for the non-HTML version then. Keep up the great work, eiSecure. It's a great hack.

Keyser S?ze 06-23-2002 07:45 PM

ok, installed this hack as it says to, and i post something and it does this

<PRE><EM><FONT face="Arial Narrow">test boom boom shake it baby </FONT></EM></PRE>

also when i click the color button i get a Not Found error

eiSecure 06-23-2002 08:07 PM

Yes, those are known bugs, and they will be fixed in a patch that I will release tomorrow.:)

BigJohnson 06-24-2002 03:15 PM

IS there any way you can just tell us what to add in the templates because i really supped up my templates and i don't feel like back tracking to see what to add back. Thanks so much that would help tremendously.

eiSecure 06-24-2002 03:17 PM

I added in functions for the toolbar actions. I replaced the message box with the iframe and the toolbar. I added in a script to process submit events in the head.

You only have to change your newreply and newthread templates, not all the templates. Few people ever edit their newreply and newthread templates.:o

filburt1 06-24-2002 03:30 PM

So is this a template edit or a hack?

eiSecure 06-24-2002 03:43 PM

*sigh* Fine... if you wanna get technical, let me release the update so you can call it a hack...:o

eiSecure 06-24-2002 03:49 PM

Update

This update fixes the following bugs:
- Problems with user quoting
- Smilies don't work
- BBCodes don't work
- User is required to press 'save' before submitting

To Do:
- Extend this to newpm/replypm & edit templates
- Get BBCode to work in enhanced mode
- Make it output BBCode instead of HTML

Install Instruction:
1. Update your newthread and newreply templates with the attached copies.
2. Replace your existing vbcode.js file
3. Enjoy!:):bunny:

BigJohnson 06-24-2002 06:01 PM

I think it would be really better if you could just tell us what to add instead of just telling us to replace everythng. Because that is what i look forward to noing that i don't no that much html so i look forward to instructions. and this hack looks nice. Please help osmeone out thanks.


All times are GMT. The time now is 12:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03035 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete