Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter simusch

    (@simusch)

    seems there is some incompatibility with WPML. the second script “main.js” is from WPML. when i disable WPML, including the shortcode works.
    Hope this will be fixed soon as i cannot use this function now!

    Thread Starter simusch

    (@simusch)

    OK, i just managed it with this solution:

    $terms = wp_get_post_terms( $dlm_download->id, 'dlm_download_category' );

    sorry ??

    Thread Starter simusch

    (@simusch)

    thanks!

    I missed the filters section in the documentation, sorry!
    I managed it, to redirect to a register-page on a WPML-installation. this function now searches for the register-page in the current language:

    function download_access_denied() {
    		global $wpdb;
    
    		//get link to register-page
    		$id = $wpdb->get_var("SELECT ID FROM ".$wpdb->posts." WHERE post_name = 'register'");
    		    if(function_exists('icl_object_id')){
    		        return get_permalink(icl_object_id($id,'page',true));
    		    }
    	}
    	add_filter('dlm_access_denied_redirect', 'download_access_denied');
    Thread Starter simusch

    (@simusch)

    I solved my problem. I had to change the line in wp-config.php

    define(‘SUBDOMAIN_INSTALL’, false);

    to “true”

    now, domain mapping works as expected and the permalinks too.

    thanks, simon ??

    Thread Starter simusch

    (@simusch)

    So there’s no way around, that the URL finally looks like:

    ovi.inview.ch/site1/somepage

    with this setup? Even if it’s another domain/subdomain

    I thought that multisite would be a possibility to only have one installation of WP on my hosting and have a few different sites hosted. But when this shows up in the URL, that’s no way for me… ??

    Thanks for your help!

    Simon

    Thread Starter simusch

    (@simusch)

    none of them…

    under Network-Settings, both of the sites have the path “/”

    Is this the problem?

    When i add a new site with the path “/ovi/” then I always have the path in the URL:

    http: // ovi.inview.ch/ovi/somepage/ (link disabled)

    i have the default .htaccess like shown after setting up the network:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    Thread Starter simusch

    (@simusch)

    Hi Maeve

    I found an easy solution for me to add multi-disc support.

    Like before, I added a title named “DISC 1” with the mp3/ogg-links to “#”
    This works fine, as the # is a “fake”-link

    now I added this code to the file “includes/ttw-music-player.php” into the function buildPlaylist() (around line 225):

    var $trackValueReset = 0;
    
    for (var j = 0; j < myPlaylist.length; j++) {
    	var $track = $(markup.listItem);
    
    	//multi-disc track numbering
    	if('#' == myPlaylist[j].mp3)
    	{
    		$trackValueReset = j + 1;
    		$trackValue = 0;
    		$track.attr('style', 'list-style-type:none;');
    	}
    	else
    	{
    		$trackValue = j + 1 - $trackValueReset
    	}
    	$track.attr('value', $trackValue);

    this looks for a file named “#” and hides the list-number for this item and sets the counter for the next title to “1”
    hope you’ll add this simple workaround to a future version so i don’t have to update the file after a plugin-upgrade ??

    simon

    Thread Starter simusch

    (@simusch)

    thanks, i don’t know why it was working before with my css…

    now i had to add a padding to .player-controls, the bar and the controls went until the left/right border…

    can you say something to my 2-disc request?

Viewing 8 replies - 16 through 23 (of 23 total)