Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2005, 08:55 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Upload Attatchements

My button to click upload attatchments is missing. The one labled "Manage Attatchments" isn't there. What template do I need ot edit and what code do I need to insert?
Reply With Quote
  #2  
Old 03-14-2005, 03:27 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are attachments allowed for your usergroup and in that specific forum? Check your permissions.
Reply With Quote
  #3  
Old 03-15-2005, 12:05 AM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes; they're allowed. One unmodified style has the button.
Reply With Quote
  #4  
Old 03-15-2005, 03:16 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If this only happens in 1 style, well i think you already guessed that something is wrong with that style then. Without more information i can't help you. I suggest you check at vbulletin-templates.com
Reply With Quote
  #5  
Old 03-15-2005, 03:36 AM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just need the coding that I need ot put in ther is all. Guess I'll head over there then. What tempalte would it be under>?
Reply With Quote
  #6  
Old 03-15-2005, 05:30 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you will need to look at the "newattachment" template, but difficult to tell without more info.

Did you set your Default Style as a parent to the new style? This could also help prevent problems.
Reply With Quote
  #7  
Old 03-16-2005, 02:31 AM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes; all styles are childeren of one style. Here is he new attachment template:

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vbphrase[manage_attachments] - $vboptions[bbtitle]</title>
$headinclude
</head>
<body style="margin:0px" onload="self.focus()">

<script type="text/javascript">
<!--
	function verify_upload(formobj)
	{
		var haveupload = false;
		for (var i=0; i < formobj.elements.length; i++)
		{
			var elm = formobj.elements[i];
			if (elm.type == 'file')
			{
				if (elm.value != "")
				{
					haveupload = true;
				}
			}
		}

		if (haveupload)
		{
			toggle_display('uploading');
			return true;
		}
		else
		{
			alert("$vbphrase[select_a_file_to_attach]");
			return false;
		}
	}

<if condition="$show['updateparent']">
	switch (vbDOMtype)
	{
		case "std":
		{
			var attachlist = window.opener.document.getElementById("attachlist");
		}
		break;
		
		case "ie4":
		{
			var attachlist = window.opener.document.all["attachlist"];
		}
	}

	attachlist.innerHTML = "$parentattach";
</if>

//-->
</script>

<form enctype="multipart/form-data" action="newattachment.php" name="newattachment" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="manageattach" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="p" value="$postid" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="editpost" value="$editpost" />
<input type="hidden" name="posthash" value="$posthash" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
	<td class="tcat">
		<span class="smallfont" style="float:$stylevar[right]"><a href="#" onclick="self.close()">$vbphrase[close_this_window]</a></span>
		$vbphrase[manage_attachments]
	</td>
</tr>
<if condition="$show['errors']">
<tr>
	<td class="thead">$vbphrase[upload_errors]</td>
</tr>
$errorlist
</if>
<tr>
	<td class="panelsurround" align="center">
	<div class="panel">
		<div align="$stylevar[left]">
			
			<fieldset class="fieldset">
				<legend>$vbphrase[upload_file]</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
				<if condition="$show['attachoption']">
				<tr>
					<td colspan="2"><phrase 1="$vbphrase[upload_word]">$vbphrase[use_x_to_find_file]</phrase></td>
				</tr>
				<tr>
					<td colspan="2">$vbphrase[valid_file_extensions]: $attachtypes[extensions]</td>
				</tr>
				<tr valign="bottom">
					<td>
						$vbphrase[file_to_upload]:
						<input type="hidden" name="MAX_FILE_SIZE" value="$inimaxattach" /><br />
						$attachinput
					</td>
					<td align="$stylevar[right]"><input type="submit" class="button" name="upload" value="$vbphrase[upload]" style="width:70px" onclick="return verify_upload(this.form);" /></td>
				</tr>
				<else />
				<tr>
					<td><phrase 1="$vboptions[attachlimit]">$vbphrase[have_uploaded_maximum_x_files]</phrase></td>
				</tr>
				</if>
				</table>
			</fieldset>
		
			<if condition="$show['attachmentlimits']">
				<div class="fieldset">
					<div style="padding:$stylevar[formspacer]px">
						<phrase 1="$attach_username">$vbphrase[sum_of_attachments_owned_by_x]</phrase>:
						$attachsum<br />
						<table style="border:2px groove" cellpadding="0" cellspacing="1" border="0" width="100%">
						<tr>
							<if condition="$show['currentsize']"><td width="$attachsize" bgcolor="red" style="border:1px outset" class="smallfont" title="<phrase 1="$attachsum">$vbphrase[current_attachment_total_x]</phrase>">&nbsp;</td></if>
							<if condition="$show['totalsize']"><td width="$totalsize" bgcolor="green" style="border:1px outset" class="smallfont" title="<phrase 1="$attachlimit">$vbphrase[maximum_attachment_storage_x]</phrase>">&nbsp;</td></if>
						</tr>
						</table>
					</div>
				</div>
			</if>
			
			<if condition="$show['attachmentlist']">
			<fieldset class="fieldset">
				<legend>$vbphrase[current_attachments]</legend>
				<div style="padding:$stylevar[formspacer]px">
					<table class="fieldset" cellpadding="0" cellspacing="1" border="0" width="100%">
					$attachments
					</table>
					<div>$vbphrase[space_used]: $totallimit</div>
				</div>
			</fieldset>
			</if>
		
		</div>
	</div>
	
	<div align="center" id="uploading" style="display:none; margin-top:$stylevar[cellpadding]px">
		<strong>$vbphrase[uploading_file]</strong>
	</div>	
	
	<div style="margin-top:$stylevar[cellpadding]px">
		<input type="button" class="button" value="$vbphrase[close_this_window]" onclick="window.close();" />
	</div>
	</td>
</tr>
</table>

</form>
</body>
</html>
Sorry to bump but I'm getting ready to open my forum to the public and really need help wtih this.
Reply With Quote
  #8  
Old 03-17-2005, 07:12 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I just gotdone donig some of my own work and newattachment and newattachmentbit neither one have been customized. It is something else that isn't allowing me to do this.

EDIT:: I think it is this hack here: Private Threads

The files it messes with are these:

includes/functions.php
includes/functions_newpost.php
newreply.php
newthread.php
postings.php
showthread.php
forumdisplay.php
printthread.php
search.php


templates:
newthread
threadadmin_editthread
showthread


So out of those changes could it have done it or is it something else?
Reply With Quote
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:56 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.04435 seconds
  • Memory Usage 2,242KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete