Hi,

This is my first post here, I know I probably don't have the acceptance of the community yet or anything, but I really need help with this.

I payed someone to make a custom php website for me... it includes lots of things that I had requested. The only problem is, when we were discussing what to put in the forum I never told the guy that I would need the ability to sticky a thread.

What piece of code would I need to add to my script in order to make a thread sticky.

I will go ahead and post the whole code if it is needed... I guess that would be a good way to share my info for information in return. (the script is rather good)

I really only know the basics of php, so you will need to bare with me.

As far as I can see from your file, you'll need an extra column in f_topics (sticky), which you can use in the ORDER BY on line 169.

Then you will need to add a checkbox to a new post allowing it to be set as sticky.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.