I wonder if some one get a way to allow story theming by topic?
What I want to do is to display story title from topic 1 in red, and story title from topic 2 in blue.
Thanks,
Ben
Re: Story title color by topic
Posted on: 05/24/11 07:43pm By: suprsidr
Since the topic is not present in the url request variables, you could query the story's content for the topic icon and base the title color based on which icon is present.
jQuery comes to mind.
-s
Re: Story title color by topic
Posted on: 05/25/11 08:15am By: Laugh
I hope to allow admins to specify a theme for each topic in Geeklog 1.8.1
Re: Story title color by topic and more
Posted on: 05/25/11 10:29am By: ::Ben
After reading some posts I maked a simple hack in the lib-story.php file (STORY_renderArticle function) and add my new
storytext.thtml, storybodytext.thtml, featuredstorytext.thtml, featuredstorybodytext.thtml, archivestorytext.thtml, archivestorybodytext.thtml files
to my layout/professional/topics/General folder
Text Formatted Code
Near line 92
if ( is_dir($_CONF['path_layout'] . '/topics/' . $story->DisplayElements('tid')) ) {
$article = new Template( $_CONF['path_layout'] . '/topics/' . $story->DisplayElements('tid') );
} else {
$article = new Template( $_CONF['path_layout'] );
}
Thanks,
Ben
Re: Story title color by topic
Posted on: 08/22/11 05:09am By: ::Ben
With geeklog 1.8.0 replace line 98 in lib-story.php file (STORY_renderArticle function)