Author Topic: Adding an msexcel created webpage  (Read 13759 times)

0 Members and 1 Guest are viewing this topic.

Offline brez

  • Newbie
  • *
  • Posts: 21
    • View Profile
Adding an msexcel created webpage
« on: August 17, 2009, 03:11:01 PM »
Is this possible?

I have v1.7.6 and i have an msexcel webpage that i need to add to it.

It is 18 colums and 2260 rows long.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Adding an msexcel created webpage
« Reply #1 on: August 17, 2009, 03:30:22 PM »
Welcome to 4images forum.

Are you talking about adding (uploading) .html files as "images"? if so, FAQ might help: How can I add more allowed file extensions?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline brez

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Adding an msexcel created webpage
« Reply #2 on: August 17, 2009, 09:12:07 PM »
Many thanks for the swift answer and the warm welcome too!

Do you not consider allowing .html files rather risky?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Adding an msexcel created webpage
« Reply #3 on: August 18, 2009, 01:54:19 AM »
Yes I do, but only if you allow others to upload...if you are interested, I can give a little code that would remove .html extension from the list of allowed upload list for the non-admins, while admins still be able upload .html
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline brez

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Adding an msexcel created webpage
« Reply #4 on: August 18, 2009, 12:18:46 PM »
Yes please V@no,
That would be brilliant as experience has taught me(The hard way) that maverick .html files can ruin Months of work.

This is my first time using 4images and i love the simplicity and feel of it, i have so far tried about 12 other galleries!

BREZ

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Adding an msexcel created webpage
« Reply #5 on: August 18, 2009, 12:29:10 PM »
@ brez
... only a hint ...
... you can also use a excel-table as a pdf-file to show it on your 4images website ...
... simple to produce and safely to show ...

@V@no
... the little code would be interested ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Adding an msexcel created webpage
« Reply #6 on: August 18, 2009, 02:59:49 PM »
in member.php find:
require(ROOT_PATH.'includes/sessions.php');

Insert below:
if ($user_info['user_level'] != ADMIN)
{
  
$disallow = array("htm""html"); //list of extensions members may not upload.

  
$config['allowed_mediatypes_array'] = array_diff($config['allowed_mediatypes_array'], $disallow);
  
$config['allowed_mediatypes'] = implode(","$config['allowed_mediatypes_array']);
  
$config['allowed_mediatypes_match'] = implode("|"$config['allowed_mediatypes_array']);
}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Adding an msexcel created webpage
« Reply #7 on: August 19, 2009, 01:09:12 AM »
@V@no ...

... thanks for this useful code snippet ... it works perfekt incl. displaying the right extensions on uploadform ...
... I have successfull tested a code extension with general settings via ACP ...
... on my website I can use over 35 different file extension for uploading / displaying ...
... and now I can comfortable define via ACP which files for uploading are only allowed by admin and which are allowed for all users ...
...
... if anyone is interested ... so let me know ...
... I can create a small "TUT" ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: Adding an msexcel created webpage
« Reply #8 on: August 19, 2009, 03:32:02 PM »
Ja, ich bitte darum!
Den Code von Vano habe ich auch schon in meiner Liste aufgenommen! Über ein TUT würde ich mich freuen!

Offline brez

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Adding an msexcel created webpage
« Reply #9 on: August 19, 2009, 04:30:27 PM »
Thanks,

That is a great piece of code.

Tested - PERFECT!

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: Adding an msexcel created webpage
« Reply #10 on: August 19, 2010, 01:57:11 PM »
@V@no ...

... thanks for this useful code snippet ... it works perfekt incl. displaying the right extensions on uploadform ...
... I have successfull tested a code extension with general settings via ACP ...
... on my website I can use over 35 different file extension for uploading / displaying ...
... and now I can comfortable define via ACP which files for uploading are only allowed by admin and which are allowed for all users ...
...
... if anyone is interested ... so let me know ...
... I can create a small "TUT" ...

Machst du das Tutorial noch?