Remove Forum Code/HTML Code

regan4477

New Member
YetiShare User
Nov 28, 2014
4
0
0
Hi -

Was wanting to remove the Forum Code & HTML Code from the Downloads links sections, both when Upload is successful and when viewing file info (and if they appear anywhere else). Can someone advise how to do this? (currently using 'flow' theme, Yetishare 4.0)

Thanks!
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
/themes/flow/templates/share_file.html

Remove:
Code:
<h2><?php echo t("download_urls", "download urls"); ?></h2>
    <table class="table table-bordered table-striped">
        <tbody>
            <tr>
                <td class="share-file-table-header">
                    <?php echo t('html_code', 'HTML Code'); ?>:
                </td>
                <td class="responsiveInfoTable">
                    <?php echo $file->getHtmlLinkCode(); ?>
                </td>
            </tr>
            <tr>
                <td class="share-file-table-header">
                    <?php echo UCWords(t('forum_code', 'forum code')); ?>
                </td>
                <td class="responsiveInfoTable">
                    <?php echo $file->getForumLinkCode(); ?>
                </td>
            </tr>
        </tbody>
    </table>
/themes/flow/templates/ajax/_account_file_details.ajax.php

Remove:
Code:
<?php if ($file->statusId == 1): ?>
                <h4><strong><?php echo UCWords(t("download_urls", "download urls")); ?></strong></h4>
                <table class="table table-bordered table-striped">
                    <tbody>
                        <tr>
                            <td class="share-file-table-header">
                                <?php echo t('html_code', 'HTML Code'); ?>:
                            </td>
                            <td class="responsiveTable">
                                <section onClick="selectAllText(this); return false;"><?php echo $file->getHtmlLinkCode(); ?></section>
                            </td>
                        </tr>
                        <tr>
                            <td class="share-file-table-header">
                                <?php echo UCWords(t('forum_code', 'forum code')); ?>
                            </td>
                            <td class="responsiveTable">
                                <section onClick="selectAllText(this); return false;"><?php echo $file->getForumLinkCode(); ?></section>
                            </td>
                        </tr>
                    </tbody>
                </table>
            <?php endif; ?>
/core/includes/uploader.class.php

Remove:
Code:
$success_result_html .= '            <tr>';
        $success_result_html .= '                <td class="even">';
        $success_result_html .= '                    <label>' . t('html_code', 'HTML Code') . ':</label>';
        $success_result_html .= '                </td>';
        $success_result_html .= '                <td class="even htmlCode" onClick="return false;">';
        $success_result_html .= '                    &lt;a href=&quot;' . $fileUpload->info_url . '&quot; target=&quot;_blank&quot; title=&quot;' . t('download from', 'Download From') . ' ' . SITE_CONFIG_SITE_NAME . '&quot;&gt;' . t('download', 'Download') . ' ' . $fileUpload->name . ' ' . t('from', 'from') . ' ' . SITE_CONFIG_SITE_NAME . '&lt;/a&gt;';
        $success_result_html .= '                </td>';
        $success_result_html .= '            </tr>';
        $success_result_html .= '            <tr>';
        $success_result_html .= '                <td class="odd">';
        $success_result_html .= '                    <label>' . t('forum_code', 'Forum Code') . ':</label>';
        $success_result_html .= '                </td>';
        $success_result_html .= '                <td class="odd htmlCode">';
        $success_result_html .= '                    [url]' . $fileUpload->url . '[/url]';
        $success_result_html .= '                </td>';
        $success_result_html .= '            </tr>';
/core/page/ajax/_account_file_details.ajax.php

Remove
Code:
<?php if ($file->statusId == 1): ?>
        <div id="pageHeader" class="reponsiveMobileHide" style="padding-top: 12px;">
            <h2><?php echo UCWords(t("download_urls", "download urls")); ?></h2>
        </div>
        <div>
            <table class="accountStateTable reponsiveMobileHide">
                <tbody>
                    <tr>
                        <td class="first">
                            <?php echo t('html_code', 'HTML Code'); ?>:
                        </td>
                        <td class="htmlCode">
                            <?php echo $file->getHtmlLinkCode(); ?>
                        </td>
                    </tr>
                    <tr>
                        <td class="first">
                            <?php echo UCWords(t('forum_code', 'forum code')); ?>
                        </td>
                        <td class="htmlCode">
                            <?php echo $file->getForumLinkCode(); ?>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="clear"><!-- --></div>
    <?php endif; ?>
/templates/flow/account_home.html

Remove:
Code:
<button type="button" class="btn btn-info" onClick="showLinkSection('popupContentHTMLCode', this);
                                    return false;"><?php echo t('urls_html_code', 'HTML Code'); ?></button>
                            <button type="button" class="btn btn-info" onClick="showLinkSection('popupContentBBCode', this);
                                    return false;"><?php echo t('urls_bbcode', 'Forum BBCode'); ?></button>
I think that's all of them