vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Spell checker: PHPSpell for vBulletin3 WYSIWYG and Standard mode (https://vborg.vbsupport.ru/showthread.php?t=65723)

Holidazed 08-10-2004 01:01 AM

Quote:

Originally Posted by tamarian
News: I will shortly release another spell checker hack, based on PungoSpell which will support standard and WYSIWYG modes, and displays WYSIWYG in the popup windows without the tags.

One draw back to PungoSpell, is that it will require you to have PSPELL compiled into PHP. Some have this by default, but some don't. Another draw back is the lack of the "learn" button.

I initially worked on it and had it tested, but decided to use PHPSpell for the added features. . But since I modified it already, I'll just clean it and release it, so those who prefer full WYSIWYG display can use it.

Stay tuned.

Well, I do not have the necessary requirements to make this hack work. I would love to have the PHPSpell just not show the html coding at all and not spellcheck it either.

tamarian 08-10-2004 02:18 AM

Quote:

Originally Posted by TosaInu
Thanks Tamarian,

That is or for different users, right? And only allows users who belong to both groups at the same time?

My preference would be to use another user setting for this (no need to make huge if and or statements). For example right to post polls. Or perhaps an extra custom switch in membergroups, solely used to unlock special candy.

Yes, it should be OR not AND. I'll correct my post :)

The hack could be extended further to set permissions in the admin panel, but it would require PHP code changes. The way it is right, only template changes are required.

Rich 08-10-2004 09:57 PM

Hello,
There is obviously a way to remove the "learn" button so members can't use it. My question is,where is it located? If we can remove the learn button,our problems are solved. I only want my admins to be able to add words to the dictionary opposed to members. Exactly how would I do this,and still leave the availability of use with the members?

the wiz 08-11-2004 01:51 PM

Awesome hack, but is there a way I can make this for certain user groups only?

neroflorida 08-12-2004 06:24 PM

Quote:

Originally Posted by iguanairs
Hello,
There is obviously a way to remove the "learn" button so members can't use it. My question is,where is it located? If we can remove the learn button,our problems are solved. I only want my admins to be able to add words to the dictionary opposed to members. Exactly how would I do this,and still leave the availability of use with the members?

Learn Button issue requires that you modify:
spellmessage.js
spelling.js

spellmessage.js Line 63 Opens the included file: phpSpell.html
Suggested workarounds: Use conditionals to pass additional information to the function openspell Have this handed off to the next script spelling.js

spelling.js Line 448 inserts the infamous "Learn" button. Determine whether you would like to have it shown based on the argument passed through from spellmessage.js.

An alternate would be to create a vB template instead of using an external html file... ;)

neroflorida 08-12-2004 06:37 PM

HTML issue in wysiwyg mode:

Sugggestion to fix...

In spellcheck.php;

function Scan_Document (Lines 273 - 326): Pass arguments lcased or if using following suggestion, use eregi

function Clean_Document (Lines 356 - 397): Use Regular Expressions instead of strpos to allow for attributes in elements (i.e. <p margin="x">) - even better yet just ignore anything between "<" and {">", "/>"}

the wiz 08-14-2004 04:42 PM

So is there I can make this only for certain usergoups?

kall 08-15-2004 05:09 AM

Quote:

Originally Posted by the wiz
So is there I can make this only for certain usergoups?

Have you read this thread at all?

Quote:

Originally Posted by tamarian at the top of the same page you asked the question

This can be easily done through template conditionals. Like surrounding the spellcheck button code with something like this:

<if condition="$bbuserinfo[usergroupid] == 2">
.....spellcheck template code....
</if>


the wiz 08-15-2004 01:09 PM

Sorry, I made a mistake and missed that post. You don't have to be rude about it.

Milorad 08-17-2004 03:01 AM

I've installed this hack onto my board, but have noticed that when I used my opera browser to view the board the spellcheck buttons don't do anything. Is this compatible with Opera? Is there a fix or something I have checked wrong in Opera (Java is enabled)?


All times are GMT. The time now is 09:37 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.01126 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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