Daiko’s Text Widget

Adds a sidebar widget to display text, includes php-code capability. Includes conditional tag testing to specify where to display. The widget is basically an extension of the Execphp widget by Otto at http://ottodestruct.com.

Download

Download Daiko’s Text Widget v. 0.9.4 here.

Installation

  1. Copy the daikos-text-widget folder to your /wp-content/plugins/ folder
  2. Activate the Daiko’s Text Widget on your plugin-page.
  3. Drag the Daiko’s Text Widget to your sidebar and add your own content including php code if needed. Optionally specify whether to display only on home, pages, posts, posts in specific category/-ies (includes also display on category archives) or category archive. Specify even more if you like with slug/ID/title.

Good Luck!

99 Responses to “Daiko’s Text Widget”


  1. I am using the Youtube Video widget and the text box widget on the site milliondollarhunch.com

    All the text is lining up to the right of the side bar.

    Do Iedit the CSS in DYTWWrapperOuterMedium to compensate for this? I have the video size set to Medium and I’ve been searching through the code of the actual theme itself….to no avail?

    Any suggestions would be awesome!!

    Thanks,

    John

  2. Thanks a lot for you plugin. It’s what i was looking since days :)

  3. Firstly, great widget.

    Secondly, is there anyway I could use this widget to support embedding things using the [square brackets] method of embedding? That way, anything I could embed in normal posts, I could embed in my sidebar using this. That would be very handy!

  4. Hi Drew,

    If I understand your question correct, you are talking about the kind of functionality some plugins give you. Many plugins use square brackets to identify elements that than trigger particular plugin actions. This is linked to a filter function in the core WP system. In order for them to work in the sidebar you probably can call the functions directly and some plugins explain how that is done. The square bracket method will only work within “The Loop” in your main section due to the before mentioned filter use.

    In this text widget you can call any php function that is activated on your site so as long as you know the name of the function and it’s parameters you’ll be able to do what you ask for.

    Since I don’t know exactly what plugin you refer to I’m unable to give you more support.

    Daiko

  5. Thanks for the help Daiko. That is exactly what I am trying to do, sorry it hard to explain it because I don’t know the terminology. The video embed plugin I am using is this one:
    http://www.jovelstefan.de/embedded-video/

    I have posted a similar question on that website, and on wordpress.org but nobody has really helped (except you of course!).

    Any ideas?

  6. Hi Drew,

    I’ve taken a quick look at the embedded-video plugin and can’t seem to find a php function to call to bypass the square bracket call. If you’re after a way to display videos in your sidebar you might want to consider one of my widgets found here.

  7. Hey Daiko,
    Thanks so much for doing that, it is more than enough. I would love to use one of your widgets, but I really need to be able to link to my own .flv’s. I didn’t think it was possible with you widget, is it? I don’t want to have to upload them to YouTube etc. every time as the encoding is terrible for what I want.

    Thanks again!

  8. Daiko, I just had an idea on how to do this with you text widget! What if I used your text widget to create a wordpress loop (http://codex.wordpress.org/The_Loop) that only called a specific ‘Page’? Say, a page called “Video Highlight”? Do you think that would work? If it would, then I would have an easy to update widget that can display anything! I have no idea on how to do it, so before I go out an learn how I thought I would ask you first if you think it is possible.

    Thanks again for the help.

  9. Thanks for a super widget.

    I wound up hacking the conditional tag checks to only display the before_widget and after_widget text if the widget text was to be displayed; otherwise a non-displaying widget broke the layout using the Cutline theme.

  10. Daiko: Great widget!!

    Katja: Can you share your hack? I’d love to hide the widget completely if it’s not going to be displayed. Thanks!

  11. Hi Katja and Don,

    Excellent point. Will be fixed tomorrow.

  12. Katja

    Version 0.9.3 should play nicer and not include the before and after code for widgets. I’ve kept the comment code though just to assist in debugging if you have lots of text widgets.

  13. Daiko:
    Excellent! Thanks for the new version.

  14. 14Garrett

    Hi–

    I am having a problem with this plugin. The string, “–>” is always written to the sidebar at the end of the last instance of the widget. How can I get rid of this?

    Thanks,
    Garrett

  15. hi there .thanks for plugin:

    Does anybody know if tis script is compatible with Wordpress 2.5.1 ?

    Thanks in advance for any help on this!

    best regards

    baron

  16. Daiko,

    Your widget worked perfectly! Thank you for posting it. I am VERY new to WordPress and am starting with 2.5.1. All I wanted to do was add an image to my sidebar and your widget did the trick!

    Thanks!

    Ricky Jordan

  17. 17zoblue

    Does this plug in work if the text has multiple lines of php code? For example…

    html code html code

    Because it isn’t working for me right now using multiple lines of php code in the widget.

  18. 18zoblue

    Hm… let’s try this again…
    <?php code code ?>
    html html blah blah <?php inside html code ?>
    html html
    <?php more code ?>

    Just wondering if anyone else had this problem with multiple lines of php code not working. I can send the exact code I’m using in the widget via email.

  19. 19zoblue

    Any php code using ‘get_post_meta tag’ won’t work with this plugin. Any ideas why?

  20. Hi Daiko

    Thanks for the fantastic plugins! I really like them. I just got the text plugin, and I’m not even sure if this is possible, but I am trying to have a widget show the newest entry to a specific category using a loop statement. I’m not even sure if this is correct;
    ? php $my_query = new WP_Query(’ category_name=featured & showposts= 1′);
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID; ?
    !– Do stuff… –>
    <?php endwhile; ?
    I dunno if I’m doing this right, or if the text plugin won’t work with this idea. Is that correct?

  21. I have a 3-column widgetized theme. How do I use it with that type of theme?

  22. I have a 3-column widgetized theme. I am no where near technical, but how do I utilize this plugin for that type of theme?

  23. if i want a daikos widget to appear on 4 pages only (id 4,5,6,7) what is the syntax. i tried , but it doesnt work.

  24. Hi cezar,

    In order to do that you must add multiple widgets specifying individual pages. The widget does not accept multiple IDs. If you mean posts, you can make a category and specify that in stead. Unfortunately pages doesn’t have the category option.

    Daiko

  25. Hi KWiz,

    Yes all my widgets can be used with any widgetized theme. Just drag it to your sidebar and use it….

    Daiko

  26. Hi Daiko,

    Your text widget saved me a ton of work, not to mention got rid of a few headaches!
    I am NOT a code person at all! So, can you tell me if you know of a way to have images within your text widget rotate?

    I am using this code:






    and it works great for the images, but would be very nice if I could make rotate?

    Thanks a million for the great widget!

  27. Oh, the code did not display…

    ((




    ))

    Try this…

  28. 28debra

    i have the lastest wordpres version but i get errors when using any php widget

    Warning: include(./gallery/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/debrag/public_html/leannejones/wp-content/plugins/daikostext.php(83) : eval()’d code on line 2

    Warning: include(./gallery/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/debrag/public_html/leannejones/wp-content/plugins/daikostext.php(83) : eval()’d code on line 2

    Warning: include() [function.include]: Failed opening ‘./gallery/cpmfetch/cpmfetch.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/debrag/public_html/leannejones/wp-content/plugins/daikostext.php(83) : eval()’d code on line 2

    Fatal error: Class ‘cpm’ not found in /home/debrag/public_html/leannejones/wp-content/plugins/daikostext.php(83) : eval()’d code on line 3

    is this a widget or cpmfetch error?

  29. I dragged over a daiko-text widget and inserted a simple call for recent comments and it created an error and all widgets disappeared. how do i delete that last daiko widget so it won’t produce that error?

  30. Hi Jeff,

    I guess you just remove it from your sidebar!?

  31. 31akulahpathub

    hello… :)
    just try this plugin for wpmu, everything seems fine
    but, the php code is missing in the widget, only title is appearing.

    already googling, but still no luck.
    oh… is this plugins support WPMU yet ?

    thanks.

  32. Hi akulahpathub,

    I think WPMU prohibits php-code from being run in widgets. To much of a security risk. I would agree…..

  33. Hi Daiko,
    I’m sorry I wasn’t clearer. There isn’t a widget anymore…i get this error instead:

    (G_OF_TITLE%Recent Comments%END_OF_TITLE%
    Fatal error: Call to undefined function: recent_comments() in /home/content/j/p/a/jparo4/html/wp-content/plugins/daikos-text-widget/daikostext.php(83) : eval()’d code on line 1)

    The only way to get that to disappear is to deactivate plugin, but then all my other daiko widgets disappear. Is there a way to delete just that one widget manually?

  34. Hi Daiko,
    I still haven’t heard back and my site is basically frozen without this fix. Here was the question: “Hi Daiko,
    I’m sorry I wasn’t clearer. There isn’t a widget anymore…i get this error instead:

    (�G_OF_TITLE%Recent Comments%END_OF_TITLE%
    Fatal error: Call to undefined function: recent_comments() in /home/content/j/p/a/jparo4/html/wp-content/plugins/daikos-text-widget/daikostext.php(83) : eval()’d code on line 1)

    The only way to get that to disappear is to deactivate plugin, but then all my other daiko widgets disappear. Is there a way to delete just that one widget manually?
    Comment on Jun 30th, 2008 at 10:20 pm “

  35. Hi Jeff,

    What you can do manually is to edit the database entry where the widgets are stored and remove that particular text widget.

    Daiko

  36. Thank you, much better than the standard text whatsit.

  37. Hi Daiko,

    Thanks for coming out with this widget. It’s what I am looking for (eventhough I have not been able to get it working).

    I am using the latest version of WP 2.6
    And I would like to use this widget to display the short blog entries under category “Quick Notes” in the sidebar.
    How can I do that?

    Thanks,
    dshooter

  38. This is a great plug in :)

  39. Daiko’s Text Widget is MAGIC

  40. Thanks, very helpful plugin. The one thing that I would like to see improved is having customized titles. Rather than “Daiko’s Text 12″ I would like to have the ability to enter a descriptive text.

    But thanks for the good work!

  41. Really great Plugin i searched for Month, now i am happy. :)
    Thanks,
    canni

  42. What you can do manually is to edit the database entry where the widgets are stored and remove that particular text widget.

    I had the same problem. With this line of php code:
    most_popular_posts(8);

    The question is, where in the database are widgets stored?

  43. The above website is my Test Wordpress site before I upload plugins to my official Wordpress site.

    To-date, I have successfully uploaded and activated your Daikos YouTube Widget and Daikos ThickBox Plugin.

    I am using the Tiga theme and under the Design-Themes Panel - I have drag/drop the Daikos YouTube Widget into my right sidebar list. (As you can see on my Website link above (under the Title GRN Videos) skewed video stills appear but it is obviously not reading my entries).

    I must be doing something wrong. I’ve researched articles regarding your widget and attemtpted trial/error for 2 days now, please help when you have a moment - I would greately appreciate it.

    Here is the data I am entering into your YouTube Widget.

    Title: GRN VIDEOS
    How many videos to show: 4
    Format: Medium
    Videos:
    BgZTQ6FVLQU@Global Resorts Blueprint
    A0155eS4siY@Global Review

    P.S. A couple of additional questions.

    1.A ‘line break’ is simply created by clicking the ‘Enter’ button correct? (to start a new line)

    2.Format - Small, Medium, Large
    I’m not sure what dimesions these represent
    (width/height)(pixels)

    3.The two fields - Feed from YouTube tag(s)… and Feed
    from YouTube user(s)… are both optional correct?
    Just confirming.

    I love your widget - if I could get it to work it would be phenomenol. Thanks for your timely support.

    Cheers,
    Rich J.

  44. 44Alex

    I’m using WPMU and plugin won’t save the php code, but working when i enter just text. What could be wrong? Also trid to deactivate all plugins, but still no luck :(

  45. Hi! Is there any way to change the code so that it allows say… 40 text widgets?

  46. 46Cedman

    Hi Daiko!

    Thanks for this great plug, the multiple instances and the ability to choose when it shows up is fantastic!
    Maybe you could help me on just one issue…

    I have an “if”-function for the home.php to display only post with a certain tag, so i can decide what is shown rather than my latest post or a specific page. look like this:

    …. etc

    Now it seems that your Text-Plug does not accept the resulting page as being the “Home” and then wont diplay (forgot to mention that the Plug was set up to only display at “Home”.
    As a workaround, i thought of setting the display to “All” minus certain categories or posts in certain categories, kind of exclude function. Is that possible?

    Would like to send you the url, but it is still offline and very secret.

    Thank you for help,

    Cedman

  47. Hi this plugin does exactly what i need the only problem is that i have run out of widgets is there a way to get more than 9?

  48. This is a great plugin

  49. Hi !
    Thanks for your Widget !!!

    I’ve a problem.
    The widget works only if I put it at last in the sidebar. Not at first or between two other widgets…

    Do you know why ?
    Can someone help me ?

    Thanks ;-)

  50. I’d love to have 10 Diako’s Text Widget items! How do I get one more when it only gives me an option for nine?

    I’d like to add a Google Search field on my sidebar in addition to all of the other text items. I used this widget to build a sidebar that had customized banners for each sidebar item (along with some CSS editing to get rid of the Title background images/fonts/display). I used all nine of them to build this sidebar.
    http://www.haikubytwo.com/

  51. Hi there,
    thanks for the simple widget,
    Just wondering if there is an easy way to change the width of the text box. I am using the widget in this site’s footer.

    thanks so much.

  52. Hey, I don’t think this works with WP2.7. It seems to break the Widgets admin page and some of the other widgets in the sidebar.

  53. “What you can do manually is to edit the database entry where the widgets are stored and remove that particular text widget.”

    Thanks for the great widget. Unfortunately I’ve hit the same problem - could you tell me where in the db the widget data is stored?

  54. 54Gabriel

    Hi!
    I have an annoying problem. The Widget is not detecting it is displayed on the home page. I have a proprietary template, but even a code with if is_home() echo whatever placed in the template shows that it is the home page… The widget doesn’t see that…
    It is very strange.
    Anyone has an idea??? I’m stuck :(
    Thanks

  55. 55Lois

    I like this widget. But when I use multiple instances, it doesn’t validate html. Only work around is to use text widgets by various authors, only one from each author. You can see this error on my test site at http://www.eyesapart.com/wptestea/ when you validate the page.

    Both the text areas there are Daiko’s Text Widget.
    It is reported as an id error. I tried writing “testing-this” “testing_this” and id=”testing_this” (all withouth the “”) into the slug area, but none of these worked.

    How can I use multiple copies of your widget without a validation error?

    Thanks,
    Lois

  56. 56Mary Jane

    I’m having the same problem. The Widget is not displaying on the Home page when “Home page” is selected in the drop down.

    Thanks for all your work, would love a solution to this! Anyone? :D

  57. 57J-Pierre

    Hi I’m using the Daiko’s Text Widget WP with WordPress 2.8 and the “How many Daiko’s Text Widgets would you like?” doesn’t work I don’t have access to any more Widget … any clue ?

    Thank in advance !

  58. Having the same problem as J-Pierre. Any solutions? This text widget has been great on so many different levels, I’d love to continue using it!

  59. 59sTeF

    Hi Daiko! Thanks for the great widget! I’ve already installed it and it works perfect!

    But I also do have the problem J-Pierre and ck described before.

    I’m just wondering about the possibility of using more than one widget for the sidebar. I can’t find a solution to include more than one although I’ve chosen to have four Daiko’s Widget and saved it. I’d be very happy to get some help!

    Regards,
    Stefan

  60. Is this plugin broken in WP 2.8? I’m getting a bullet point to the side of the widget as if it’s got a wrapped around it or something.

    I’ve checked everything I can think of, but it still gives me the bullet. Also the option to use more than 1 widget doesn’t work.

  61. I am wanting to display a particular img on a certain page and all sub-pags of that page. I see from the comments that I can’t list multiple IDs, but instead have to load the widget once for each page that I want the img displayed on. My question is “How do I load the widget multiple times?” Once I have added it to the right side of the screen, the original widget won’t let me add it again.

  62. I just found the “multiple instances” at the bottom of the plugin screen. Sorry for the last noob question

  63. Oh, man, love the update… showing the “title” in the active widgets list… changed my life… I run a church website of 5,000 people, and we have well over 25 widgets that display only on certain pages…. I would go mad trying to find the right one before now… Thank you so much for your work… it is greatly appreciated.

  64. Love the widget! I am soooo green and it took me a few minutes to figure it all out but it does exactly what I was hoping it would! Thank you.

  65. I have the same problem as someother seems to have, I cant add more then one widget. The “How many Daiko’s Text Widgets would you like?” is set to two but cant find anymore then one widget to add?

    Thanks in advance!

  66. I have the same problem as many other people. I can just add one widget.

    Any solutions to that?

    best regards Johan

  67. I’m having a similar issue, only 1 instance of the text widget will show up, even though I’ve specified 2 or more in the drop down…

    Has a solution been found?

  68. 68Martina

    Great Plugin!! But I have one problem.. how can I generate more than 9 Textboxes? My widget has an limitation until “9″, but caused by the complexy of my Website I need rather more.

    Can you help me with a hint or a solution?

  69. The good people can read through your writing about this good post and buy the dissertation work in the dissertation service.

  70. Thanks a lot for you plugin. It’s what i was looking !!!

  1. [...] Daiko’s Text Widget [...]

  2. [...] Daiko’s Text Widget [...]

  3. [...] Visit [...]

  4. [...] Daiko’s Text Widget 0.9.3 (Rune Fjellheim) : Un widget permettant indifféremment de gérer du texte ou du code PHP. Je m’en sers pour gérer la colonne centrale de ce blog. [...]

  5. [...] are getting from specific websites you can always use some ingenuity to create your own. By using Daiko’s Text Widget and some quick PHP code you can create a special welcome for any visitors you want. The great thing [...]

  6. [...] Text Widget http://www.daikos.net/widgets/daikos-text-widget/ This little plugin, will allow you to put php code into a widget so you can have those php scripts [...]

  7. [...] Plugin Homepage [...]

  8. [...] is a combination of two plugins: Enhanced Links, which is what opens and closes each heading, and Daiko’s Text Widget, which allows not only text but also takes PHP code. The PHP code pulls the category info from the [...]

  9. [...] Daiko’s Text Widget 0.9.3 (Rune Fjellheim) : Un widget permettant indifféremment de gérer du texte ou du code PHP. Je m’en sers pour gérer la colonne centrale de ce blog. [...]

  10. [...] Daiko’s Text Widget [...]

  11. [...] Daiko’s Text Widget [...]

  12. [...] Daiko’s Text Widget 0.9.4 » Rune Fjellheim (url) Works basically like the Text widget, but it will also take PHP code and includes conditional tags to specify where to show. An extension of the Execphp widget by Otto at http://ottodestruct.com. [...]

  13. [...] got to frustrating, but i searched on the web and found this great text plugin by Daiko. Click Here to for link to page where you can download [...]

  14. [...] помощи любого из 2-х замечательных plugin’ов, а именно Daiko’s Text Widget и Samsarin PHP [...]

  15. [...] first is Diako’s Text Widget, which allows for the addition of executable PHP code in a text box like widget. This allows you to [...]

  16. [...] Install Daiko’s Text Widget by Rune Fjellheim as this will allow you to write the php code to query the page and display it in your sidebar. Add [...]

  17. [...] I’d make a short post without any helpful tip, did you? Well, let me turn your attention to Daiko’s Text Widget plugin for WordPress. This widget is essentially the text widget included in WordPress, however it [...]

  18. [...] Daiko’s Text Widget [...]

  19. [...] Daikos Text Widget by Rune Fjellheim. [...]

  20. [...] permet de présenter comme je le veux mes modules de texte libre (et d’en avoir plusieurs). Daikos Text Widget est donc installé, ce qui m’a donné l’envie de compléter et mettre à jour les [...]

  21. [...] but just got frustrated, but I searched on the web and found this great text plugin by Daiko. Click Here for link to page where you can download [...]

  22. [...] is a combination of two plugins: Enhanced Links, which is what opens and closes each heading, and Daiko’s Text Widget, which allows not only text but also takes PHP code. The PHP code pulls the category info from the [...]

  23. [...] Plugin Homepage » [...]

  24. [...] Doch dann kommt das Plugin Daiko’s Textwidget gerade recht. Du kannst es dir hier downloaden. [...]

  25. [...] Daiko’s Text Widget von Rune Fjellheim kann Text und PHP Code anzeigen. Zusätzlich kann angegeben werden, auf welchen Seiten das Widget erscheint. Bookmarks setzen: Diese Icons verlinken auf Bookmark Dienste bei denen Nutzer neue Inhalte finden und mit anderen teilen können. [...]

  26. [...] plugin for WordPress is called “Daiko’s Text Widget,” and if you’re using WordPress 2.7+, you can find it and install it right from the [...]

  27. [...] -Daiko’s Text adlı eklentimizi indiriyor, yükleyip aktifleştiriyoruz. -Bileşenlerde Daiko’S Text adında ki bileşene kodumuzu ekliyoruz. [...]

  28. [...] php код в виджете. Немного погуглив набрел на плагин Daiko’s Text Widget [...]

  29. [...] Daiko’s Text Widget [...]

Leave a Reply



Bad Behavior has blocked 855 access attempts in the last 7 days.