Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Point system

Parašė POVYLAZZZ· 2007 Spa. 3 19:10:51
#1

man reik tasku sistemos (modo) kuri uz staripsniu rasima ir siuntiniu dejima duotu taskus ir tuos taskus rasytu i db, dar butu, gerai, kad kokiai loterji butu.

Parašė ramon· 2007 Spa. 3 19:10:43
#2

1.Variantas (Siųstis)
2.Variantas (Siųstis)

Parašė POVYLAZZZ· 2007 Spa. 4 12:10:10
#3

abudu variantus bandziau vienas bugovas, kitas neduoda tasku uz straipsnius

Parašė POVYLAZZZ· 2007 Spa. 5 18:10:46
#4

e nu zmones padekit man lb reik plz...

Parašė MAnjack· 2007 Spa. 5 19:10:15
#5

Nefloodink, netrinsiu aš tų tavo flood postų, nenorėk ban :|

Parašė POVYLAZZZ· 2007 Spa. 5 21:10:43
#6

nu tai aciu uz pagalba :[ spratau taip: varik nuo musu galvos uzknisai ir isviso ko lankaisi sitam saite??? zn kad rizikuoju uzsidirbt kaip min kad sita tema istrintu, bet ji ner lb vertinga :D kaip max kad gausiu ban nu jei geriausias patarimas kuri galiu gaut pasidarik pats tai ne taip ir blogai... cia neskaitant ramon jis bent bande padet...

Parašė ozzWANTED· 2007 Spa. 5 21:10:08
#7

Eini į www.starglowone.com ir atsisiunti "User Gold" modą. Ten duos taškus už ką tik panorėsi ir viską į DB rašys. Pilna instaliavimo instrukcija yra to saito forume.

P.S. Čia demokratinis portalas, tad tokių dalykų kaip asmeniškumai nėra - t.y. temų rakinimas ir/ar bananai.

Parašė Ptycka· 2007 Spa. 5 21:10:56
#8

o blyn ozz priminiai ta saita buvau visiskai pametes is galvos ji...dekuj rakinkyt tema !

Parašė ozzWANTED· 2007 Spa. 5 21:10:22
#9

Visų pirmą - ne tu esi temos autorius. Visų antrą - gal užteks tamstai nurodinėti ką rakinti, o ką ne? Ir tai palikti spręsti moderatoriams, ok?

Parašė Ptycka· 2007 Spa. 5 21:10:35
#10

Kai pasakysi dievo desnioji ranka...

Parašė POVYLAZZZ· 2007 Spa. 6 16:10:37
#11

ozzWANTED parašė:
Eini į www.starglowone.com ir atsisiunti "User Gold" modą. Ten duos taškus už ką tik panorėsi ir viską į DB rašys. Pilna instaliavimo instrukcija yra to saito forume.

P.S. Čia demokratinis portalas, tad tokių dalykų kaip asmeniškumai nėra - t.y. temų rakinimas ir/ar bananai.


pataisa ne uz ka as tik panoresi, bet uz visa imanoma veikla forume uz joki siuntiniu dejima nuorodu rasima ir t.t. negausi nei tasko....

P.S. temos as nerankinciau ne uz ka nes jei reik to linko tai ji ne forume laikit reik o i nuorodu skilti det yra toks linkas "pateikti nuoroda" (cia kad nekiltu durnu klausimu :] )

Redagavo POVYLAZZZ· 2007 Spa. 6 16:10:38

Parašė JLS· 2007 Spa. 6 19:10:44
#12

va priseksiu ash tau ta moda kurio trbt nori tik reiks paciam redaguoti kad uz posta gautu tasku tame faile bus taisykes kaip viska raik pasidaryti ne tik uz posta uz balsavima apklausoj r t.t

Redagavo JLS· 2007 Spa. 6 19:10:15

Parašė POVYLAZZZ· 2007 Spa. 7 13:10:04
#13

kar toju dar katar man nereik to modo kur u postinima ar balsavima forume duoda taskus man reik modo kuris duoda taskus uz siuntiniu, nuorodu ir straipsniu dejimas

Parašė JLS· 2007 Spa. 7 14:10:43
#14

ai tokio nlb zinau :| tiksliau niekur kolkas nemaciau :D

Parašė ozzWANTED· 2007 Spa. 7 14:10:13
#15

POVYLAZZZ parašė:
pataisa ne uz ka as tik panoresi, bet uz visa imanoma veikla forume uz joki siuntiniu dejima nuorodu rasima ir t.t. negausi nei tasko....

Tau kas nors į akį kirto, ar šiaip pituchu apsimeti. Jeigu pasakiau kad už visą įmanoma veiklą, tai reiškias taip ir yra. Jeigu lama nemoki modo įsiinstaliuti, tai jau tavo problemos. 80Lt ir per 3 min padarau kad tau net nors ir smaukymąsi mokėtų....

Kas tada čia blt:
Pay for submissions after admin approval.

#The first thing that is required is to add this line to your maincore.php
#It can be the last thing before ? > if you like but it must be there somewhere

##Required Code Line!!!

//start usergold addon
include_once INFUSIONS.'user_gold_panel/functions.php';
//end usergold addon


#Making the following alterations to administration/submissions.php will award GP on aproval of submissions.

##About line 98 find

$result = dbquery("INSERT INTO ".$db_prefix."weblinks (weblink_name, weblink_description, weblink_url, weblink_cat, weblink_datestamp, weblink_count) VALUES ('$link_name', '$link_description', '$link_url', '".$_POST['link_category']."', '".time()."', '0')");




#Change to:
$result = dbquery("INSERT INTO ".$db_prefix."weblinks (weblink_name, weblink_description, weblink_url, weblink_cat, weblink_datestamp, weblink_count) VALUES ('$link_name', '$link_description', '$link_url', '".$_POST['link_category']."', '".time()."', '0')");
//Start usergold addon
$pay_user_name = dbquery("SELECT 'user_name' FROM ".$db_prefix."users WHERE user_id='".$pay_user_id."'");
paygold($pay_user_name,$pay_user_id,10);
//end usergold addon




##Find about line 161
<input type='submit' name='add' value='".$locale['448']."' class='button'>
<input type='submit' name='delete' value='".$locale['449']."' class='button'></center>




#Change to:
<input type='hidden' name='pay_user_id' value='".$data['user_id']."'>
<input type='submit' name='add' value='".$locale['448']."' class='button'>
<input type='submit' name='delete' value='".$locale['449']."' class='button'></center>[/color]





##find @ line 178

$result = dbquery("INSERT INTO ".$db_prefix."news (news_subject, news_cat, news_news, news_extended, news_breaks, news_name, news_datestamp, news_start, news_end, news_visibility, news_reads, news_allow_comments, news_allow_ratings) VALUES ('$news_subject', '$news_cat', '$news_body', '', '$news_breaks', '".$data['user_id']."', '".time()."', '0', '0', '0', '0', '1', '1')");




#Change to:
$result = dbquery("INSERT INTO ".$db_prefix."news (news_subject, news_cat, news_news, news_extended, news_breaks, news_name, news_datestamp, news_start, news_end, news_visibility, news_reads, news_allow_comments, news_allow_ratings) VALUES ('$news_subject', '$news_cat', '$news_body', '', '$news_breaks', '".$data['user_id']."', '".time()."', '0', '0', '0', '0', '1', '1')");
//Start usergold addon
paygold($data['user_name'],$data['user_id'],10);
//end usergold addon





##at line 257 find

$result = dbquery("INSERT INTO ".$db_prefix."articles (article_cat, article_subject, article_snippet, article_article, article_breaks, article_name, article_datestamp, article_reads, article_allow_comments, article_allow_ratings) VALUES ('$article_cat', '$article_subject', '$article_snippet', '$article_body', '$article_breaks', '".$data['user_id']."', '".time()."', '0', '1', '1')");




#Change to:
$result = dbquery("INSERT INTO ".$db_prefix."articles (article_cat, article_subject, article_snippet, article_article, article_breaks, article_name, article_datestamp, article_reads, article_allow_comments, article_allow_ratings) VALUES ('$article_cat', '$article_subject', '$article_snippet', '$article_body', '$article_breaks', '".$data['user_id']."', '".time()."', '0', '1', '1')");
//Start usergold addon
paygold($data['user_name'],$data['user_id'],10);
//end usergold addon




##at line 356 find

$result = dbquery("INSERT INTO ".$db_prefix."photos (album_id, photo_title, photo_description, photo_filename, photo_thumb1, photo_thumb2, photo_datestamp, photo_user, photo_views, photo_order, photo_allow_comments, photo_allow_ratings) VALUES ('$album_id', '$photo_title', '$photo_description', '$photo_file', '$photo_thumb1', '$photo_thumb2', '".time()."', '".$data['submit_user']."', '0', '$photo_order', '1', '1')");




#Change to:
$result = dbquery("INSERT INTO ".$db_prefix."photos (album_id, photo_title, photo_description, photo_filename, photo_thumb1, photo_thumb2, photo_datestamp, photo_user, photo_views, photo_order, photo_allow_comments, photo_allow_ratings) VALUES ('$album_id', '$photo_title', '$photo_description', '$photo_file', '$photo_thumb1', '$photo_thumb2', '".time()."', '".$data['submit_user']."', '0', '$photo_order', '1', '1')");
//Start usergold addon
paygold($data['user_name'],$data['user_id'],10);
//end usergold addon

Redagavo ozzWANTED· 2007 Spa. 7 14:10:50

Parašė POVYLAZZZ· 2007 Spa. 7 19:10:00
#16

ozzWANTED parašė:
POVYLAZZZ parašė:
pataisa ne uz ka as tik panoresi, bet uz visa imanoma veikla forume uz joki siuntiniu dejima nuorodu rasima ir t.t. negausi nei tasko....

Tau kas nors į akį kirto, ar šiaip pituchu apsimeti. Jeigu pasakiau kad už visą įmanoma veiklą, tai reiškias taip ir yra. Jeigu lama nemoki modo įsiinstaliuti, tai jau tavo problemos. 80Lt ir per 3 min padarau kad tau net nors ir smaukymąsi mokėtų....

Kas tada čia blt:
<...>


pirmas variantas man buvo kazkas i aki ikrite... nu ir is anglu kalbos ne desimtukais mokausi :D kai ziurejau zodyne kas tas "submissions" kai ji pirma kart ziurejau to goldo forume paziurjau i sitas eilutes:
submission [sā€¦bā€¹m&#136;&#140;n] n

1 pasidavimas, nusileidimas, nusilenkimas; paklusimas;

to frighten smb into submission bauginimais priversti ką nusileisti

2 paklusnumas, nuolankumas;

o db paziejau viska:
submission [sā€¦bā€¹m&#136;&#140;n] n

1 pasidavimas, nusileidimas, nusilenkimas; paklusimas;

to frighten smb into submission bauginimais priversti ką nusileisti

2 paklusnumas, nuolankumas;

with all due submission su didžia pagarba ir nusižeminimu

3 pateikimas (dokumentų, skundo ir pan.)

4 teis. atidavimas svarstyti; sutikimas atiduoti ginčą į arbitražą; pareiškimas

Ā² in my submission mano manymu

vistiek thx kad atkreipiai demesi ;)

edit:
turiu tokia problemele... matot as naudoju modifikuota user panel ir db kai irasau sita:
//display the result
echo "<img src='".THEME."images/bullet.gif'> PinigĀø: <b>$userpoints[points_total]</b><br>";



man tada rodo tik "pinigu" ir poto nerodo kiek galit padet??? vo mano user panel failas
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright Ā© 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."user_info_panel/locale/English.php";
}

if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   if ($msg_count) echo "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><img border='0' alt='".$locale['on108'].$userdata['user_name']."' title='".$locale['on108'].$userdata['user_name']."' src='".BASEDIR."infusions/user_info_panel/images/newpm.gif'></a></b></center><br>\n";

   echo"<center><b>".$userdata['user_name']."</b>, ".$locale['on129']."<br>[<b>";
   echo"<a href='".BASEDIR."messages.php?folder=inbox' class='side'>";
   //echo dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_folder='0'");
   echo "".sprintf($locale['on132'], $msg_count).($msg_count == 1 ? $locale['on134'] : $locale['on135'])."</a></b>] ".$locale['on130']."";


   // Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
   $limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
   $limit_inbox = $limit['pm_inbox'];

   // Set display of top bar
   if ($limit_inbox != "0") { $inbox_display = " <span class='small'>".$locale['on133']." [<b>".$limit_inbox."</b>]</span>"; } else { $inbox_display = " (".$cnt_inbox.")"; }
   echo " <b><a href='".BASEDIR."messages.php?folder=inbox'>".$locale['on131']."</a></b>, <b>".$inbox_display."</b></center>";

   // popup on new PM mod by Ragsman
   if (!isset($_COOKIE['fusion_privmessages'])) {
   $_COOKIE['fusion_privmessages']=0;}
   if ($_COOKIE['fusion_privmessages'] > $msg_count){
   $cookievalue=$msg_count;
   setcookie("fusion_privmessages", "$cookievalue", time() + 3600, "/", "", "0");
}
   if ($_COOKIE['fusion_privmessages'] < $msg_count){
   echo "<script>window.open('".BASEDIR."privmessages.php','PrivateMessages','toolbar=0,scrollbars=0,menubar=0,resizable=0,width=340,height=230')</script>";
   $cookievalue=$msg_count;
   setcookie("fusion_privmessages", "$cookievalue", time() + 3600, "/", "", "0");
}
   // end popup on new pm

   if ($userdata['user_avatar'] != "") {
   echo "<hr><center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center><hr>\n";
      } else {
   echo "<br><center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".INFUSIONS."user_info_panel/images/noimage2.jpeg'></center><br><hr>\n";
}
echo "<b><img src='http://h1.progresas.lt/~superpc/infusions/user_info_panel/images/4.gif'>Statistika:</b><br>";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo "<span class='small'>Ā°</span> ".$locale['on117']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a><br />\n";
//display the result
echo "<img src='".THEME."images/bullet.gif'> PinigĀø: <b>$userpoints[points_total]</b><br>";
   $tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "Ā° NaujĀø nariĀø vakar: ".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."<br>";
echo "Ā° NaujĀø nariĀø &#240;iandien: ".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."<br>";
echo "<span class='small'>Ā°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
   echo "<span class='small'>Ā°</span> ".$locale['on101'].dbrows($result)."<br />\n";
   $result = dbquery(
      "SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );

   $members = dbrows($result);
   if ($members != 0) {
      $i = 1;
   echo "<span class='small'>Ā°</span> <b>".$locale['on102'];
      while($data = dbarray($result)) {
   echo "</b><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a>";
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}

   echo "<span class='small'><img src='http://h1.progresas.lt/~superpc/infusions/user_info_panel/images/7.gif'><b>".$locale['on105']."</b></span><br />";
   echo "<span class='small'>Ā°</span> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['on119']."</a><br>";
   echo "<span class='small'>Ā°</span> <a href='".BASEDIR."messages.php' class='side'>".$locale['on120']."</a><br>";
   echo "<span class='small'>Ā°</span> <a href='".BASEDIR."members.php' class='side'>".$locale['on121']."</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
   }
   echo "<span class='small'>Ā°</span> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['on113']."</a><br>\n";
} else {
   openside($locale['on122']);
   echo "<center>&nbsp;<img src='http://h1.progresas.lt/~superpc/infusions/user_info_panel/images/svx.gif'> <font class='menu'><br><b>Sveikas, Sve&#232;ias</b><br></font><br></center>";
   echo "<br>";
      echo "<center>&nbsp;<font class='menu'>Nariai turi daugiau privilegijĀø!</font><br></center>";
      echo "<br>";
echo "<center><img src='http://h1.progresas.lt/~superpc/infusions/user_info_panel/images/2.gif'> <a href='".BASEDIR."register.php'><b>Registruotis</b></a><br></center>";
echo "<br>";
      echo "<hr>";
      echo "&nbsp;<img src='".BASEDIR."infusions/user_info_panel/images/3.gif'> <font class='menu'><b>Prisijungimo Zona</b></font><br>";
echo "<br>";
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['on123']."<br>";
   echo "<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['on124']."<br>";
   echo "<input type='password' name='user_pass' class='textbox' style='width:100px'><br>";
   echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['on125']."' style='vertical-align:middle;'>";
   echo "<input type='submit' name='login' value='".$locale['on126']."' class='button'><br></form><br>\n";
if ($settings['enable_registration'])
   echo $locale['on128']."</div>\n";

echo "&nbsp;<img src='".BASEDIR."infusions/user_info_panel/images/4.gif'> <font class='menu'><b>Statistika</b></font><br><hr>";
//display the result
echo "<img src='".THEME."images/bullet.gif'> PinigĀø: <b>$userpoints[points_total]</b><br>";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo "<span class='small'>Ā°</span> ".$locale['on117']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a><br />\n";
   $tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "Ā° NaujĀø nariĀø vakar: ".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."<br>";
echo "Ā° NaujĀø nariĀø &#240;iandien: ".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."<br>";
echo "<span class='small'>Ā°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
   echo "<span class='small'>Ā°</span> ".$locale['on101'].dbrows($result)."<br />\n";
   $result = dbquery(
      "SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );

   $members = dbrows($result);
   if ($members != 0) {
      $i = 1;
   echo "<span class='small'>Ā°</span> <b>".$locale['on102'];
      while($data = dbarray($result)) {
   echo "</b><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a>";
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}
}
closeside();
?>



Redagavo POVYLAZZZ· 2007 Spa. 8 14:10:40