Browsing this Thread:   1 Anonymous Users






Re: No expiration date !
#7
Quite a regular
Quite a regular


See User information
Thanks John, now apparently all right ! ! !


Posted on: 2011/5/31 11:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: No expiration date !
#6
Webmaster
Webmaster


See User information
I missed a bracket at the end.
it should be this:

go to addlisting.php around lines 331 to 336 and find these lines:

if ($premium_user == 1) {
$form->addElement(new XoopsFormText(constant($main_lang."_HOW_LONG"), "expire", 3, 3, $xoopsModuleConfig["".$mydirname."_howlong"]), true);
} else {
$form->addElement(new XoopsFormLabel(constant($main_lang."_WILL_LAST"), $xoopsModuleConfig["".$mydirname."_howlong"]));
$form->addElement(new XoopsFormHidden("expire",$xoopsModuleConfig["".$mydirname."_howlong"]), false);
}

change to:



$form->addElement(new XoopsFormHidden("expire",''), false);


for modify.php do the same thing around lines 272 to 279


That will remove the line from both addlisting and modify pages.


Hope that helps,

John

Posted on: 2011/5/24 11:20
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: No expiration date !
#5
Quite a regular
Quite a regular


See User information
Thanks John, delete all the lines and replace as you indicated in both files, when trying to add a ads I get this error ...:

Parse error: syntax error, unexpected T_ELSE in C:\Inetpub\vhosts\misitio.com\httpdocs\modules\classifieds\addlisting.php on line 376

with the first modification, that was not enough?

Quote:
But with that said, if you go to index.php around line 94 find this:

classifieds_ExpireAd();

comment it out like this:

// classifieds_ExpireAd();

that will stop all ads from being deleted



Posted on: 2011/5/23 1:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: No expiration date !
#4
Webmaster
Webmaster


See User information
O.K.

go to addlisting.php around lines 331 to 336 and find these lines:

if ($premium_user == 1) {
$form->addElement(new XoopsFormText(constant($main_lang."_HOW_LONG"), "expire", 3, 3, $xoopsModuleConfig["".$mydirname."_howlong"]), true);
} else {
$form->addElement(new XoopsFormLabel(constant($main_lang."_WILL_LAST"), $xoopsModuleConfig["".$mydirname."_howlong"]));
$form->addElement(new XoopsFormHidden("expire",$xoopsModuleConfig["".$mydirname."_howlong"]);


change to:




$form->addElement(new XoopsFormHidden("expire",''), false);



for modify.php do the same thing around lines 272 to 279



That will remove the line from both addlisting and modify pages.


Hope that helps,

John

Posted on: 2011/5/22 8:35
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: No expiration date !
#3
Quite a regular
Quite a regular


See User information
Quote:
I get asked that alot, but I don't understand. Why anyone would a webmaster want the exact same classified ad on their site for more than 3 years? I don't think users would want to see the same thing when they come to a site.


well, it's true, but believe it or not, I'm using this module for a product catalog, which is why I do not want the products have expired, but if that can delete or modify.

with this modification, At the option "Days listing will last." leave it blank?

Thanks...

Posted on: 2011/5/21 19:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: No expiration date !
#2
Webmaster
Webmaster


See User information

you wrote:

Quote:
there is the possibility to publish articles and have no expiration date?


The word articles confuses me, you must mean ads.

I get asked that alot, but I don't understand. Why anyone would a webmaster want the exact same classified ad on their site for more than 3 years? I don't think users would want to see the same thing when they come to a site.

But with that said, if you go to index.php around line 94 find this:

classifieds_ExpireAd();

comment it out like this:

// classifieds_ExpireAd();

that will stop all ads from being deleted


I will never release this module with out that line in it, but I do plan on changing it so instead of being deleted, it gets set as inactive after so long and then deleted after so long.


John




Posted on: 2011/5/21 10:18
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


No expiration date !
#1
Quite a regular
Quite a regular


See User information
Hi John, there is the possibility to publish articles and have no expiration date? is it possible? You can change any line for this?
At the option "Days listing will last." accepts only 999 days maximum.

Thanks!

Posted on: 2011/5/21 2:31
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
5 user(s) are online (4 user(s) are browsing Forum)

Members: 0
Guests: 5

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