Greatings, Classifiedawy 9.1 update released. This new version includes the new post ad, edit ad category tree selection system and also includes the Watermark images with your stamp feature. To test the new category system, post an ad on our demo. To test the images watermark, post ads with images. Here is an example ad on our demo: http://www.mewsoft.com/cgi-bin/classified/classified.cgi?action=Browse&Search=Category&Lang=English&Cat_ID=186 http://www.mewsoft.com/cgi-bin/classified/classified.cgi?action=ViewAd&ID=1126779486&Lang=English This feature will stamp all uploaded images with your own stamp. This will merge your watermark image on all uploaded images even the thumbs. How this works, under the directory auctions/images, create an image file and name it watermark.gif you can copy the default one. This is your stamp, your watermark, the software will copy this images (merge) to any image the user will upload. How to update =========== 1)-Update all the cgi modules only (*.pm) no need to update *.cgi. 2)-Update these templates or copy only the changes: PostAd.html, PostAdCategories.html (this is a new template), EditAd.html 3)-Upload the JS file auctions/Tree.js in ascii mode to your auctions/ directory. 5)- Upload the images files auctions/images/Tree*.gif and the file watermark.gif to your auctions/images directory (in binary mode. 6)-Update these language files or only add the new variables: PostAd.pm, EditAd.pm, PreviewAd.pm, PreviewEditAd.pm the new variables at the edit of these language files: PostAd.pm, EditAd files, add these variables: sell_categories_title~==~Select Category sell_categories_help~==~Please select the proper category for your item. Click on category name to select, double click to view in a new window. tree_selected_category~==~Selected category: tree_no_category~==~<font color=\"red\">No category selected</font> tree_selected_category_id~==~Category number: sell_tree_separator~==~ > tree_loading_wait~==~Loading... category_submit~==~Click to Select sell_tree_no_accept~==~<font color=\"red\">You can not submit to this category, click to expand and select a sub category</font> not_accepting~==~You can not submit to this category. click to expand and select a sub category. tree_main~==~Categories select_cat~==~Select category no_cat_select~==~<font color="red">No category selected</font> close_win~==~Close Window collapse_all~==~Collapse All The templates PostAd.html, EditAd.html, the changes are replace the category selection code by this:
Code: HTML Select All Collapse
|
</p><p> <font color="blue"><b><span ID="CatName"><!--CatName--></span></b></font><br /> <br><br /> <input type="hidden" name="Cat_ID" value="<!--Cat_ID-->"><br /> <input type="button" onclick="NewWindow('<!--PostAdCategoryTreeURL-->','CatWin','600','400','yes','center');return false;" value="[[select_cat]]" style="BORDER-RIGHT: #669999 1px outset; BORDER-TOP: #669999 1px outset; FONT-WEIGHT: bold; FONT-SIZE: 10pt; BORDER-LEFT: #669999 1px outset; COLOR: #005e5e; BORDER-BOTTOM: #669999 1px outset; FONT-FAMILY: Arial; BACKGROUND-COLOR: #ddf5f5"><br /></p><p>
|
and at the end of the templates add this JS code:
Code: HTML Select All Collapse
|
</p><p><script language="javascript"><br />var win=null;<br />function NewWindow(mypage,myname,w,h,scroll,pos){<br /> if(pos=="random"){<br /> LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;<br /> TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;<br /> }<br /> if(pos=="center"){<br /> LeftPosition=(screen.width)?(screen.width-w)/2:100;<br /> TopPosition=(screen.height)?(screen.height-h)/2:100;<br /> }<br /> else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}<br /> settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';<br /> win=window.open(mypage,myname,settings);<br />}<br /></script><br /></p><p>
|
Good Luck |