The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Article and Review System (http://www.thevbgeek.com/forumdisplay.php?f=26)
-   -   vBulletin 3.7 and prefix (http://www.thevbgeek.com/showthread.php?t=3799)

Namaless 01-12-2008 02:36 PM

vBulletin 3.7 and prefix
 
Hi, I found one problem with GARS:

I have more forums with required prefixs, but when create a new review, the prefix select box not appear.

The fix is added prefix template code into review template, but if GARS have full compatible with vBulletin 3.7 prefix system I is more happy! :)

Thanks for beautifull add-on for vb :)

Freesteyelz 01-13-2008 10:55 AM

Yup. I can also confirm that the thread prefixes work when the prefix codes are added in the threadbit, newthread and editpost templates. It doesn't matter whether it's vB's, GARS or custom templates. It does take cutomization but that's what GARS is all about. :)

Namaless 01-19-2008 03:44 PM

Nothing news??

Morgan 01-19-2008 04:22 PM

Seems like you know the answer. :confused:

Freesteyelz 01-19-2008 11:06 PM

There's no compatibility issues with vB's latest version as far as the introduction to Prefix goes. A copy & paste of vB's Prefix codes to the GARS templates is easy enough.

Hmm. I just repeated myself...

Namaless 01-20-2008 09:28 PM

Quote:

Originally Posted by Freesteyelz (Post 22465)
There's no compatibility issues with vB's latest version as far as the introduction to Prefix goes. A copy & paste of vB's Prefix codes to the GARS templates is easy enough.

Hmm. I just repeated myself...

Yes, I have fixed with this method, but if GARS is update I like more.. :D

Freesteyelz 01-20-2008 10:31 PM

As far as the templates go, the only difference would be that Morgan does the copy & paste. Give him time and wait for vB 3.7 to go Gold...Once it does more likely you'll have your wish. :)

Namaless 01-21-2008 04:25 PM

Quote:

Originally Posted by Freesteyelz (Post 22474)
As far as the templates go, the only difference would be that Morgan does the copy & paste. Give him time and wait for vB 3.7 to go Gold...Once it does more likely you'll have your wish. :)

Thanks for support me :D

CallieJo 01-25-2008 11:17 PM

I did these GARS templates: threadbit, newthread and editpost

However, for some reason the new thread template does not show the prefixes even though the code is there. But, if I edit the post it will show the prefixes.

Anyone else have this issue and/or know how to fix it?

Here is what is in my GARS newthread template:
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
</head>
<body$onload>
$header
$navbar

$postpreview

<form action="newthread.php<if condition="$show['vb36']">?do=postthread&amp;f=$forumid</if>" method="post" enctype="multipart/form-data" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.subject.value, $vboptions[postminchars])"</if>>
<!-- GARS Gallery-->
$GARS_options[gallery]
<!-- /GARS GALLERY-->
<!--GARS options-->
<script language="javascript">
    function LimitMultiLineLength(obj)
    {
        var iKey;
        var eAny_Event = window.event;
        iKey = eAny_Event.keyCode;
        var re
        re = new RegExp("\r\n","g")
        x = obj.value.replace(re,"").length ;
        if ((x >= obj.maxLength) && ((iKey > 33 && iKey < 255) || (iKey > 95 && iKey < 106)) && (iKey != 13))
        {
            window.event.returnValue=false;
        }
    }
</script>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_GARS_options')"><img id="collapseimg_newpost_GARS_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_GARS_options].gif" alt="" border="0" /></a>
                        $typeinfo[keyword_c] $vbphrase[GARS_options]
                </td>
        </tr>
</thead>
<tbody id="collapseobj_newpost_GARS_options" style="$vbcollapse[collapseobj_newpost_GARS_options]">
        <tr valign="top">
                <td class="panelsurround" align="center">
                <div class="panel">
                        <div style="width:$stylevar[formwidth]" align="$stylevar[left]">
<fieldset class="fieldset">
                                        <legend>$vbphrase[title]:</legend>
<div style="padding:$stylevar[formspacer]px">
<input type="text" class="bginput" name="subject" value="$subject" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></div></fieldset>
$GARS_options[options]
                </td>
        </tr>
</tbody>
</table><br />
<!--/GARS options-->
<!-- GARS ratings-->
$GARS_options[ratings]
<!-- /GARS ratings-->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">
                <span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[forum]</strong>: <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span>
                $vbphrase[post_new_thread]
        </td>
</tr>
<tr>

        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth]" align="$stylevar[left]">

                $usernamecode

                <!-- subject field
                <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
                <tr>
                        <if condition="$prefix_options">
                                <td class="smallfont">$vbphrase[prefix]:</td>
                                <td class="smallfont" colspan="3">$vbphrase[title]:</td>
                        <else />
                                <td class="smallfont" colspan="4">$vbphrase[title]:</td>
                        </if>
                </tr>
                <tr>
                        <if condition="$prefix_options">
                                <td style="padding-right: 1px">
                                        <select name="prefixid" class="bginput">
                                                <option value="">$vbphrase[no_prefix_meta]</option>
                                                $prefix_options
                                        </select>
                                </td>
                        </if>

                        <td>
                                <input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" />
                        </td>
                        <td>&nbsp;&nbsp;</td>
                        <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>                </tr>
                </table>
                subject field -->

                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td>

                <!-- message area -->
                <div class="smallfont">$vbphrase[message]:</div>
                $messagearea
                <!-- / message area -->

                $posticons

                        </td>
                </tr>
                </table>

                </div>
        </div>

        <div style="margin-top:$stylevar[cellpadding]px">
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="f" value="$forumid" />
                <input type="hidden" name="do" value="postthread" />
                <input type="hidden" name="posthash" value="$posthash" />
                <input type="hidden" name="poststarttime" value="$poststarttime" />
                <input type="hidden" name="loggedinuser" value="$bbuserinfo[userid]" />
                <input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
                <input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
        </div>
        </td>
</tr>
</table>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_options].gif" alt="" border="0" /></a>
                        $vbphrase[additional_options]
                </td>
        </tr>
</thead>
<tbody id="collapseobj_newpost_options" style="$vbcollapse[collapseobj_newpost_options]">
        <tr valign="top">
                <td class="panelsurround" align="center">
                <div class="panel">
                        <div style="width:$stylevar[formwidth]" align="$stylevar[left]">

                                <fieldset class="fieldset">
                                        <legend>$vbphrase[miscellaneous_options]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                                <if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
                                                <div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div>
                                                $disablesmiliesoption
                                        </div>
                                </fieldset>

                                $attachmentoption

                                <if condition="$show['member']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[thread_subscription]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        <tr>
                                                <td>$vbphrase[notification_type]:<br /><select name="emailupdate" tabindex="1">
                                                        <option value="9999" $emailchecked[9999]>$vbphrase[do_not_subscribe]</option>
                                                        <option value="0" $emailchecked[0]>$vbphrase[no_email_notification]</option>
                                                        <option value="1" $emailchecked[1]>$vbphrase[instant_email_notification]</option>
                                                        <option value="2" $emailchecked[2]>$vbphrase[daily_email_notification]</option>
                                                        <option value="3" $emailchecked[3]>$vbphrase[weekly_email_notification]</option>
                                                </select></td>
                                                <if condition="$show['subscribefolders']"><td>$vbphrase[folder]:<br /><select name="folderid" tabindex="1">$folderbits</select></td></if>
                                        </tr>
                                        </table>
                                </fieldset>
                                </if>

                                <if condition="$show['poll']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[post_a_poll]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                                <div><label for="cb_postpoll"><input type="checkbox" name="postpoll" value="yes" id="cb_postpoll" tabindex="1" $checked[postpoll] />$vbphrase[yes_post_a_poll_thread]</label></div>
                                                <div><label for="polloptnum">$vbphrase[number_of_poll_options]: <input type="text" class="bginput" size="5" name="polloptions" value="$polloptions" id="polloptnum" tabindex="1" /></label> <if condition="$vboptions['maxpolloptions']">($vbphrase[maximum]: $vboptions[maxpolloptions])</if></div>
                                        </div>
                                </fieldset>
                                </if>

                                $threadmanagement

                                </div>
                        </div>

                        <div style="margin-top:$stylevar[cellpadding]px">
                                <input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
                                <input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="1" />
                        </div>
                </td>
        </tr>
</tbody>
</table>

</form>

<br />

$forumrules

$footer

</body>
</html>

The red code is what I changed.

Morgan 01-26-2008 10:38 PM

That change needs to be placed further up in that template, as you are in a comment. I've also made a number of HTML changes, so if anyone wants those changes, they will need to revert any changed GARS template, grab the GARS package, re-import the product-gars.xml file (do NOT uninstall, do allow overwrite), and FTP two files:
  • gars_class_edit.php
  • gars_class_list.php


All times are GMT. The time now is 11:25 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.