Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 10:00 am EDT

Geeklog Forums

Updated version of Classified Ads plugin

Page navigation


Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

An updated version of the plugin for Classified Ads (see earlier story) is now available for download. New features in this version are:

  • Registered users of a Geeklog site don't need to fill in their name and email address any more. Instead, the plugin uses the username automatically and links to Geeklog's built-in email form (so that the email address is not visible on the site).
  • It is possible to restrict access to the classifieds to registered users only.
  • A PHP block is included which can be used to display new adds on the frontpage of your site.

A demo of the plugin is available at http://geeklog.info/ (last block in the right column). Feel free to test it out.

bye, Dirk

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

Yes, thank you to those who tried it out - I got the message: I need to stick in some wordwrap calls here and there ... ;-)

bye, Dirk

 Quote

Status: offline

epretorious

Forum User
Junior
Registered: 07/02/02
Posts: 26
PLEASE HELP: I'm experiencing MAJOR problems with Classifads-0.2. (/classifads/index.php just barfs all over the page!) * I followed the installation instructions. I even commented-out the include_once() statement in classifads.cfg! (That's not in the instructions.) * The admin interface works just fine. I've left the file in it's location, just in-case anyone would like to see what's happening: http://www.fun4wda.com/classifads/index.php Thanks in advance Eric P.
Eric P.
Sunnyvale, CA
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
My guess is that your host does not have the short_open_tag option (in php.ini) enabled. If you can't change that yourself, replace all occurences of <? with <?php and see if that helps. I'll make sure future versions of the plugin don't use the short tags any more. bye, Dirk
 Quote

Status: offline

epretorious

Forum User
Junior
Registered: 07/02/02
Posts: 26
Dirk: Short tags are enabled. (If they weren't, the script would have bombed much earlier than at "$cat $LANG_CLADS[adsection]..."Wink I have root access to the server. (The server is my own.) If there's anything that I need to change, I can do it. Just tell me. Eric P.
Eric P.
Sunnyvale, CA
 Quote

Status: offline

epretorious

Forum User
Junior
Registered: 07/02/02
Posts: 26
Dirk was right: My PHP configurations (short_open_tags = Off) were partly to blame. The first block of PHP code in /classifads/index.php begin with the long open tag "<?php" but the rest start with the short tag "<?". I changed the openning tags (from "<?" to "<?php"Wink and everything works fine now. Thanks, Dirk!
Eric P.
Sunnyvale, CA
 Quote

Status: offline

enigmah

Forum User
Chatty
Registered: 07/22/02
Posts: 50
I have installed classified ads on my website: http://www.roughlife.com/portal/public_html/classifads/index.php The problem is the ads are all editable by any users, where did I go wrong? Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
(I get an "error selecting database" when I go to your site) How did you test that all users can edit the ads? If you used the same browser to log in as another user, then that is the explanation. The Classifads plugin uses a cookie to remember who submitted an ad. So if you log in as another user from the same browser, that cookie is still there and you can edit the ad. I'm working on a new version of that plugin which uses a different approach. It will not use cookies any more but use the user registration provided by Geeklog. I.e. registered users will be allowed to edit their own ads (regardles from where they log in) and anonymous users will not be able to edit their ads at all. bye, Dirk
 Quote

Status: offline

enigmah

Forum User
Chatty
Registered: 07/22/02
Posts: 50
Hi Dirk, I disable the plugin on my site. I think your idea is good and I look forward to see the new version. Meanwhile I am using phpclassified ads. Thanks, enig
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

I received a couple of questions regarding this plugin over the last weeks, so I'd like to point out that an updated version 0.3 is available from geeklog.info.

That version features a tighter integration into Geeklog and it doesn't rely on cookies any more. It's still flagged as being a beta version, but that is mainly due to the fact that it doesn't offer an upgrade path from version 0.2 yet.

So if you're planning to install this plugin, I'd suggest you start with version 0.3. If you're already running version 0.2, then I'm afraid the only way to upgrade is to uninstall 0.2 (thus losing all your current ads!) and doing a fresh install of version 0.3.

bye, Dirk

 Quote

Anonymous

Anonymous
Where can I see this plug-in in action?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

You can see and test it on http://project.geeklog.net/~dhaun/

bye, Dirk

 Quote

Anonymous

Anonymous
Can this plugin be made to display ALL ads (in addition to each category)? Also, what kind of administration is available? For example, are expired ads automatically deleted?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
There is currently no way to display all ads (other than doing a search). Expired ads are deleted automatically. The (Classifads)Admin can edit and/or delete any ads. bye, Dirk
 Quote

Status: offline

dgrosvold

Forum User
Newbie
Registered: 06/05/03
Posts: 8
Dirk:

Just finished installing your new classifieds update. I happened to notice a spelling error in english.php. The entry for loginrequiredblock has the word members spelled as membeers. Just thought you\'d like to know. We appreciate the effort you\'ve expended to bring this plugin to us. It\'s one of the first things the users on my site asked for. Thanks. Big Grin


Dave Grosvold - Greenwood, AR
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by dgrosvold:The entry for loginrequiredblock has the word members spelled as membeers.
Oops. Thanks for spotting that. bye, Dirk
 Quote

Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
i didn't read so well all of this thread and i installed version 0.2
i tested it out
it's working ... kinda ... ql

before i uninstall 0.2 and install 0.3
(instead of zclassifieds as i remember ...)

i have a q
is tehere a way, that i can display those ads in ... lets say static page?
how?
is there a 'skin' for those ads?
i noticed that original script had been using template
i see a dir with templates in this distrib too ...
but ...
displaying ads just in a block ... that's too small for me

i would like to put together something like this
http://www.najdi.si/oglasna-deska/
wrapped in a geeklog ... preferably ...

any sugestions?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Okay, first of all: I've given up development of this plugin. Anyone wanting to pick it up feel free to do so. The latest version (that should be 0.3 - can't even remember ...) can be found in the GPlugs CVS, here.

Quote by gape: is tehere a way, that i can display those ads in ... lets say static page?

If you go to http://example.com/classifads/ you should see all the ads.

bye, Dirk
 Quote

Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
Quote by Dirk: Okay, first of all: I've given up development of this plugin. Anyone wanting to pick it up feel free to do so. The latest version (that should be 0.3 - can't even remember ...) can be found in the GPlugs CVS, here.

Quote by gape: is tehere a way, that i can display those ads in ... lets say static page?

If you go to http://example.com/classifads/ you should see all the ads.

bye, Dirk


aha
so if i want to change things (i.e. layout) i just change them in classifads/index.php

i suppose


do you think i should use another engine, for ads?
i find this one pretty simple ... exactly what i need ... no fancy stuff ... have to upgrade & finish it to see if this is it, but it looks like it ...

i mean ... you are using it ... is it working on production sites without problems?


one more thing
how do i get Classified ads out of the menu that is displayed by some skins?
i supose here somewhere
{menu_elements}{plg_menu_elements}
but
where is their list of elements generated?
i know about the statis pages - the label thingy ...

tnx in advance ...

gape
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by gape: do you think i should use another engine, for ads?
i find this one pretty simple ... exactly what i need

If it does what you want, why not use it? It won't suddenly stop working just because it's old ...


Quote by gape: how do i get Classified ads out of the menu that is displayed by some skins?

The functions.php has a function called plugin_getmenuitems_classifads. Just remove that function or comment it out.

bye, Dirk
 Quote

Page navigation

All times are EDT. The time is now 10:00 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content