WordPress.org

Support

Support » Plugins and Hacks » All In One Favicon » [Resolved] Removing Stem from Image Path

[Resolved] Removing Stem from Image Path

  • Hi, I’m having trouble using your plug-in with the way I run my website.

    Since my website is for a business, I run two parallel sites: a mycompany.com and a dev.mycompany.com. To make updating from the dev to the live site easy, I change all the links I use so that rather than linking to the full http://dev.mycompany.com/wp-content/filename every image simply links to /wp-content/filename and thus when I shift the directory over I do not have to update links. Unfortunately, your plugin does not seem to allow me to adjust the the path of the files I upload.

    Can you point me to where/how these paths are written into your code so that I can adjust them? I cannot find them in the php files.

    Thank you.

    http://wordpress.org/extend/plugins/all-in-one-favicon/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor techotronic

    @techotronic

    the file paths are persisted in a WordPress option with the name “aio-favicon_settings” in the database.
    Cheers,
    Arne

    johnmd@vs-networks.com

    @johnmdvs-networkscom

    I appreciate the response, but unfortunately when I manually edit the file paths in the database entry it causes the plugin settings to clear out inside my dashboard and the favicons no longer appear.

    Plugin Contributor techotronic

    @techotronic

    Are you sure that the edited paths are valid?
    The plugin will add favicon links to your site if it’s active, can you post a link here?

    Cheers,
    Arne

    johnmd@vs-networks.com

    @johnmdvs-networkscom

    For the website: http://vs-networks.com/jddealers

    I’ve edited the “aio-favicon_settings” WordPress option to this:

    a:11:{s:17:"aioFaviconVersion";s:3:"4.0";s:9:"debugMode";b:0;s:21:"removeReflectiveShine";b:0;s:21:"removeLinkFromMetaBox";s:4:"true";i:0;b:0;s:11:"frontendPNG";s:83:"/jddealers/wp-content/uploads/2012/10/VSN_Favicon.png";s:10:"backendPNG";s:84:"/jddealers/wp-content/uploads/2012/10/VSN_Favicon1.png";s:13:"frontendApple";s:84:"/jddealers/wp-content/uploads/2012/10/VSN_Favicon2.png";s:12:"backendApple";s:84:"/jddealers/wp-content/uploads/2012/10/VSN_Favicon3.png";s:11:"frontendICO";s:71:"/jddealers/wp-content/uploads/favicon.ico";s:10:"backendICO";s:72:"/jddealers/wp-content/uploads/favicon1.ico";}

    The image paths are valid, and follow the same structure as every other link on our website.

    When I then look inside the plugin settings inside my dashboard, there is nothing filled in under any setting.

    Plugin Contributor techotronic

    @techotronic

    Hi,

    it seems that the output of the link tags is broken.

    Posting the options from the database helps.

    My guess: it’s because you changed the values of the options, but not the descriptors.

    It works like this:
    a=array
    s=string
    i=integer
    b=boolean.

    a:11 means array with 11 values
    s:17:”aioFaviconVersion” means that the string “aioFaviconVersion” is 17 characters long.

    I changed the formatting so that you can see which descriptors match which field:

    a:11:{
    s:17:"aioFaviconVersion";s:3:"4.0";
    s:9:"debugMode";b:0;
    s:21:"removeReflectiveShine";b:0;
    s:21:"removeLinkFromMetaBox";s:4:"true";i:0;b:0;
    s:11:"frontendPNG";s:83:"/jddealers/wp-content/uploads/2012/10/VSN_Favicon.png";
    s:10:"backendPNG";s:84:"/jddealers/wp-content/uploads/2012/10/VSN_Favicon1.png";
    s:13:"frontendApple";s:84:"/jddealers/wp-content/uploads/2012/10/VSN_Favicon2.png";
    s:12:"backendApple";s:84:"/jddealers/wp-content/uploads/2012/10/VSN_Favicon3.png";
    s:11:"frontendICO";s:71:"/jddealers/wp-content/uploads/favicon.ico";
    s:10:"backendICO";s:72:"/jddealers/wp-content/uploads/favicon1.ico";
    }

    for example:
    s:83:”/jddealers/wp-content/uploads/2012/10/VSN_Favicon.png”;

    This string is only 54 characters long now, not 83. (the missing 29 characters are probably something like “http://www.mysite.com/mypath”)

    so the entry must be
    s:54:”/jddealers/wp-content/uploads/2012/10/VSN_Favicon.png”;

    Cheers,
    Arne

    Plugin Contributor techotronic

    @techotronic

    oh, yeah, this is managed by WordPress, not my plugin directly.
    I’m just using the WordPress Options API.

    Cheers,
    Arne

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Removing Stem from Image Path’ is closed to new replies.
Skip to toolbar