1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Customising Templates, Plugins

Discussion in 'General Troubleshooting' started by shibuya246, Oct 11, 2014.

  1. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    An oldie, but a goodie here. A quick look back at an article which explains how to customize your plugin templates.

    This is really important if you are making a new theme and are thinking about "chopping up the base code", then get worried you cant upgrade the core because your changes will be overwritten.

    If you find some html that is not in a template for a plugin and it causes a problem, let me know and I will look at how to organise it better.

    but first, lets take a refresher course and review this page :)
    http://docs.hotarucms.org/index.php?title=Customizing_Plugin_Templates
     
  2. robin007

    robin007 Well-Known Member

    I making a theme.

    I have a small problems.

    subtext links not align properly.
    so i need separate pluginhooks for flag it and comment

    and

    I copy the category language file in to theme language folder but not work.

    and

    paginator inside the libs folder.
    can I make bootstrap pagination inside my theme folder?

    and

    I insert the bootstrap button in categories but cont work categories.php inside the theme folder.

    please help.
     
  3. sereban

    sereban Active Member

    Find in files bookmarking_post.php and bookmarking_list.php hook
    Code:
    <?php $h->pluginHook('show_post_extra_fields''); ?>
    and delete it. Stead insert these hooks
    Code:
    <?php $h->pluginHook('show_post_extra_fields', 'vote'); ?>
                         <?php $h->pluginHook('show_post_extra_fields', 'comments'); ?>
    Vote it flag_it, comments it comments counter.
     
    robin007 likes this.
  4. sereban

    sereban Active Member

    Bootstrap paginator file
     

    Attached Files:

    robin007 and shibuya246 like this.
  5. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    You can only move templates, css or js to the theme folder which will override any base files for these.
    Can you explain a little of what you need for the paginator. Maybe we can make a template for it which could then be customised. Or maybe we need to put in some css tags for it which can then be customised
     
  6. sereban

    sereban Active Member

    I changed a few classes in the file paginator for bootstrap.css.
     
  7. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    That sounds good. I would like to work those into the core if possible
     
  8. sereban

    sereban Active Member

    You can use this file. In the admin panel will also work paginator bootstrap.
     
    robin007 likes this.
  9. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    Thanks for this. Works well with bootstrap. We will need to alter it a bit to still work with older themes as well
     
  10. robin007

    robin007 Well-Known Member

    Thank you.
     
  11. robin007

    robin007 Well-Known Member

    Its working thanks.
     
  12. alfbrand

    alfbrand Active Member

    Would be great if this had a themeable template, but until then I've created a bootstrap3 spec implementation (http://getbootstrap.com/components/#pagination) version of this file if anyone is interested.

    FYI this will not look to good in older/other themes.
     

    Attached Files:

    shibuya246 likes this.
  13. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    thanks. I am thinking of ideas to make this template-able also :)
    Nice addition
     

Share This Page