Titel & Rating - News II

Advanced and professional portal news Joomla template with community features and various content display layouts.
GK User
Sun Jan 06, 2013 5:02 pm
Hello GavickPro Team,

Can you help me pls to configure some points in the World News II.

the-world-news-II.png


How can i add the rating under the title, like in the template MusicCity (see Pic)

template-musiccity-title.png


and at least.... In the World News II the place betwin the lines is to big, how can i made it smaller.
User avatar
Expert Boarder

Konrad M
Mon Jan 07, 2013 11:54 am
Hi,
it is a k2 item view ?
User avatar

GK User
Mon Jan 07, 2013 12:49 pm
Konrad M wrote:Hi,
it is a k2 item view ?


Hello Konrad,

It's Joomla item.

I dont work with K2. I find k2 is not simple to work with news site, not where changes everyday 30 to 50 article....
User avatar
Expert Boarder

Konrad M
Mon Jan 07, 2013 9:04 pm
@kosovari please give me url to page with this rating.
User avatar

GK User
Thu Jan 10, 2013 3:03 pm
Hello Konrad,

my site is www.KosovariMedia.com

I have see that this small problem is not in gk-twn2 for joomla 2.5.... My site is still 1.5.

I update this days my content and my site will be i future with joomla 2.5

Thank you.
User avatar
Expert Boarder

Konrad M
Fri Jan 11, 2013 12:57 pm
Please add this code to template.css at the bottom after last selector:
Code: Select all
.content_vote input.button {
float:none !important;
display:inline;
}
User avatar

GK User
Fri Jan 11, 2013 4:58 pm
Konrad M wrote:Please add this code to template.css at the bottom after last selector:


Hello Konrad,
I have copy and paste the code but dosnt change anything.
vote-content.jpg
User avatar
Expert Boarder

GK User
Sat Jan 12, 2013 8:55 pm
Hello Konrad,

something have changed..... The vote buton is over the title and clear, just the problem is that is not under the Title....
voting-users.jpg
User avatar
Expert Boarder

Konrad M
Wed Jan 16, 2013 10:51 am
Probably you need to change position of titile in html/com_content/article/default.php. Please find:
Code: Select all
<?php echo $this->article->event->beforeDisplayContent; ?>

and paste it under:
Code: Select all
<?php if ($this->params->get('show_title',1)) : ?>
<h2 class="contentheading<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?> clearfix">
   <?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
   <span>
      <a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?>"><?php echo $this->escape(isset($this->article->page_title)?$this->article->page_title:$this->article->title); ?></a>
   </span>
   <?php else : ?>
   <span><?php echo $this->escape(isset($this->article->page_title)?$this->article->page_title:$this->article->title); ?></span>
   <?php endif; ?>
</h2>
<?php endif; ?>
User avatar

GK User
Wed Jan 16, 2013 3:39 pm
Konrad M wrote:Probably you need to change position of titile in html/com_content/article/default.php. Please find:


Hello Konrad,
i have find this code and i have paste the code what you send me:
Look at this:
Code: Select all
<tr>
   <?php if ($this->params->get('show_title')) : ?>
   <td class="contentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="100%">
      <?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
      <a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
         <?php echo $this->escape($this->article->title); ?></a>
      <?php else : ?>
         <?php echo $this->escape($this->article->title); ?>
      <?php endif; ?>
   </td>
   <?php endif; ?>
   <?php echo $this->article->event->beforeDisplayContent; ?>

The default.php in my site is under:....components/com_content/views/article/tmpl
User avatar
Expert Boarder

Konrad M
Wed Jan 16, 2013 11:03 pm
Please go to templates/gk_twn2/html/com_content_article/default.php becasue this file override default one which you edited. And probably you don't see effect of your changes.
User avatar

GK User
Thu Jan 17, 2013 3:32 pm
Konrad M wrote:Please go to templates/gk_twn2/html/com_content_article/default.php becasue this file override default one which you edited. And probably you don't see effect of your changes.


Yes, i find it and changed. It works perfectly, thank you so much. Look's fine.
title-rating.jpg

In the default.php, i have see the line 31, is the same, i have deletted and works fine.
default-php.jpg
User avatar
Expert Boarder

GK User
Thu Jan 17, 2013 3:49 pm
Konrad,

it is posible to have something like this.... Looks more better than now.... maybe the developpers will work for it.....

title-rating-more-better.png

The button a bit smaller to be like a size from radio buttons....
It is posible??
User avatar
Expert Boarder

Konrad M
Fri Jan 18, 2013 8:54 am
Please try add this code:
Code: Select all
#component h2+form {
position:relative;
}
#component h2+form .content_rating {
float: left;
position: absolute;
left: 240px;
top: 6px;
}
User avatar

GK User
Fri Jan 18, 2013 6:38 pm
Konrad M wrote:Please try add this code:

Hello Konrad,
Rating.png

thank you for the code.... looks pretty fine... i have fixed it with:
Code: Select all
#component h2+form {
position:relative;
}
#component h2+form .content_rating {
float: left;
position: absolute;
left: 240px;
top: 30px;
}

fixed-code-rating.png

Example:
http://www.kosovarimedia.com/index.php/ ... -dore.html
_______________________
Now have much place betwin the title and rating.... Idea how to fix it?? Thank you.
User avatar
Expert Boarder

Konrad M
Fri Jan 18, 2013 10:31 pm
Try change this code:
Code: Select all
#component h2 + form {
position: relative;
}

to this one:
Code: Select all
#component h2 + form {
position: relative;
margin-top: -20px;
}

and try increase or decrease margin value to fit your needs.
User avatar

GK User
Sat Jan 19, 2013 1:45 am
Konrad M wrote:Try change this code:
.....and try increase or decrease margin value to fit your needs.


Thank you very much Konrad. Fixed with -10px and looks very nice....
User avatar
Expert Boarder


cron