|ssb| Gain different points in different forums(IBShop v1.25)
|ssb| Gain different points in different forums(IBShop v1.25), User Contributed Files |
|
|||||||||||||||||||||||||||||||||||||||||
| December 15 2003, 11:17 PM | |
|---|---|
| by bordeglobal |
Good idea!
|
| December 15 2003, 11:05 PM | |
| by DataHacker |
Oh no...more PHP! I think I'll just restore my backup fiels.
|
| December 10 2003, 01:30 AM | |
| by bordeglobal |
Make sure you did not forget to add somehing during your edit and /or edit in the wrong place.
|
| December 9 2003, 10:25 PM | |
| by DataHacker |
Whenever I go to Forum Control, it says:
QUOTE Parse error: parse error, expecting `')'' in /home/linksbro/public_html/forums/sources/Admin/ad_forums.php on line 1101
|
| December 6 2003, 02:16 PM | |
| by bordeglobal |
Yes, I agree, I had a hard time figuring that out too lol
|
| December 6 2003, 02:09 PM | |
| by Ken aka Batman |
I think for less confusion, the ACP text should be changed to;
"Do you wish to use default points?" or something to that effect. With it being yes, you just assume like with other options that you wish to use this feature. Of course, I'm tired, so it took awhile to click and me to underand what it was asking.......lol |
| December 6 2003, 01:50 PM | |
| by bordeglobal |
This is a great mod!
|
| December 6 2003, 11:25 AM | |
| by Ken aka Batman |
All fixed...............works good so far
|
| December 6 2003, 10:51 AM | |
| by Ken aka Batman |
I've verified the DB tables are there, and that the settings are saved, so I'm lost.........lol
|
| December 6 2003, 09:58 AM | |
| by Ken aka Batman |
Here is my core_postroutine.php to see if I did a typo....
Thanks CODE <?php
# [VERSION=v1.1.E1050846263] ######################################################################## //----------------------------------------------------- // (>) IBShop v1.24 Beta // Copyright 2003 TomH, Searchlight [rights only] (pray4snow2@aol.com) //----------------------------------------------------- global $ibforums; if ($class->forum['inc_postcount']) { // get the post, remove quotes and whitespace $temp = trim(preg_replace( "#(\[quote(.+?)?\].*\[/quote\])#ies" , "" , $ibforums->input["Post"] )); $temp = str_replace(" ", " ", $temp); // work out how many posts we have after this type of post $DB->query("SELECT f.newreply, f.newtopic, f.id, t.forum_id FROM ibf_forums f, ibf_topics t WHERE '".$class->forum['id']."'=f.id"); $new = $DB->fetch_row(); if ($new[$type] != "0.00000") { $addpoints = $new[$type] + $ibforums->member["points"]; } else { $addpoints = $ibforums->vars["shop_" . $type] + $ibforums->member["points"]; } // do we get any extra points for posting over the frequency? ? you get shop_extramoney per shop_extrafrequency of words $number_of_words = count(explode(" ",$temp)); // needs work, but who's going to notice :p $extra_money = floor($number_of_words / $ibforums->vars["shop_extrafrequency"]) * $ibforums->vars["shop_extramoney"]; $addpoints += $extra_money; // create query insert $DB->query("SELECT f.nopoint, f.id, t.forum_id FROM ibf_forums f, ibf_topics t WHERE '".$class->forum['id']."'=f.id"); $new = $DB->fetch_row(); if ($new[nopoint] != 0) { $points = "points = {$ibforums->member["points"]},"; } else { $points = "points = {$addpoints},"; } // return } ?> |