Search Results for 'Add Url'

Viewing 25 results - 1,601 through 1,625 (of 1,643 total)
  • Author
    Search Results
  • #6663

    In reply to: Adding License key

    I can’t add the license key in. Despite the pages being different, when I submit – nothing happens. Don’t know why?

    Is there somewhere I can manually enter it in to the database?

    Just does nothing….

    cURL is working…checked that.

    #6583

    Shahjada
    Keymaster

    it may happen for theme, give me your URLs to check

    #6525

    In reply to: Set Up Page like Demo


    ddhservices
    Member

    Shaon my install is here – http://churchofourlord.org/resources-media/all-downloads-by-category/?orderby=create_date&order=asc

    I have a few issues in no particular order …

    – I’ve no idea where this goes [wpdm_archive] and have tried several ways I thought it should all to no avail.
    – I’ve set the icons I want to use in the individual categories but they are being overwritten by what ever icon was selected in each package.
    – In the URL I gave above what do I need to change to always have the newest file at the top.i.e. in Bulletins current May 26 2013 is at the top and the latest one for 2 June 2013 is last. Whereas I want the 2 June 2013 to be displayed at the top with 26 May the next one down.
    – I got and installed the free add-on for the extended shortcodes. However what I see when I go to Settings, Short Codes is a whole page of broken images? If I go with FTP to check the directory it either doesn’t exist or it is empty. This I think is a path issue.

    All for now but I may have more.down the road, thank you.

    #6521

    Shahjada
    Keymaster

    did you mean adding category in menu, if yes, you have to add category url as custom link

    #6518

    Nikodemsky
    Member

    #4 i figured out myself later too,

    about #2 – i tried few fancybox plugins(including yours), but they just don’t want to work on my WP installation, maybe my template causing problems – i’m not sure, but any lightbox plugin works just fine, but for some reason, those LB plugins does not recognize those preview images in template view as normal images(already tried various options) – if you have any alternative then please tell me.

    btw.
    http://playernotes.pl/nowa-pobieralnia-test/ – as you can see, there’s no problem with additional preview images in link template view

    and #3 – i tried, and “theoretically” it works, but there’s still problem related to my other issue:

    Custom fields does not recognize hiperlink code

    somehow plugin adding my website adress in front of destination url(anywhere im using a href code).

    and there’s other think i would like to ask – i would like to add letters to “version” too, for now it’s only numbers – but sometimes versions are alphas, betas or theres letters at the end of the version – any chance to change that?


    Shahjada
    Keymaster

    you don’t have to use image button add-on anymore. as you can use image url directly with template tag, for example [download_link image-url-here]

    please send your site login info to support@wpdownloadmanager.com with forum post links.

    #6272

    Shahjada
    Keymaster

    you can’t add it there, but you can add category url with menu as custom link from menu manager.


    Shahjada
    Keymaster

    1) not actually, though you enable immediate download, it will sent an email, but you can remove it from code at functions.php
    2) actually image button add-on not required anymore and you can use image url directly with short [download_link] now, like [download_link image-url-here]

    #6106

    AMSEC
    Member

    I am having the same problem. Neither icons nor preview images show up. In addition, when I upload the image, I can see it initially under the “Preview Image” section of the edit page, but once I go away from that page, then come back to it, I no longer see the preview image, but instead a link that says: previewRemovePreviewImage. I’m attaching a screenshot of what I am seeing. The URL for this package is: HERE. Is there a fix for this?

    #6074

    antwal
    Member

    Hello,

    I had the same problem, I solved it like this:

    theme: functions.php

    remove_shortcode(‘wpdm_file’,’wpdm_downloadable_nsc’);

    function link_wpdm_downloadable_nsc($params) {
    global $wpdb;
    extract($params);

    $home = home_url(‘/’);

    $sap = count($_GET) > 0 ? ‘&’ : ‘?’;

    $data = $wpdb->get_row(“select * from ahm_files where id=’$id'”, ARRAY_A);

    if ($title == ‘true’) {
    $title = “” . $data[‘title’] . “”;
    } else {
    $title = ”;
    }

    if ($desc == ‘true’) {
    $desc = $data[‘description’] . “”;
    } else {
    $desc = ”;
    $desc = stripslashes($desc);
    }

    if ($data[‘show_counter’] != 0) {
    $hc = ‘has-counter’;
    }

    if ($template == ”) {
    $template = ‘wpdm-only-button’;
    }

    $wpdm_login_msg = get_option(‘wpdm_login_msg’) ? get_option(‘wpdm_login_msg’) : ‘Login Required’;
    $link_label = $data[‘link_label’] ? $data[‘link_label’] : ‘Download’;

    if ($data[‘access’] == ‘member’ && !is_user_logged_in()) {
    $url = get_option(‘siteurl’) . “/wp-login.php?redirect_to=” . $_SERVER[‘REQUEST_URI’];
    $uuid = uniqid();

    $html = “$link_label“;
    } else {

    if ($data[‘password’] == ”) {
    $url = home_url(‘/?wpdmact=process&did=’ . base64_encode($id . ‘.hotlink’));
    $classrel = “”;
    } else {
    $classrel = ‘haspass’;
    $url = home_url(‘/’);
    $password_field = “Enter password”;
    }

    $html = “$link_label“;
    }
    return $html;
    }

    add_shortcode(‘wpdm_file’,’link_wpdm_downloadable_nsc’);

    I also had the need to capture only the link for two pdf in multi language, I created two separate files in the plugin with two different id, then I created a page for each language by entering the appropriate code in the shortcode and added dell’footer this:


    $page = get_page_by_path(“info-page”); // Slug Path

    if ($page) {
    $post = get_page($page->ID);
    $content_link = apply_filters(‘the_content’, $post->post_content);
    $content_link = preg_replace(“//”, “$1”, $content_link);
    $content_link = str_replace(“”, “”, $content_link);
    } else {
    $content_link = “”;
    }

    I hope I have solved your problem.

    #6042

    Shahjada
    Keymaster

    please give your url to check

    #6036

    xavier
    Member

    Shaon,

    You can see an example of what I’m trying at http://portlandyc.com/test-2/

    Additional Note: My son figured out how to make it work by creating a separate standard link with the URL from the button. Looks like I’m OK unless you can think of a flaw with this approach (e.g. if the GUID in the link changes during edit, which doesn’t appear to be the case.)

    Thanks
    Xavier

    #6035

    mrosse
    Member

    The URL is http://www.momentivity.com but you have to be a member for the download area. I originally installed the website in a subdirectory (www.momentivity.com/Site). Wpdm worked fine at that time. Later I used the procedures in the Codex: Giving WordPress Its Own Directory under the section Using a pre-existing subdirectory install. Now I can navigate to the category list area and see the list of downloads just fine, but when I click the name of a package it opens the wpdmpro blank page. The URL in the browser shows the subdirectory like this: www.momentivity.com/Site/file-download/mydocument/. If I remove /Site from the URL address in the browser it then navigates correctly to the package page.

    #6025

    In reply to: WPDM directory add on


    Shahjada
    Keymaster

    1) url showing “Internal Server Error”
    2) that will require customization in code

    #6011

    In reply to: WPDM directory add on


    Shahjada
    Keymaster

    1) please give me your url to suggest your css code
    2) not clear
    3) download user review add-on again to resolve the issue
    4) disable image button add-on and use like this [download_link http://cdn4.iconfinder.com/data/icons/cc_mono_icon_set/blacks/48×48/download.png%5D in page or link template, more details: http://www.wpdownloadmanager.com/docs/integrated-templates/

    Great news, I got it working, and it’s working great!

    Just need to clean up some things, and finish it to be fully dynamic (there is one new wp_option I may need to store, and maybe add a few inputs to file-manager/add-new-package for it). I also need to add some if conditions, to properly handle my script to only be triggered if “FTP-DUMP” or something is enabled. I’d like to clean up my handling of absolute/relative paths too. It’s very dirty still.

    So far, I only had to add change one block of code, and add a new block.
    Then, I referenced my own script in it’s own PHP file, and I just include it once if admin.php?page=file-manager&task=RefreshPackage, it pulls the needed references to define it’s variables from $_GET[‘id] (WPDM’s file package DB records). I built it off your current Add/Edit system.

    Here is the change log to your source:
    [the code tags on this forum seem to trim some of my code, so I will also attach a .txt]

    **NOTE:**
    I always apply source formatting via Dreamweaver when I edit files, so my line numbers won't match unless you do that first.
    Therefore, relying on line numbers isn't best, so I will also reference local objects

    /*///////////////////////////////////////////////////////////////
    //in: list-files.php
    +:
    [replaces][div class="button-group"](near line 119 w/ applied source formatting)
    creates a new button for "Refresh Package" on the Download Package Management back-end page, and inserts a line break () in button-group div
    so that all the buttons fit in the table cell
    //////////////////////////////////////////////////////////////*/

    <a class="button" href="admin.php?page=file-manager&task=RefreshPackage&id=" style="color: #90F">Refresh Package
    <a class="button" href="admin.php?page=file-manager&task=EditPackage&id=">Edit

    <a class="button" href="admin.php?page=file-manager/add-new-package&clone=" style="color: #336699">Clone
    <a class="button" target="_blank" href='' style="color: #005500">View
    <a href="admin.php?page=file-manager&task=DeleteFile&id=" class="button submitdelete" style="color: #cc0000" rel=" " title="Permanently">Delete

    /*///////////////////////////////////////////////////////////////
    //in: wpdm.php
    +:
    [appended][fuction RefreshPackage()](added near line 409 w/ applied source formatting)
    adds function for "Refresh Package" button to refresh the package's item
    //////////////////////////////////////////////////////////////*/
    function RefreshPackage(){

    global $wpdb, $current_user;
    get_currentuserinfo();
    $cond_uid = wpdm_multi_user()&&!wpdm_is_custom_admin()?"and uid='{$current_user->ID}'":"";

    $id = $_GET['id'];

    $table_name = "{$wpdb->prefix}ahm_files";
    $file = $wpdb->get_row("SELECT * FROM {$table_name} WHERE `id` = {$id} $cond_uid", ARRAY_A);
    if(!$file[id]) {
    $error = "Sorry, You don't have permission to edit that file!";
    include("error-page.php");
    return;
    }

    include('refreshpackage.php');
    }

    and this is the code for my refreshpackage.php, needs to be cleaned up now as I said:

    $dir) {
    // find first non-matching dir
    if($dir === $to[$depth]) {
    // ignore this directory
    array_shift($relPath);
    } else {
    // get number of remaining dirs to $from
    $remaining = count($from) - $depth;
    if($remaining > 1) {
    // add traversals up to first matching dir
    $padLength = (count($relPath) + $remaining - 1) * -1;
    $relPath = array_pad($relPath, $padLength, '..');
    break;
    } else {
    $relPath[0] = './' . $relPath[0];
    }
    }
    }
    return implode('/', $relPath);
    }
    /* END RELATIVE PATH COMPARER */

    /* DEFINE VARS */
    $packageID = $_GET['id'];
    $siteurl = site_url();
    $wpmdpath = WPDM_BASE_DIR;
    $zippath = $file[sourceurl]; //full path needs to be trimmed below...
    $zipfilename = basename($file[sourceurl]); //file name
    $zippath = str_replace($zipfilename,"",$zippath); //trim trailing file name
    $sourceDIRname = "http://www.example.com/downloads/General-Packages/imagesonly/"; //need to dynamically define this later. MUST BE ON SAME SERVER!!
    /* END DEFINE VARS */

    /* CLEAN/TRIM SOURCE PATHS */
    //the idea here is to trim all the prefixes to the file-sourceurl and the site_url(), so we can compare them, even if
    //the site_url is http://example.com and the file-sourceurl is http://www.example.com/file.zip, or hopefully even if it was a local WP site.
    //
    //trim possible url prefixes..
    $zippath = str_replace("http://","",$zippath);
    $zippath = str_replace("www.","",$zippath);
    $zippath = str_replace("//","",$zippath);
    $zippath = str_replace("\\","",$zippath);
    $siteurl = str_replace("http://","",$siteurl);
    $siteurl = str_replace("www.","",$siteurl);
    $siteurl = str_replace("//","",$siteurl);
    $siteurl = str_replace("\\","",$siteurl);
    $sourceDIRname = str_replace("http://","",$sourceDIRname);
    $sourceDIRname = str_replace("www.","",$sourceDIRname);
    $sourceDIRname = str_replace("//","",$sourceDIRname);
    $sourceDIRname = str_replace("\\","",$sourceDIRname);
    //trim off remaining site url...
    $zippath = str_replace($siteurl,"",$zippath);
    $sourceDIRname = str_replace($siteurl,"",$sourceDIRname);
    /* END CLEAN/TRIM SOURCE PATHS */

    /**************************************/
    /* COMPARE PATHS TO FIND REAL REL PATH */
    /* FOR ZIP-SOURCE-DIR & ZIP-OUTPUT-DIR */
    $sourcefolder = wpmd_getRelativePath("./", $sourceDIRname); // must be rel to $wpmdpath
    $outputfolder = wpmd_getRelativePath("./", $zippath); // must be rel to $wpmdpath
    /**************************************/

    $timeout = 100000 ; // Default: 50000

    // This creates the zip file

    $dirlist = new RecursiveDirectoryIterator($sourcefolder);
    $filelist = new RecursiveIteratorIterator($dirlist);

    // Set the php timeout

    ini_set('max_execution_time', $timeout);

    // Defines the action

    $zip = new ZipArchive();
    ?>
    open("$zipfilename", ZipArchive::OVERWRITE) !== TRUE) {
    die ("Could not open archive");
    }

    // adds files to the file list

    foreach ($filelist as $keyโ–บ$value) {
    //fix archive paths
    $path = str_replace($sourcefolder, "", $key);

    $zip->addFile(realpath($key), $path) or die ("ERROR: Could not add file: $key");
    }

    // closes the archive

    $zip->close();
    //move to output if necessary
    if ($outputfolder != "./") {
    if (copy("./" . $zipfilename,"" .$outputfolder . "/" . $zipfilename . "")) {
    unlink("./" . $zipfilename);
    }
    }
    echo "Archive ". $zipfilename . " created successfully!";
    ?>

    Of course, I will also add a location href at the end of my script to reload page?=file-manager, and will echo a “Successful!” message there when it’s done. Now I get to smooth out all the details! ๐Ÿ™‚

    Do you think any of this may be of benefit to you?

    #5782

    Shahjada
    Keymaster

    anyhow you can edit url key from edit package window. anyhow with next update we will check it and add a suffix for duplicate url key.

    #5778

    Shahjada
    Keymaster

    open wpdm-archive-page.php , find and remove the following line ( #151) :

    jQuery(‘#wpdm-downloads’).prepend(‘<div class=”loading”>Loading…</div>’).load(‘‘+jQuery(‘#src’).val());

    #5774

    connect
    Member

    Hi,

    If a user creates two packages with identical names (eg “somename”) the View link on the “Manage Download Packages” listing, “Edit Download Package” page for the package don’t work properly. Also the http://foo.com/packages/somename/ doesn’t work right. The issue seems to be that url_key in cnotb_ahm_filemeta and cnotb_ahm are not being created with unique values. If we manually update the cnotb_ahm_filemeta and cnotb_ahm_files tables in the database manually these can work.

    Ideally we need a fix that both addresses packages added in future and fixes existing packages with this problem.

    Thanks

    Mark

    #5610

    In reply to: SEO – url to XML??


    Shahjada
    Keymaster

    ๐Ÿ™‚ ok, i’ll add meta description with next update


    Shahjada
    Keymaster

    1) ye, some string still not ready, but it will be completely ready by this month
    2) new update on archive page add-on coming within 2 hours
    3) use the key with pro / first order
    4) its ok
    and
    please give me the url where you facing download problem


    kyleritland
    Member

    Also, since the file size registers zero bytes for files with a remote URL, it’d be nice to be able to remove that from the Archive Page main page too, unless there’s a way to get the manually entered file sizes to display instead?


    Shahjada
    Keymaster

    Please check if CURL is not active in your server


    Soundtemple
    Member

    Hi,

    Some getting started questions….

    1. Facebook lock does not appear on any template. Other Locks appear but not Facebook. I used the FB url. I didnt add any FB App ID

    2. Twitter Lock works, but you it has @webmaniac at the end, which is you – how do I change this or at least get rid of it.
    Also, you can edit / remove and change all the Twitter link data – should this be editable? Other things I have used make this un-editable.

    3. How do I edit the color of the support email background. Its blue by default. I want white.

    4. I noticed on some pages template a DL link would DL the file even if the message LIMIT EXCEEDED would appear

    5. How do I get the icon I choose in the package to be the icon on the download page template. How do I make this icon clickable?

    #4402

    djheadcrash
    Member

    Hi,

    while I am until now not able to upload without the AJAX error, I thought it is a good reason to try the bulk import, but…
    url_key and access fields are not properly imported. They are written in the field in table wp_ahm_files but url_key in wp_ahm_filemeta stays blank. Additionally access field is filled not like manually entered (parameters a and j are not written in the database).


    At The Doctor,,Download,,0,0,0,"subscriber,administrator",link-template-default.php,"vocabulary-dutch-turkish",,,"nl_tr-
    at_the_doctor.zip",,,page-template-1col-ex-autdio.php,1,20130221,20130221,dutch-turkish-at-the-doctor

    I am doing something wrong?

Viewing 25 results - 1,601 through 1,625 (of 1,643 total)