|
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 |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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> </td> <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr> </table> subject field --> Quote:
|
#2
|
||||
|
||||
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? |
#3
|
|||
|
|||
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.
|
#4
|
|||
|
|||
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?
|
#5
|
||||
|
||||
Are you editing the correct style?
|
#6
|
|||
|
|||
Yes but, it is a child style. I will try to edit the parent as well and see if that makes the difference.
|
#7
|
|||
|
|||
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> 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> <input type="button" class="button" title="$vboptions[cyb_checkifposted_phrase2]" value="$vboptions[cyb_checkifposted_phrase2]" onClick="checkifalreadyposted(vbform);" /> </div></fieldset> |
#8
|
||||
|
||||
Thanks for taking the time to post the solution!
|
Thread Tools | |
Display Modes | |
|
|