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)
-   -   vB Spell :: Spell Checker in WYSIWYG and Standard Modes (https://vborg.vbsupport.ru/showthread.php?t=91850)

tamarian 07-10-2005 07:26 PM

Quote:

Originally Posted by corriewf
It doesnt work. Will refer ever ocurance of its opening to the page of which you clicked it on.

How about this?

PHP Code:

if (REFERRER != '' AND strpos(REFERRER"vbspell") === false) {
        
$url REFERRER;
        eval(
print_standard_redirect("vB Spell cannot be accessed directly"0));                   



Corriewf 07-10-2005 11:35 PM

Quote:

Originally Posted by tamarian
How about this?

PHP Code:

if (REFERRER != '' AND strpos(REFERRER"vbspell") === false) {
        
$url REFERRER;
        eval(
print_standard_redirect("vB Spell cannot be accessed directly"0));                   



So far so good. I will wait and see if it works for whos online as soon as I get a chance. Thanks for your help. The quick reply works great also. I added code in step B after </script> as there was no $navbar .

Thank you.

Corriewf 07-11-2005 02:41 PM

Ok I tested the code and it worked great! Thank you.

tamarian 07-11-2005 02:55 PM

Quote:

Originally Posted by corriewf
Ok I tested the code and it worked great! Thank you.

Cool. It's now in the 0.9.4 zip

Corriewf 07-13-2005 04:17 PM

Ok I have run into a couple of problems. I dont know if its the main code or the added code you gave me but I have had two reports so far with the following:

"Corrie,
The insert link button isn't doiong anything for me, and the submit reply takes me to the spell check. What'sup?
Dave
"

I logged in under one member and didnt have the problem, but now that im getting it from two I decided to remove the code you gave me. I will let you know if I continue to get the error.

Corriewf 07-13-2005 05:01 PM

I am thinking that this could be browser specific but im still waiting on confirmation.

sc4r3d 07-13-2005 07:11 PM

Clicking Install..

Thanks for all your help.. This looks great :D

Corriewf 07-13-2005 10:07 PM

Okthe problem was with IE only and with only one of my styles. I reverted the new reply template and reapplied changes and everything is green to go.

tamarian 07-13-2005 10:14 PM

Quote:

Originally Posted by corriewf
Okthe problem was with IE only and with only one of my styles. I reverted the new reply template and reapplied changes and everything is green to go.

Great to hear :)

mholtum 07-14-2005 10:44 AM

Thank you so much! It works perfectly in IE.. I was using Pungo and it was nothing but problems... Sometimes it would work and other times it generated errors.. This works flawlessly!!!

/me installs, on two boards

tamarian 07-14-2005 08:59 PM

There's now a version for vB 3.5 beta 4:
https://vborg.vbsupport.ru/showthread.php?t=92202

sketch42 07-14-2005 11:24 PM

i cant get it to show up in my quick reply and i did everything as you said :( any ideas

this is my SHOWTHREAD template

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <title>$vboptions[bbtitle] - $thread[title]</title>
$headinclude

<script src="vbspell.js"></script>
</head>
<body onload="$onload">
$header
$navbar

$poll

<a name="poststop" id="poststop"></a>

<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
        <if condition="$show['largereplybutton']">
                <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
        <else />
                <td class="smallfont">&nbsp;</td>
        </if>
        <if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above postbits -->

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
        <td class="tcat" width="100%">
                <div class="smallfont">
                <if condition="$show['firstunreadlink']">
                        <a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
                        <a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
                </if>
                &nbsp;
                </div>
        </td>
        <td class="vbmenu_control" id="threadtools">
                <a href="#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
                <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
        </td>
        <if condition="$show['search']">
                <td class="vbmenu_control" id="threadsearch">
                        <a href="#goto_threadsearch">$vbphrase[search_this_thread]</a>
                        <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if>
                </td>
        </if>
        <if condition="$show['threadrating']">
                <td class="vbmenu_control" id="threadrating">
                        <a href="#goto_threadrating"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></a>
                        <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
                </td>
        </if>
        <if condition="$vboptions['allowthreadedmode']">
        <td class="vbmenu_control" id="displaymodes">
                <a href="#goto_displaymodes">$vbphrase[display_modes]</a>
                <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
        </td>
        </if>
</tr>
</table>
<!-- / toolbar -->

<!-- end content table -->
$spacer_close
<!-- / end content table -->

<if condition="$show['threadedmode'] OR $show['hybridmode']">
<!-- thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>

<div id="posts">$postbits</div>

<!-- start content table -->
$spacer_open
<!-- / start content table -->

<!-- controls below postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%"<if condition="$vboptions['legacypostbit']"> style="margin-top:3px"</if>>
<tr valign="top">
        <if condition="$show['largereplybutton']">
                <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
        <else />
                <td class="smallfont">&nbsp;</td>
        </if>       
        <if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls below postbits -->

<br />

<div class="smallfont" align="center">
        <strong>&laquo;</strong>
                <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest">$vbphrase[prev_thread]</a>
                |
                <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest">$vbphrase[next_thread]</a>
        <strong>&raquo;</strong>
</div>

<br />

$quickreply

<!-- currently active users -->
<if condition="$show['activeusers']">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="tcat" colspan="2">
                        <phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
                </td>
        </tr>
        <tr>
                <td class="alt1" colspan="2">
                        <span class="smallfont">$activeusers</span>
                </td>
        </tr>
        </table>
</if>
<!-- currently active users -->














<if condition="$show['popups']">
<!-- popup menu contents -->
<br />

<!-- thread tools menu -->
<div class="vbmenu_popup" id="threadtools_menu" style="display:none">
<form action="postings.php" method="post" name="threadadminform">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
        </tr>
        <tr>
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="3">$vbphrase[show_printable_version]</a></td>
        </tr>
        <tr>
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid">$vbphrase[email_this_page]</a></td>
        </tr>
        <if condition="$show['member']">
        <tr>
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
                <if condition="$show['subscribed']">
                        <a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
                <else />
                        <a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
                </if>
                </td>
        </tr>
        </if>
        <if condition="$show['addpoll']">
        <tr>
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
        </tr>
        </if>
        <if condition="$show['adminoptions']">
        <tr>
                <td class="thead">$vbphrase[admin_tools]<a name="goto_threadadmin"></a></td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite">
                <div><label for="ao_oct"><input type="radio" name="do" id="ao_oct" value="openclosethread" checked="checked" /><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></label></div>
                <div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_copy_thread]</label></div>
                <div><label for="ao_sut"><input type="radio" name="do" id="ao_sut" value="stick" /><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></label></div>
                <div><label for="ao_edt"><input type="radio" name="do" id="ao_edt" value="editthread" />$vbphrase[edit_thread]</label></div>
                <div><label for="ao_dlt"><input type="radio" name="do" id="ao_dlt" value="deletethread" />$vbphrase[delete_thread]</label></div>
                <div><label for="ao_dlp"><input type="radio" name="do" id="ao_dlp" value="deleteposts" />$vbphrase[delete_posts]</label></div>
                <div><label for="ao_mgt"><input type="radio" name="do" id="ao_mgt" value="mergethread" />$vbphrase[merge_threads]</label></div>
                <div><label for="ao_spt"><input type="radio" name="do" id="ao_spt" value="splitthread" />$vbphrase[split_thread]</label></div>
                <div><label for="ao_rrd"><input type="radio" name="do" id="ao_rrd" value="removeredirect" />$vbphrase[remove_redirects]</label></div>
                <if condition="$show['editpoll']"><div><label for="ao_edp"><input type="radio" name="do" id="ao_edp" value="editpoll" />$vbphrase[edit_poll]</label></div></if>
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite" align="center">
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="hidden" name="t" value="$threadid" />
                        <input type="hidden" name="pollid" value="$pollid" />
                        <input type="submit" class="button" value="$vbphrase[perform_action]" />
                </td>
        </tr>
        </if>
        </table>
</form>
</div>
<!-- / thread tools menu -->

<!-- **************************************************** -->

<!-- thread display mode menu -->
<div class="vbmenu_popup" id="displaymodes_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[display_modes]<a name="goto_displaymodes"></a></td>
        </tr>
        <tr>
        <if condition="$show['linearmode']">
                <td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <strong>$vbphrase[linear_mode]</strong></td>
        <else />
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=linear$highlightwords#post$FIRSTPOSTID">$vbphrase[switch_to_linear_mode]</a></td>
        </if>
        </tr>
        <tr>
        <if condition="$show['hybridmode']">
                <td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <strong>$vbphrase[hybrid_mode]</strong></td>
        <else />
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <a href="showthread.php?$session[sessionurl]mode=hybrid&amp;t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></td>
        </if>
        </tr>
        <tr>
        <if condition="$show['threadedmode']">
                <td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <strong>$vbphrase[threaded_mode]</strong></td>
        <else />
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=threaded$highlightwords#post$FIRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></td>
        </if>
        </tr>
        </table>
</div>
<!-- / thread display mode menu -->

<!-- **************************************************** -->

<if condition="$show['search']">
<!-- thread search menu -->
<div class="vbmenu_popup" id="threadsearch_menu" style="display:none">
<form action="search.php" method="post">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite">
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="hidden" name="do" value="process" />
                        <input type="hidden" name="searchthread" value="1" />
                        <input type="hidden" name="showposts" value="1" />
                        <input type="hidden" name="searchthreadid" value="$threadid" />
                        <input type="text" class="bginput" name="query" size="20" />$gobutton<br />
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option"><a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a></td>
        </tr>
        </table>
</form>
</div>
<!-- / thread search menu -->
</if>

<!-- **************************************************** -->

<!-- thread rating menu -->
<div class="vbmenu_popup" id="threadrating_menu" style="display:none">
<form action="threadrate.php" method="post">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td>
        </tr>
        <if condition="$show['ratethread']">
        <tr>
                <td class="vbmenu_option" title="nohilite">
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite" align="center">
                        <input type="hidden" name="s" value="$session[dbsessionhash]" />
                        <input type="hidden" name="t" value="$threadid" />
                        <input type="hidden" name="pp" value="$perpage" />
                        <input type="hidden" name="page" value="$pagenumber" />
                        <input type="submit" class="button" value="$vbphrase[vote_now]" />
                </td>
        </tr>
        <else />
        <tr>
                <td>$vbphrase[already_rated_this_thread]</td>
        </tr>
        </if>
        </table>
</form>
</div>
<!-- / thread rating menu -->


<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
        <td class="thead" <if condition="!$show['search']">colspan="2"</if>>$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
        <if condition="$show['search']"><td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td></if>
</tr>
<tr valign="top">
        <td class="alt1" <if condition="!$show['search']">colspan="2"</if>>
       
        <!-- thread tools -->
        <div class="smallfont">
                <div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="p">$vbphrase[show_printable_version]</a></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" vspace="1" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid">$vbphrase[email_this_page]</a></div>
                <if condition="$show['member']">
                        <div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
                                <if condition="$show['subscribed']">
                                        <a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
                                <else />
                                        <a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
                                </if>
                        </div>
                </if>
                <if condition="$show['addpoll']">
                        <div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
                </if>
        </div>
        <!-- / thread tools -->
       
        </td>
        <if condition="$show['search']">
        <td class="alt1">
       
        <!-- search this thread -->
        <form action="search.php" method="post">
        <div class="smallfont">
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="process" />
                <input type="hidden" name="searchthread" value="1" />
                <input type="hidden" name="showposts" value="1" />
                <input type="hidden" name="searchthreadid" value="$threadid" />
                <strong>$vbphrase[search_this_thread]</strong>:<br />
                <input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
                <a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a>
        </div>
        </form>
        <!-- /  search this thread -->
       
        </td>
        </if>
</tr>
<if condition="$vboptions['allowthreadedmode'] OR $show['threadrating']">
<tr>
        <if condition="$vboptions['allowthreadedmode']"><td class="thead" $nodhtmlcolspan>$vbphrase[display_modes]<a name="goto_displaymodes"></a></td></if>
        <if condition="$show['threadrating']"><td class="thead" $nodhtmlcolspan>$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td></if>
</tr>
<tr valign="top">
        <if condition="$vboptions['allowthreadedmode']">
        <td class="alt2" $nodhtmlcolspan>
       
        <!-- thread display modes -->
       
        <div class="smallfont">
                <div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" vspace="1" /> <if condition="$show['linearmode']"><strong>$vbphrase[linear_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=linear$highlightwords#post$FIRSTPOSTID">$vbphrase[switch_to_linear_mode]</a></if></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" vspace="1" /> <if condition="$show['hybridmode']"><strong>$vbphrase[hybrid_mode]</strong><else /><a href="showthread.php?$session[sessionurl]mode=hybrid&amp;t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></if></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" vspace="1" /> <if condition="$show['threadedmode']"><strong>$vbphrase[threaded_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=threaded$highlightwords#post$FIRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></if></div>
        </div>
       
        <!-- / thread display modes -->
       
        </td>
        </if>
        <if condition="$show['threadrating']">
        <td class="alt2" $nodhtmlcolspan>
       
        <!-- rate this thread -->
        <form action="threadrate.php" method="post">
        <div class="smallfont">
                <input type="hidden" name="s" value="$session[dbsessionhash]" />
                <input type="hidden" name="t" value="$threadid" />
                <input type="hidden" name="pp" value="$perpage" />
                <input type="hidden" name="page" value="$pagenumber" />
                <strong>$vbphrase[rate_this_thread]</strong>:<br />
                <select name="vote" onchange="this.form.submit()" style="width:175px">
                        <optgroup label="$vbphrase[choose_a_rating]">
                                <option value="5" $voteselected[5]>5 : $vbphrase[excellent]</option>
                                <option value="4" $voteselected[4]>4 : $vbphrase[good]</option>
                                <option value="3" $voteselected[3]>3 : $vbphrase[average]</option>
                                <option value="2" $voteselected[2]>2 : $vbphrase[bad]</option>
                                <option value="1" $voteselected[1]>1 : $vbphrase[terrible]</option>
                        </optgroup>
                </select>$gobutton
        </div>
        </form>
        <!-- / rate this thread -->
       
        </td>
        </if>
</tr>
</if>
</table>
<br />


<!-- / controls for non-popup browsers -->
</if>
















<!-- forum rules and admin links -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="bottom">
        <td class="smallfont" align="$stylevar[left]">
                $forumrules
        </td>
        <td class="smallfont" align="$stylevar[right]">
                <table cellpadding="0" cellspacing="0" border="0">
                <if condition="!$show['popups'] AND $show['adminoptions']">
                <tr>
                        <td>
                        <div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
                        <form action="postings.php" method="post" name="adminoptionsform">
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="hidden" name="t" value="$threadid" />
                        <strong>$vbphrase[admin_tools]</strong>:<br />
                        <select name="do" onchange="this.form.submit()">
                                <optgroup label="$vbphrase[thread_admin_tools]">
                                        <option value="openclosethread" selected="selected"><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></option>
                                        <option value="movethread">$vbphrase[move_copy_thread]</option>
                                        <option value="stick"><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></option>
                                        <option value="editthread">$vbphrase[edit_thread]</option>
                                        <option value="deletethread">$vbphrase[delete_thread]</option>
                                        <option value="deleteposts">$vbphrase[delete_posts]</option>
                                        <option value="mergethread">$vbphrase[merge_threads]</option>
                                        <option value="splitthread">$vbphrase[split_thread]</option>
                                        <option value="removeredirect">$vbphrase[remove_redirects]</option>
                                </optgroup>
                        </select>$gobutton
                        </form>
                        </div>
                        </td>
                </tr>
                <br />
                </if>
                <tr>
                        <td>
                        $forumjump
                        </td>
                </tr>               
                </table>
        </td>
</tr>
</table>
<!-- /forum rules and admin links -->

<br />

$similarthreads

<br />

$footer

<!-- temp -->
<div style="display:none">
        <!-- thread rate -->
        <if condition="$show['ratethread']">
                <!-- thread ratings form here -->
        <else />
                <if condition="$show['threadrating']">
                        $vbphrase[you_rated_this_thread]: <b>$threadinfo[vote]</b>
                </if>
        </if>
        <!-- / thread rate -->
</div>

</body>
</html>

and this is my showthread_quickreply template
Code:

<script type="text/javascript">
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
        <input type="hidden" name="spell_formname" value="">
        <input type="hidden" name="spell_fieldname" value="">
        <input type="hidden" name="spellstring" value="">
        <input type="hidden" name="toolbar" value="">
</form>

<!--
var WYSIWYG = $WYSIWYG;
var threadedmode = $threadedmode;
var minchars = $vboptions[postminchars];
var maxchars = $vboptions[postmaxchars];
var require_click = $QRrequireclick;
var must_click_message = "$vbphrase[click_quick_reply_icon]";
var istyles = new Array(); istyles = { $istyles_js };
var normalmode = false;
var vbphrase = {
        // wysiwyg only
        "wysiwyg_please_wait" : "$vbphrase[wysiwyg_please_wait]",
        "wysiwyg_initialized" : "$vbphrase[wysiwyg_initialized]",
        "wysiwyg_command_invalid" : "$vbphrase[wysiwyg_command_invalid]",
        "moz_must_select_text" : "$vbphrase[moz_must_select_text]",
        "moz_edit_config_file" : "$vbphrase[moz_edit_config_file]",
        "enter_tag_option" : "$vbphrase[enter_tag_option]",
        "must_select_text_to_use" : "$vbphrase[must_select_text_to_use]",
        "browser_is_safari_no_wysiwyg" : "$vbphrase[browser_is_safari_no_wysiwyg]",
        // standard only
        "enter_text_to_be_formatted" : "$vbphrase[enter_text_to_be_formatted]",
        "enter_link_text" : "$vbphrase[enter_link_text]",
        "enter_list_type" : "$vbphrase[enter_list_type]",
        "enter_list_item" : "$vbphrase[enter_list_item]",
        // both
        "must_enter_subject" : "$vbphrase[must_enter_subject]",
        "message_too_short" : "$vbphrase[message_too_short]",
        "enter_link_url" :  "$vbphrase[enter_link_url]",
        "enter_image_url" : "$vbphrase[enter_image_url]",
        "enter_email_link" : "$vbphrase[enter_email_link]"
};
//-->
</script>
       
<form action="newreply.php" method="post" name="vbform" onsubmit="return checkQR(this);">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return <if condition="$WYSIWYG == 2 AND !is_browser('ie')">editor_loaded ? false : </if> toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a>
                        <!--<img class="inlineimg" src="$stylevar[imgdir_button]/quickreply.gif" alt="" title="$vbphrase[quick_reply]" border="0" <if condition="$debug">onclick="infoQR();"</if> />-->
                        $vbphrase[quick_reply]
                </td>
        </tr>
</thead>
<tbody id="collapseobj_quickreply" style="$vbcollapse[collapseobj_quickreply]">
<tr>
        <td class="panelsurround" align="center">
                <div class="panel">       
                        <table cellpadding="0" cellspacing="0" border="0" align="center">
                        <tr>
                                <td class="smallfont" align="$stylevar[left]">$vbphrase[message]:</td>
                        </tr>
                        <tr>
                                <td id="vBulletin_editor" align="$stylevar[left]">
                                <!-- <<<< indent back for ease of reading -->               

<if condition="$WYSIWYG == 2">
<!-- wysiwyg quick reply -->

        <div id="controlbar">
        <table cellpadding="0" cellspacing="0" border="0">
        <tr>
                <td><div class="imagebutton" id="cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" alt="$vbphrase[remove_text_formatting]" width="21" height="20" /></div></td>
                <td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
                <if condition="$vboptions[allowedbbcodes] & ALLOW_BBCODE_BASIC">
                        <td><div class="imagebutton" id="cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" alt="$vbphrase[bold]" width="21" height="20" /></div></td>
                        <td><div class="imagebutton" id="cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" alt="$vbphrase[italic]" width="21" height="20" /></div></td>
                        <td><div class="imagebutton" id="cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" /></div></td>
                        <td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
                </if>
                <td><div class="imagebutton" id="cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" /></div></td>
        </tr>
        </table>
        </div>
       
        <div class="controlbar">
                <if condition="is_browser('ie')">
                        <div id="htmlbox" class="wysiwyg" style="width:600px; height:100px; padding:8px" tabindex="1"><p></p></div>
                <else />
                        <iframe id="htmlbox" style="width:600px; height:100px" tabindex="1"></iframe>
                </if>
                <input type="hidden" name="message" id="qr_message" value="" />
                <input type="hidden" name="WYSIWYG_HTML" value="" />
        </div>
       
        <script type="text/javascript" src="clientscript/vbulletin_editor.js"></script>
        <script type="text/javascript" src="clientscript/vbulletin_wysiwyg.js"></script>
        <if condition="!is_browser('ie')"><script type="text/javascript" src="clientscript/vbulletin_moziwyg.js"></script></if>

<!-- / wysiwyg quick reply -->
</if>


<if condition="$WYSIWYG == 1">
<!-- standard quick reply -->

        <div id="controlbar">
        <table cellpadding="0" cellspacing="0" border="0">
        <tr>
                <if condition="$vboptions[allowedbbcodes] & ALLOW_BBCODE_BASIC">
                        <td><div class="imagebutton"><a href="#" onclick="return vbcode('B', '')"><img src="$stylevar[imgdir_editor]/bold.gif" alt="$vbphrase[bold]" width="21" height="20" border="0" /></a></div></td>
                        <td><div class="imagebutton"><a href="#" onclick="return vbcode('I', '')"><img src="$stylevar[imgdir_editor]/italic.gif" alt="$vbphrase[italic]" width="21" height="20" border="0" /></a></div></td>
                        <td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')"><img src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" border="0" /></a></div></td>
                        <td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
                </if>
                <td><div class="imagebutton"><a href="#" onclick="return vbcode('QUOTE', '')"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" title="$vbphrase[wrap_quote_tags]" width="21" height="21" border="0" /></a></div></td>
        </tr>
        </table>
        </div>
       
        <div class="controlbar">
                <textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px" cols="60" rows="5" tabindex="1"></textarea>
        </div>
                               
        <script type="text/javascript" src="clientscript/vbulletin_editor.js"></script>
        <script type="text/javascript" src="clientscript/vbulletin_stdedit.js"></script>

<!-- / standard quick reply -->
</if>


<if condition="$WYSIWYG == 0">       
<!-- no-toolbar quick reply -->

        <div class="controlbar">
                <textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px;" rows="5" cols="60" tabindex="1"></textarea>               
        </div>

<!-- / no-toolbar quick reply -->       
</if>


                                <!-- >>>> outdent back to normal -->
                                </td>
                        </tr>
                        <tr>
                                <td align="$stylevar[left]">
                               
                                        <fieldset class="fieldset" style="margin:$stylevar[formspacer]px 0px 0px 0px">
                                                <legend>$vbphrase[options]</legend>
                                                <div>
                                                        <if condition="$bbuserinfo['signature']">
                                                                <div style="float:$stylevar[right]">
                                                                        <label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label>
                                                                </div>
                                                        </if>
                                                        <label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" checked="checked" />$vbphrase[quote_message_in_reply]</label>
                                                </div>
                                        </fieldset>
                               
                                </td>
                        </tr>
                        </table>
                </div>
               
                <div style="margin-top:$stylevar[cellpadding]px">
                        <input type="hidden" name="fromquickreply" value="1" />
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="hidden" name="do" value="postreply" />
                        <input type="hidden" name="t" value="$threadid" id="qr_threadid" />
                        <input type="hidden" name="p" value="$qrpostid" id="qr_postid" />
                        <input type="hidden" name="parseurl" value="1" />
                        <input type="hidden" name="clickedelm" value="" />
                        <input type="submit" class="button" value="$vbphrase[post_quick_reply]" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" onclick="this.form.clickedelm.value=this.value" />
                        <input type="submit" class="button" value="$vbphrase[go_advanced]" accesskey="x" title="(Alt + X)" name="preview" tabindex="3" id="qr_preview" onclick="this.form.clickedelm.value = this.value" />
<if condition="$WYSIWYG == 2">
        <input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'WYSIWYG_HTML', '2');">
<else />
        <input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'message', '1');">
</if>
               
</div>               
        </td>
</tr>
</tbody>
</table>

</form>
<br />

<if condition="!is_browser('ie') AND $WYSIWYG == 2">
        <!-- Mozilla work around for focusing on QR in WYSIWYG mode -->
        <div id="qr_scroll"></div>
</if>

<script type="text/javascript" src="clientscript/vbulletin_quickreply.js"></script>
<!-- END WYSWIWYG QUICK REPLY -->


tamarian 07-14-2005 11:50 PM

Quote:

Originally Posted by sketch42
i cant get it to show up in my quick reply and i did everything as you said :( any ideas

Looks like you added parts A and C correctly, but missed edit/step B :)

sketch42 07-15-2005 12:38 AM

i cant find $navbar anywhere though :( and i cant figure out where to put it :(

tamarian 07-15-2005 12:43 AM

Quote:

Originally Posted by sketch42
i cant find $navbar anywhere though :( and i cant figure out where to put it :(

It's at the top of the showthread template.

Does it work elsewhere, like in editpost, new reply, new thread, etc. ?

sketch42 07-15-2005 01:13 AM

Quote:

Originally Posted by tamarian
It's at the top of the showthread template.

Does it work elsewhere, like in editpost, new reply, new thread, etc. ?

yup everywhere

sketch42 07-15-2005 01:18 AM

found the problem

my child styles weren't inheriting the edits

all working now

:)

*sketch42 clickity clicks Install

tamarian 07-15-2005 01:19 AM

Quote:

Originally Posted by sketch42
found the problem

my child styles weren't inheriting the edits

all working now

Cool :D

sketch42 07-18-2005 02:01 AM

i think i found a bug,

i get this error
Quote:

vB Spell installation problem, please notify the webmaster
only when running vb Spell on really long posts, like my forum rules etc...
and i had zero problems with the installation, NO errors.any odea how o fix this?

tamarian 07-18-2005 02:09 AM

Quote:

Originally Posted by sketch42
i think i found a bug,

i get this error

only when running vb Spell on really long posts, like my forum rules etc...
and i had zero problems with the installation, NO errors.any odea how o fix this?

I don't think it's due to the size, as I have tested with very large posts. Could you PM me an example of a post that would cause this?

tamarian 07-20-2005 12:07 AM

I forgot to mention, the last problem reported turned out to be due to ad/popup blocking by Norton Internet Security :)

lange 07-21-2005 10:12 PM

Thanks. I'll try it.

BOWZONE 07-24-2005 08:02 PM

Great hack! Installed quickly and worked the first shot.

Thank you!!

*bowzone clicks install!*

tamarian 07-25-2005 08:41 PM

Note, I have update the template instructions for quick reply. Let me know if you still have problems with it.

Corriewf 07-25-2005 10:12 PM

Quote:

Originally Posted by tamarian
Note, I have update the template instructions for quick reply. Let me know if you still have problems with it.


What was wrong before?

tamarian 07-25-2005 10:27 PM

Quote:

Originally Posted by corriewf
What was wrong before?

Nothing wrong, it was just vague. After a couple of PM's, I decided to re-write that section to make it easier. Test it in quick reply in standard and WYSIWYG, if it works, then you're o.k.

between worlds 07-26-2005 11:09 AM

I've installed it and it installed perfectly.

One question though, how do I modify the permissions so that all usergroups can use the spell check? Where would I go to modify them?

tamarian 07-26-2005 11:34 AM

Quote:

Originally Posted by between worlds
One question though, how do I modify the permissions so that all usergroups can use the spell check? Where would I go to modify them?

In the AdminCP => vBulletin Options -> vB Spell

Lionsault 07-26-2005 03:20 PM

Thanks so much, tamarian! The code works perfectly for my forums!

ranger2kxlt 07-27-2005 02:42 PM

Ok the button doesn't show up :-/

tamarian 07-27-2005 02:46 PM

Quote:

Originally Posted by ranger2kxlt
Well I had your phpspell installed (created last year) and now I'm trying to upgrade to this one, it won't work....the window won't pop-up, its like it doesn't know what to pop-up. I've made all the edits, please help

Do you have any ad blocke or firewall software, like Norton etc. Disable them temporarily to see if that's causing it.

ranger2kxlt 07-27-2005 02:49 PM

dang your quick....I did a revert on the template and the button went away, when I went to edit the template with the changes, and save the button doesn't appear now...

no ad block

tamarian 07-27-2005 03:04 PM

Quote:

Originally Posted by ranger2kxlt
dang your quick....I did a revert on the template and the button went away, when I went to edit the template with the changes, and save the button doesn't appear now...

Sounds like a style issue. Are you updating the master style, or using a style other than the one you edited?

ranger2kxlt 07-27-2005 03:06 PM

Using the main the style

tamarian 07-27-2005 03:10 PM

Quote:

Originally Posted by ranger2kxlt
Using the main the style

O.k. so you will need to start over and carefully apply the changes. Something was applied wrong, otherwise the HTML code for the button should show.

ranger2kxlt 07-27-2005 03:26 PM

Ok here's the odd thing, I had the phpSpell installed, and the button showed then, but when I reverted to the org. and then applied these changes, I get nothing.

tamarian 07-27-2005 03:35 PM

Quote:

Originally Posted by ranger2kxlt
Ok here's the odd thing, I had the phpSpell installed, and the button showed then, but when I reverted to the org. and then applied these changes, I get nothing.

These things always happen, where we think we applied the changes correctly, but something was missed or done wrong :) If the template does not show the button, then the changes were either not done, or done to the wrong template, or done to the wrong style.

ranger2kxlt 07-27-2005 03:36 PM

idk, i've tried everything I can think of can't get it to show :-/

ranger2kxlt 07-27-2005 03:38 PM

HAHAHAHAH!!! ooppss....I kept adding the button to the Bottom half of the newthread, newreply and not right below the text box....ok I'm dumb, thanks for helping the idoit ;-)

tamarian 07-27-2005 03:42 PM

Quote:

Originally Posted by ranger2kxlt
HAHAHAHAH!!! ooppss....I kept adding the button to the Bottom half of the newthread, newreply and not right below the text box....ok I'm dumb, thanks for helping the idoit ;-)

Told you :) This always happens to me, I attribute it to too much concentration ;)


All times are GMT. The time now is 04:20 AM.

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.01984 seconds
  • Memory Usage 2,051KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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