Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 06:59:51 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* 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 ... 6 7 [8] 9 10 ... 12   Go Down
Print
Author Topic: AdBaker - Classifieds Module  (Read 27048 times)
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #175 on: November 22, 2009, 06:50:11 PM »

Maybe you can put a checkbox in settings to chose if you want registered or unregistered users to post ads

Its just an idea, im not sure is it hard to implement at this stage..

cheers

That's more or less what I plan to do.  There is a bit more too it than that though.  I have to create a new make_ad form allowing an unregistered user to enter an email address and/or name to contacting them.  And create new entries in all the appropriate tables.  Not an impossible task I just have a lot of little accounting type thigns to do.

On anouther note I would be interested to see how this is working on actual sites and what people have dome with it.  Perhaps people could post a link to there implementation of it.  Funny enouh I don't even have it used on my site yet. So it would be nice to see it being used in a real world senario.
« Last Edit: November 22, 2009, 06:52:22 PM by mahalleday » Logged

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

Offline Offline

Posts: 225



« Reply #176 on: November 26, 2009, 04:12:14 PM »

I intend to implement it on a new site I made for a client: www.leondrive.co.il
Logged
Yippeekayaye

Offline Offline

Posts: 56



« Reply #177 on: December 06, 2009, 06:50:43 PM »

It was always my need to have unregistered users be able to post ads.  I setup mine so that any user going onto the adbaker section is auto registered as a guest account.  This allows them to create ads.  But I disabled the modify ads for guests so they can't modify other guests ads. I mostly hacked it into the php and didn't bother with the settings interface as this need will never change.  Now I see some people are interested in the same thing.  Figures  tongue

I'll post shortly and explain what I did to make this work (I have to go back and look now).
Logged

"For everything else patience is a virtue, for computer's, it's a minimum requirement! - Lance B"
Yippeekayaye

Offline Offline

Posts: 56



« Reply #178 on: December 06, 2009, 07:37:25 PM »

Can anyone help me or explain how to get the captcha setup so submitters need to enter captcha before an ad is approved.  This is an important piece to prevent unregistered users from spamming.
Logged

"For everything else patience is a virtue, for computer's, it's a minimum requirement! - Lance B"
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #179 on: December 07, 2009, 02:30:59 AM »

Yippeekayaye, can you send me the modified code so I can add it to th Adbaker core.  I am trying to get captcha in as well so if you happen to beat me to it, if can fire that over as well I'll try to get it all together in a 1.1 release. 

I am currently experimenting the wblib to see if it could be worth while implementing in with AdBaker.  So a new full v2.0 release is will be a ways off.  Keep suggestions coming though, small incremental releases are always possible if requests are simple.
Logged

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

Offline Offline

Posts: 225



« Reply #180 on: December 08, 2009, 08:42:38 AM »

Auto registration is also a nice idea... but as you've said before, it lets users modify the ads of other users.
Logged
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #181 on: December 08, 2009, 07:04:03 PM »

Auto registration is also a nice idea... but as you've said before, it lets users modify the ads of other users.

This will be fixed with the next update.
Logged

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

Offline Offline

Posts: 56



« Reply #182 on: December 09, 2009, 07:28:20 AM »

I've attached my modified view.php. The relevant changes are between lines 77 and 110.
This is just how I chose to allow non-registered users to submit ads.  Not necessarily the perfect solution for every situation.... just mine  wink  The thing I like about how I've done it is that it only recognizes the guest login for adbaker.  WB still treats the user as not logged in for other modules.

Changes to view.php:
Basically if noone is logged in adbaker assigns a guest account (user_id=2 in my case)
Then it handles the menus that are visible based on whether or not the user_id is 2.

Since it's giving user_id a value you also have to put security checks in the fe_user_ads, fe_modify_ads and redirect the user away from fe_user_ads after submitting an ad.

Basically anywhere that adbaker checks if the user_id is null needs some extra code to also check if the user_id is a guest id and handle accordingly.

For the next release you might consider putting a couple more settings on the back end settings page.
1) a field to tell adbaker which WB user_id to treat as a guest account
2) option box to enable/disable allowing guest users to submit ads

Cheers!

PS: Don't just overwrite your view.php with mine.  Mine is seriously hacked to suit my own needs and will definitely screw up your ad baker.
« Last Edit: December 09, 2009, 07:31:50 AM by Yippeekayaye » Logged

"For everything else patience is a virtue, for computer's, it's a minimum requirement! - Lance B"
Availor

Offline Offline

Posts: 225



« Reply #183 on: December 09, 2009, 11:37:06 AM »

thanks you !  tongue
Logged
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #184 on: December 11, 2009, 06:38:32 PM »

A quick update.

I have started implementing the option to allow 'guests' to post ads.  Here is howI have approached it..

I have added a setting in the back end to turn this on or off.

If it is on (set to yes) then the Place ad link is displayed in the front end. 

When an unregistered user makes an add an email field is added to the make_ad.php form.  this email address is stored in the ads table under a new email field.  The user_id in the ads table is set to NULL (though I will likely change this to Guest or something).

If  a registered user makes an and the email field is left NULL and not shown in the form as this info is read from the wb_users table.

The guest user is shown the ad preview and has the option to accept, reject or edit the ad prior to posting just like a registered user does. 

So far everything seems to work ok.  I'll have to do some more testing before I put any files up.  I have also fixed the security issue about editing ads that was pointed out.  I have also noticed a few bugs in form error handling I will need to fix. 

Please let me know if this seems like a reasonable approach the unregistered users. 

Mike.
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #185 on: December 12, 2009, 12:27:24 PM »

If you turn Guest ads on, the module acepts both registered and guest users ads, right ?
Logged

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

Offline Offline

Posts: 188



WWW
« Reply #186 on: December 12, 2009, 04:52:12 PM »

yes registered users can edit and renew ads where as guests cannot.
Logged

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

Offline Offline

Posts: 188



WWW
« Reply #187 on: December 13, 2009, 06:37:04 AM »

Update - version 1.1 test files posted above.  If everything works fine I'll write an upgrade file and upload only the modified files and the upgrade script.  I have found no bugs in my testing but i am sure there are some things I have missed.

Mike.
Logged

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

Offline Offline

Posts: 225



« Reply #188 on: December 13, 2009, 10:51:05 AM »

I'm posting translation to the Russian language. I guess it has some mistakes in it, but it's better than nothing  wink

http://leondrive.co.il/RU.zip
Logged
Availor

Offline Offline

Posts: 225



« Reply #189 on: December 13, 2009, 10:53:31 AM »

Forgot I can attach a file
Logged
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #190 on: December 15, 2009, 03:06:28 AM »

New files posted above.  Now includes upgrade.php file to upgrade from 1.0 to 1.1 and Russian language file.
Logged

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

Offline Offline

Posts: 232



WWW
« Reply #191 on: December 29, 2009, 10:24:25 AM »

Ad Baker version 1.1 – Stable

This ‘page type’ module for WebsiteBaker 2.8x will allow admins and registered users to post free classified ads in a variety of categories/subcategories in nay type of currency created by the admin and set by the user when the ad is created.



Are there instructions for implementing this somewhere?
Is there an example of a site that uses it?
Is there a frontend frontend?
What access does a "Registered User" have to have?
« Last Edit: December 29, 2009, 10:32:56 AM by PurpleEdge » Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #192 on: December 29, 2009, 10:33:29 AM »

Ad Baker version 1.1 – Stable

This ‘page type’ module for WebsiteBaker 2.8x will allow admins and registered users to post free classified ads in a variety of categories/subcategories in nay type of currency created by the admin and set by the user when the ad is created.



Are there instructions for implementing this somewhere?


Lol, no instructions, you just install it like every module, then add it to some page, then make categories and subcategories and you are ready to go Smiley
Logged

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

Offline Offline

Posts: 232



WWW
« Reply #193 on: December 29, 2009, 10:47:01 AM »

Thanks for that.

I initially had downloaded version 1.0 and couldn't see a frontend for it. 1.1 at least displays a frontend!

An example site would be nice smiley

What level of access do I need to give a registered user to allow them to place ads?
Logged
PurpleEdge

Offline Offline

Posts: 232



WWW
« Reply #194 on: December 29, 2009, 10:58:14 AM »

Version 1.1
1. MSSQL error for none registered user ad...

There was an internal error your request could not be competed at this time. Please try again later.

mysql_error: Column 'user_id' cannot be null

2. All images seem to be rejected as too large?

3. Any errors seem to clear, or set wrong option values, values entered previously in the form.

4. The sub-category chosen cannot be accessed via the edit option.
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #195 on: December 29, 2009, 11:11:05 AM »

Users only have to be registered, so no privileges to the backend (uncheck all Smiley )

You can set max picture size at upload in backend settings of module.

Not sure about other errors, but you can uninstall that, and install latest version..

cheers
Logged

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

Offline Offline

Posts: 232



WWW
« Reply #196 on: December 29, 2009, 11:54:20 AM »

The version downloaded from here...

http://www.websitebakers.com/pages/modules/listings/various/adbaker.php

is version 1.0

I downloaded 1.1 from the forum.

That is the version that is giving the errors. I can't upload any images regardless of size settings. I can't insert an ad while not logged in.

Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #197 on: December 29, 2009, 11:56:19 AM »

I dont know about images, but only registered users can place ad. If you want all visitors to post an ad, there is a solution in posts above.
Logged

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

Offline Offline

Posts: 232



WWW
« Reply #198 on: December 29, 2009, 12:01:53 PM »

1.1 allows non-registered users to place ads

Further details..

I can insert ads when logged in as a registered user.

I can upload images when editing, not when creating the ad.

Editing an ad clears the subcategory of the ad and doesn't allow selecting a subcategory, so the ad gets placed in the parent category.
« Last Edit: December 29, 2009, 12:27:56 PM by PurpleEdge » Logged
mahalleday

Offline Offline

Posts: 188



WWW
« Reply #199 on: December 29, 2009, 04:01:51 PM »

Sorry, I have been busy/away pover the holidays.   version 1.1.1 is in first post.  It should address all issues found in 1.1.  It can also be found @ ASAMP.

Mike
Logged

AdBaker2 Project Site: http://code.google.com/p/adbaker/
Pages: 1 ... 6 7 [8] 9 10 ... 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!