Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 119 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 12  Next
How to: Use CATweb on the Internet 
Author Message
User avatar

Joined: Fri Nov 14, 2003 6:15 pm
Posts: 1425
Post Re: How to: Use CATweb on the Internet

hamsen wrote:
Dave

I have now changed to:

Alias "/m:\musikcder" "m:\musikcder"
<Directory "m:\musikcder">
Options -Indexes
AllowOverride None
Order Deny,Allow
Deny from All
<Files ~ "\.(mp3|mp4|flac|flv)$">
Allow from All
</Files>
</Directory>

but I still get the forbidden message when I try to play the file on my iPad.
The iPad is on the local LAN.
All the slashes in the paths must be forward slashes. However, don't change the backslash in the <Files> definition.
Alias "/m:/musikcder" "m:/musikcder"
<Directory "m:/musikcder">


hamsen wrote:
Why are album/artist images not displayed anymore?
They are excluded in the source.
This is happening in AlbumList.xsl, AlbumList_Acquired.xsl, AlbumList_Cover.xsl, and AlbumList_Thumbnail.xsl because in these templates the cover image is used as a PlayAll link. Since PlayAll is not linked to an individual multimedia file it can't play in the browser. To avoid confusion when the use_directdownload feature is enabled CATweb hides the PlayAll icons. In this case CATweb does not know the difference between an icon and a cover image, so the cover image is removed. It's fixable but I'm pressed for time so it may be a few days. A temporary workaround is to edit the templates to remove the link around the image.

_________________
Cheers,
Dave


Sat Dec 03, 2011 8:13 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: How to: Use CATweb on the Internet

Hi Dave

The forward slashes solved the forbidden problem. Perfect.

Don't rush things, I can wait.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Sat Dec 03, 2011 8:31 pm
Profile WWW

Joined: Sat Jul 02, 2011 1:27 am
Posts: 31
Location: abidjan
Post Re: How to: Use CATweb on the Internet

LotsOCds wrote:
Aloko wrote:
I have only made available a few files, my problem today is that I have private and public files on my website and I cant tell Catraxx to display a speaker icon only for the files available in the public folder that's why you might have the result you are talking about if you click on a private file.
You can do this by using a custom field to indicate Public/Private. Let's say you use Custom12 and if checked it means Private. One way to hide the play icon for Private files, but only in CATweb, is by editing each template that calls format-audiosample (and format-videosample if necessary) to add an xsl:if conditional. The following is how it would look in Album_Tracks.xsl :
Code:
      <xsl:if test="custom12='No' or /data/@dataserver='No'">  <!-- Add this line -->
        <xsl:call-template name="format-audiosample">
          <xsl:with-param name="audiosample" select="audiosample"/>
          <xsl:with-param name="trackid" select="@id"/>
          <xsl:with-param name="showfoldericon" select="'False'"/>
          <xsl:with-param name="standardicon" select="'True'"/>
        </xsl:call-template>
        <xsl:call-template name="format-videosample">
          <xsl:with-param name="videosample" select="videosample"/>
          <xsl:with-param name="trackid" select="@id"/>
        </xsl:call-template>           
      </xsl:if>                                                <!-- Add this line -->


Hi Dave,

I already have a custom field that did just that, when checked it's a private Recording.
The initial field is : Enhanced CD
I've given a new name : Private.

So let's say in album_tracks.xls I should add only 2 lines as you mentionned ?

Quote:
<xsl:if test="Enhanced CD='No' or /data/@dataserver='No'">

Blah
Blah

</xsl:if>


Sat Dec 03, 2011 8:38 pm
Profile
User avatar

Joined: Fri Nov 14, 2003 6:15 pm
Posts: 1425
Post Re: How to: Use CATweb on the Internet

Aloko wrote:
Hi Dave,

I already have a custom field that did just that, when checked it's a private Recording.
The initial field is : Enhanced CD
I've given a new name : Private.

So let's say in album_tracks.xls I should add only 2 lines as you mentionned ?

What I suggested above works on a per track basis. You are doing this at the album level so the code is just a bit different. It should work in the various templates, though I have not tested it in every one. Note that in this code we use the original name and there is no space in 'enhancedcd'.

Code:
<xsl:if test="ancestor::record/albumdata/enhancedcd='No' or /data/@dataserver='No'">   
...
</xsl:if>

_________________
Cheers,
Dave


Sat Dec 03, 2011 10:36 pm
Profile WWW
User avatar

Joined: Fri Nov 14, 2003 6:15 pm
Posts: 1425
Post Re: How to: Use CATweb on the Internet

hamsen wrote:
Hi Dave

The forward slashes solved the forbidden problem. Perfect.

Don't rush things, I can wait.

Good to hear!

I think the other problem is solved now. The download link is updated in the original post. Let me know if you have any problems.

_________________
Cheers,
Dave


Sat Dec 03, 2011 11:22 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: How to: Use CATweb on the Internet

Not quite.

Still no images.

This is the code from the Album.xsl HTML source:

Code:
<TD WIDTH="3"></TD>
<TD VALIGN="TOP" WIDTH="300"><TABLE CLASS="columntable">
<TR><TD CLASS="columnheading">Album Images</TD></TR>
<TR CLASS="columnrow"><TD>

</TD></TR>


This is the xsl-code:

Code:
<!-- FIELD: Cover -->
          <xsl:if test="image1/filename!='' or
                        image2/filename!=''">           
            <TR>
              <TD CLASS="columnheading">Album Images</TD>
            </TR>                 
            <TR CLASS="columnrow">
              <TD>
                <xsl:if test="image1/filename!=''">
                   <A HREF="CMD:VIEWIMAGE:Album,{../@id},1"><IMG CLASS="cover" SRC="{image1/filename}"/></A>
                </xsl:if>
                <xsl:if test="image2/filename!=''">
                  <A HREF="CMD:VIEWIMAGE:Album,{../@id},2"><IMG CLASS="cover" SRC="{image2/filename}"/></A>
                </xsl:if>
              </TD>
            </TR>
          </xsl:if>


As you can see, all info has been removed.

Another problem has come to life.
It seems that running CATweb interferes with other programs connecting to the Dataserver at the same time. Both CATweb and HAPaudioplayer connect to the running instance of CATraxx.
The problem is, that commands like

SRC="*I:Album,1,1,2"
SRC="*PR:Album,PersonalRating,14"

are not transformed to actual images.

I was looking for a way to have CATweb connect to a new instance, but can't find how (if possible).
Maybe that would change things.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Sun Dec 04, 2011 12:49 pm
Profile WWW
User avatar

Joined: Fri Nov 14, 2003 6:15 pm
Posts: 1425
Post Re: How to: Use CATweb on the Internet

hamsen wrote:
Still no images.
Yes, the previous update corrected the PLAYALL links with cover images as described above. Version 2.8.2 works properly with CMD:VIEWIMAGE links now. The download link is updated in the original post.

hamsen wrote:
It seems that running CATweb interferes with other programs connecting to the Dataserver at the same time. Both CATweb and HAPaudioplayer connect to the running instance of CATraxx.
The same could be said for HAPaudioplayer interfering with CATweb :wink:. CATweb sets three properties: TempFolder, ImageFileAutoDelete, andExtractImages. Just for you the new version restores those properties to the values before CATweb started.

Quote:
I was looking for a way to have CATweb connect to a new instance, but can't find how (if possible).
Maybe that would change things.
An old but undocumented feature in CATweb allows connecting to a new instance of CATraxx -- add &ni=1 to the URL. You will also need to tell CATweb which database to use. This is done in the URL too and the method is explained here. Beware that there is a problem with using new instances when working with list templates since the GUID does not persist across instances of CATraxx and CATweb makes a new data server connection, and therefore a new instance of CATraxx, for each page. I think the change I made to restore properties is a better solution for your situation.

_________________
Cheers,
Dave


Sun Dec 04, 2011 6:43 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: How to: Use CATweb on the Internet

What can I say? Brilliant? :grin:

Everything seems to work now (connecting to running instance).

Thanks for your assistance.

CATweb is really a great add-on for CATraxx.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Sun Dec 04, 2011 7:20 pm
Profile WWW
User avatar

Joined: Fri Nov 14, 2003 6:15 pm
Posts: 1425
Post Re: How to: Use CATweb on the Internet

hamsen wrote:
What can I say? Brilliant? :grin:

Everything seems to work now (connecting to running instance).

Thanks for your assistance.

CATweb is really a great add-on for CATraxx.
Cool! Glad it is working for you now. Let me know if you run into any other problems.

_________________
Cheers,
Dave


Sun Dec 04, 2011 7:39 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: How to: Use CATweb on the Internet

Just wondered, if it would be a good idea for each user to configure the the CATserver properties.
I don't know if the changes you made will affect other users.

Where are your temp files located? Tempfolder=?

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Sun Dec 04, 2011 8:59 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 119 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 12  Next

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.