The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[Chris] Classifieds Details »» | |||||||||||||||||||||||||
Classifieds by Christos Teriakis aka ChrisTERiS Demo: http://www.christeris.net/dev42/classifieds.php Demo Accounts: demouser1 / demopass1 demouser2 / demopass2 demouser3 / demopass3 1.- What's this mod? Is better to say what is NOT this mod . For those who have used MarysClassifieds, I can say that they are 2 products which you can't compate. MarysClassifieds had dozens of features, but when I installed in my site I realized that I need only 10% of those features. Maybe less. This is SL Classifieds. A minimalist version of MarysClassifieds, but I bet that 70% of the webmasters will find this one more pretty, more usefull.
Using vBulletin's Subscriptions Manager you can set subscription which will upgrade the subscribers to a higher usergroup with more privilenges in SL Classifieds. eg:
Since the time that DBTech released their Copyright Manager, I've removed my own copyrights. I found their action insulting me to maximum. Their wording "Site is powered by vBulletin AddOns and Modules by Dragonbyte Tech" (and not "Some parts of this site"), means that everything there is their own work, ignoring on the worst way the fact that there are 100's of other coders and designers who are supporting this community for years. So, I'm letting the glory to them. No copyrights from my side. Enjoy it Christos Teriakis aka ChrisTERiS Show Your Support
|
Comments |
#282
|
|||
|
|||
Quote:
2.- You can't edit someone's else Classified. Is not a thread post where editing a text has no sense. Here we're talking about money. What if you change (even by mistake) the price from $1,000 to $100 and someone buys it? Only the owner can edit the classified. The only that you can is to reject the classified. Every time that the seller changes something it goes for approval. So if you don't like you reject it. Chris |
#283
|
||||
|
||||
Quote:
No worries.... I wouldn't be totally up to speed with all the vBulletin terminology No rush at all! |
#284
|
||||
|
||||
Well I was looking for a way to delete an existing ad and can't and I believe that is an issue. I also don't allow people to use the classifieds to market their website and would like the ability to edit an ad to remove things like that when I encounter them. The deletion of ads is actually pretty important though, at least for me. lol
|
#285
|
|||
|
|||
Quote:
|
#286
|
|||
|
|||
Whenever a search engine spider uses the classifieds.php?do=searchresults link, a database error happens...
Invalid SQL: SELECT * FROM classifieds_items WHERE active=1 ORDER BY dateline DESC; MySQL Error : Unknown column 'dateline' in 'order clause' Error Number : 1054 Request Date : Monday, May 20th 2013 @ 04:35:50 PM Error Date : Monday, May 20th 2013 @ 04:35:50 PM Script : http://www.xxx.com/classifieds.php?do=searchresults Referrer : IP Address : 66.249.73.229 Username : Unregistered Classname : vB_Database MySQL Version : Perhaps some default values for a search submitted without any values are needed. |
#287
|
|||
|
|||
Classifieds version 1.8.0 released. In this version:
(aka ChrisTERiS) |
#288
|
|||
|
|||
Quote:
Replace: Code:
if (empty($orderby1)) { $orderby1 = 'dateline'; } Code:
if (empty($orderby1)) { $orderby1 = 'starts'; } |
Благодарность от: | ||
nhawk |
#289
|
|||
|
|||
Thanks Chris
Quote:
In "add item" page, I can see only this inside the terms box Place your rules here................. Which is the same text in (terms.php) and this is not what I wrote in admincp. |
#290
|
|||
|
|||
Quote:
|
#291
|
|||
|
|||
Quote:
Code:
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script> <link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}editor.css" /> <link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}bbcode.css" /> <script src="christeris/classifieds/includes/jquery.js" type="text/javascript"></script> <script type="text/javascript"> function validateForm_vbform() { if(document.forms["vbform"].title.value.length == 0) { alert('{vb:var vbphrase.classifieds_error_title}'); return false; } if(document.forms["vbform"].location.value.length == 0) { alert('{vb:var vbphrase.classifieds_error_location}'); return false; } if(document.forms["vbform"].categoryid != undefined){ if(!isNaN(document.forms["vbform"].categoryid.value) == 0) { alert('{vb:var vbphrase.classifieds_error_category_number}'); return false; }else if(document.forms["vbform"].categoryid.value ==0){ alert("{vb:var vbphrase.classifieds_error_category_zero}"); return false; } } if(document.forms["vbform"].days != undefined){ if(!isNaN(document.forms["vbform"].days.value) == 0) { alert('{vb:var vbphrase.classifieds_error_days_number}'); return false; }else if(document.forms["vbform"].days.value ==0){ alert("{vb:var vbphrase.classifieds_error_days_zero}"); return false; } } return true; } </script> <script type="text/javascript"> function AgreeToRules() { if(document.getElementById('rulesagreement').checked) { document.getElementById('agree2rules').style.display = "block"; } else { document.getElementById('agree2rules').style.display = "none"; } } </script> <script type="text/javascript"> function showstuff(boxid){ document.getElementById(boxid).style.visibility="visible"; document.getElementById(boxid).style.height="auto"; } function hidestuff(boxid){ document.getElementById(boxid).style.visibility="hidden"; document.getElementById(boxid).style.height="0px"; } </script> <script type="text/javascript"> function CheckImageExt(fld) { if (fld.value != '') { var image_ext = getFileExtension(fld.value); var valid_images = new Array("jpg","jpeg","gif","png","JPG","JPEG","GIF","PNG"); if (valid_images.indexOf(image_ext) > -1) { return true; } else { alert('You can upload only .gif, .jpg, .jpeg, .png files.'); fld.value = ''; fld.select(); fld.focus(); return false; } } else { return true; } } </script> <script type="text/javascript"> function getFileExtension(filename) { return filename.split('.').pop(); } </script> <form class="block vbform" action="classifieds_usercp.php?do=saveupdate" method="post" enctype="multipart/form-data" name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(0, {vb:raw vboptions.postminchars})"> <vb:if condition="$editmode == 0"> <vb:if condition="$adtype == 1"> <h2 class="blockhead"><b>{vb:var vbphrase.classifieds_new_forsale}</b></h2> </vb:if> <vb:if condition="$adtype == 2"> <h2 class="blockhead"><b>{vb:var vbphrase.classifieds_new_wanted}</b></h2> </vb:if> <vb:if condition="$adtype == 3"> <h2 class="blockhead"><b>{vb:var vbphrase.classifieds_new_fortrade}</b></h2> </vb:if> <vb:if condition="$adtype == 4"> <h2 class="blockhead"><b>{vb:var vbphrase.classifieds_new_freeoffer}</b></h2> </vb:if> <vb:else /> <h2 class="blockhead"><b>{vb:var vbphrase.classifieds_edit} {vb:var vbphrase.classifieds_classified}</b></h2> </vb:if> <div class="blockbody formcontrols settings_form_border"> <h3 class="blocksubhead">{vb:var vbphrase.classifieds_general_info}</h3> <div class="section"> <div class="blockrow"> <label for="category">{vb:var vbphrase.classifieds_category}:</label> <div class="rightcol"> {vb:raw selectcategory} <p class="description">{vb:var vbphrase.classifieds_h_category}</p> </div> </div> <div class="blockrow"> <label for="title">{vb:var vbphrase.classifieds_title}:</label> <div class="rightcol"> <input type="text" name="title" style="width:100%;" value="{vb:raw title}"> <p class="description">{vb:var vbphrase.classifieds_h_title}</p> </div> </div> <vb:if condition="$adtype==2"> <div class="blockrow"> <label for="location">{vb:var vbphrase.classifieds_your_location}</label> <div class="rightcol"> <input type="text" name="location" style="width:100%;" value="{vb:raw location}" /> <p class="description">{vb:var vbphrase.classifieds_h_your_location}</p> </div> </div> <vb:else /> <div class="blockrow"> <label for="location">{vb:var vbphrase.classifieds_location}</label> <div class="rightcol"> <input type="text" name="location" style="width:100%;" value="{vb:raw location}" /> <p class="description">{vb:var vbphrase.classifieds_h_location}</p> </div> </div> </vb:if> <vb:if condition="$adtype != 4"> <vb:if condition="$adtype==1"> <div class="blockrow"> <label for="price">{vb:var vbphrase.classifieds_ask_price}</label> <div class="rightcol"> <input type="text" name="price" style="width:50%;" value="{vb:raw price}" /> {vb:raw vboptions.classifieds_cursuf} <p class="description">{vb:var vbphrase.classifieds_in} {vb:raw vboptions.classifieds_cursuf} {vb:var vbphrase.classifieds_h_price}</p> </div> </div> </vb:if> <vb:if condition="$adtype==2"> <div class="blockrow"> <label for="price">{vb:var vbphrase.classifieds_offer_price}</label> <div class="rightcol"> <input type="text" name="price" style="width:50%;" value="{vb:raw price}" /> {vb:raw vboptions.classifieds_cursuf} <p class="description">{vb:var vbphrase.classifieds_in} {vb:raw vboptions.classifieds_cursuf} {vb:var vbphrase.classifieds_h_price}</p> </div> </div> </vb:if> <vb:if condition="$adtype==3"> <div class="blockrow"> <label for="price">{vb:var vbphrase.classifieds_trade_with}</label> <div class="rightcol"> <input type="text" name="tradewith" style="width:100%;" value="{vb:raw tradewith}" /> <p class="description">{vb:var vbphrase.classifieds_h_trade_with}</p> </div> </div> </vb:if> </vb:if> <div class="blockrow"> <label for="days">{vb:var vbphrase.classifieds_expires_in}:</label> <div class="rightcol"> <input type="text" name="days" value="{vb:raw days}" style="width:50%;"> {vb:var vbphrase.classifieds_days} <p class="description">{vb:var vbphrase.classifieds_h_days} ({vb:var vbphrase.classifieds_max}: {vb:raw maxdays} {vb:var vbphrase.classifieds_days_small})</p> </div> </div> <div class="blockrow"> <label for="flagreserved">{vb:var vbphrase.classifieds_reserve_buynow}</label> <div class="rightcol"> <input type="radio" name="flagreserved" value="1" <vb:if condition="$flagreserved==1">checked=checked</vb:if> /> {vb:var vbphrase.classifieds_yes} <input type="radio" name="flagreserved" value="0" <vb:if condition="$flagreserved==0">checked=checked</vb:if> /> {vb:var vbphrase.classifieds_no} <p class="description">{vb:var vbphrase.classifieds_h_reserve_buynow}</p> </div> </div> </div> <h3 class="blocksubhead">{vb:var vbphrase.classifieds_classified_details}</h3> <div class="wysiwyg_block"> <div class="blockbody formcontrols"> <div class="blockrow"> {vb:raw messagearea} </div> </div> </div> <h3 class="blocksubhead">{vb:var vbphrase.classifieds_other_info}</h3> <div class="section"> <div class="blockrow"> <label for="katastasi">{vb:var vbphrase.classifieds_katastasi}</label> <div class="rightcol"> <select name="katastasi" size="1" style="width:100%;"> <option value="0"<vb:if condition="$katastasi == 0"> selected="selected"</vb:if>>{vb:var vbphrase.classifieds_select}</option> <option value="6"<vb:if condition="$katastasi == 6"> selected="selected"</vb:if>>{vb:var vbphrase.classifieds_rating_6}</option> <option value="5"<vb:if condition="$katastasi == 5"> selected="selected"</vb:if>>{vb:var vbphrase.classifieds_rating_5}</option> <option value="4"<vb:if condition="$katastasi == 4"> selected="selected"</vb:if>>{vb:var vbphrase.classifieds_rating_4}</option> <option value="3"<vb:if condition="$katastasi == 3"> selected="selected"</vb:if>>{vb:var vbphrase.classifieds_rating_3}</option> <option value="2"<vb:if condition="$katastasi == 2"> selected="selected"</vb:if>>{vb:var vbphrase.classifieds_rating_2}</option> <option value="1"<vb:if condition="$katastasi == 1"> selected="selected"</vb:if>>{vb:var vbphrase.classifieds_rating_1}</option> </select> <p class="description">{vb:var vbphrase.classifieds_h_katastasi}</p> </div> </div> <div class="blockrow"> <label for="sellertype">{vb:var vbphrase.classifieds_youare}</label> <div class="rightcol"> <input type="radio" name="sellertype" value="1" <vb:if condition="$sellertype==1">checked=checked</vb:if> /> {vb:var vbphrase.classifieds_individual} <input type="radio" name="sellertype" value="2" <vb:if condition="$sellertype==2">checked=checked</vb:if> /> {vb:var vbphrase.classifieds_storeowner} <p class="description">{vb:var vbphrase.classifieds_h_sellertype}</p> </div> </div> <div class="blockrow"> <label for="keywords">{vb:var vbphrase.classifieds_keywords}:</label> <div class="rightcol"> <input type="text" name="keywords" style="width:100%;" value="{vb:raw keywords}"> <p class="description">{vb:var vbphrase.classifieds_h_keywords}</p> </div> </div> <div class="blockrow"> <label for="shipping">{vb:var vbphrase.classifieds_shipping}:</label> <div class="rightcol"> <input type="text" name="shipping" value="{vb:raw shipping}" style="width:100%;"> <p class="description">{vb:var vbphrase.classifieds_h_shipping}</p> </div> </div> <div class="blockrow"> <label for="payment">{vb:var vbphrase.classifieds_payment}:</label> <div class="rightcol"> <input type="text" name="payment" value="{vb:raw payment}" style="width:100%;"> <p class="description">{vb:var vbphrase.classifieds_h_payment}</p> </div> </div> {vb:raw extrafields} </div> <h3 class="blocksubhead">{vb:var vbphrase.classifieds_main_photo}</h3> <div class="section"> <div class="blockrow"> <label for="tb_mainphoto">{vb:var vbphrase.classifieds_select_photo}</label> <div class="rightcol"> <input type="file" name="logo" id="logo" onblur="return CheckImageExt(this)" size="30" /> <p class="description">{vb:var vbphrase.classifieds_h_main_photo}</p> </div> </div> <vb:if condition="!empty($oldlogo)"> <div class="blockrow"> <label for="tb_currentphoto">{vb:var vbphrase.classifieds_current_photo}</label> <div class="rightcol"> <a href="christeris/classifieds/photos/{vb:raw oldlogo}" rel="thumbnail"> <img border="0" src="christeris/classifieds/photos/thumbs/{vb:raw oldlogo}" align="{vb:stylevar left}" /></a> <input type="checkbox" name="removelogo" value="1"> {vb:var vbphrase.classifieds_remove_photo} </div> </div> </vb:if> </div> <h3 class="blocksubhead">{vb:var vbphrase.classifieds_additional_photos}</h3> <div class="section"> <vb:if condition="$maxphotos>0"> {vb:raw html_photos} <vb:else /> <div class="blockrow" align="center"> {vb:var vbphrase.classifieds_no_more_photos} </div> </vb:if> </div> <vb:if condition="$totalphotos>0"> <h3 class="blocksubhead">{vb:var vbphrase.classifieds_photo_gallery}</h3> <div class="section"> {vb:raw item_gallery} </div> </vb:if> <vb:if condition="!empty($vboptions['classifieds_terms'])"> <h3 class="blocksubhead">{vb:var vbphrase.classifieds_terms}</h3> <div class="section"> <div class="blockrow"> <iframe name="rules" src="christeris/classifieds/includes/terms.php" width="100%" height="100" frameborder="1" marginwidth="5" marginheight="5" align="{vb:stylevar left}" scrolling="auto"></iframe> </div> <div class="blockrow"> <input type="checkbox" onclick="return AgreeToRules();" name="rulesagreement" id="rulesagreement" value="1"> <b>{vb:var vbphrase.classifieds_agree_rules}</b> </div> </div> </vb:if> </div> <vb:if condition="!empty($vboptions['classifieds_terms'])"> <div id="agree2rules" style="display:none;"> </vb:if> <div class="blockfoot actionbuttons settings_form_border"> <div class="group"> <vb:if condition="$vbulletin->userinfo['permissions']['classifieds'] & $vbulletin->bf_ugp['classifieds']['moderate']"> <input type="submit" class="button" name="sbutton" value="{vb:var vbphrase.classifieds_approve}" onclick="return validateForm_vbform()"> <a class="button" href="classifieds_usercp.php?do=deleteitem&itemid={vb:raw id}"> <b>{vb:var vbphrase.classifieds_delete}</a></b> <vb:else /> <input type="submit" class="button" name="sbutton" value="{vb:var vbphrase.classifieds_submit}" onclick="return validateForm_vbform()"> </vb:if> <input type="reset" class="button" value="{vb:var vbphrase.classifieds_reset_fields}" tabindex="1" accesskey="r" /> <input type="hidden" name="itemid" value="{vb:raw id}" /> <input type="hidden" name="adtype" value="{vb:raw adtype}" /> <input type="hidden" name="userid" value="{vb:raw userid}" /> <input type="hidden" name="urlid" value="{vb:raw urlid}" /> <input type="hidden" name="starts" value="{vb:raw starts}" /> <input type="hidden" name="oldlogo" value="{vb:raw oldlogo}" /> <input type="hidden" name="editmode" value="{vb:raw editmode}" /> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> </div> </div> <vb:if condition="!empty($vboptions['classifieds_terms'])"> </div> </vb:if> </form> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|