Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - manxminx

Pages: [1]
1
Took me a couple of hours, but finally figured out what was happening!

Line 262 of includes/page_header.php
Code: [Select]
$setvalue = $config['image_cells'] * $i;
This line sets the increasing value of the choices in setperpage_dropdown to the number of image cells per row

I have 5 image cells per row and wanted the set perpage_dropdown box choices to increase by 10 each time.

I altered Line 262 of includes/page_header.php to
Code: [Select]
$setvalue = 10 * $i;
This breaks the relationship of image cell number to setperpage_dropdown choice increase. Set Line 262 to 10 and dropdown box choices are 10, 20, 30, etc, regardless of the number of image cells per row. You can use any number you want instead of my '10'.

Ali.

2
FAQ, Tips / Re: How can I add more allowed file extensions?
« on: September 15, 2008, 07:45:03 AM »
Hia V@no and thanks for your reply.  :D

I use Firefox. The new code you've given works fine, many thanks  :D :D

And yes, the embed tags are commented out. I hadn't noticed  :oops: :oops: I'm tired!

Ali.

3
FAQ, Tips / Re: How can I add more allowed file extensions?
« on: September 15, 2008, 01:05:04 AM »
Hi. Firstly, 4images rocks!

Ok, here's my problem. I can upload mp3 files no problem, but I can't get them to play! I've tried in my (customised) template, as well as the default template which I haven't altered.

includes/upload_definitions.php contains the following: 
Code: [Select]
$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg");

There are two version of mp3.html, one in the default template, the other in my customised 4dark template:

Code: [Select]
<!-- Template file for MP3 Audio Files -->

<!--<embed src="{media_src}" type="audio/x-mpeg" hidden="true" autostart="true" loop="true" height="1" width="1"></embed> -->

{media_icon}<br />

and

Code: [Select]
<!-- Template file for MP3 Audio Files -->

<OBJECT
  ID="mediaPlayer" 
  CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 
  CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
  STANDBY="Loading Microsoft Windows Media Player components..."
  TYPE="application/x-oleobject">
  <PARAM NAME="fileName" VALUE="{media_src}">
  <PARAM NAME="animationatStart" VALUE="true">
  <PARAM NAME="transparentatStart" VALUE="true">
  <PARAM NAME="autoStart" VALUE="true">
  <PARAM NAME="autoSize" VALUE="true">
  <PARAM NAME="showControls" VALUE="true">
  <PARAM NAME="loop" VALUE="true">
</OBJECT>
<br>
<br>

I have tried both, it doesn't make any difference. I can download the mp3 file, but I can't play it from within the 4images GUI.

Any help on this would be appreciated.

Thanks in advance,
Ali.


P.s. I might try the flash player mod: http://www.4homepages.de/forum/index.php?topic=17665.0 but I'd still like to know why this doesn't work.

Pages: [1]