Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Text Widget 0.6

  1. #11
    Junior Member
    Join Date
    Oct 2010
    Location
    Italy
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I see this page http://forums.hotarucms.org/showthre...nother-Sidebar to position text widge in index but the text widget is not visible.
    I would put the adsense code in home (between post) and in internal post page, how can I do?

    Thanks a lot

  2. #12
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 845 Times in 550 Posts

    Default

    That post is old. Here's the latest: http://docs.hotarucms.org/How_to_Add_Another_Sidebar

  3. #13
    Junior Member
    Join Date
    Oct 2010
    Location
    Italy
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok,
    i have seen new link.

    I created the adsense.php page with my code adsense and i have put in index.php
    <?php $h->displayTemplate('adsense'); ?>
    But i I would like to insert directly the content of text_widget 0.6, how can I do?

    Thanks a lot

  4. #14
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 845 Times in 550 Posts

    Default

    Quote Originally Posted by Alexander View Post
    But i I would like to insert directly the content of text_widget 0.6, how can I do?
    Make a text widget, select the PHP box and paste $h->displayTemplate('adsense'); into it. Then paste this wherever you want your second widget block:

    PHP Code:
    <?php $h->pluginHook('widget_block''', array(2)); ?>
    Finally, in Admin -> Widgets, move your new text widget to the very bottom, and down once more so it pops off into your second widget block.

    Now it should show up wherever you pasted the above code.

  5. #15
    Junior Member
    Join Date
    Oct 2010
    Location
    Italy
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes,
    or insert this code:
    Code:
    <?php Widgets::singleWidget($h, "text_widget_1"); ?>
    in favourite position of php page, am I right?

    Another question for this:
    is it possible to put a variable in text_widget_1 (for example text_widget[$id]) to don't edit manually the code to insert adsense?

    Thanks a lot

  6. #16
    Senior Member
    Join Date
    Sep 2009
    Posts
    526
    Thanks
    209
    Thanked 85 Times in 64 Posts

    Default

    I wonder why I'm unable to add a second text widget. When I click "Add a new widget" on the Text Widget admin page, it says "Widget added" but I don't see the second widget at all.

    Funnily, when I click "Widgets" on the main admin page, it show Text widget 2 and Text widget 3 (and turned On), which I believe implies that the 2nd and 3rd widgets have been added. But when I go to the "Text Widget" admin page I can only see the first text widget.

    Cleared the cache and tried the following too, but no luck

    Quote Originally Posted by Nick View Post
    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.
    EDIT: List of installed plugins

    1. bookmarking v.0.5 (0.0) [enabled]
    2. user_signin v.0.7 (0.0) [enabled]
    3. users v.2.2 (0.0) [enabled]
    4. submit v.3.2 (0.0) [enabled]
    5. comments v.2.6 (0.0) [enabled]
    6. category_manager v.1.0 (0.0) [enabled]
    7. categories v.1.9 (0.0) [enabled]
    8. search v.1.3 (0.0) [enabled]
    9. tags v.1.8 (0.0) [enabled]
    10. vote v.2.3 (0.0) [enabled]
    11. post_manager v.1.0 (0.0) [enabled]
    12. user_manager v.1.2 (0.0) [enabled]
    13. comment_manager v.0.6 (0.0) [enabled]
    14. activity v.1.1 (0.0) [enabled]
    15. archive v.0.2 (0.0) [enabled]
    16. comment_voting v.0.2 (0.0) [enabled]
    17. comments_widget v.0.4 (0.0) [enabled]
    18. contact_us v.0.3 (0.0) [enabled]
    19. cron v.0.4 (0.0) [enabled]
    20. facebook_open_graph v.0.5 (0.0) [enabled]
    21. gravatar v.1.0 (0.0) [enabled]
    22. journal v.0.6 (0.0) [enabled]
    23. messaging v.0.7 (0.0) [enabled]
    24. post_rss v.0.1 (0.0) [enabled]
    25. post_views v.0.2 (0.0) [enabled]
    26. posts_widget v.1.6 (0.0) [enabled]
    27. save_post v.0.7 (0.0) [enabled]
    28. smilies v.0.3 (0.0) [enabled]
    29. stop_spam v.0.4 (0.0) [enabled]
    30. post_views_widget v.0.1 (0.0) [enabled]
    31. who_voted v.0.2 (0.0) [enabled]
    32. whos_online v.0.2 (0.0) [enabled]
    33. ckeditor v.0.1 (0.0) [enabled]
    34. twitter_widget v.0.3 (0.0) [enabled]
    35. post_images v.1.0 (0.0) [enabled]
    36. facebook_share v.0.3 (0.0) [enabled]
    37. tweet_this v.0.5 (0.0) [enabled]
    38. mobile v.0.3 (0.0) [disabled]
    39. ego_squasher v.0.2 (0.0) [enabled]
    40. autocomplete v.0.3 (0.0) [enabled]
    41. user_rankings v.0.2 (0.0) [enabled]
    42. text_widget v.0.5 (0.0) [enabled]
    43. widgets v.1.0 (0.0) [enabled]
    Last edited by nothingman; 12-08-2010 at 07:17 AM.

  7. #17
    Senior Member
    Join Date
    Sep 2009
    Posts
    526
    Thanks
    209
    Thanked 85 Times in 64 Posts

    Default

    *bump*...anyone?
    Last edited by Nick; 12-15-2010 at 11:41 AM. Reason: Removed unnecessary quote

  8. #18
    Senior Member
    Join Date
    Sep 2009
    Location
    WorldWid3
    Posts
    289
    Thanks
    43
    Thanked 43 Times in 30 Posts

    Default RSS Text Widget

    Any suggestions on adding a text widget that would display a list of RSS Feeds. I would like to add a sidebar widget to would show 3-5 RSS so users can subscribe too.

    Click image for larger version. 

Name:	NowPublic.com - The News is NowPublic_1309733765991.png 
Views:	43 
Size:	4.4 KB 
ID:	1571

  9. #19
    Member Manolof's Avatar
    Join Date
    May 2011
    Location
    Athens, Greece
    Posts
    35
    Thanks
    8
    Thanked 5 Times in 5 Posts

    Question

    What should i change in the code in order to make this plugin nest all the created text widgets under the same widget body? Currently it is like:
    HTML Code:
    <div class="widget">
    <div class="widget_body" id="text_widget_1_body"></div>
    </div>
    <div class="widget">
    <div class="widget_body" id="text_widget_2_body"></div>
    </div>
    <div class="widget">
    <div class="widget_body" id="text_widget_3_body"></div>
    </div>
    While i want it to be all in the same widget :
    HTML Code:
    <div class="widget">
    <div class="widget_body" id="text_widget_1_body"></div>
    <div class="widget_body" id="text_widget_2_body"></div>
    <div class="widget_body" id="text_widget_3_body"></div>
    </div>
    Thanks in advance!
    EntrePlus - A community for entrepreneurs and business owners who want to network and stay updated with a summary of the latest news and tips from the business world.

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
  •