Browsing this Thread:   1 Anonymous Users






Re: Found bug, delete Classifieds works not
#6
Quite a regular
Quite a regular


See User information
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: 2010/7/13 15:32
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Found bug, delete Classifieds works not
#5
Webmaster
Webmaster


See User information
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: 2010/7/13 15:19
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Found bug, delete Classifieds works not
#4
Webmaster
Webmaster


See User information
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: 2010/7/13 13:34
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Found bug, delete Classifieds works not
#3
Quite a regular
Quite a regular


See User information
Hello John,

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

the classifieds is not delete.

Posted on: 2010/7/13 12:39
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Found bug, delete Classifieds works not
#2
Webmaster
Webmaster


See User information

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

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

to

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


That should fix it.


John

Posted on: 2010/7/13 8:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Found bug, delete Classifieds works not
#1
Quite a regular
Quite a regular


See User information
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: 2010/7/13 6:14
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top







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.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

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

Members: 0
Guests: 4

more...
 
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: $25.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $25.00