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 10-23-2006, 12:54 AM
vat0r vat0r is offline
Member
 
Join Date: May 2006
Posts: 42
Geek Article and Review System License Holder 
Default Cybalreadyposted

I cant get this hack to work with gars. I added $cybcheckifposted to the GARS_newthread template but I can't for the life of me get it to show up next to the subject field. Is it a cache of some sort or what the heck am I missing? Apologies if it's simple.

My GARS_newthread (a piece of it).
Code:
<!-- subject field
                <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
                <tr>
                        <td class="smallfont" colspan="3">$vbphrase[title]:</td>
                </tr>
                <tr>
                        <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
                        $cybcheckifposted
                        <td>&nbsp;&nbsp;</td>
                        <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>                </tr>
                </table>
                 subject field -->
According to the hack's author..

Quote:
2. OPTIONAL (for very customized styles - if button not shown):
In newthread template find: <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
Below it add: $cybcheckifposted
Am I wrong to assume I am editing the correct template? GARS_newthread is the template I am using. Any help would be appreciated..
Reply With Quote
  #2  
Old 10-23-2006, 08:35 AM
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

It may be because the plug in will only make the change if using the newthread template instead of the gars substitute. Its tough to say without cracking open his source to find out.

Have you tried asking the author?
Reply With Quote
  #3  
Old 10-23-2006, 03:21 PM
vat0r vat0r is offline
Member
 
Join Date: May 2006
Posts: 42
Geek Article and Review System License Holder 
Default

Ok thanks, I figured i'd ask the expert first. I'll ask the author of the hack and if I get anywhere I'll repost here.
Reply With Quote
  #4  
Old 10-24-2006, 02:31 PM
vat0r vat0r is offline
Member
 
Join Date: May 2006
Posts: 42
Geek Article and Review System License Holder 
Default

Please forgive my double post. It seems I cannot add anything at all to the GARS_newthread. I put a simple line of text and regardless of where I put it in that template it won't show on the front end. What am I missing Geek?
Reply With Quote
  #5  
Old 10-24-2006, 10:56 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

Are you editing the correct style?
Reply With Quote
  #6  
Old 10-24-2006, 11:43 PM
vat0r vat0r is offline
Member
 
Join Date: May 2006
Posts: 42
Geek Article and Review System License Holder 
Default

Yes but, it is a child style. I will try to edit the parent as well and see if that makes the difference.
Reply With Quote
  #7  
Old 10-25-2006, 11:14 PM
vat0r vat0r is offline
Member
 
Join Date: May 2006
Posts: 42
Geek Article and Review System License Holder 
Default

Apologies for yet another double post but I have solved the issue. Was staring me in the face as usual.

In GARS_newthread find:
Code:
<input type="text" class="bginput" name="subject" value="$subject" size="50" maxlength="85" tabindex="1" /></div></fieldset>
Replace with:
Code:
<input type="text" class="bginput" name="subject" value="$subject" size="50" maxlength="85" tabindex="1" />
<script language="javascript" type="text/javascript">
	<!--
		function checkifalreadyposted(theform) {
			if(theform.subject.value=="")
			{
			alert('$vboptions[cyb_checkifposted_phrase1]');
			return false; } else {
			window.open('search.php?do=process<if condition="$vboptions['cyb_checkifposted_titlesonly']">&titleonly=1</if><if condition="$vboptions['cyb_checkifposted_asposts']">&showposts=1</if>&query='+document.vbform.subject.value+'','javascript_1','toolbar=no,top=100,left=100,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=$vboptions[cyb_checkifposted_wwidth],height=$vboptions[cyb_checkifposted_wheight]'); }
			}
	//-->
	</script>
	&nbsp;<input type="button" class="button" title="$vboptions[cyb_checkifposted_phrase2]" value="$vboptions[cyb_checkifposted_phrase2]" onClick="checkifalreadyposted(vbform);" />
</div></fieldset>
Reply With Quote
  #8  
Old 10-26-2006, 08:33 AM
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

Thanks for taking the time to post the solution!
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


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


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