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