OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Advertisement Board component Support
Go to bottom Favoured: 0
TOPIC: not possible to add images!
#7729
Akela (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
not possible to add images! 3 Years, 7 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.
#7741
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:not possible to add images! 3 Years, 7 Months ago Karma: 61  
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.
#7749
Akela (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:not possible to add images! 3 Years, 7 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
What are you looking for?
Anti-spam question: How many eyes has a typical person?