PDA

View Full Version : Problem with vBAdvanced, can somebody help me please? :)


DJ-Lounge
04-29-2011, 10:20 AM
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:

http://img94.imageshack.us/img94/8406/f8d726c07d6a411ebb5b118.png

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:

http://img705.imageshack.us/img705/8673/17154f2ad6014cfa8b188b8.png

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 unterminated string literal
http://www.dj-lounge.nl/community/downloads/newattachment.php?do=manageattach
Line 141

which belongs to this 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:

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 $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

<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:

http://img202.imageshack.us/img202/1886/f56541658d2242ef9c55d50.png

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? :o

Hippy
04-30-2011, 06:11 PM
If your having a problem with vBAdvanced
go to vBAdvanced.com

if your having vb4.1.3 issue youll need to go over to vb.com..

KW802
05-01-2011, 02:20 AM
DJ-Lounge, from your description I am not seeing how/why you'd think the problem is related to vBadvanced. Do you have any other add-ons/hacks installed?