Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Posts Widget 1.8

  1. #11
    Designer mabujo's Avatar
    Join Date
    Mar 2010
    Location
    France
    Posts
    296
    Thanks
    45
    Thanked 156 Times in 101 Posts

    Default

    I've updated the plugin to version 1.8 which adds support for showing images from the post images plugin in the posts widgets. This requires version 1.2 of the post images plugin.

    Note :
    This version of the posts widget plugin includes an update from 1.7 that was in the SVN version but previously unreleased to the forums. It changes the headings of the widget from h2 tags to h4 tags.
    This shouldn't present a problem if your theme's css file is coded in the most efficient manner (using the '.widget_head' class to style the headings).
    However if your theme references the headings by '#sidebar h2' or similar you will need to change this to '.widget_head' or '#sidebar h4'.

    All widgets will be using h4 tags instead of h2 tags from version 1.5 of Hotaru.
    mabujo
    Themes : Yonda - Isis - My Hotaru sites : Arsenal News - Coming soon : More Hotaru sites and Hotaru Themes

  2. Thanked by:


  3. #12
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default

    Could it be possible to add the post date "3 days ago" to the list items?! and even add the post views to show on them?! I really need help on displaying the post date to them, please someone help me. Thanks in advanced!

  4. #13
    Senior Member Gunaxin's Avatar
    Join Date
    Mar 2010
    Location
    Baltimore, MD - USA
    Posts
    117
    Thanks
    37
    Thanked 26 Times in 16 Posts

    Default

    Any thoughts of how to get Post Widgets to honor the category? For example, when I am on a category list, the sort buttons for latest, upcoming etc. all link to that sort for that category (which is perfect), however the Post Widgets show content for the entire site. Understood that is how they were created, but I am interested in having those widgets display the Top, Upcoming, Latest for whatever category page you are on at the time.

    By looking at the code, I guess its a matter of getting Post Widget to utilize the modifications to the PrepareList function that are contained in the Categories plugin. Unfortunately my abilities are too limited to figure out how to make that happen properly. Any help is appreciated, either in pointing me in the right direction, or updating the plugin yourself.

    If this is a major undertaking (not just a simple change), I'd be willing to sponsor the feature being added, with a check box to toggle its functionality in the Post Widget settings.
    Gunaxin Links - Stuff for Guys on the Web - Proudly running Hotaru CMS 1.4.1

  5. #14
    Designer mabujo's Avatar
    Join Date
    Mar 2010
    Location
    France
    Posts
    296
    Thanks
    45
    Thanked 156 Times in 101 Posts

    Default

    Quote Originally Posted by Gunaxin View Post
    Any thoughts of how to get Post Widgets to honor the category? For example, when I am on a category list, the sort buttons for latest, upcoming etc. all link to that sort for that category (which is perfect), however the Post Widgets show content for the entire site. Understood that is how they were created, but I am interested in having those widgets display the Top, Upcoming, Latest for whatever category page you are on at the time.

    By looking at the code, I guess its a matter of getting Post Widget to utilize the modifications to the PrepareList function that are contained in the Categories plugin. Unfortunately my abilities are too limited to figure out how to make that happen properly. Any help is appreciated, either in pointing me in the right direction, or updating the plugin yourself.

    If this is a major undertaking (not just a simple change), I'd be willing to sponsor the feature being added, with a check box to toggle its functionality in the Post Widget settings.

    It's definitely possible, I'd say you'd be better off using this as the switch though :

    PHP Code:
    $h->vars['category_id']; 
    It gets slightly more complicated if you want posts under a category to display links for the category in the posts widget too, then you'd need to check against this too :

    PHP Code:
    $h->post->category
    I can do this for you if you wish, shoot me a PM or email john at <myusername> dot com.
    mabujo
    Themes : Yonda - Isis - My Hotaru sites : Arsenal News - Coming soon : More Hotaru sites and Hotaru Themes

  6. #15
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default

    so...we have to make some offers to be able to get some code help around here...

  7. #16
    Designer mabujo's Avatar
    Join Date
    Mar 2010
    Location
    France
    Posts
    296
    Thanks
    45
    Thanked 156 Times in 101 Posts

    Default

    yeah... show me the money
    mabujo
    Themes : Yonda - Isis - My Hotaru sites : Arsenal News - Coming soon : More Hotaru sites and Hotaru Themes

  8. #17
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default

    That's not funny...for me at least...

  9. #18
    Designer mabujo's Avatar
    Join Date
    Mar 2010
    Location
    France
    Posts
    296
    Thanks
    45
    Thanked 156 Times in 101 Posts

    Default

    Quote Originally Posted by skorpyo View Post
    That's not funny...for me at least...
    aww sorry man, were you under the impression I was your personal code slave?

    Hotaru CMS is open source. That means you're free to use and distribute the code and modify it to your needs. The code itself is pretty concise and well commented.
    Generally I do stuff for free on plugins that I use and that are of use to my sites...
    For other custom stuff that you want coded, code it yourself or pay someone to do it. Simple, no?

    If you don't want to pay me to add custom features for you maybe we can barter. What do you do for a living? Maybe you can do that for free for me for a while?
    Or maybe you could come round my house and clean up for a couple of days while I code for you?

    Now I'm going to reply with some free advice to your previous post that I just hadn't seen.
    mabujo
    Themes : Yonda - Isis - My Hotaru sites : Arsenal News - Coming soon : More Hotaru sites and Hotaru Themes

  10. #19
    Designer mabujo's Avatar
    Join Date
    Mar 2010
    Location
    France
    Posts
    296
    Thanks
    45
    Thanked 156 Times in 101 Posts

    Default

    Quote Originally Posted by skorpyo View Post
    Could it be possible to add the post date "3 days ago" to the list items?! and even add the post views to show on them?! I really need help on displaying the post date to them, please someone help me. Thanks in advanced!
    To display the post views you should be able to do something like this in getPostsWidgetItems :

    PHP Code:
    $views $h->post->vars['post_row']->post_views;
            print 
    '<li>Views ' $views '</li>'
    (copied straight from the post views plugin source)

    For showing the post date you can use the time difference function. Something like :

    PHP Code:
    echo time_difference(unixtimestamp($h->post->date), $h->lang); 
    Both of these are un-tested, you might need to change the $h->post bits to use $item.
    mabujo
    Themes : Yonda - Isis - My Hotaru sites : Arsenal News - Coming soon : More Hotaru sites and Hotaru Themes

  11. #20
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default

    I'm NOT the bad guy here...neither are you...I was just under the impression that we can get free help from time to time around here...thats all...If you really don't want to help, thats your problem...I come from a poor country and I myself am very poor...I don't want to be pitied for that...you made me say/write it...

    About the code...thanks for the suggestions...I still can't figure that out...and I'm very sorry that I made a fuss about this.
    I was a bit greedy...wanted the needed code free and fast...my bad. I'm very sorry, again.
    I'll have to start learning this damn php language soon...if I want to do it myself, or at least know what the hell that(the code) means...

Thread Information

Users Browsing this Thread

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

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
  •