Register  It's Free! Monday,   September  6,   2010
User Name Password
  Downloads   Modules

Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
8 user(s) are online (7 user(s) are browsing Forum)

Members: 0
Guests: 8

more...
Please Read This
All my modules require users to be registered to add listings or to reply to a listing.
There are parts that NEED a user ID. to work properly.

All reputable websites DO NOT allow anonymous users to add anything, even on the
Xoops site you need to be registered, there are many reasons for this.

You may be able to hack the module to work with non registered users, it will probably not be easy, and I do not support this. I'm sorry but thats the way it is.

Browsing this Thread:   1 Anonymous Users





Found bug, delete Classifieds works not
Not too shy to talk
Joined:
3/23 8:20
Posts: 35
Offline
Hello John,

i work with the Classifieds Version 2.5, i would delete a Classified over the delete button, but this works not.

I Klick of the Delete Button and he change in the Edit Modus.

the modify.php has a Problem, in the old Classifieds Version works this fine.

You can help me. Thanks


Posted on: 7/13 6:14
Transfer the post to other applications Transfer


Re: Found bug, delete Classifieds works not
Webmaster
Joined:
2004/10/6 16:13
Posts: 927
Offline

go to viewad.php around line 192 find this line:

$xoopsTpl->assign('modify', "<a href="modify.php?op=ModAd&amp;lid=".addslashes($lid).""><img src="images/modif.gif" border=0 alt="".constant($main_lang."_MODIFANN")."" /></a>&nbsp;<a href="modify.php?op=ListingDel&amp;lid=".addslashes($lid).""><img src="images/del.gif" border=0 alt="".constant($main_lang."_SUPPRANN")."" /></a>");


change it to:


$xoopsTpl->assign('modify', "<a href="modify.php?op=ModAd&amp;lid=".addslashes($lid).""><img src="images/modif.gif" border=0 alt="".constant($main_lang."_MODIFANN")."" /></a>&nbsp;<a href="dellisting.php?lid=".addslashes($lid).""><img src="images/del.gif" border=0 alt="".constant($main_lang."_SUPPRANN")."" /></a>");

The only change above is:

<a href="modify.php?op=ListingDel&amp;lid=".addslashes($lid)."">

to

<a href="dellisting.php?lid=".addslashes($lid)."">


That should fix it.


John

Posted on: 7/13 8:25
Transfer the post to other applications Transfer


Re: Found bug, delete Classifieds works not
Not too shy to talk
Joined:
3/23 8:20
Posts: 35
Offline
Hello John,

this works not, when i push the button for delete, than comes a white site.

the classifieds is not delete.

Posted on: 7/13 12:39
Transfer the post to other applications Transfer


Re: Found bug, delete Classifieds works not
Webmaster
Joined:
2004/10/6 16:13
Posts: 927
Offline
Are you sure you copy and pasted the right line?

I made that change and it worked fine.

With php debug on are you getting any errors, or queries that didn't work(in red)?

You should get a page asking if you are sure you want to delete it.


John

Posted on: 7/13 13:34
Transfer the post to other applications Transfer


Re: Found bug, delete Classifieds works not
Webmaster
Joined:
2004/10/6 16:13
Posts: 927
Offline
O.K. found the other problem you are having.
go to the file dellisting.php around line 36 and find this line:

include(XOOPS_ROOT_PATH."/header.php");

BEFORE it add these lines:

$lid = (intval($_GET['lid']));
$ok = isset($_GET['ok']) ? intval($_GET['ok']) : 0;

That really should be it. Let me know what happens.

Thanks,

John

Posted on: 7/13 15:19
Transfer the post to other applications Transfer


Re: Found bug, delete Classifieds works not
Not too shy to talk
Joined:
3/23 8:20
Posts: 35
Offline
yes, this was the problem, John you are my friend

classifieds delete works now very fine , thanks

greet host2

P.S: please update this bugs in you RC 2.5 FINAL Thanks

Posted on: 7/13 15:32
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Donat-O-Meter
Make donations with PayPal!

Donations
Waiting Contents Ext
System Downloads Forum Alumni Job Listings Garages classifieds
Weather
Southington
Conditions as of
17 minutes ago


partly cloudy
Temp: 79 °F ↑
Feels like: 78 °F ↑
Rel hum: 28 % ↓
Wind increasing
SW at 11.5 mph
Gusts 19.6 mph
view forecast
jlmzone © 2010
Powered by XOOPS 2.4.4