vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - 8WayRun.Com - Media Library (https://vborg.vbsupport.ru/showthread.php?t=240677)

gariksher 07-13-2011 09:17 AM

Thank you all!
I solved the problem.

At "DETAILS: Comments Per Page" don`t put 0 !!!!

byalik 07-13-2011 02:43 PM

I am having same issues as others:

Getting this error : "The description you have entered is too short (0 characters). Please lengthen your description to at least 5 characters." when submitting from the nav bar but it works when submitting Media at bottom of page main page?

Also is it possible to add your own videos from your computer/server?

byalik 07-14-2011 02:45 PM

Does anyone have instructions on how to upload custom videos? I can't seem to figure it out

michal72 07-14-2011 06:45 PM

Quote:

Originally Posted by byalik (Post 2220456)
Does anyone have instructions on how to upload custom videos? I can't seem to figure it out


Quote:

An administrator can upload a media to the /customVID/ (default) directory; then add the media to the library using the URL code of "local:filename". Media hosted locally will be displayed using JWPlayer, but will not provide meta data, so that kind of information will need to be entered manually.
local services xml files are in directory upload/media/xml (Local-MP3.xml,Local-MP4.xml,Local-WMA.xml,Local-WMV.xml)

un? in? 07-15-2011 01:37 AM

Thank for support :X

webcosmo 07-15-2011 10:56 PM

I am getting a 404 for
clientscript/vbulletin_css/style00005l/8WR_media.css

I have "Store CSS Stylesheets as Files?" set as No.

Please suggest.

MotMann 07-16-2011 07:09 AM

The Links don't work.
That is a problem in my htaccess. Need help ...

Code:

## Charset
AddDefaultCharset Off

## ETags
FileETag None

## Expires
<ifModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault "access plus 1 seconds"
        ExpiresByType text/html "access plus 1 seconds"
        ExpiresByType image/gif "access plus 259200000 seconds"
        ExpiresByType image/jpeg "access plus 259200000 seconds"
        ExpiresByType image/png "access plus 259200000 seconds"
        ExpiresByType text/css "access plus 60480000 seconds"
        ExpiresByType text/javascript "access plus 21600000 seconds"
        ExpiresByType application/x-javascript "access plus 21600000 seconds"
</ifModule>

## Compression
<ifmodule mod_headers.c>
        <ifmodule mod_deflate.c>
                AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
                BrowserMatch ^Mozilla/4 gzip-only-text/html
                BrowserMatch ^Mozilla/4\.0[678] no-gzip
                BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
        </ifmodule>
</ifmodule>

## Rewrites
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

#####Start VB Pro Garage Settings##########

RewriteRule ^garage.html$ garage.php [NC,L]
RewriteRule ^garage-kategorie-([0-9]+)-([0-9]+).html$ garage.php?sub_id=$1&page=$2 [QSA,NC,L]
RewriteRule ^garage-kategorie-([0-9]+).html$ garage.php?sub_id=$1 [QSA,NC,L]
RewriteRule ^garage-browse-([0-9]+).html$ garage.php?do=browse&page=$1 [QSA,NC,L]
RewriteRule ^garage-browse.html$ garage.php?do=browse [QSA,NC,L]
RewriteRule ^garage-suche.html$ garage.php?do=search [QSA,NC,L]
RewriteRule ^garage-fahrrad-map.html$ garage.php?do=veh_map [NC,L]
RewriteRule ^garage-such_ergebnisse-([0-9]+).html$ garage.php?do=search_results&page=$1 [QSA,NC,L]
RewriteRule ^garage-such_ergebnisse.html$ garage.php?do=search_results [QSA,NC,L]
RewriteRule ^garage-timeslips-([0-9]+).html$ garage.php?do=timeslip&page=$1 [QSA,NC,L]
RewriteRule ^garage-timeslips.html$ garage.php?do=timeslip [QSA,NC,L]
RewriteRule ^garage-fahrrad-([0-9]+)-AllImages-([a-zA-Z0-9_-]+).html$ garage_vehicle.php?do=view_vehicle&subdo=images&order=all&id=$1 [NC,L]
RewriteRule ^garage-fahrrad-([0-9]+)-([a-zA-Z0-9_-]+).html$ garage_vehicle.php?do=view_vehicle&id=$1 [NC,L]
RewriteRule ^garage-bilder-kommentare-([0-9]+)-([0-9]+).html$ garage_comments.php?do=view_img_comments&id=$1&page=$2 [NC,L]
RewriteRule ^garage-bilder-kommentare-([0-9]+).html$ garage_comments.php?do=view_img_comments&id=$1 [NC,L]
RewriteRule ^garage-user-view-([0-9]+).html$ garage.php?do=user_garage_view&id=$1 [NC,L]
RewriteRule ^garage-attach-([0-9]+).html$ garage_attachment.php?id=$1 [NC,L]
RewriteRule ^garage-attach-([0-9]+)-full.html$ garage_attachment.php?id=$1&attach_type=full [NC,L]
RewriteRule ^garage-view-timeslip-([0-9]+).html$ garage_timeslips.php?do=view_timeslip&id=$1 [NC,L]
RewriteRule ^garage-alle-kommentare-([0-9]+).html$ garage_comments.php?do=viewall&page=$1 [NC,L]
RewriteRule ^garage-alle-kommentare.html$ garage_comments.php?do=viewall [NC,L]
RewriteRule ^garage-browse-make-([0-9]+)-([a-zA-Z0-9_-]+).html$ garage.php?do=browse_front_model&front_make_id=$1 [NC,L]
RewriteRule ^garage-browse-model-([0-9]+)-([0-9]+)-([a-zA-Z0-9_-]+).html$ garage.php?do=browse_model&front_model_id=$2&page=$1 [NC,L]
RewriteRule ^garage-browse-model-([0-9]+)-([a-zA-Z0-9_-]+).html$ garage.php?do=browse_model&front_model_id=$1 [NC,L]

#####End VB Pro Garage Settings##########

# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^entries/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]


Look here: http://www.fahrradtreffpunkt.de/media.php

No mediafiles i can play.

KpDaCancunLegen 07-20-2011 07:20 PM

Can someone point me in the right direction, I did read and, I am not trying to be spoon fed, but for some reason I can not seem to find the 4 template lines to replace. I have searched and searched. I do not see it in the below templates when I opened them and to top it off, I dont see a template for 8WR_media_details_edit. Any help would be appreciated in getting this mod fixed to work with vb4.14 would be greatly appreciated. I replaced the template lines in the media_ajax_comment.js file with no problems.

Respectfully,
KP



Quote:

Originally Posted by Gemma (Post 2217522)

8WR_media_comment
8WR_media_details
8WR_media_details_edit
8WR_media_submit


In the above templates, find (in all 4 templates)
Code:

.prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})
Replace with
Code:

.prepare_submit(0, {vb:raw vboptions.postminchars})
Then in your media_ajax_comment.js file, find
Code:

function post_comment(mid)
{
    if (!fetch_object('vB_Editor_QR_textarea').value)
    {
        return false;
    }

    fetch_object('commentsubmit').value = vbphrase['post_comment_wait'];
    fetch_object('commentsubmit').disabled = true;

    YAHOO.util.Connect.asyncRequest("POST", "media_ajax.php?do=comment", {
        success: send_comment,
        failure: vBulletin_AJAX_Error_Handler,
        timeout: 15000
    }, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + "&mid=" + mid + "&message=" + PHP.urlencode(fetch_object('vB_Editor_QR_textarea').value));

    return false;
}

And replace that with
Code:

function post_comment(mid)
{
    var inptval=vB_Editor['vB_Editor_QR'].get_editor_contents();
   
    if(!vB_Editor['vB_Editor_QR'].prepare_submit(0, 0)) {
        return false;
    }
    fetch_object('commentsubmit').value = vbphrase['post_comment_wait'];
    fetch_object('commentsubmit').disabled = true;

    YAHOO.util.Connect.asyncRequest("POST", "media_ajax.php?do=comment", {
        success: send_comment,
        failure: vBulletin_AJAX_Error_Handler,
        timeout: 15000
    }, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + "&mid=" + mid + "&message=" + PHP.urlencode(inptval));

    return false;
}



8thos 07-20-2011 09:46 PM

Please Just replace the whole templates with the following codes.

8WR_media_comment

HTML Code:

<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
 
<form action="media.php" name="vbform" method="post" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(0, {vb:raw vboptions.postminchars})">
 
<div class="mediahead">{vb:phrase media_comment_edit}</div>
<div class="mediabody">
    <div class="mediarow" style="margin-bottom: {vb:stylevar media_margin}px; text-align: left;"><label id="editor_message">{vb:phrase message_by_x_on_y_at_z, {vb:link member, {vb:raw comment}}, {vb:var comment.username}, {vb:var comment.date}, {vb:var comment.time}}:</label></div>
    <div class="mediarow floatcontainer" style="padding: 10px;">{vb:raw messagearea}</div>
    <div class="mediarow floatcontainer" style="margin-top: {vb:stylevar media_margin}px;">
        <div style="float: right">
            <input type="radio" class="primary full radio" name="action" value="save" checked="checked" /> {vb:phrase media_save}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" class="primary full radio" name="action" value="delete" /> {vb:phrase media_delete}
        </div>
        <div style="float: left"><b>{vb:phrase media_saveordelete}</b></div>
        (<i>{vb:phrase media_delete_info}</i> )
    </div>
    <div style="margin-top: {vb:stylevar media_margin}px; text-align: center;"><input type="submit" class="button" name="submit" value="{vb:phrase media_comment_edit}" /></div>
</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="comment_data" />
<input type="hidden" name="mid" value="{vb:var comment.mediaID}" />
<input type="hidden" name="cmt" value="{vb:var comment.commentID}" />
 
</form>

8WR_media_details

HTML Code:

<div class="mediahead">{vb:var media.title}</div>
<div class="mediabody">
 
    <div class="mediarow" style="margin-bottom: {vb:stylevar media_margin}px;">
        <vb:if condition="$perms['edit'] OR $perms['modedit']">
            <div style="float: right; padding-left: 10px;"><a href="{vb:raw href.details_tags}" class="button">{vb:phrase media_tags_edit}</a></div>
            <div style="float: right; padding-left: 10px;"><a href="{vb:raw href.details_edit}" class="button">{vb:phrase media_details_edit}</a></div>
        </vb:if>
        <vb:if condition="$perms['report']">
            <div style="float: right; padding-left: 10px;"><a href="{vb:raw href.details_report}" class="button">{vb:phrase media_report}</a></div>
        </vb:if>
        <div id="mediafaves" style="float: left;">{vb:raw mediafaves}</div>
        <b>{vb:var media.title}</b> <vb:if condition="!$media['embed_stream']">({vb:var media.length})</vb:if>
    </div>
 
    <vb:if condition="$playlist">
    <div class="mediarow floatcontainer" style="margin-bottom: {vb:stylevar media_margin}px;">
        <vb:if condition="$next">
            <div style="float: right; padding-left: 10px;"><b>Next &raquo;</b> ({vb:var next.pos} of {vb:var playlist.count})<br /><a href="{vb:raw next.href}">{vb:var next.title}</a></div>
        </vb:if>
        <vb:if condition="$prev">
            <div style="float: left; padding-right: 10px;">({vb:var prev.pos} of {vb:var playlist.count}) <b>&laquo; Previous</b><br /><a href="{vb:raw prev.href}">{vb:var prev.title}</a></div>
        </vb:if>
        <b><a href="{vb:raw playlist.href}">{vb:var playlist.plName}</a></b>
    </div>
    </vb:if>
 
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
        <td<vb:if condition="!$media['embed_stream']"> style="padding-right: {vb:stylevar media_margin}px;"</vb:if> width="1%">
            <div class="mediarow" style="padding: 0px;" id="embed">
                {vb:raw media.embed}
    <vb:if condition="$media['embed_stream']">
                {vb:raw media.embed_stream}
    <vb:else />
            </div>
        </td>
        <td class="mediarow" valign="top">
            <b>{vb:phrase media_datetime,{vb:var media.date},{vb:var media.time}}</b><br />
            {vb:phrase media_uploadedby} <a href="{vb:raw href.user}">{vb:var media.username}</a><br />
            <br />
            <div class="popupmenu" id="mediarating">{vb:raw mediarating}</div>
            <br />
            <a href="{vb:raw href.category}">{vb:var media.catName}</a><br />
            {vb:phrase media_favorites}: {vb:var media.favorites} - {vb:phrase media_views}: {vb:var media.views}<br />
            {vb:phrase media_comments}: {vb:var media.comments}<br />
            <br />
            <input type="text" class="primary full textbox" onclick="this.focus(); this.select()" value="{vb:var href.details}" readonly="readonly" style="width: 90%;" /><br />
            <br />
        <vb:if condition="$vbulletin->options[media_bbcode]">
            <input type="text" class="primary full textbox" onclick="this.focus(); this.select()" value="[media={vb:var media.title}]{vb:var media.mediaID}[/media]" readonly="readonly" style="width: 90%;" /><br />
            <br />
        </vb:if>
            <b>{vb:phrase media_tags}:</b><br />
            <ul class="commalist">
                {vb:raw media.tags}
            </ul>
        </td>
    </vb:if>
</tr>
</table>
 
    <div class="mediarow floatcontainer" style="margin-top: {vb:stylevar media_margin}px; text-align: left;">
        <vb:if condition="$vbulletin->options[media_custom]">
            <vb:if condition="$vbulletin->options[media_custom1_name] && $media[custom1]">
                <b>{vb:raw vboptions.media_custom1_name}:</b> {vb:raw media.custom1}<br />
            </vb:if>
            <vb:if condition="$vbulletin->options[media_custom2_name] && $media[custom2]">
                <b>{vb:raw vboptions.media_custom2_name}:</b> {vb:raw media.custom2}<br />
            </vb:if>
            <vb:if condition="$vbulletin->options[media_custom3_name] && $media[custom3]">
                <b>{vb:raw vboptions.media_custom3_name}:</b> {vb:raw media.custom3}<br />
            </vb:if>
            <vb:if condition="$vbulletin->options[media_custom4_name] && $media[custom4]">
                <b>{vb:raw vboptions.media_custom4_name}:</b> {vb:raw media.custom4}<br />
            </vb:if>
            <vb:if condition="$vbulletin->options[media_custom5_name] && $media[custom5]">
                <b>{vb:raw vboptions.media_custom5_name}:</b> {vb:raw media.custom5}<br />
            </vb:if>
            <vb:if condition="$vbulletin->options[media_custom6_name] && $media[custom6]">
                <b>{vb:raw vboptions.media_custom6_name}:</b> {vb:raw media.custom6}<br />
            </vb:if>
            <vb:if condition="$vbulletin->options[media_custom7_name] && $media[custom7]">
                <b>{vb:raw vboptions.media_custom7_name}:</b> {vb:raw media.custom7}<br />
            </vb:if>
            <vb:if condition="$vbulletin->options[media_custom8_name] && $media[custom8]">
                <b>{vb:raw vboptions.media_custom8_name}:</b> {vb:raw media.custom8}<br />
            </vb:if>
            <vb:if condition="$vbulletin->options[media_custom9_name] && $media[custom9]">
                <b>{vb:raw vboptions.media_custom9_name}:</b> {vb:raw media.custom9}<br />
            </vb:if>
            <vb:if condition="$media[custom1] || $media[custom2] || $media[custom3] || $media[custom4] || $media[custom5] || $media[custom6] || $media[custom7] || $media[custom8] || $media[custom9]">
                <br />
            </vb:if>
        </vb:if>
        {vb:raw media.description}
    </div>
</div>
 
<div class="mediahead">{vb:phrase media_comment_submit}</div>
<div class="mediabody">
<vb:if condition="$perms['comment']">
    <script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
    <script type="text/javascript" src="clientscript/vbulletin_textedit.js?v={vb:raw vboptions.simpleversion}"></script>
 
    <form action="media.php" name="vbform" method="post" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(0, {vb:raw vboptions.postminchars})">
 
    <div id="commentform">
        <div class="mediarow floatcontainer" style="padding: 10px;">
            {vb:raw messagearea}
        </div>
    </div>
    <div style="padding-right: 30px; text-align: right;">
        <input type="submit" class="button" name="commentsubmit" id="commentsubmit" value="{vb:phrase media_comment_submit}" />
    </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="comment" />
    <input type="hidden" name="mid" value="{vb:var media.mediaID}" />
 
    </form>
</vb:if>
 
    <div id="mediasubs" style="float: left; margin-right: 10px;">{vb:raw mediasubs}</div>
    <div id="pagination_top">{vb:raw pagenav}</div><br /><br />
 
    <div class="mediarow" style="padding: 10px; text-align: left;">
        <ol id="message_list" class="list_no_decoration">
            <vb:if condition="$commentbits">
                {vb:raw commentbits}
            <vb:else />
                <li style="text-align: center; padding: 10px;">{vb:phrase media_comments_none}</li>
            </vb:if>
        </ol>       
    </div>
</div>
 
<script type="text/javascript" src="media/media_ajax_rating.js"></script>
<script type="text/javascript" src="media/media_ajax_comment.js"></script>
<script type="text/javascript" src="media/media_ajax_faves.js"></script>
<script type="text/javascript" src="media/media_ajax_subs.js"></script>
<script type="text/javascript">
<!--
    vbphrase['post_comment'] = '{vb:phrase media_comment_done}';
    vbphrase['post_comment_wait'] = '{vb:phrase media_comment_wait}';
    vbphrase['post_comment_fail'] = '{vb:phrase media_comment_submit}';
 
    rating_init({vb:var media.mediaID});
    comment_init({vb:var media.mediaID},<vb:if condition="$playlist">
{vb:var playlist.playlistID}<vb:else />0</vb:if>);
    faves_init({vb:var media.mediaID},<vb:if condition="$playlist">{vb:var playlist.playlistID}<vb:else />0</vb:if>);
    subs_init({vb:var media.mediaID},<vb:if condition="$playlist">{vb:var playlist.playlistID}<vb:else />0</vb:if>);
-->

</script>


8thos 07-20-2011 09:47 PM

8WR_media_details_edit

HTML Code:

<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>

<form action="media.php" name="vbform" method="post" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(0, {vb:raw vboptions.postminchars})">

<div class="mediahead">{vb:phrase media_details_edit}</div>
<div class="mediabody">
        <div class="mediarow" style="margin-bottom: {vb:stylevar media_margin}px;">
                <b>{vb:phrase media_title}:</b>&nbsp;&nbsp;
                <input type="text" class="primary full textbox" name="title" style="width: 40%;" value="{vb:var media.title}" />&nbsp;&nbsp;
                <b>{vb:phrase media_category}:</b>&nbsp;&nbsp;
                <select class="primary full" name="category">{vb:raw catselect}</select>&nbsp;&nbsp;
                <b>{vb:phrase media_length}:</b>&nbsp;&nbsp;
                <input type="text" class="primary full textbox" name="minutes" style="width: 20px; text-align: right;" maxlength="3" value="{vb:var media.minutes}" /> min
                <input type="text" class="primary full textbox" name="seconds" style="width: 15px; text-align: right;" maxlength="2" value="{vb:var media.seconds}" /> sec
        </div>
        <div class="mediarow floatcontainer" style="padding: 10px; margin-top: {vb:stylevar media_margin}px;">{vb:raw messagearea}</div>

        <vb:if condition="$vbulletin->options[media_custom]">
        <div class="mediarow" style="margin-top: {vb:stylevar media_margin}px;">
                <vb:if condition="$vbulletin->options[media_custom1_name]">
                        <span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom1_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom1" style="width: 70%;" value="{vb:var media.custom1}" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom2_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom2_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom2" style="width: 70%;" value="{vb:var media.custom2}" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom3_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom3_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom3" style="width: 70%;" value="{vb:var media.custom3}" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom4_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom4_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom4" style="width: 70%;" value="{vb:var media.custom4}" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom5_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom5_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom5" style="width: 70%;" value="{vb:var media.custom5}" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom6_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom6_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom6" style="width: 70%;" value="{vb:var media.custom6}" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom7_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom7_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom7" style="width: 70%;" value="{vb:var media.custom7}" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom8_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom8_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom8" style="width: 70%;" value="{vb:var media.custom8}" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom9_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom9_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom9" style="width: 70%;" value="{vb:var media.custom9}" /><br />
                </vb:if>
        </div>
        </vb:if>

        <div class="mediarow floatcontainer" style="margin-top: {vb:stylevar media_margin}px;">
                <div style="float: right">
                        <input type="radio" class="primary full radio" name="action" value="save" checked="checked" /> {vb:phrase media_save}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="radio" class="primary full radio" name="action" value="delete" /> {vb:phrase media_delete}
                </div>
                <div style="float: left"><b>{vb:phrase media_saveordelete}</b></div>
                (<i>{vb:phrase media_delete_info}</i> )
        </div>
        <div style="margin-top: {vb:stylevar media_margin}px; text-align: center;"><input type="submit" class="button" name="submit" value="{vb:phrase media_details_edit}" /></div>
</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="details_data" />
<input type="hidden" name="mid" value="{vb:var media.mediaID}" />

</form>

<form action="media.php" method="post" enctype="multipart/form-data">

<div class="mediahead">{vb:phrase media_details_thumb}</div>
<div class="mediabody">
        <div class="mediarow floatcontainer">
                <div style="float: left; padding-right: {vb:stylevar media_margin}px; "><img src="{vb:var media.thumbnail}" border="0" alt="" /></div>
                <input type="file" class="primary full file" name="upload" size="50" />&nbsp;
                <input type="submit" class="button" name="submit" value="{vb:phrase media_details_upload}" /><br />
                <br />
                {vb:phrase media_details_info}
        </div>
</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="details_thumb" />
<input type="hidden" name="mid" value="{vb:var media.mediaID}" />
</form>


8WR_media_submit

HTML Code:

<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>

<div class="mediahead">{vb:phrase media_submit}</div>
<div class="mediabody">

        <form action="media.php" name="vbform" method="post">

        <div class="mediarow" style="margin-bottom: {vb:stylevar media_margin}px;">
                <b>{vb:phrase media_url}:</b>&nbsp;&nbsp;
                <input type="text" class="primary full textbox" name="source" id="source" style="width: 65%;" value="{vb:var feed.source}" />&nbsp;&nbsp;
                <input type="submit" class="button" name="getxmlfeeds" id="getxmlfeeds" value="{vb:phrase media_submit_retrieve}" />
        </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="submit" />
        </form>

        <form action="media.php" name="vbform" method="post" onsubmit="return validate(); return vB_Editor['{vb:raw editorid}'].prepare_submit(0, {vb:raw vboptions.postminchars})">

        <div class="mediarow" style="margin-bottom: {vb:stylevar media_margin}px;">
                <b>{vb:phrase media_title}:</b>&nbsp;&nbsp;
                <input type="text" class="primary full textbox" name="title" id="title" style="width: 40%;" value="{vb:var feed.title}" />&nbsp;&nbsp;
                <b>{vb:phrase media_category}:</b>&nbsp;&nbsp;
                <select class="primary full" name="category" id="category">{vb:raw catselect}</select>&nbsp;&nbsp;
                <b>{vb:phrase media_length}:</b>&nbsp;&nbsp;
                <input type="text" class="primary full textbox" name="minutes" id="minutes" style="width: 20px; text-align: right;" maxlength="3" value="{vb:var feed.minutes}" /> {vb:phrase media_min}
                <input type="text" class="primary full textbox" name="seconds" id="seconds" style="width: 15px; text-align: right;" maxlength="2" value="{vb:var feed.seconds}" /> {vb:phrase media_sec}
        </div>

<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
        <td style="padding-right: {vb:stylevar media_margin}px;" width="1%"><div class="mediarow" style="border: 0px; padding: 0px;" id="embed">{vb:raw feed.embed}</div></td>
        <td class="mediarow" valign="top">
                <div id="thumbnail_border" style="padding-bottom: 20px;<vb:if condition="!$feed">display: none;</vb:if>">
                        <b>{vb:phrase media_thumbnail}:</b><br />
                        <br />
                        <img src="{vb:var feed.thumbnail}" border="0" name="thumbnail_image" id="thumbnail_image" width="150" alt="" />
                </div>
                <b>{vb:phrase media_tags}:</b><br />
                <br />
                <textarea class="primary full textarea" name="taglist" id="taglist" style="width: 90%; height: 128px;" cols="" rows="">{vb:var feed.taglist}</textarea><br />
                <div style="font-size: 80%; padding-top: 5px;">{vb:phrase media_tags_comma}</div>
        </td>
</tr>
</table>

        <div class="mediarow floatcontainer" style="padding: 10px; margin-top: {vb:stylevar media_margin}px;">{vb:raw messagearea}</div>

        <vb:if condition="$vbulletin->options[media_custom]">
        <div class="mediarow" style="margin-top: {vb:stylevar media_margin}px;">
                <vb:if condition="$vbulletin->options[media_custom1_name]">
                        <span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom1_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom1" style="width: 70%;" value="" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom2_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom2_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom2" style="width: 70%;" value="" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom3_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom3_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom3" style="width: 70%;" value="" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom4_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom4_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom4" style="width: 70%;" value="" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom5_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom5_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom5" style="width: 70%;" value="" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom6_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom6_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom6" style="width: 70%;" value="" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom7_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom7_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom7" style="width: 70%;" value="" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom8_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom8_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom8" style="width: 70%;" value="" /><br />
                </vb:if>
                <vb:if condition="$vbulletin->options[media_custom9_name]">
                        <br /><span style="display: inline-block; width: 100px;"><b>{vb:raw vboptions.media_custom9_name}</b></span>
                        <input type="text" class="primary full textbox" name="custom9" style="width: 70%;" value="" /><br />
                </vb:if>
        </div>
        </vb:if>

        <vb:if condition="$forum">
        <div class="mediarow floatcontainer" style="margin-top: {vb:stylevar media_margin}px;">
                <div style="float: right">
                        (<i>{vb:phrase media_newthread_info, {vb:var forum.title}}</i> )
                </div>
                <div style="float: left">
                        <input type="checkbox" class="primary full checkbox" name="newthread" value="newthread" />
                        &nbsp;&nbsp;<b>{vb:phrase media_newthread}</b>
                </div>
        </div>
        </vb:if>

        <div style="text-align: center;"><input type="submit" class="button" name="submitbutton" id="submitbutton" value="{vb:phrase media_submit}" style="margin-top: {vb:stylevar media_margin}px; <vb:if condition="!$feed">display: none;</vb:if>" /></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="submit_data" />
        <input type="hidden" name="serviceID" id="serviceID" value="{vb:var feed.serviceID}" />
        <input type="hidden" name="serviceVAL" id="serviceVAL" value="{vb:var feed.serviceVAL}" />
        <input type="hidden" name="serviceVAL2" id="serviceVAL2" value="{vb:var feed.serviceVAL2}" />
        <input type="hidden" name="thumbnail" id="thumbnail" value="{vb:var feed.thumbnail}" />
        </form>

</div>

<script type="text/javascript" src="media/media_ajax_submit.js"></script>
<script type="text/javascript">
<!--
        vbphrase['retrieve_information'] = '{vb:phrase media_submit_retrieve}';
        vbphrase['retrieve_information_wait'] = '{vb:phrase media_submit_retrieve_wait}';
        vbphrase['media_validate_category'] = '{vb:phrase media_validate_category}';
        vbphrase['media_validate_title'] = '{vb:phrase media_validate_title}';
        vbphrase['media_validate_length'] = '{vb:phrase media_validate_length}';
        vbphrase['media_validate_desc'] = '{vb:phrase media_validate_desc}';
        vbphrase['media_validate_tags'] = '{vb:phrase media_validate_tags}';

        submit_init();
-->

</script>



All times are GMT. The time now is 06:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04150 seconds
  • Memory Usage 2,003KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete