Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Need plugin to set change db records

 
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial)
View previous topic :: View next topic  
Author Message
poppersmarty
Smarty Rookie


Joined: 27 Nov 2010
Posts: 6

PostPosted: Thu Jan 31, 2013 2:47 am    Post subject: Need plugin to set change db records Reply with quote

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
Very Happy
Back to top
View user's profile Send private message
albertdiones
Smarty n00b


Joined: 16 Jan 2013
Posts: 3

PostPosted: Mon Feb 04, 2013 2:44 am    Post subject: Reply with quote

What kind of changes does it make on the database? last read date? views count?
Back to top
View user's profile Send private message
poppersmarty
Smarty Rookie


Joined: 27 Nov 2010
Posts: 6

PostPosted: Mon Feb 04, 2013 6:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial) All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP