Thread: New Posting Features - [DBTech] Advanced User Tagging v3 (vB4)
View Single Post
  #219  
Old 01-06-2011, 08:36 PM
Michlerish's Avatar
Michlerish Michlerish is offline
 
Join Date: May 2010
Location: Ontario
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The contents of the xml file (part 1):

PHP Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="dbtech_usertag" active="1">
    <title>DragonByte Tech: Advanced User Tagging (Lite)</title>
    <description>Advanced User Tagging lets your members quickly alert eachother to threads they might be interested in.</description>
    <version>1.2.2</version>
    <url />
    <versioncheckurl />
    <dependencies>
    </dependencies>
    <codes>
        <code version="*">
            <installcode><![CDATA[$installpath = DIR . '/dbtech/usertag/install';

if (!file_exists($installpath . '/core.php') OR !file_exists($installpath . '/finalise.php'))
{
    print_dots_stop();
    print_cp_message('Either ' . $installpath . '/core.php or ' . $installpath . '/finalise.php is missing!');
}

require($installpath . '/core.php');]]></installcode>
            <uninstallcode><![CDATA[$installpath = DIR . '/dbtech/usertag/install';

if (!file_exists($installpath . '/uninstall.php'))
{
    print_dots_stop();
    print_cp_message($installpath . '/uninstall.php is missing!');
}

require($installpath . '/uninstall.php');]]></uninstallcode>
        </code>
        <code version="1.0.0">
            <installcode><![CDATA[$installpath = DIR . '/dbtech/usertag/install';
$shortversion = 1000;

if (!file_exists($installpath . '/install/' . $shortversion . '.php'))
{
    print_dots_stop();
    print_cp_message($installpath . '/install/' . $shortversion . '.php is missing!');
}

require($installpath . '/install/' . $shortversion . '.php');

require($installpath . '/finalise.php');]]></installcode>
            <uninstallcode />
        </code>
        <code version="1.1.0">
            <installcode><![CDATA[$installpath = DIR . '/dbtech/usertag/install';
$shortversion = 1100;

if (!file_exists($installpath . '/install/' . $shortversion . '.php'))
{
    print_dots_stop();
    print_cp_message($installpath . '/install/' . $shortversion . '.php is missing!');
}

require($installpath . '/install/' . $shortversion . '.php');

require($installpath . '/finalise.php');]]></installcode>
            <uninstallcode />
        </code>
        <code version="1.2.0">
            <installcode><![CDATA[$installpath = DIR . '/dbtech/usertag/install';
$shortversion = 1200;

require($installpath . '/finalise.php');]]></installcode>
            <uninstallcode />
        </code>
        <code version="1.2.1">
            <installcode><![CDATA[$installpath = DIR . '/dbtech/usertag/install';
$shortversion = 1210;
require($installpath . '/finalise.php');]]></installcode>
            <uninstallcode />
        </code>
        <code version="1.2.2">
            <installcode><![CDATA[$installpath = DIR . '/dbtech/usertag/install';
$shortversion = 1220;
require($installpath . '/finalise.php');]]></installcode>
            <uninstallcode />
        </code>
    </codes>
    <templates>
        <template name="dbtech_usertag_footer" templatetype="template" date="1274050174" username="Belazor" version="1.0.0"><![CDATA[<div class="footer_copyright" style="clear:both;">
    <div align="center">
        <!-- Do not remove this copyright notice -->

        <a href="http://www.dragonbyte-tech.com" target="_blank">Advanced User Tagging<vb:if condition="$vboptions[dbtech_usertag_displayversion]"> v{vb:var vboptions.dbtech_usertag_versionnumber_text}</vb:if></a><br />

        <vb:if condition="$vboptions[dbtech_usertag_pro_versionnumber_text]">
        <a href="http://www.dragonbyte-tech.com" target="_blank">Advanced User Tagging (Pro)<vb:if condition="$vboptions[dbtech_usertag_displayversion]"> v{vb:var vboptions.dbtech_usertag_pro_versionnumber_text}</vb:if></a><br />
        </vb:if>

        Copyright &copy; {vb:var year} <a href="http://www.dragonbyte-tech.com" target="_blank">DragonByte Technologies</a>.

        <!-- Do not remove this copyright notice -->    
    </div>
</div>]]></template>
        <template name="dbtech_usertag_inlinetaglist" templatetype="template" date="1281048491" username="Belazor" version="1.2.1"><![CDATA[<h2 class="blockhead" style="padding-top:5px;"><a href="misc.php?{vb:raw session.sessionurl}do=dbtech_usertag_taglist&amp;t={vb:var threadid}">{vb:rawphrase dbtech_usertag_tag_list}</a></h2>
<div class="blockbody settings_form_border">
    <vb:if condition="$taglist"><div class="blockrow">{vb:raw taglist}</div></vb:if>
    <vb:if condition="$bbuserinfo['userid']">
    <div class="blockrow"><input type="button" class="button" value="{vb:rawphrase dbtech_usertag_tag_user}" onclick="YAHOO.util.Dom.get('dbtech_usertag_tagarea').style.display = 'block'" /></div>
    <div id="dbtech_usertag_tagarea" style="display:none;">
        <div class="blockrow">{vb:rawphrase dbtech_usertag_tag_user_descr}</div>
        <form method="post" action="misc.php">
            <div class="blockrow"><input type="text" class="primary textbox" name="usertags" style="width:95%" id="dbtech_usertag_newtags" /></div>
            
            <div class="blockrow"><input type="submit" class="button" name="submittag" value="{vb:rawphrase submit}" onclick="if(YAHOO.util.Dom.get('dbtech_usertag_newtags').value.length == 0 && YAHOO.util.Dom.get('dbtech_usertag_friends').checked == false) { return false; } else { return true; }" /></div>
            
            <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
            <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
            <input type="hidden" name="do" value="dbtech_usertag_threadtag" />
            <input type="hidden" name="threadid" value="{vb:var threadid}" />
        </form>
    </div>
    </vb:if>
</div>]]></template>
        <template name="dbtech_usertag_memberinfo_block_mention" templatetype="template" date="1274023310" username="Belazor" version="1.0.0"><![CDATA[<div id="view-mentions" class="<vb:if condition="$selected_tab == 'mentions'">selected_view_section<vb:else />view_section</vb:if>">
<div class="member_content">
<vb:if condition="$block_data[pagenav]">
<div class="floatcontainer" id="controls_above">
    <div id="pagination_top" style="float:{vb:stylevar right}">
            {vb:raw block_data.pagenav}
    </div>    
</div>
<br />
</vb:if>


    <vb:if condition="$block_data['resultbits']">
        {vb:raw block_data.resultbits}
    <vb:else />
        {vb:rawphrase dbtech_usertag_no_results}
    </vb:if>


<vb:if condition="$block_data[pagenav]">
<br />
<div class="floatcontainer" id="controls_below">
    <div id="pagination_bottom" style="float:{vb:stylevar right}">
            {vb:raw block_data.pagenav}
    </div>
</div>
</vb:if>
</div></div>]]></template>
        <template name="dbtech_usertag_memberinfo_block_tag" templatetype="template" date="1275922889" username="Belazor" version="1.1.0"><![CDATA[<div id="view-usertags" class="<vb:if condition="$selected_tab == 'usertags'">selected_view_section<vb:else />view_section</vb:if>">
<div class="member_content">
<vb:if condition="$block_data[pagenav]">
<div class="floatcontainer" id="controls_above">
    <div id="pagination_top" style="float:{vb:stylevar right}">
            {vb:raw block_data.pagenav}
    </div>    
</div>
<br />
</vb:if>


    <vb:if condition="$block_data['resultbits']">
        {vb:raw block_data.resultbits}
    <vb:else />
        {vb:rawphrase dbtech_usertag_no_results}
    </vb:if>


<vb:if condition="$block_data[pagenav]">
<br />
<div class="floatcontainer" id="controls_below">
    <div id="pagination_bottom" style="float:{vb:stylevar right}">
            {vb:raw block_data.pagenav}
    </div>
</div>
</vb:if>
</div></div>]]></template>
        <template name="dbtech_usertag_mention" templatetype="template" date="1287345261" username="Belazor" version="1.2.2"><![CDATA[<vb:if condition="!isset($vbulletin->options['dbtech_usertag_enableat']) OR $vbulletin->options['dbtech_usertag_enableat']">@</vb:if><vb:if condition="$vbulletin->options['dbtech_usertag_mentionbbcode'] & 8"><span class="highlight"></vb:if><vb:if condition="$vbulletin->options['dbtech_usertag_mentionbbcode'] & 4"><i></vb:if><vb:if condition="$vbulletin->options['dbtech_usertag_mentionbbcode'] & 2"><b></vb:if><vb:if condition="$vbulletin->options['dbtech_usertag_mentionbbcode'] & 1"><u></vb:if><a href="{vb:raw vboptions.bburl}/member.php?u=?1" target="_blank">?2</a><vb:if condition="$vbulletin->options['dbtech_usertag_mentionbbcode'] & 1"></u></vb:if><vb:if condition="$vbulletin->options['dbtech_usertag_mentionbbcode'] & 2"></b></vb:if><vb:if condition="$vbulletin->options['dbtech_usertag_mentionbbcode'] & 4"></i></vb:if><vb:if condition="$vbulletin->options['dbtech_usertag_mentionbbcode'] & 8"></span></vb:if>]]></template>
        <template name="dbtech_usertag_navbar" templatetype="template" date="1274309538" username="Belazor" version="1.1.0"><![CDATA[<li><a href="misc.php?{vb:raw session.sessionurl}do=dbtech_usertag_statistics">{vb:rawphrase dbtech_usertag_user_tagging_statistics}</a></li>]]></template>
        <template name="dbtech_usertag_postbit" templatetype="template" date="1274037157" username="Belazor" version="1.0.0"><![CDATA[<vb:if condition="$vboptions['dbtech_usertag_postbit'] & 1"><dt>{vb:rawphrase dbtech_usertag_mentioned}</dt> <dd>{vb:rawphrase dbtech_usertag_x_posts, {vb:raw post.dbtech_usertag_mentions}}</dd></vb:if>
<vb:if condition="$vboptions['dbtech_usertag_postbit'] & 2"><dt>{vb:rawphrase dbtech_usertag_tagged}</dt> <dd>{vb:rawphrase dbtech_usertag_x_threads, {vb:var post.dbtech_usertag_tags}}</dd></vb:if>]]></template>
        <template name="dbtech_usertag_result" templatetype="template" date="1274022276" username="Belazor" version="1.0.0"><![CDATA[<h4 class="subsectionhead-understate">{vb:raw day}</h4>
<div class="subsection">

    <ul class="floatcontainer">
    {vb:raw resultbits}
    </ul>
</div>
<br />]]></template>
        <template name="dbtech_usertag_result_bit" templatetype="template" date="1274054133" username="Belazor" version="1.0.0"><![CDATA[<li style="padding-bottom: 6px; padding-left: 12px;">{vb:raw text}</li>]]></template>
        <template name="dbtech_usertag_statistics" templatetype="template" date="1274299063" username="Belazor" version="1.1.0"><![CDATA[    <h2 class="blockhead" style="margin-top: 5px;">{vb:raw pagetitle}</h2>
    <div class="blockbody settings_form_border">
        {vb:raw leaderboardbits}
    </div>]]></template>
        <template name="dbtech_usertag_statistics_statisticbit" templatetype="template" date="1274299102" username="Belazor" version="1.1.0"><![CDATA[<fieldset style="border:1px solid; padding: 6px; margin: 6px; display:inline; white-space:nowrap;">
    <legend style="font-size:{vb:stylevar small_fontSize};">{vb:raw phrase}</legend>
    <ol style="font-size:{vb:stylevar small_fontSize};">
        {vb:raw userbits}
    </ol>
</fieldset>]]></template>
        <template name="dbtech_usertag_statistics_userbit" templatetype="template" date="1274299450" username="Belazor" version="1.1.0"><![CDATA[<li style="list-style:decimal inside;"><vb:if condition="$userinfo">{vb:raw userinfo.musername} ({vb:raw userinfo.value})<vb:else />-</vb:if></li>]]></template>
        <template name="dbtech_usertag_taglist" templatetype="template" date="1275604022" username="Belazor" version="1.1.0"><![CDATA[    <vb:if condition="$pagenav">
    <div class="floatcontainer" id="controls_above">
        <div id="pagination_top" style="float:{vb:stylevar right}">
                {vb:raw pagenav}
        </div>    
    </div>
    <br />
    </vb:if>

    <h2 class="blockhead" style="margin-top: 5px;">{vb:raw pagetitle}</h2>
    <div class="blockbody settings_form_border">
        <div class="table" style="width: 100%;">
            <div class="tr" style="width: 100%;">
                <div class="td blocksubhead">{vb:rawphrase user_name}</div>
                <div class="td blocksubhead">{vb:rawphrase dbtech_usertag_tagged_by}</div>
                <div class="td blocksubhead">{vb:rawphrase date}</div>
            </div>
            {vb:raw results}
        </div>
    </div>

    <vb:if condition="$pagenav">
    <br />
    <div class="floatcontainer" id="controls_below">
        <div id="pagination_bottom" style="float:{vb:stylevar right}">
                {vb:raw pagenav}
        </div>
    </div>
    </vb:if>]]></template>
        <template name="dbtech_usertag_taglist_bit" templatetype="template" date="1274051440" username="Belazor" version="1.0.0"><![CDATA[<div class="tr" style="width: 100%;">
    <div class="td blockrow">{vb:raw username}</div>
    <div class="td blockrow">{vb:raw taggedby}</div>
    <div class="td blockrow">{vb:raw time}</div>
</div>]]></template>
    </templates>
    <stylevardfns>
    </stylevardfns>
    <stylevars>
    </stylevars>
    <plugins>
        <plugin active="1" executionorder="5">
            <title>Custom Admin Permissions - Field Set</title>
            <hookname>admindata_start</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/admindata_start.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Delete Confirmation Override</title>
            <hookname>admin_delete_confirmation</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/admin_delete_confirmation.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Custom Admin Permissions - Form</title>
            <hookname>admin_permissions_form</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/admin_permissions_form.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Custom Admin Permissions - Process</title>
            <hookname>admin_permissions_process</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/admin_permissions_process.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="1">
            <title><![CDATA[Remove [MENTION] BBCode From Email Notifications]]></title>
            <hookname>bbcode_parse_complete</hookname>
            <phpcode><![CDATA[$text = preg_replace('/\[\/?mention=?\d*\]/iU', '', $text);]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="1">
            <title><![CDATA[Render [MENTION] BBCode]]></title>
            <hookname>bbcode_parse_complete_precache</hookname>
            <phpcode><![CDATA[if (!class_exists('vB_Template'))
{
    // Ensure we have the template class
    require(DIR . '/dbtech/usertag/class_template.php');
}

static $mention;
global $vbulletin;

if (empty($mention))
{    //only figure this out once
    $mention = vB_Template::create('dbtech_usertag_mention')->render();
    
    // This is because of vB's template system
    $mention = str_replace('?1', '$1', $mention);
    $mention = str_replace('?2', '$2', $mention);
}

$text = preg_replace('/\[\/?mention=?\]/i', '', preg_replace('/\[mention=(\d+)\](.*)\[\/mention\]/iU', $mention, $text));

//$text = $this->parse_bbcode(preg_replace('/\[\/?mention=?\]/i', '', preg_replace('/\[mention=(\d+)\](.*)\[\/mention\]/iU', $mention, $text)), $do_smilies, $do_imgcode, $do_html);]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Template Caching</title>
            <hookname>cache_templates</hookname>
            <phpcode><![CDATA[require_once(DIR . '/dbtech/usertag/hooks/cache_templates.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Custom Admin Permissions - Check</title>
            <hookname>can_administer</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/can_administer.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Shoutbox: Tab Functionality</title>
            <hookname>dbtech_vbshout_ajax_handler_fetch</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/dbtech_vbshout_ajax_handler_fetch.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Shoutbox: Tab Contents</title>
            <hookname>dbtech_vbshout_fetch_shouts_query</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/dbtech_vbshout_fetch_shouts_query.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Shoutbox: Add Tab</title>
            <hookname>dbtech_vbshout_shoutbox_start</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/dbtech_vbshout_shoutbox_start.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Post Parsing: Insert Mentions (Edit)</title>
            <hookname>editpost_update_complete</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/newpost_complete.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Member Info Profile Blocks</title>
            <hookname>member_build_blocks_start</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/member_build_blocks_start.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Misc: User Tag Actions</title>
            <hookname>misc_start</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/misc_start.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>ModCP - Navigation</title>
            <hookname>mod_index_navigation</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/mod_index_navigation.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Post Parsing: Insert Mentions</title>
            <hookname>newpost_complete</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/newpost_complete.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Notifications</title>
            <hookname>notifications_list</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/notifications_list.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title><![CDATA[Who's Online - Set Activity]]></title>
            <hookname>online_location_process</hookname>
            <phpcode><![CDATA[require_once(DIR . '/dbtech/usertag/hooks/online_location_process.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title><![CDATA[Who's Online - Handle Activity]]></title>
            <hookname>online_location_unknown</hookname>
            <phpcode><![CDATA[require_once(DIR . '/dbtech/usertag/hooks/online_location_unknown.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Postbit Integration</title>
            <hookname>postbit_display_complete</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/postbit_display_complete.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Post Parsing: New Reply</title>
            <hookname>postdata_presave</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/postdata_presave.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Navbar Hook</title>
            <hookname>process_templates_complete</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/process_templates_complete.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Show Thread: Display Tag List</title>
            <hookname>showthread_complete</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/showthread_complete.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Template Grouping</title>
            <hookname>template_groups</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/template_groups.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Post Parsing: New Thread</title>
            <hookname>threadfpdata_presave</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/postdata_presave.php');]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>User Data Deletion</title>
            <hookname>userdata_delete</hookname>
            <phpcode><![CDATA[require(DIR . '/dbtech/usertag/hooks/userdata_delete.php');]]></phpcode>
        </plugin>
    </plugins>
    <phrases>
Using WinRAR to unzip.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01352 seconds
  • Memory Usage 1,956KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete