Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
8WayRun.Com - Media Library Details »»
8WayRun.Com - Media Library
Version: 4.1.7, by Jaxel Jaxel is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Major Additions - Version: 4.0.x Rating:
Released: 04-16-2010 Last Update: 10-26-2010 Installs: 915
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

Don't forget to click INSTALL!
I'm an unemployed computer programmer... if you appreciate the work I have done on this mod, please don't hesitate in offering me a donation by clicking the "Support Developer" link to the right of this text. A donation of $50 or more automatically gives you the right to remove the copyright footer for this modification from a single forum.

This is a new modification, spawning from the old VB 3.x Video Directory modifications.
For all intents and purposes, both my old Video Directory Remixed mod, and Survivor's original Video Directory mod have been discontinued. Neither of us are maintaining these older versions, they will not receive any future updates and we will not be providing any support. This version has a new name because it has been completely rewritten from scratch and is not being built on Survivor's old code. Because of this, if you are upgrading to this new version, from the old version, be sure to read this entire post in order to understand the upgrade process.

What is this mod?
Simply put, this mod is a directory for media. It supports URL inputs, in order to extract meta data and directorize media into a simple and easy to understand library. Users can add their favorite media from a select few online distribution centers (such as Youtube or Vimeo) and categorize and tag them as they see fit. This mod offers rudimentary support for the hosting of local media. 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.

Demo:
http://www.8wayrun.com/media.php

Features:
  • Integrated directly into the vBulletin user database and product manager.
  • Fully phrased and built on tempaltes for easy re-skinning and styling.
  • Simple to use administration features and usergroup permission settings.
  • Landing page with the most recent, most popular and highest rated media.
  • Ability to add media into a single category, while adding multiple tags.
  • Ability to browse media through categories, tags, and user contributions.
  • Summary tag cloud with a link to the entire list of tags in the system.
  • Comment and rating system based on AJAX including graceful degredation.
  • Individual RSS Feeds for newest videos, categories, tags and user media.
  • Search function for titles and descriptions.
Installation:
If you are upgrading from before version 1.1, please install that version first.
  1. Upload all the files in the "upload" directory of the attached zip file to your forum root.
  2. CHMOD the /customVID/thumbs/ directory to full read/write/execute 777 permissions.
  3. CHMOD the /customVID/sitemap/ directory to full read/write/execute 777 permissions.
  4. Import the product file called "product-medialibrary.xml" in the Product Manager of vBulletin.
  5. Set your usergroup permissions and media library settings in your administration control panel.
  6. OPTIONAL: Enable the "Generate XML Media Sitemap" scheduled task in your administration control panel.

    NOTES: Make sure you decide what you wish to use for your thumbnail quality setting. By default, thumbnails are saved at 50% quality. At 50%, thumbnails will only be 2kb in size, but at the expense of quality. At 100%, thumbnails will be about 15kb in size, but will have the highest quality. I recommend setting it to 80%, which would leave thumbnails at 5kb in size with still excellent quality.

    Every time you change your thumbnail quality setting, you will need to run the "Rebuild Media Thumbnails" to see any changes.
Upgrading from VDR:
  1. The "video*" tables from your previous installation of VDR need to exist in your database.
  2. Enable the "media ADMIN import" plugin in the plugin manager of your control panel.
  3. Run the "Import Media from VDR" process in your update counters menu in maintenance.
  4. Disable the "media ADMIN import" plugin in the plugin manager of your control panel.
  5. Run the "Rebuild Media Thumbnails" process in your update counters menu in maintenance.
  6. You may now uninstall VDR once you confirm everything has been imported as intended.

    NOTES: You will mostly likely get at least one error while rebuilding media thumbnails...

    When you get an error, click the details link for that media. If the media displays some sort of error such as "This video has been removed" or "This video no longer exist", then that means that media is gone and you'll be unable to generate a thumbnail for that particular media. Use the available options on that media's detail page to DELETE it from your library. Then go back to your browser window which is rebuilding thumbnails and click the "retry from this position" link.

    If you got an error for a media, but after clicking the details link you can find no obvious error with the video; then the error could have just been a simple syn/ack failure. Just click the "retry from this position" link and the system will try to rebuild that thumbnail again.
Known Bugs:
There is a conflict with this modification and some of Valter's VSA modifications that will prevent navbar permissions from being handled correctly. I don't know exactly who's fault it is; but I'm pretty sure there are no errors in my code that would be causing this problem. There is a work around for this however.

Admin Control Panel > Plugins & Products > Plugin Manager > "media NAVTAB"

Find the code:
Code:
    $perms = media_permissions();
Replace with:
Code:
$perms['rate'] = true;
$perms['comment'] = true;
$perms['submit'] = true;
$perms['playlist'] = true;
 
if (is_member_of($vbulletin->userinfo, explode(',','5,6')))
{
    $perms['modtags'] = true;
    $perms['modcategory'] = true;
    $perms['modservice'] = true;
}

Download Now

File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2152  
Old 07-13-2011, 09:17 AM
gariksher gariksher is offline
 
Join Date: Feb 2011
Location: Russia
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you all!
I solved the problem.

At "DETAILS: Comments Per Page" don`t put 0 !!!!
Reply With Quote
  #2153  
Old 07-13-2011, 02:43 PM
byalik byalik is offline
 
Join Date: Oct 2006
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #2154  
Old 07-14-2011, 02:45 PM
byalik byalik is offline
 
Join Date: Oct 2006
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have instructions on how to upload custom videos? I can't seem to figure it out
Reply With Quote
  #2155  
Old 07-14-2011, 06:45 PM
michal72 michal72 is offline
 
Join Date: Nov 2010
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by byalik View Post
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)
Reply With Quote
  #2156  
Old 07-15-2011, 01:37 AM
un? in? un? in? is offline
 
Join Date: Jul 2011
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank for support :X
Reply With Quote
  #2157  
Old 07-15-2011, 10:56 PM
webcosmo's Avatar
webcosmo webcosmo is offline
 
Join Date: Apr 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #2158  
Old 07-16-2011, 07:09 AM
MotMann MotMann is offline
 
Join Date: Jan 2006
Location: Germany
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #2159  
Old 07-20-2011, 07:20 PM
KpDaCancunLegen KpDaCancunLegen is offline
 
Join Date: Oct 2010
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post

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;
}
Reply With Quote
  #2160  
Old 07-20-2011, 09:46 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #2161  
Old 07-20-2011, 09:47 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Благодарность от:
puertoblack2003
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07298 seconds
  • Memory Usage 2,545KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (4)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (17)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete