OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

Advertisement Board component Support

Go to bottom Favoured: 0

Not possible to add images!

Akela (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
not possible to add images! 10 Years, 11 Months ago
Karma: 0  
Hello, I bought advertisement pro and have trouble to add images. The main images works fine but every further images shows the following message:
File ext. not allowed to upload! - logo1.jpg
jpg files are allowed and size is 66KB see and try:
www.dsny-eltern.org/index.php?option=com...ories&Itemid=115
Thanks for help
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:not possible to add images! 10 Years, 11 Months ago
Karma: 101  
Hello,

Please at file:
{your site}/components/com_advertisementboard/advertisementboard.php

find rows 934, LOOK LIKE:

$file = $_FILES['new_image_file' . $i];
$code = guid();
$file_name = $code . '_' . $file['name'];

/* CHECK FOR UPLOAD ALLOWED UPLOAD EXTENSION AND MIME TYPE */
$ext = pathinfo($_FILES['new_upload_file' . $i]['name'], PATHINFO_EXTENSION);

replace to:
Code:

            $file = $_FILES['new_image_file' . $i];
            $code = guid();
            $file_name = $code . '_' . $file['name'];

            /*  CHECK FOR UPLOAD ALLOWED UPLOAD EXTENSION AND MIME TYPE */
            $ext = pathinfo($_FILES['new_image_file' . $i]['name'], PATHINFO_EXTENSION);



Please take attension for "new_image_file"

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Akela (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:not possible to add images! 10 Years, 11 Months ago
Karma: 0  
Thank you
Logged Logged
Last Edit: 2013/04/17 12:13 By Akela.
The administrator has disabled public write access.
Go to top
»