Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 08:27:57 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155482 Posts in 21708 Topics by 7733 Members
Latest Member: himagain
* Home Help Search Login Register
Poll
Question: Would you like to the option of including locations (city/country) for ads in AdBaker2?
Yes, being able to filter by location would be great. - 3 (60%)
No, I won't use/offer locations - 1 (20%)
Yes, I plan to use this module and can't or won't be upgradeing anytime soon - 0 (0%)
Doesn't matter to me - 1 (20%)
Total Voters: 5

Pages: 1 ... 7 8 [9] 10 11 12   Go Down
Print
Author Topic: AdBaker - Classifieds Module  (Read 28698 times)
PurpleEdge

Offline Offline

Posts: 232



WWW
« Reply #200 on: December 30, 2009, 08:48:39 AM »

You had holidays!  grin

Attached is cm_modify_ad.zip which contains some changes to cm_modify_ad.php

I've added some comments in the change log.

I found that 1.1.1 still cleared the subcategories on edit - I think these changes might prevent that from happening.

Thanks for this module, it might be very useful for me!
Logged
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #201 on: December 30, 2009, 04:48:59 PM »

Thanks I will have a look at this and add it the the main code.  Did you buy chance preform an upgrade form 1.1 to 1.1.1?  I did a clean install so i am not sure if the upgrade works.
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
PurpleEdge

Offline Offline

Posts: 232



WWW
« Reply #202 on: December 30, 2009, 10:45:52 PM »

Hi Mike,

No I deleted and re-installed too.
Logged
Availor

Offline Offline

Posts: 225



« Reply #203 on: January 15, 2010, 04:17:48 PM »

Hello,

I wanted to delete the currency and price from the table so I commented it out from the cm.make_ad.php file but it's a required field so it doesn't give me the option to add anything. How can I delete the currency and price field?
Logged
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #204 on: January 16, 2010, 04:04:33 AM »

Remove or comment the following lines
Code:
<?php
//check for currency
        
if(isset($_POST['currency']) & $_POST['currency'] !== 'Select') {
            
$cur clean(my_htmlspecialchars($_POST['currency']));
        } else {
$errors[] = $LANG[6]['TXT_ERR4'];}

    
//check for price
        
if(isset($_POST['price']) & !empty($_POST['price'])) {
            if(
is_numeric($_POST['price'])) {
                
$price clean(my_htmlspecialchars($_POST['price']));
            } else {
$errors[] = $LANG[6]['TXT_ERR5'];}
        } else {
$errors[] = $LANG[6]['TXT_ERR6'];}
?>


and change lines 156-164 to this
Code:
<?php
    
//handle form based on any errors that have occurred
        
if(empty($errors)) {
            
create_ad($title$cat$subcat'NULL''NULL'$ad_durr$file_temp$file$desc$user_id$ext$group_name$page_id$sett_value[4], $big$thumb$img_ratio$source$email);
            
$preview_ad 1;
        } else {
            foreach(
$errors as $msg) {
                echo 
'<p class="errorMsg">'.$msg.'</p>';
            }
        }
?>


This will remove the requirment to have a currency and a price and will set those values to NULL (empty) in the database.  All you need to do from here is remove or comment of the inputs from the forms.

This needs to be done in both cm.make_ad.php and cm.modify.php

Mike
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
Availor

Offline Offline

Posts: 225



« Reply #205 on: January 19, 2010, 09:58:20 AM »

It works partially - http://leondrive.co.il/pages/doska-objavlenij.php it doesn't add image no matter what file size I set - and it gives out an error. It's in russian but I guess you can figure it out. I will set it on a test server soon
Logged
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #206 on: January 19, 2010, 05:39:49 PM »

Very odd.  I'll take a look tonight and see what I can figure out.  I a future release I am hoping to use form builder to make it so admins can create their own forms.
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
mylesk42

Offline Offline

Posts: 120



WWW
« Reply #207 on: January 21, 2010, 06:54:40 PM »

Hi,
Is there a multi-criteria search engine to put on the front-en to search for the ads : for example choose a category, year, price etc ...

Thanks
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #208 on: January 21, 2010, 07:34:56 PM »

no it is not possible at this time..
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Spacemanjason

Offline Offline

Posts: 1


« Reply #209 on: March 11, 2010, 07:29:48 AM »

I am currently using the News module, my website isn't even 20% complete, but this classified could be good for posting jobs too?   afro
« Last Edit: March 12, 2010, 06:14:09 PM by Argos » Logged
oeh

Offline Offline

Posts: 190



« Reply #210 on: March 12, 2010, 01:49:29 AM »

When trying to edit the categories in the backend, I get the error:

Quote
Table 'xxxxxmod_ad_Baker_c ategories' doesn't exist
I've tried to find out what is generating the error, but sadly I'm having no luck so far.

I've all so translated the module to Norwegian. See attached language file.
But on the other hand, the module does not seem to handle other languages than English to well.
« Last Edit: March 12, 2010, 03:46:47 AM by oeh » Logged

Good bye ;-{(
oeh ;-}>
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #211 on: March 12, 2010, 04:19:35 AM »

The categories error should not come up.  Please email me the exact error message you get and I'll look into it.  As for the languages issues this is the first I have heard of it.  What exactly are the issues you are having.

I am having computer issues at the moment so my test server is down hopefully i can get it working soon and short these issues out.
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #212 on: March 12, 2010, 06:45:20 PM »

Is it possible to rework this module into a general listing module? If you would be able to create your own fields, it could be used for anything...
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #213 on: March 12, 2010, 07:28:48 PM »

Is it possible to rework this module into a general listing module? If you would be able to create your own fields, it could be used for anything...

My hope is to do just this in the next major release.  I want hoping to use wblib and form builder for this.
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #214 on: March 12, 2010, 11:39:07 PM »

Looking forward to that!
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
MF3000

Offline Offline

Posts: 3



WWW
« Reply #215 on: March 18, 2010, 09:40:47 AM »

Hello,
I have a problem with the mail send from adbaker.
When I contact in an advertisement for mail going opens an error page 404
Where can I change it to automatically mail address in mailto going?
Here is a link to http://www.bühnenland.de/pages/kleinanzeigen.php?section=mainad&ad_id=3

Michael
Logged
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #216 on: March 19, 2010, 12:56:34 AM »

I just tried the email link on your site and it opens up outlook with the email address already filled in.  I plan to create a contact form in place of this.
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
MF3000

Offline Offline

Posts: 3



WWW
« Reply #217 on: March 19, 2010, 07:19:03 AM »

I changed it yesterday in the file fe.main_ad.php

old: <td class="info"> <a href = "<? php echo $ email; ?>"><? php echo $ email;?> </ a> </ td>

New: <td class="info"> <a href = "mailto: <? Php echo $ email; ?>"><? php echo $ email;?> </ A> </ td>

The problem is gone.

 I send you the German language file for adBaker.
Logged
escpro

Offline Offline

Posts: 651



WWW
« Reply #218 on: April 13, 2010, 06:04:52 PM »

hi mahalleday,
thank you for this nice module.
one wonder why all the images stored in the module directory?
You can change the location somewhere easily?

still a question.
All items are created as "active == 1" ... has a base or is there a function that relies on the "0"?

thanks for the support in advance
gruss escpro
« Last Edit: April 13, 2010, 06:06:30 PM by escpro » Logged

mahalleday

Offline Offline

Posts: 188



WWW
« Reply #219 on: April 13, 2010, 10:09:00 PM »

Changing the directory should be fairly simple you'll have edit ab_functions.php and change the folder path to whatever you want.  Perhaps this could be a option for future releases.

The active ==1 is left over from versions that allowed a user to deactivate an add without deleting it totally.  The option to do so has been removed, i just forgot to remove the active sate from the database.  Thanks for catching that.

Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
escpro

Offline Offline

Posts: 651



WWW
« Reply #220 on: April 14, 2010, 07:04:12 AM »

thank you, the module is fun.  cheesy
I find the "option" not active bad, I can use it well.

It would be nice to have a few extra fields for such company, name, sizes ..
would be a great act to change this?

-------------------------------------------------------------------------------
here are a few anomalies:
in uninstall.php - helloworld??
Code:
// delete all database search table entries made by this module
$database->query("DELETE FROM `" .TABLE_PREFIX ."search` WHERE `name` = 'module' AND `value` = 'helloworld'");
$database->query("DELETE FROM `" .TABLE_PREFIX ."search` WHERE `extra` = 'helloworld'");

in save.php:
Code:
// now write the text to the database, add unix timestamp to store modification date and time
$sql_query = "UPDATE `" .TABLE_PREFIX ."mod_helloworld` SET `simple_output` = '$simple_output', `modified_when` = '"
        .time() ."' WHERE `section_id` = '$section_id'";
$database->query($sql_query);

Search function ... smiley


:::::::::::::::::::::::::::::::::::::::::::::: MODI 4 MEDIA DIR - FILES :::::::::::::::::::::::::::::::::::

for modify the Image-File Order in MEDIA:
adfunction.php, modify.php, view.php


Logged

escpro

Offline Offline

Posts: 651



WWW
« Reply #221 on: April 14, 2010, 12:23:47 PM »

hi
i find an error in the sc.activate.php in line 80

the pages directory must be called "PAGES_DIRECTORY" not /pages.
the redirect is then an error page ..


Code:
header('Location:'.WB_URL.PAGES_DIRECTORY.''.$link.'.php?section=userAds&user_id='.$user_id);

cu escpro
Logged

mahalleday

Offline Offline

Posts: 188



WWW
« Reply #222 on: April 14, 2010, 06:39:22 PM »

Thanks for pointing out those issues I'll try and get on them ASAP.  I must admit I have been neglecting Ad Baker recently as I have been crazy busy with out things.  I am hoping to get back into it soon and work on an updated version.
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
escpro

Offline Offline

Posts: 651



WWW
« Reply #223 on: April 14, 2010, 08:00:26 PM »

can you post it here Huh please

I send you the German language file for adBaker.
Logged

mahalleday

Offline Offline

Posts: 188



WWW
« Reply #224 on: May 02, 2010, 07:15:09 AM »

After what feels like a lengthy hiatus from AdBaker  I am finally gearing up to start working on the next release.  It is my hope that I can incorporate as much of the user suggestions that I can along with some of the outstanding items on my list.

In order to keep a better handle on requests and version I am creating a project over at SourceForge.net where I  will post current code revisions.  Please direct all comments and requests about current builds there.  Once this version is stable enough to be a release candidate I will post code on AMASP and open a thread here.

Here is the link to the SourceForge.net project. http://adbaker.sourceforge.net.  Nothing there yet as I and just getting started stay tuned.
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
Pages: 1 ... 7 8 [9] 10 11 12   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!