Jump to content

[SOLVED] Having the Server Run a PHP Script


mikesta707

Recommended Posts

Hello everyone. So i created my own discussion board from scratch (its similar to the wakaba image board, but without images.) and it works perfectly! Pretty much exactly like I want, but as it currently stands, there is no way to "bump" a topic, or to cleanse the board (IE start deleting posts once there are too many)

 

Now, I have an idea of what I want to do for bumping a topic. probably something along the lines of having a rank column in the mysql table, and when ever someone posts something, or makes a reply, all the ranks of the topics in the table get changed. Can anyone suggest a better way to do this? if not than thats ok

 

Now the problem I have is cleansing the board. Ideally, I want the server to execute a script, probably once every hour/day or so, which checks how many entries there are, and deletes the ones that have the lowest rank (or.. well highest rank). I want this to be automated, so that I dont have to run the script every time I want this to happen. Is this possible?

I am sure my opinion, if a post does not get a an saw then deleting it, is not a good way of getting good seo ranking.

 

what about just not showing it, as a live post, but keeping it for seo purpose

 

traffic i say wins..

 

I think if you show all posts from now(), and don't show the post aft her a set time , i recommend 1 month, then if Google index it, they will still see it from Google, even Theo your not showing it as a live replied post.

Have your "table" sort by date of last post as far as "bumps" go.

 

As far as cleansing, a cron job would be in order.

 

awesome thank you so much, that is an amazing idea

 

now as far as this Cron job thing goes, what exactly is it? is it a specific function, or should I google it to get a good tutorial on it?

 

thanks in advanced!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.