View Single Post
  #1  
Old 04-29-2011, 10:20 AM
DJ-Lounge DJ-Lounge is offline
 
Join Date: Jan 2011
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with vBAdvanced, can somebody help me please? :)

Hello

I've got a problem using Vb Advanced on my forum. Some technical information about my forum:

Forum version: 4.1.3
Vb Advanced version: 2.1.1
Custom Design
No other javascripts / flash plugins enabled.

The problem is when i press 'manage attachments' to upload a file, I get the following popup window:



As you see: I am able to upload a file. The file will be added as a attachment in the popup window. The problem is, this attachment will not be added under the post, as you can see in the screenshot below:



So: I am able to upload files - but the attachment will not be added under the post, as it should be. So I checked Firebug and saw 2 errors:

#1
Code:
unterminated string literal
http://www.dj-lounge.nl/community/downloads/newattachment.php?do=manageattach
Line 141
which belongs to this code:

Code:
<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' || elm.type == 'text')
				{
					if (elm.value != "")
					{
						haveupload = true;
					}
				}
			}
	
			if (haveupload)
			{
				obj = fetch_object("uploading");
				obj.style.display = "block";
				return true;
			}
			else
			{
				alert("Gelieve een bestand toe te voegen dat je wilt toevoegen.");
				return false;
			}
		}
	
	
		if (typeof window.opener.vB_Attachments != 'undefined')
		{
			window.opener.vB_Attachments.reset();
			
		}
	
	
	//-->
And on line 151 of newattachment.php is this the code:

Code:
	if (!empty($vbulletin->GPC['delete']))
	{
		list($attachmentid, $attachkey) = each($vbulletin->GPC['delete']);

		$attachmentid = intval($attachmentid);
		$delattach = $db->query_first("
			SELECT attach.*, entry.catid
			FROM " . ADV_DYNA_TABLE_PREFIX . "attachments AS attach
			LEFT JOIN " . ADV_DYNA_TABLE_PREFIX . "entries AS entry ON (attach.entryid = entry.entryid)
			WHERE attachmentid = $attachmentid
		");
#2
Code:
$j("ul.sf-menu").superfish is not a function
http://www.dj-lounge.nl/community/downloads/newattachment.php?do=assetmanager&entryid=&contenttypeid=578&poststarttime=1304018384&posthash=30a44c8f856d050ed850cf8630a66eac&insertinline=1
Line 89
Code:
<script type="text/javascript"> 
		/* <![CDATA[ */
		var $j = jQuery.noConflict();
		   $j(document).ready(function() { 
		        $j('ul.sf-menu').superfish({ 
		            delay:       100,		// one second delay on mouseout 
		            speed:       'fast',	// faster animation speed 
		            autoArrows:  true,		// disable generation of arrow mark-up 
		            dropShadows: true		// disable drop shadows 
		        }); 
		    });
		/* ]]> */
	</script>
And one more error:



I've been searching this week long to a solution, but unfortunately I havent found any. Can someone please help me to solve this problem?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01110 seconds
  • Memory Usage 1,784KB
  • 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
  • (5)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_onlinestatus
  • (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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete