Forums Index > Mewsoft > Official Announcements > Classifiedawy 9.1 Update. Watermarks, New category system
mewsoft First Post Posted on: 12-06-09 11:32 PM
Classifiedawy 9.1 Update. Watermarks, New category system

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
</p><p>  &lt;font color=&quot;blue&quot;&gt;&lt;b&gt;&lt;span ID=&quot;CatName&quot;&gt;&lt;!--CatName--&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;<br />  &lt;br&gt;<br />  &lt;input type=&quot;hidden&quot; name=&quot;Cat_ID&quot; value=&quot;&lt;!--Cat_ID--&gt;&quot;&gt;<br />  &lt;input type=&quot;button&quot; onclick=&quot;NewWindow('&lt;!--PostAdCategoryTreeURL--&gt;','CatWin','600','400','yes','center');return false;&quot; value=&quot;[[select_cat]]&quot; style=&quot;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&quot;&gt;<br /></p><p>

and at the end of the templates add this JS code:


Code: HTML
</p><p>&lt;script language=&quot;javascript&quot;&gt;<br />var win=null;<br />function NewWindow(mypage,myname,w,h,scroll,pos){<br /> if(pos==&quot;random&quot;){<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==&quot;center&quot;){<br />  LeftPosition=(screen.width)?(screen.width-w)/2:100;<br />  TopPosition=(screen.height)?(screen.height-h)/2:100;<br /> }<br /> else if((pos!=&quot;center&quot; &amp;&amp; pos!=&quot;random&quot;) || 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 />&lt;/script&gt;<br /></p><p>

Good Luck


Mewsoft Support
www.mewsoft.com