The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2007, 04:30 PM
ragtek ragtek is offline
Member
 
Join Date: Jun 2006
Posts: 86
Geek Article and Review System License Holder 
Default completion of username in the post as field

i've this change in the GARS_options template:

HTML Code:
<div id="gars_user"><textarea id="GARS-post_as" name="GARS-post_as" rows="1" cols="50" tabindex="1"></textarea></div>
							<div class="vbmenu_popup" id="GARS-post_as_menu" style="display:none; z-index:50"></div>
						<script type="text/javascript">
						<!--
						vbmenu_register('GARS-post_as', true);
						recip_sugg = new vB_AJAX_NameSuggest('GARS-post_as', 'GARS-post_as', 'gars_user');
						recip_sugg.allow_multiple = true;
						//-->
						</script>
and this is the error i'm getting:
Quote:
this.textobj.value has no properties
could someone pls help?
__________________
greets ragtek


www.ragtek.org
my blog
Reply With Quote
  #2  
Old 02-04-2007, 11:21 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Nice idea there. However I have never used the name suggestion ajax thing. However it looks to me like you either need to pass along the id of the textbox somewhere (GARS-post_as) or the textarea needs to have a specific id assigned to it.
Reply With Quote
  #3  
Old 02-05-2007, 06:08 AM
ragtek ragtek is offline
Member
 
Join Date: Jun 2006
Posts: 86
Geek Article and Review System License Holder 
Default

i've made this in some plugins of me without problems
i'll check today wheres the problem in my source, yesterday i was just fucked up that it dont go
__________________
greets ragtek


www.ragtek.org
my blog
Reply With Quote
  #4  
Old 02-05-2007, 11:57 AM
ragtek ragtek is offline
Member
 
Join Date: Jun 2006
Posts: 86
Geek Article and Review System License Holder 
Default

HTML Code:
<div id="GARS-post_as">
	<input type="text" class="bginput" name="GARS_post_as" id="GARS-post_as_txt" value="$typevalues[post_as]" size="50" maxlength="155" tabindex="1" />
</div>
<div class="vbmenu_popup" id="GARS-post_as_menu" style="display:none; z-index:50"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js"></script>
<script type="text/javascript">
<!--
vbmenu_register('GARS-post_as', true);
GARS_post_as = new vB_AJAX_NameSuggest('GARS_post_as', 'GARS-post_as_txt', 'GARS-post_as');
GARS_post_as.allow_multiple = false;
//-->
</script>
so my gars_options look now:
HTML Code:
<input type="hidden" name="GARS_existing_image" value="$typevalues[header_image]" />
                        <if condition="$typeinfo['show_byline']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[GARS_byline]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        <input type="text" class="bginput" name="GARS_byline" id="GARS_byline" value="$typevalues[byline]" size="50" maxlength="155" tabindex="1" />
                                        </div>
                                </fieldset>
                        </if>
                <if condition="$typeinfo['show_synopsis']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[GARS_synopsis]</legend>
                            <div style="padding:$stylevar[formspacer]px">

                        $vbphrase[GARS_synopsis_description]<br />
                        <textarea name="GARS_synopsis" id="GARS_synopsis"
                            tabindex="1"
                            onkeypress="LimitMultiLineLength(this)"
                            onbeforepaste="LimitMultiLineLength(this)"
                            maxLength="300"
                            ErrorMessage="Synopsis too long!"
                            style="height:75px;width:364px;">$typevalues[synopsis]</textarea>
                            </div>
                        </fieldset>
                </if>
                <if condition="$typeinfo['show_post_as']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[GARS_post_as]</legend>
                            <div style="padding:$stylevar[formspacer]px">
                        $vbphrase[GARS_users_name]<br />
						<div id="GARS-post_as">
	<input type="text" class="bginput" name="GARS_post_as" id="GARS-post_as_txt" value="$typevalues[post_as]" size="50" maxlength="155" tabindex="1" />
</div>
<div class="vbmenu_popup" id="GARS-post_as_menu" style="display:none; z-index:50"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js"></script>
<script type="text/javascript">
<!--
vbmenu_register('GARS-post_as', true);
GARS_post_as = new vB_AJAX_NameSuggest('GARS_post_as', 'GARS-post_as_txt', 'GARS-post_as');
GARS_post_as.allow_multiple = false;
//-->
</script>
                                                 </div>
                        </fieldset>
                </if>
                <if condition="$typeinfo['show_gal']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[GARS_autolink]</legend>
                            <div style="padding:$stylevar[formspacer]px">
                        $vbphrase[GARS_autolink_keywords]<br />
                        <input type="text" class="bginput" name="GARS_gal_keywords" id="GARS_gal_keywords" value="$typevalues[gal_keywords]" size="50" maxlength="155" tabindex="1" /><br />
                        $vbphrase[GARS_autolink_description]<br />
                        <textarea name="GARS_gal_text" id="GARS_gal_text"
                            tabindex="1"
                            onkeypress="LimitMultiLineLength(this)"
                            onbeforepaste="LimitMultiLineLength(this)"
                            maxLength="300"
                            ErrorMessage="Synopsis too long!"
                            style="height:75px;width:364px;">$typevalues[gal_text]</textarea>
                            </div>
                        </fieldset>
                </if>
                <if condition="$typeinfo['show_feature']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[GARS_feature_untill]</legend>
                            <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="$stylevar[left]">
                            <tr>
                                <td>
                                <input type="hidden" name="oldfeaturedate" id="oldfeaturedate" value="$typevalues[GARS_feature_untill]" />
                                    $vbphrase[month]:<br />
                                    <select name="month" tabindex="1" >
                                                                        {$typevalues[feature_select][months]}
                                    </select>
                                </td>
                                <td>
                                    $vbphrase[day]:<br />
                                    <select name="day" tabindex="1" >
                                                                        {$typevalues[feature_select][days]}
                                    </select>
                                </td>
                                <td>
                                    $vbphrase[year]:<br />
                                    <input type="text" tabindex="1"  class="bginput" name="year" size="10" maxlength="4" value="{$typevalues[feature_select][year]}" />
                                </td>
                            </tr>
                            </table>
                        </fieldset>
                </if>
$output
                        </div>
and it works very fine
__________________
greets ragtek


www.ragtek.org
my blog

Last edited by ragtek; 02-05-2007 at 06:24 PM..
Reply With Quote
  #5  
Old 02-07-2007, 02:34 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Mind if I fold that into the next release?
Reply With Quote
  #6  
Old 02-07-2007, 06:30 PM
ragtek ragtek is offline
Member
 
Join Date: Jun 2006
Posts: 86
Geek Article and Review System License Holder 
Default

in fact, kirby codet it because i asked in the german vb hackboard where my failture in the code was.

he gave his permission to release it in the next release(if i get a live long free updates *joking*)
__________________
greets ragtek


www.ragtek.org
my blog
Reply With Quote
  #7  
Old 02-10-2007, 02:23 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

lol - thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change color of username in review imedic Geek Article and Review System 2 07-15-2009 02:16 PM
You did not specify a username for your post. ???? techenigma Geek Article and Review System 2 01-24-2007 06:43 PM
Custom Field contents cleared during post edit trana Geek Article and Review System 2 11-05-2006 04:13 PM
"You did not specify a username for your post" kall Geek Article and Review System 3 06-15-2006 01:36 PM
Username error... Bashy Geek Article and Review System 1 05-09-2006 04:14 AM


All times are GMT. The time now is 07:03 PM.


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