Forum Replies Created

Viewing 8 replies - 31 through 38 (of 38 total)
  • Forum: Hacks
    In reply to: How to trim post

    Well, somehow (i’m not play with this – just for instance):
    preg_replace (‘/(( \ w + \ W *) {199} (\ w +))(.*)/’, ‘$ {1} ‘, $ post-> post_content);

    199 – number of words (start from 0)

    wp-content/themes/master/style.css – row 179:
    #sidebar a {
    color: #8A0; !!!!!! change this to your color !!!!!
    text-decoration: none;
    }

    I did: the embed code fancybox immediately prior to use and prescribe the right size for each id.

    <p> <@ href=”video1.html”> Bla-bla </@> </ p>
    <p> <@ href=”video2.html”> Bla-Bla </@> </ p>

    And above wrote:
    $ (“. various2”). fancybox ({
    ‘width’: 670,
    ‘height’: 530,
    ‘autoScale’: false,
    ‘transitionIn’: ‘none’,
    ‘transitionOut’: ‘none’,
    ‘type’: ‘iframe’
    });
    $ (“. various3”). fancybox ({
    ‘width’: 360,
    ‘height’: 300,
    ‘autoScale’: false,
    ‘transitionIn’: ‘none’,
    ‘transitionOut’: ‘none’,
    ‘type’: ‘iframe’
    });
    Sorry, the link does not point out – I got a warning for them ??

    Understood. I just did this so that people understand that it really works. Note taken. Sorry ??

    You can do it yourself ??

    I made this one of the sites as follows: in the page template has prescribed a short code, like <? if (page_id = 'xxx'){...}?>

    The idea is this: after reading the page id to perform the desired piece of code – is prescribed to handle in the template file (I wrote in single.php, I think).

    Be of good cheer. Good luck ??

    I can offer the same idea that made the site [removed]: create and send a report handles when a certain time.

    I did: generate reports and recorded it directly into the database. There also put in a variable-key, which takes the values ??0 or 1 – Today I sent a report or not.

    Next – is simple: to index page inserts code that checks the current time (for example, now more than 18.00 “) and a key value – if key = 0, then today was not sent. Runs the mail and write the key value of 1. All at midnight conversion keys to 0. Maybe not quite nice, but it works! ??

    The question is not very complicated, if you give a link to the site and a piece of code header – just words hard to explain. Easier to just show the code.

    reate a page template, which is embedded in the google translator. And to create two pages for each language: a simple template, and with a translator. Will be hard, if the site is too a huge – for mogih pages specify the new template will …

Viewing 8 replies - 31 through 38 (of 38 total)