Home > IT > Novi WordPress plugin – Did You Know?

Novi WordPress plugin – Did You Know?

January 9th, 2010

Od večeras se na sajtu WordPress.org nalazi još jedan moj plugin. Ovog puta to je dodatak pod imenom “Did you know?

Funkcija ovog plugina je da vam omogući izdvajanje nekih najzanimljivijih citata iz teksta i njihovo slučajno prikazivanje u sidebaru, uz link ka tekstu. Kako dodatak radi u praksi možete videti na ovom sajtu, sa desne strane. Citate birate i dodajete sami, u posebnom delu na stranici za pisanje teksta. Tu je i, trenutno nezavršena, mogućnost prikazivanja citata ili “beskorisnih činjenica” bez pratećeg linka.

Nešto ovakvo mi je odavno trebalo, pa se nadam da će još nekome da koristi. U planu su još neke dopune za naredne verzije, ali o tome kad dođe vreme.

Categories: IT
avatar

Autor:

Urednik i vlasnik sajta. Dugogodišnji borac za razotkrivanje astrolagarija i ostalih kvazinauka na Internetu, i šire. Završio fiziku na Prirodno matematičkom fakultetu u Nišu, a najveći deo svog slobodnog vremena posvećuje popularizaciji i približavanju nauke mladima, astronomiji i slobodnom softveru. (O meni / CV in English, PDF)

Najnoviji tekstovi

Povezivanje naučnih niti - Intervju sa Milanom Ćirkovićem

Svet nauke 07.02.2012
mmc Poslednji broj magazina Frenzy Spark donosi zanimljiv intervju sa dr Milanom Ćirkovićem. U ovom intervjuju Milan Ćirković govori o evoluciji ideja

Najnoviji standard za merenje temperature

Svet nauke 04.02.2012
snow +18°C Na Havajima uzimaju drugi pokrivač. +10°C U zgradama u Helsinkiju isključuju grejanje. +2°C Italijanski automobili ne mogu da upale.

Svet nauke u 50 najboljih sajtova u Srbiji za 2011. godinu

Milan Milošević 01.02.2012
pc2011k Februarski broj časopisa PC Press doneo je rezultate petnestog po redu izbora za 50 najboljih sajtova u zemlji za 2011. godinu. Na ovogodišnjem izbo

Najčitaniji tekstovi

Najnoviji standard za merenje temperature

Svet nauke 04.02.2012
snow +18°C Na Havajima uzimaju drugi pokrivač. +10°C U zgradama u Helsinkiju isključuju grejanje. +2°C Italijanski automobili ne mogu da upale.

Yamb - igrica za gubljenje vremena

Milan Milošević 18.06.2007
Volite da igrate Yamb, a dosadili su vam papirici - probajte ovo. Ova verzija Yamba ima 8 kolona, odvojite malo vise slobodnog vremena :) Ovaj prog

Uskrs – kako se odredjuje datum

Milan Milošević 27.04.2008
uskrs-02 Svake godine me bar neko pita kako se odredjuje datum Uskrsa, zasto je datum pravoslavnog i katolickog uskrsa nekada isti a nekada ne itd itd. Mnogo p

Mišljenja iznešena u komentarima su privatno mišljenje autora komentara
i ne odražavaju stavove urednika sajta Svet nauke.

  1. January 12th, 2010 at 01:50 | #1

    Hello!
    Thanx for a plugin.
    there’s a problem with cyryllic sympols (letters). they are shown as ?.
    is it possible to fix?

  2. January 12th, 2010 at 14:03 | #2

    Yes, it’s possible. I have tested it here with Serbian Cyrillic and it worked.

    I think it’s a problem with table (wp_mmdyk_quote) character set and collation. You can try to change it manually to utf8_unicode_ci (if you have phpMyAdmin or any other access to MySQL). I’ll try to fix it in next version.

  3. January 12th, 2010 at 15:24 | #3

    http://files.ka81.com/pic/bdunicode.jpg
    i changed link and quotes, but i don’t know how to change it there down in statistic block…

  4. January 12th, 2010 at 15:33 | #4

    You can change it in Operations menu for the table.

    New version (0.2.1) will be avaliable in a few minutes, so you can upgrade and it sould solve the problem.

    Unfortunately it will not correct old quotes, but it should work with new one.

  5. avatar
    John
    January 17th, 2010 at 22:40 | #5

    When I change the default quotes to my own in the php file on the server and save it… the quotes are still appearing on the site as the originals? Is there another file I should edit if I just want to set the quotes there as I’m trying to do instead of in the posts.

    Thanks!

  6. January 18th, 2010 at 01:04 | #6

    You don’t need to change php file. There is new menu in Settings, there you can add new quotes as text (one quote per line).

    It you want a quote with link to some of your posts just add it in the new “Did you know” filed on edit screen.

  7. March 16th, 2010 at 05:48 | #7

    Thanks for the plugin. Been looking for something like this all day. Work perfectly on one of my blog. Thanks

  8. May 10th, 2010 at 21:31 | #8

    why you create new table for the quotes, when you can use custom fields?

  9. May 10th, 2010 at 22:51 | #9

    I had a problem with quotes that are not conneced to any post. I thought about creating table only for that kind of post, but left it all together for now.

  10. avatar
    Prophit5
    June 1st, 2010 at 19:20 | #10

    The website is using the plugin to capture contact info from potential clients. Currently there are 3 offices that each do different procedures. Is it possible to have the forms forwarded to specific email addresses based on the selections the user makes prior to submission? Example: Visitor selects Office 1 and that displays a set of procedures. Based on the procedure selected an email is sent only to the appropriate employee at Office 1.

  11. June 1st, 2010 at 23:52 | #11

    I don’t see any relation between your question and this plugin. I’m sure it can be done but not with this plugin.

  12. avatar
    Prophit5
    June 2nd, 2010 at 01:53 | #12

    @Milan Milošević
    I thought this comment area was for the cformsII plugin. Clearly I was mistaken, but this is the page that it links to.

  13. June 2nd, 2010 at 02:09 | #13

    I dont’t know why.

  14. avatar
    Lance
    May 9th, 2011 at 18:32 | #14

    Hello – great widget… can you tell me what to add if I wanted the like to open in a separate tab, and can I change the colour or the text?

  15. May 10th, 2011 at 00:25 | #15

    Hi,

    sure you can, but you have to edit file mm-did-you-know.php. In line 184 find A HREF=… and change it to: A TARGET=”_blank” HREF=… To change the color you can use CSS.

    If you have a problem in changing this let me know and I’ll send you corrected file.

  16. avatar
    Lance
    May 15th, 2011 at 16:01 | #16

    Thank it opens within a separate tab – can you tell me the line to add to the Stylesheet to edit the color? is it possible to have the fact heading in one color and the more link in another?
    @Milan Milošević

  17. avatar
    Lance
    May 16th, 2011 at 15:05 | #17

    Hey, How would i use the stylesheet to change the colour?

  18. May 17th, 2011 at 12:20 | #18

    Sorry for late answer.

    You can set properties for id “mmdyk-1″ (number can be different for your website, check it before on the page).

    I’ll update a plugin as soon as I can to make it easier to configure.

  19. avatar
    Lance
    May 17th, 2011 at 16:15 | #19

    I’m sorry I’m unfamiliar with that… can you explain further? How would I change the fact color within the stylesheet? @Milan Milošević

  20. avatar
    Lance
    May 19th, 2011 at 14:09 | #20

    Can I display more than one fact at a time?

  21. May 20th, 2011 at 00:49 | #21

    Unfortunately, at time at the moment it’s possible to display only one fact.

    Is your e-mail address correct? I can send you a modified file to solve your problem with colors.

  22. May 20th, 2011 at 02:14 | #22

    You can upgrade to version 0.3. Now there are everything you asked and it’s very easy to change a color of that (open a main php file of plugin and there is a comment there how to do that)

  23. avatar
    Lance
    May 20th, 2011 at 02:25 | #23

    Yes please send it to /e-mail address is removed/

    Thank you

  24. May 20th, 2011 at 15:49 | #24

    Please, upgrade to the new version of plugin, it should be available for automatic upgrade.

    Thanks for idea to upgrade the plugin.

  1. No trackbacks yet.
Subscribe to comments feed

Komentari koji sadrže psovke, uvredljive, vulgarne, preteće, rasističke ili šovinističke poruke neće biti objavljeni. Prilikom pisanja komentara pridržavajte se pravopisnih pravila. Urednik sajta ima pravo da ne odobri komentare za koje smatra da ne doprinose normalnoj komunikaciji između čitalaca ovog sajta. Mišljenja iznešena u komentarima su privatno mišljenje autora komentara i ne odražavaju stavove urednika sajta Svet nauke.

Za komentare, predloge i pitanja možete da koristite formular za kontakt ili Facebook stranu sajta.