View Single Post
  #426  
Old 07-26-2006, 01:38 PM
Guest210212002
Guest
 
Posts: n/a
Default

I have no problems with it in FF at all. Here's my entire jukebox_mediadisplay template. Keep in mind that I cut a lot of stuff out of it, but see if it helps:

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[jukebox] - $vbphrase[jukebox_view_media]: $media[title]</title>
</head>
<body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" width="100%" colspan="2">$vbphrase[jukebox_view_media]<span class="normal"> $media[title] by $media[author]<if condition="$bbuserinfo['usergroupid'] ==6"> | <a href="$vboptions[bburl]/$admincpdir/jukeboxadmin.php?do=editmedia&amp;mid=$media[mediaid]">Edit</a> | <a href="$vboptions[bburl]/$admincpdir/jukeboxadmin.php?do=deletemedia&amp;mid=$media[mediaid]">Delete</a></if></span></td> 
        <if condition="$can['rate']">
<td id="mediarate" class="vbmenu_control" nowrap="nowrap"><a href="#mediarate"><if condition="$mediarating==0">Rate This Song/Video<else />Rating: <img src="$stylevar[imgdir_rating]/rating_$mediarating.gif" border="0" alt="" /></if></a> <script type="text/javascript"> vbmenu_register("mediarate"); </script></td>
</if>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="thead" width="50%" colspan="2">Now Playing:</td>
      <td class="thead" width="50%" colspan="2">Track Information:</td>
</tr>
<tr>
	<td class="panelsurround" align="center" colspan="2">
	<div class="panel">
		<div align="center">
			<fieldset class="fieldset"><legend>$media[title] by $media[author]</legend>
				<if condition="$media[type]=='adobe_flash'">
					<!-- Abode Flash -->
					<object data="$media[url]" type="$media[mime]" width="$media[width]" height="$media[height]" class="player_mozilla" style="*display:none;">
		 			 <PARAM NAME=bgcolor VALUE="#555555">
					 <param name="play" value="$media[autoplay]" />
		  		 <param name="wmode" value="opaque" />
		  		 <param name="quality" value="high" />
					</object>
					<!--[if IE]>
					<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="$media[width]" height="$media[height]">
		 				<PARAM NAME=bgcolor VALUE="#555555">
						<param name="movie" value="$media[url]" />
		  			<param name="play" value="$media[autoplay]" />
		  			<param name="wmode" value="opaque" />
		  			<param name="quality" value="high" />
					</object>
					<![endif]-->
				</if>
				<if condition="$media[type]=='quick_time'">
				<!-- Quick Time -->
				<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="$media[width]" height="$media[height]">
		  		<param name="autoplay" value="$media[autoplay]" />
		  		<param name="src" value="$media[url]" />
				</object>
				</if>
				<if condition="$media[type]=='real_media'">
				<!-- Real Media -->
				<!-- IE or Mozilla -->
				<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="$media[width]" height="$media[height]">
		  		<param name="src" value="$media[url]" />
		  		<param name="controls" value="Imagewindow" />
		  		<param name="console" value="clip$media[mediaid]" />
		 		 <param name="autostart" value="$media[autoplay]" />
		  		<embed src="$media[url]" type="$media[mime]" autostart="$media[autoplay]" console="clip$media[mediaid]" width="$media[width]" height="$media[height]" controls="Imagewindow"></embed><br /> 
				</object>
				<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="$media[width]" height="42">
		  		<param name="src" value="$media[url]" />
		  		<param name="controls" value="ControlPanel" />
		  		<param name="console" value="clip$media[mediaid]" />
		 		  <param name="autostart" value="$media[autoplay]" />
		  		<embed src="$media[url]" type="$media[mime]" autostart="$media[autoplay]" console="clip$media[mediaid]" width="$media[width]" height="42" controls="ControlPanel"></embed> 
				</object>
				</if>
				<if condition="$media[type]=='windows_media'">
				<!-- Windows Media -->
					<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="$media[width]" height="$media[height]">
		  			<param name="autoplay" value="$media[autoplay]" />
		  			<param name="filename" value="$media[url]" />
					</object>
				</if>
                     
			</fieldset>
			</div>
		</div>
		</td>
	<td class="panelsurround" align="center" colspan="2">
	<div class="panel" style="height:100%; display:block;">
		<div align="$stylevar[left]">
		   <fieldset class="fieldset"><legend>Description:</legend>	
                   $media[description]
               </fieldset>
		</div>
	</div>
	</td>
</tr>
</table>
<br />

<div align="center" class="smallfont">
    <a href="jukebox.php?$session[sessionurl]do=view&amp;type=media&amp;mid=$prem">? Previous Item</a>&nbsp;|&nbsp;<a href="jukebox.php?$session[sessionurl]do=view&amp;type=media&amp;mid=$nextm">Next Item ?</a>
</div>

<br />

<if condition="$can['comment']">
<div style="padding-bottom:2px">
   <!-- <a href="jukebox.php?$session[sessionurl_q]do=add&amp;type=comment&amp;mid=$media[mediaid]" rel="nofollow"><img src="$stylevar[imgdir_button]/addcomment.gif" border="0" alt="Add Comment" /></a> -->
</div>
</if>

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" border="0" width="100%">
<thead>  
     <tr>
          <td class="tcat" colspan="2">Comments on $media[title]</td>
     </tr>
</thead>
<tbody>
     $commentbits
</tbody>
</table>

<!-- CQ 
<if condition="$can['comment']">
<div style="padding-top:2px">
   <a href="jukebox.php?$session[sessionurl_q]do=add&amp;type=comment&amp;mid=$media[mediaid]" rel="nofollow"><img src="$stylevar[imgdir_button]/addcomment.gif" border="0" alt="Add Comment" /></a> -->
</div>
</if>

<br />

<if condition="$can['comment']">
$vBeditTemplate[clientscript]
<div id="posts" style="display: none"></div>

<form action="jukebox.php" method="post" name="vbform" onsubmit="return qr_prepare_submit(this, $vboptions[postminchars]);" id="qrform">

<input type="hidden" id="qr_postid" name="postid" value="1" />
<input type="hidden" name="preview" value="" />
<input type="hidden" name="do" value="insert" />
<input type="hidden" name="type" value="comment" />
<input type="hidden" name="mid" value="$media[mediaid]" />

<table class="tborder" align="center" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" width="100%">
    <thead><tr>
               <td class="tcat" colspan="2"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a>Add a Comment</td>
    </tr></thead>
   <tbody id="collapseobj_quickreply" style="$vbcollapse[collapseobj_quickreply]">
<tr>
	<td class="panelsurround" align="center">
		<div class="panel">	
			<table cellpadding="0" cellspacing="0" border="0" align="center">
			<tr>
				<td class="smallfont" align="$stylevar[left]">$vbphrase[message]:</td>
			</tr>
			<tr>
				<td id="$editorid" class="vBulletin_editor" align="$stylevar[left]">$messagearea</td>
			</tr>
			</table>
		</div>	
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="Add Comment" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" id="qr_submit" onclick="clickedelm = this.value" />
</div>
</tr>
</td>
</tbody>
</table>
</form>
</if>
<br />

<!-- Popup Menus -->
<div class="vbmenu_popup" id="mediarate_menu" style="display:none">
<form action="jukebox.php?do=ratemedia" method="post">
<if condition="$show['voteform']">
<table cellpadding="4" cellspacing="1" border="0">
	<tr>
		<td class="thead">Rate $media[title]</td>
	</tr>
<tr>
		<td class="vbmenu_option" title="nohilite">
		<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="5"><input type="radio" name="rating" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
		<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="4"><input type="radio" name="rating" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
		<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="3"><input type="radio" name="rating" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
		<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="2"><input type="radio" name="rating" id="2" value="vote2" $votechecked[2] />$vbphrase[bad]</label></div>
		<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="1"><input type="radio" name="rating" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
		</td>
	</tr>
        <tr>
		<td class="vbmenu_option" title="nohilite" align="center">
			<input type="hidden" name="s" value="$session[dbsessionhash]" />
			<input type="submit" class="button" value="$vbphrase[vote_now]" />
                        <input type="hidden" name="mid" value="$media[mediaid]" />
		</td>
	</tr>
</table>
</form>
<else />
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
		<td class="vbmenu_option" title="nohilite">
                     You have already voted or cannot vote on this item
                </td>
</tr>
</table>
</if>
</div>
<!-- / Popup Menus -->

$footer

</body>
</html>
The one thing really killing me with this hack is the lack of usergroup file-count permissions. There's nothing really stopping a new user from signing up and uploading 500 megs of stuff.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01327 seconds
  • Memory Usage 1,837KB
  • 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_code
  • (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_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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete