Subscribe via Feedburner Flickr Images Youtube Profile LinkedIn Profile
GD Custom Posts And Taxonomies Tools

T2: Explained #2

Thumbnail for T2: Explained #2

There were some changes in T2 in the last few versions, and some of the changes are added to make using T2 easier. T2 panel now has 3 tabs. Also, few new options are added to template editor panel. That and more will be explained in this post.

As explained before, most templates depend on other templates. So the templates that are used in other templates have their own tag assigned to them and you can see that in the main templates table. In some cases one of these basic templates is used in many other, like template for word vote in plural and singular. If you want to make a new template for this word and use it in all other templates without need to change all of them individual, you can do it much easier now.

t2 editor options 300x81 T2: Explained #2

T2 Editor Options

Using the editor options

As you can see there are two check-boxes in the editor. First one is there for all templates, and the second one is for the templates that are used by other templates, like the one for the word vote. First will set this (new or edited) template as default for the type of template. Once again, default doesn’t mean that this template will be used regardless of any other settings. Default template is the one that will be used in case that template is not set for some operation.

Second option will cause that all templates that depend on that type of templates will be modified and will use this new or edited template. So if you create new word vote template, and check this second option, all templates that depend on word vote template will be changed to use this new template.

Using new T2 tabs

Templates tab displays all templates you have in the database. Defaults is also old feature now in tab. New tab is called Dependencies.

t2 tabs panel T2: Explained #2

T2 Tabs

This tab shows all templates in the system that depend on some other templates. For each template you see dependencies, and you can change this dependencies without modifying the templates individually. And the most important is that you can change dependencies of the default templates that you can’t edit at all.

Next part in the series of posts about T2 will explain how to translate some of the templates and set dependencies to languages other than english.

GD Star Rating
a WordPress rating system

Share this:

del.icio.us DiGG Google StumbleUpon Google Buzz Microsoft Live MiXX RSS PDF
T2: Explained #2, 7.4 out of 10 based on 28 ratings

9 Responses to “T2: Explained #2”

  1. Arizona | September 2, 2009 at 8:47 PM

    This type of site is new and different for me! Thank you for the invitation. :-)

    GD Star Rating
    a WordPress rating system
  2. Sharl | September 4, 2009 at 12:54 PM

    thanks for the good feature。

    but i found a bug in the GREAT WP-Rating system,that is Chinese character is not supported in t2 template.
    when i edit the copy of original template with 26 letters and numbers,Save is OK.but when i replace it with the Chinese characters,click Save button,then Edit it,Nothing appeared.

    So,i think the problem caused by multi-language support,please fix it.

    GD Star Rating
    a WordPress rating system
    • MillaN | September 4, 2009 at 2:09 PM

      You need to change encoding used by the plugin. Default is UTF-8, and it’s on the settings panel. Also, mySQL must be able to save the same encoding you use with the plugin. As far as I know it works as well with any encoding as WordPress does, it uses basically the same technique to save such values.

      GD Star Rating
      a WordPress rating system
      • Sharl | September 4, 2009 at 2:16 PM

        oh.thanks a lot.

        GD Star Rating
        a WordPress rating system
  3. Andrei Gheorghiu | September 9, 2009 at 6:09 PM

    hi.

    i have been playing with gd star ratings in the past weeks and i have run into some problems: when i try to rate something in multiple block the rating doesn’t fix. the stars do not get colored and it does not remember the vote.

    it worked perfectly 1 day before and without any changes to the plugin or to other plugins, it doesn’t anymore.

    i was wondering if you know what might be the cause and point me in the right direction (if this has happened before to other people)

    it might also be the server settings (i also had some problems with .htaccess in the last couple of days, was unable to login on the blog).

    thank you very much

    GD Star Rating
    a WordPress rating system
    • Andrei Gheorghiu | September 9, 2009 at 6:59 PM

      This might also have to do with AJAX. I have AJAX-preview-comments plugin and it only works in IE. It’s dead in Opera, Safari and Firefox.
      I even tryed to reinstall WordPress. Maybe I should also ask help on WP froums…

      GD Star Rating
      a WordPress rating system
    • Andrei Gheorghiu | September 10, 2009 at 8:24 AM

      Found and solved the problem. It had nothing to do with your plugin, but with a theme file. Everything works just perfect now.

      But I want to ask you:
      I have made minor tweaks to render_mri() and i tried to save a copy render_mri_custom() in my functions.php.
      Where should I save some custom functions so they could still stand after update of your plugin?

      This is not such a big issue, because I made the functions the smart way: i check if the custom function exists. if not, i load default function, so the website and plugin still work.

      By the way: Good job on the new theme. Very neat.

      GD Star Rating
      a WordPress rating system
      • MillaN | September 11, 2009 at 1:40 PM

        1.6.5 will feature filter hooks for each of the rendering functions, so you can register your own functions to modify the rendering.

        GD Star Rating
        a WordPress rating system
  4. Arizona | September 9, 2009 at 8:32 PM

    I am not at all technical so I await a more user friendly update on this site and what it all means.

    GD Star Rating
    a WordPress rating system

Comments are closed.