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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 06:23 AM.


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.03799 seconds
  • Memory Usage 2,301KB
  • Queries Executed 12 (?)
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
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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