|
Ultimate Points and THT Intergration
|
|
05-18-2010, 09:37 PM
Post: #1
|
|||
|
|||
|
Ultimate Points and THT Intergration
Hello, im having trouble figuring this out. I have a mod in phpBB called Ultimate Points, and I want to intergrate it with THT. I found this little snippet of code in the p2h.php and im wondering, how do I replace posts with points.
The snippet: PHP Code: case "phpbb":And the sql table for the counting of the points is in the users table. Can anyone make edits. |
|||
|
05-18-2010, 09:44 PM
Post: #2
|
|||
|
|||
|
RE: Ultimate Points and THT Intergration
This would require modification in quite a few places but here you would essentially cut out all the stuff where you check the month. Since it's points, it doesn't really matter what month those points were made in. Make sure you check to see if there are enough points and then subtract them, depending on what you're calling for.
Kevin Mark - TheHostingTool Lead Developer |
|||
|
05-18-2010, 09:47 PM
(This post was last modified: 05-18-2010 09:47 PM by Ruko.)
Post: #3
|
|||
|
|||
|
RE: Ultimate Points and THT Intergration
Hmm, im confused now, sorry but im a noob in PHP so I don't really know where to edit
|
|||
|
05-18-2010, 09:56 PM
Post: #4
|
|||
|
|||
RE: Ultimate Points and THT Intergration
(05-18-2010 09:47 PM)Ruko Wrote: Hmm, im confused now, sorry but im a noob in PHP so I don't really know where to edit You need to get the number of current points from the SQL query. Let's say you stored that in $points["has"] and the number of points you need is in $points["required"]. You could check to see if they had enough like so: PHP Code: if($points["has"] >= $points["needed"]) {Kevin Mark - TheHostingTool Lead Developer |
|||
|
05-18-2010, 10:04 PM
Post: #5
|
|||
|
|||
|
RE: Ultimate Points and THT Intergration
I wouldn't be able to give you any copy and paste code for you to use as I have no idea how your system works but the basic concept should be the same. The specifics, such as the exact SQL query will depend.
Kevin Mark - TheHostingTool Lead Developer |
|||
|
05-19-2010, 01:22 AM
Post: #6
|
|||
|
|||
|
RE: Ultimate Points and THT Intergration
Since this isn't a THT issue I moved this to a more appropriate area.
- KuJoe ▒ LvL8 ▒ The Free Web Hosting Guide ▒ FreeWebHostingTalk PM me for theme conversions @ $15! |
|||
|
05-19-2010, 03:38 AM
Post: #7
|
|||
|
|||
|
RE: Ultimate Points and THT Intergration
Basically. Change the SQL code to get the number from the points table. It'll work the exact same, just say posts on the script when it's really points.
Jonny H - THT Main Developer & Founder |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)




![[Image: standard.png]](http://twitstamp.com/kmark937/standard.png)
![[Image: standard.png]](http://twitstamp.com/thehostingtool/standard.png)
