Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Text Widget 0.6

  1. #1
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,861
    Blog Entries
    88
    Thanks
    485
    Thanked 809 Times in 528 Posts

    Default Text Widget 0.6

    Text Widget
    Version: 0.6
    Author: Nick Ramsay
    Created on: 2009/10/12
    Last Updated:
    2010/06/04
    Tested on: Hotaru 1.3.0
    Plugins Required: Widgets
    Plug & Play: Yes
    Supported: Yes

    Description
    Add multiple custom widgets to your sidebar. Paste text, HTML, PHP, etc into each widget and use the Widgets plugin to position it in your sidebar or other widget block.

    Instructions
    1. Upload the "text_widget" folder to your plugins folder.
    2. Install it from Plugin Management in Admin.
    3. Add new text widgets from Admin -> Text Widget

    Tip
    If you would rather use a template than paste code into a widget, you can do so by checking the PHP box and putting the following code in the text area where template_name is the file name (without extension) of the custom template in your theme folder.

    PHP Code:
    $h->displayTemplate('template_name'); // no .php extension 

    Revision History

    v.0.6 2010/05/25 - Nick - Fix for text widgets disappearing from the Widgets page after reinstalling the plugin.
    v.0.5 2010/02/20 - Nick - Minor widget ids fix for W3C compatibility
    v.0.4 2010/01/04 - Nick - Updates for compatibility with Hotaru 1.0
    v.0.3 2009/11/04 - Nick - Updated install function for easier upgrading
    v.0.2 2009/10/13 - Nick - Bug fix for deleting text widgets
    v.0.1 2009/10/12 - Nick - Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.

    Attached Thumbnails Attached Thumbnails text-widget.png  
    Attached Files Attached Files
    Last edited by carlo75; 02-06-2010 at 02:24 PM.

  2. Thanked by:


  3. #2
    Admin & Design JonH's Avatar
    Join Date
    Jun 2009
    Location
    New Braunfels, Texas
    Posts
    248
    Thanks
    57
    Thanked 49 Times in 30 Posts

    Default

    Can this plugin be broke up to different sections of a site?
    Example:
    text areas id:A1, A2, A3 for header,
    text areas id:B1, B2, B3 for mid page,
    same for footer and sidebar. etc.

    Say someone was to convert a WordPress template over to HotaruCMS, then a hook where Wordpress has the "featured" area div can be an "about us" synopsis.

    Or maybe a completely different "featured" plugin that you can sticky a story there on the top section. I think Pligg had a module like that. - I'll suggest this one in the appropriate forum .

  4. #3
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,861
    Blog Entries
    88
    Thanks
    485
    Thanked 809 Times in 528 Posts

    Default

    Quote Originally Posted by JonH View Post
    Can this plugin be broke up to different sections of a site?
    In a roundabout way, yes. The trick is to make extra sidebars (which aren't really sidebars, but "areas"). Then you can make as many text widgets as you want and use the Sidebar Widgets plugin to move them into the "area" you want.

    Read how here: http://hotarucms.org/showthread.php?t=64

  5. #4
    Senior Member
    Join Date
    Sep 2009
    Location
    WorldWid3
    Posts
    272
    Thanks
    35
    Thanked 38 Times in 26 Posts

    Default Text Widget [ id:1 ] not displaying in Widgets plugin

    Not sure if this should be posted here or on the widgets plugin side of things:

    After adding multiple text widgets, I go to the widgets plugin to change their order. The widgets plugin displays all added text widgets with the exception of Text Widget [ id:1 ].

  6. #5
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,861
    Blog Entries
    88
    Thanks
    485
    Thanked 809 Times in 528 Posts

    Default

    That sounds a bit buggy. Try this:

    1. Uninstall the "Widgets" plugin
    2. Admin -> Maintenance -> "Remove Widgets settings"
    3. Reinstall the "Widgets" plugin
    4. See if the problem is fixed in Admin -> Plugin Settings -> Widgets

    If that doesn't work, you might repeat the procedure with the "Text Widget" plugin, but you'll need to make each text widget again.

  7. #6
    Donor zigstonk's Avatar
    Join Date
    May 2010
    Location
    Tampa Bay, Florida
    Posts
    44
    Thanks
    29
    Thanked 3 Times in 2 Posts

    Default

    so how do i post an image in the text widget box, and link to another page or site?

    The following doesn't seem to work:

    <a href="http://www.xxx.com" target="_blank"> <img src="xxx.jpg"> </a>

    Should I use php for this? thanks.

  8. #7
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,861
    Blog Entries
    88
    Thanks
    485
    Thanked 809 Times in 528 Posts

    Default

    Quote Originally Posted by zigstonk View Post
    The following doesn't seem to work
    What exactly doesn't work? I tried it and it worked fine. If it doesn't work for you, what happens when you try it?

    The widget doesn't show? Check it's enabled in the Widgets settings.
    Blank page, or the code is lost when you click "Save"? Maybe a mod_security problem. Talk to your web host.
    Etc.

  9. #8
    Donor zigstonk's Avatar
    Join Date
    May 2010
    Location
    Tampa Bay, Florida
    Posts
    44
    Thanks
    29
    Thanked 3 Times in 2 Posts

    Default

    Quote Originally Posted by Nick View Post
    What exactly doesn't work? I tried it and it worked fine. If it doesn't work for you, what happens when you try it?

    The widget doesn't show? Check it's enabled in the Widgets settings.
    Blank page, or the code is lost when you click "Save"? Maybe a mod_security problem. Talk to your web host.
    Etc.
    User error. Photo in wrong folder. sigh...it's been a long day. As always, thanks Nick.

  10. #9
    Donor
    Join Date
    Jun 2010
    Posts
    49
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default

    i download this and it says it is still 0.5 when i downloaded the 0.6 file?

  11. #10
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,861
    Blog Entries
    88
    Thanks
    485
    Thanked 809 Times in 528 Posts

    Default

    Quote Originally Posted by norby500 View Post
    i download this and it says it is still 0.5 when i downloaded the 0.6 file?
    Ahhh, looks like I forgot to change the version number, but it's definitely the 0.6 code.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Docs] Making a Plugin - Case Study 2: Hello World Widget
    By Nick in forum Developing Plugins
    Replies: 0
    Last Post: 08-08-2009, 05:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •