4en3rgY Romania
[Tutorial] Thanks for posts 2z8bv910
Welcome To 4EN3RGY Romania
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

4en3rgY Romania


Nu sunteti conectat. Conectați-vă sau înregistrați-vă

[Tutorial] Thanks for posts

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

1[Tutorial] Thanks for posts Empty [Tutorial] Thanks for posts Vin 03 Feb 2012, 17:15

KiddOx <3.

KiddOx <3.Membru

Descriere: Ii poti multumi unui user.

Versiune :1.3.0

Timp de instalare : In jur de 15 minute

Autor: Палыч

Fisiere de uploadat

root/umil/*.*,
root/install_thanks_mod.php,
root/thankslist.php,
root/toplist.php,
root/adm/style/acp_thanks.html,
root/adm/style/acp_thanks_refresh.html,
root/adm/style/acp_thanks_reput.html,
root/adm/style/acp_thanks_truncate.html,
root/includes/functions_thanks.php,
root/includes/functions_thanks_forum.php,
root/includes/acp/acp_thanks.php,
root/includes/acp/acp_thanks_refresh.php,
root/includes/acp/acp_thanks_reput.php,
root/includes/acp/acp_thanks_truncate.php,
root/includes/acp/info/acp_thanks.php,
root/includes/acp/info/acp_thanks_refresh.php,
root/includes/acp/info/acp_thanks_reput.php,
root/includes/acp/info/acp_thanks_truncate.php,
root/language/en/email/user_thanks.txt,
root/language/en/mods/thanks_mod.php,
root/language/en/mods/info_ucp_thanks.php,
root/language/en/mods/info_acp_thanks.php,
root/styles/prosilver/imageset/removethanks.gif,
root/styles/prosilver/imageset/thankposts.gif,
root/styles/prosilver/template/thanks_results.html,
root/styles/prosilver/template/thankslist_body.html,
root/styles/prosilver/template/toplist_body.html,
root/styles/prosilver/theme/images/icon_thanks.gif,
root/styles/prosilver/theme/images/icon_thanks_toplist.gif,
root/styles/prosilver/theme/images/reput_block_back.gif,
root/styles/prosilver/theme/images/reput_block_red.gif,
root/styles/prosilver/theme/images/reput_star_back.gif,
root/styles/prosilver/theme/images/reput_star_blue.gif,
root/styles/prosilver/theme/images/reput_star_gold.gif


Fisiere de modificat

memberlist.php,
posting.php,
viewforum.php,
viewtopic.php,
includes/constants.php,
includes/functions.php,
includes/functions_display.php,
includes/acp/acp_styles.php,
includes/ucp/ucp_prefs.php,
Prosilver
styles/prosilver/imageset/imageset.cfg,
styles/prosilver/template/forumlist_body.html,
styles/prosilver/template/memberlist_view.html,
styles/prosilver/template/overall_header.html,
styles/prosilver/template/ucp_prefs_personal.html,
styles/prosilver/template/viewforum_body.html,
styles/prosilver/template/viewtopic_body.html,
styles/prosilver/theme/buttons.css,
styles/prosilver/theme/colours.css
Subsilver
styles/subsilver2/imageset/imageset.cfg,
styles/subsilver2/template/forumlist_body.html,
styles/subsilver2/template/memberlist_view.html,
styles/subsilver2/template/overall_header.html,
styles/subsilver2/template/ucp_prefs_personal.html,
styles/subsilver2/template/viewforum_body.html,
styles/subsilver2/template/viewtopic_body.html


Instalare

Deschizi memberlist.php
-Cauti


Cod:
// Inactive reason/account?



-Adaugi inainte


Cod:
include($phpbb_root_path . 'includes/functions_thanks.' . $phpEx);
$user->add_lang('mods/thanks_mod');
output_thanks_memberlist($user_id);



Deschizi posting.php
-Cauta


Cod:
// Start session management



Adaugi inainte


Cod:
include($phpbb_root_path . 'includes/functions_thanks.' . $phpEx);



Cauta


Cod:
$next_post_id = delete_post($forum_id, $topic_id, $post_id, $data);



Adaugi dupa


Cod:
delete_post_thanks($post_id);



Deschizi viewforum.php
Cauta


Cod:
// Okay, lets dump out the page ...



Adaugi inainte


Cod:
if (!function_exists('get_max_topic_thanks'))
{
include($phpbb_root_path . 'includes/functions_thanks.' . $phpEx);
}
get_max_topic_thanks();
if ($topic_list)
{
get_thanks_topic_number();
}



Cauta


Cod:
$s_type_switch = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0;



Adaugi inainte


Cod:
if ($config['thanks_topic_reput_view'])
{
get_thanks_topic_reput($topic_id);
}



Deschizi viewtopic.php

Cauta


Cod:
'PAGE_NUMBER' => on_page($total_posts, $config['posts_per_page'], $start),



Adaugi dupa


Cod:
'START' => $start,



Cauta


Cod:
'allow_pm' => $row['user_allow_pm'],



Adaugi dupa


Cod:
'allow_thanks_pm' => $row['user_allow_thanks_pm'],
'allow_thanks_email' => $row['user_allow_thanks_email'],




Cauta


Cod:
// Output the posts



Adaugi inainte


Cod:
if (!function_exists('array_all_thanks'))
{
include($phpbb_root_path . 'includes/functions_thanks.' . $phpEx);
}
array_all_thanks($post_list);
if (isset($_REQUEST['thanks']) && !isset($_REQUEST['rthanks']))
{
insert_thanks(request_var('thanks', 0), $user->data['user_id']);
}
if (isset($_REQUEST['rthanks']) && !isset($_REQUEST['thanks']))
{
delete_thanks(request_var('rthanks', 0), $user->data['user_id']);
}



Cauta


Cod:
'L_IGNORE_POST' => ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '[Trebuie sa fiti inscris si conectat pentru a vedea acest link]') : '',



Adaugi dupa


Cod:
'S_FORUM_THANKS' => ($auth->acl_get('f_thanks', $forum_id)) ? true : false,



Cauta


Cod:
if (isset($cp_row['row']) && sizeof($cp_row['row']))



Adaugi inainte


Cod:
output_thanks($row['user_id']);



Deschizi includes/constants.php
Cauta


Cod:
// Additional tables



Adaugi dupa


Cod:
define('THANKS_TABLE', $table_prefix . 'thanks');



Deschizi includes/functions.php

Cauta


Cod:
$user_lang = $user->lang['USER_LANG'];



Adaugi dupa


Cod:
$user->add_lang('mods/thanks_mod');



Cauta


Cod:
'U_MEMBERLIST' => append_sid("{$phpbb_root_path}memberlist.$phpEx"



Adaugi dupa


Cod:
'U_THANKSLIST' => append_sid("{$phpbb_root_path}thankslist.$phpEx"),
'U_REPUT_TOPLIST' => append_sid("{$phpbb_root_path}toplist.$phpEx"),



Cauta


Cod:
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,



Adaugi dupa


Cod:
'S_DISPLAY_THANKSLIST' => (isset($auth)) ? $auth->acl_get('u_viewthanks') : 0,
'S_DISPLAY_TOPLIST' => (isset($auth)) ? $auth->acl_get('u_viewtoplist') : 0,



Deschizi includes/functions_display.php
Cauta


Cod:
// Used to tell whatever we have to create a dummy category or not.



Adaugi inainte


Cod:
if (!function_exists('get_max_forum_thanks'))
{
include($phpbb_root_path . 'includes/functions_thanks_forum.' . $phpEx);
}
get_max_forum_thanks();
foreach ($forum_rows as $row)
{
$forum_thanks_rating[] = $row['forum_id'];
}
global $cache;
$cache->put('_forum_thanks_rating', $forum_thanks_rating);
get_thanks_forum_number();
$cache->destroy('_forum_thanks_rating');



Cauta


Cod:
// Assign subforums loop for style authors



Adaugi inainte


Cod:
if ($config['thanks_forum_reput_view'])
{
get_thanks_forum_reput($row['forum_id']);
}



Deschizi includes/acp/acp_styles.php
Cauta


Cod:
'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq', 'icon_contact_jabber', 'icon_contact_msnm', 'icon_contact_pm', 'icon_contact_yahoo', 'icon_contact_www', 'icon_post_delete', 'icon_post_edit', 'icon_post_info', 'icon_post_quote', 'icon_post_report', 'icon_user_online', 'icon_user_offline', 'icon_user_profile', 'icon_user_search', 'icon_user_warn', 'button_pm_forward', 'button_pm_new', 'button_pm_reply', 'button_topic_locked', 'button_topic_new', 'button_topic_reply',



Dupa linia


Cod:
'button_topic_reply',



Adaugi


Cod:
'thankposts', 'removethanks',



Deschizi includes/ucp/ucp_prefs.php

Cauta


Cod:
'allowpm' => request_var('allowpm', (bool) $user->data['user_allow_pm']),



Adaugi dupa


Cod:
'allowthankspm' => request_var('allowthankspm', (bool) $user->data['user_allow_thanks_pm']),
'allowthanksemail' => request_var('allowthanksemail', (bool) $user->data['user_allow_thanks_email']),



Cauta


Cod:
'user_allow_pm' => $data['allowpm'],



Adaugi dupa


Cod:
'user_allow_thanks_pm' => $data['allowthankspm'],
'user_allow_thanks_email'=> $data['allowthanksemail'],



Cauta


Cod:
'S_ALLOW_PM' => $data['allowpm'],



Adaugi dupa


Cod:
'S_ALLOW_THANKS_PM' => $data['allowthankspm'],
'S_ALLOW_THANKS_EMAIL'=> $data['allowthanksemail'],



Pentru Prosilver
Deschizi styles/prosilver/imageset/imageset.cfg
Cauti


Cod:
img_icon_user_warn = icon_user_warn.gif*20*20



Adaugi dupa


Cod:
img_thankposts = thankposts.gif*20*20
img_removethanks = removethanks.gif*20*20



Deschizi styles/prosilver/template/forumlist_body.html
Cauti


Cod:




Adaugi inainte


Cod:




 

{L_REPUT}: {forumrow.reput.FORUM_REPUT}






Deschizi styles/prosilver/template/memberlist_view.html
cauti


Cod:




Adaugi inainte


Cod:

function getElement(iElementId)
{
if (document.all)
{
return document.all[iElementId];
}
if (document.getElementById)
{
return document.getElementById(iElementId);
}
}

function toggleElement(oElement)
{
if (oElement.style.display == "none")
{
oElement.style.display = "";
}
else
{
oElement.style.display = "none";
}
}




{L_GRATITUDES}



{L_GIVEN}: {POSTER_GIVE_COUNT} {L_THANKS}



[Trebuie sa fiti inscris si conectat pentru a vedea acest link]









{L_RECEIVED}: {POSTER_RECEIVE_COUNT} {L_THANKS}



[Trebuie sa fiti inscris si conectat pentru a vedea acest link]









Deschizi styles/prosilver/template/overall_header.html
Cauti


Cod:
  • [Trebuie sa fiti inscris si conectat pentru a vedea acest link]




  • Adaugi dupa


    Cod:
  • [Trebuie sa fiti inscris si conectat pentru a vedea acest link]

  • [Trebuie sa fiti inscris si conectat pentru a vedea acest link]




  • Deschizi styles/prosilver/template/ucp_prefs_personal.html
    Cauti


    Cod:





    Adaugi dupa


    Cod:


    {L_ALLOW_THANKS_PM_EXPLAIN}







    {L_ALLOW_THANKS_EMAIL_EXPLAIN}








    Deschizi styles/prosilver/template/viewforum_body.html
    Cauti


    Cod:
    {topicrow.ATTACH_ICON_IMG} {L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} » {topicrow.FIRST_POST_TIME}



    Adaugi dupa


    Cod:




     

    {L_REPUT}: {topicrow.reput.TOPIC_REPUT}







    Deschizi styles/prosilver/template/viewtopic_body.html

    Cauti


    Cod:
  • [Trebuie sa fiti inscris si conectat pentru a vedea acest link]




  • Adaugi dupa


    Cod:

  • [Trebuie sa fiti inscris si conectat pentru a vedea acest link]





  • Cauti


    Cod:
    {postrow.SIGNATURE}





    Adaugi dupa


    Cod:






    {postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}

    {postrow.THANKS}







    {L_REPUT}: {postrow.POST_REPUT}



     







    Cauti


    Cod:
    {L_LOCATION}: {postrow.POSTER_FROM}




    Adaugi dupa


    Cod:

    {L_GIVEN}: {postrow.POSTER_GIVE_COUNT} {L_THANK} [Trebuie sa fiti inscris si conectat pentru a vedea acest link] {L_THANKS} [Trebuie sa fiti inscris si conectat pentru a vedea acest link] {L_THANK}

    {L_RECEIVED}: {postrow.POSTER_RECEIVE_COUNT} {L_THANK} [Trebuie sa fiti inscris si conectat pentru a vedea acest link] {L_THANKS} [Trebuie sa fiti inscris si conectat pentru a vedea acest link] {L_THANK}





    Deschide styles/prosilver/theme/buttons.css
    Cauta


    Cod:
    .sitehome,



    Adaugi dupa


    Cod:
    .icon-thanks, .icon-thanks_toplist,



    Cauta


    Cod:
    /* Set profile icon dimensions */



    Adaugi dupa


    Cod:
    ul.profile-icons li.thanks-icon { width: {IMG_THANKPOSTS_WIDTH}px; height: {IMG_THANKPOSTS_HEIGHT}px; }
    ul.profile-icons li.removethanks-icon { width: {IMG_REMOVETHANKS_WIDTH}px; height: {IMG_REMOVETHANKS_HEIGHT}px; }



    Deschide styles/prosilver/theme/colours.css
    Cauta


    Cod:
    .icon-search { background-image: url("{T_THEME_PATH}/images/icon_search.gif"); }



    Adauga dupa


    Cod:
    .icon-thanks { background-image: url("{T_THEME_PATH}/images/icon_thanks.gif"); }
    .icon-thanks_toplist { background-image: url("{T_THEME_PATH}/images/icon_thanks_toplist.gif"); }



    Cauta


    Cod:
    /* Moderator icons */



    Adaugi inainte


    Cod:
    .thanks-icon, .thanks-icon a { background-image: url("{IMG_THANKPOSTS_SRC}"); }
    .removethanks-icon, .removethanks-icon a { background-image: url("{IMG_REMOVETHANKS_SRC}"); }



    Pentru Subsilver
    Deschizi styles/subsilver2/imageset/imageset.cfg
    Cauta


    Cod:
    img_icon_topic_unapproved = icon_topic_unapproved.gif*18*19



    Adaugi dupa


    Cod:
    img_thankposts = thankposts.gif
    img_removethanks = removethanks.gif



    Deschizi styles/subsilver2/template/forumlist_body.html
    Cauta


    Cod:

    {forumrow.L_SUBFORUM_STR} {forumrow.SUBFORUMS}






    Inlocuieste cu


    Cod:




     

    {L_REPUT}:{forumrow.reput.FORUM_REPUT}




    {forumrow.L_SUBFORUM_STR} {forumrow.SUBFORUMS}






    Deschide styles/subsilver2/template/memberlist_view.html

    Cauta


    Cod:
    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
    [ {ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT} ]-





    Adauga dupa


    Cod:

    {L_GIVEN}:
    {POSTER_GIVE_COUNT} {L_THANKS}
    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]





    {L_RECEIVED}:
    {POSTER_RECEIVE_COUNT} {L_THANKS}
    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]







    Deschide styles/subsilver2/template/overall_header.html
    Cauta


    Cod:




    Adauga inainte


    Cod:

    function getElement(iElementId)
    {
    if (document.all)
    {
    return document.all[iElementId];
    }
    if (document.getElementById)
    {
    return document.getElementById(iElementId);
    }
    }

    function toggleElement(oElement)
    {
    if (oElement.style.display == "none")
    {
    oElement.style.display = "";
    }
    else
    {
    oElement.style.display = "none";
    }
    }




    Cauta


    Cod:
       [Trebuie sa fiti inscris si conectat pentru a vedea acest link]



    Adaugi dupa


    Cod:
       [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
       [Trebuie sa fiti inscris si conectat pentru a vedea acest link]



    Deschide styles/subsilver2/template/ucp_prefs_personal.html
    Cauta


    Cod:




    Adauga inainte


    Cod:

    {L_ALLOW_THANKS_PM}:
    {L_ALLOW_THANKS_PM_EXPLAIN}
    checked="checked" />{L_YES}   checked="checked" />{L_NO}


    {L_ALLOW_THANKS_EMAIL}:
    {L_ALLOW_THANKS_EMAIL_EXPLAIN}
    checked="checked" />{L_YES}   checked="checked" />{L_NO}




    Deschide styles/subsilver2/template/viewforum_body.html
    Cauta


    Cod:

    [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {topicrow.PAGINATION} ]






    Inlocuieste cu


    Cod:




     

    {L_REPUT}:{topicrow.reput.TOPIC_REPUT}




    [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {topicrow.PAGINATION} ]






    Cauta


    Cod:

    [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {topicrow.PAGINATION} ]






    Inlocuieste cu


    Cod:




     

    {L_REPUT}:{topicrow.reput.TOPIC_REPUT}




    [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {topicrow.PAGINATION} ]






    Deschide styles/subsilver2/template/viewtopic_body.html
    Cauta


    Cod:

    {L_LOCATION}: {postrow.POSTER_FROM}



    Adauga dupa


    Cod:

    {L_GIVEN}: {postrow.POSTER_GIVE_COUNT} {L_THANK} [Trebuie sa fiti inscris si conectat pentru a vedea acest link] {L_THANKS} [Trebuie sa fiti inscris si conectat pentru a vedea acest link] {L_THANK}
    {L_RECEIVED}: {postrow.POSTER_RECEIVE_COUNT} {L_THANK} [Trebuie sa fiti inscris si conectat pentru a vedea acest link] {L_THANKS} [Trebuie sa fiti inscris si conectat pentru a vedea acest link] {L_THANK}



    Cauta


    Cod:
    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]



    Adauga dupa


    Cod:

    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]









    {postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2} {postrow.THANKS}








     

    {L_REPUT}: {postrow.POST_REPUT}




    [*]Dupa ce ati terminat de modificat fisierele ,rulati [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
    [*]Nu uitati sa faceti permisiunile din PA>Permisiuni>Permisiuni forum pentru grupuri>Alegeti forumul>Permisiuni avansate>Can thanks for posts>Da
    [*]Tutorial creat de PlaY4FuN 100% pentru [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
    [*]Parola arhiva


    Cod:
    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]

    Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

    Permisiunile acestui forum:
    Nu puteti raspunde la subiectele acestui forum

     

    Copyright @ 2010-2024 by 4en3rgY ~> All rights reserved.