|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
poppersmarty Smarty Rookie
Joined: 27 Nov 2010 Posts: 6
|
Posted: Thu Jan 31, 2013 2:47 am Post subject: Need plugin to set change db records |
|
|
I have a smarty based classified website.
I need a plug-in that I can call from various templates (2 each)
The plugin input is a listing.id, The function exist to call this .
then in the db listing table change a couple of records in that listing
We can skype so I can show you whats up.
If interested than I can give you the logic.
$50
|
|
Back to top |
|
albertdiones Smarty n00b
Joined: 16 Jan 2013 Posts: 3
|
Posted: Mon Feb 04, 2013 2:44 am Post subject: |
|
|
What kind of changes does it make on the database? last read date? views count? |
|
Back to top |
|
poppersmarty Smarty Rookie
Joined: 27 Nov 2010 Posts: 6
|
Posted: Mon Feb 04, 2013 6:55 pm Post subject: |
|
|
in the script;
When a listing is activated
then in the db listings table
in the row listing sid
change the col expiration_date to col dateto
also when the listing details are displayed
then in the db listing table
in the row listing sd
in the col active
if active =1
if the current date > than col expiration_date
set row active =0
{$listing.id} equal listing sid
The script is a 3rd party script, which i purchased.
putting this logic into the script is less desirable than using a plugin because ease of 3rd party upgrades. I do have full access to the script
from my cpanel. And I a pretty familiar to the file system. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|