Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> I Need To Add A Space Between Tournaments On Front End, sportspredictions
michalis
post Jul 22 2012, 11:14 PM
Post #1


Newbie
*

Group: Advanced Member
Posts: 46
Joined: 14-July 12
Member No.: 1,272



please help me out here, all tournaments are listed in one huge endless list, I need to separate them with a space so you can easily tell which tournament is what

I tried adding an extra row to this table, but the extra row appears after every single game so it looks bad

from views/matches/tmpl/default.php

CODE

<tbody>
<?php for ($i=0,$k=0,$n=count($this->items); $i<$n; $i++,$k=1-$k): ?>
<tr class="<?php echo "row$k"; ?>">
<td class="secenter"><?php echo $this->items[$i]->cat_name, '<br />', $this->items[$i]->date; ?></td>
<td width="30px" align="left">
<?php if (empty($this->items[$i]->t1_flag)): ?>
&nbsp;
<?php else: ?>
<img height="13px" width="19px" src="<?php echo JURI::root(TRUE).'/components/com_sportspredictions/images/'.$this->items[$i]->t1_flag;?>" />
<?php endif; ?>
</td>
<td class="secenter" width="1%" nowrap="nowrap"><?php
echo empty($this->items[$i]->descr) ?
$this->items[$i]->t1_name.' - '.$this->items[$i]->t2_name :
'<a href="'.JRoute::_('index.php?option=com_sportspredictions&view=match&id_mat='.$this->items[$i]->id_mat).'">'.$this->items[$i]->t1_name.' - '.$this->items[$i]->t2_name.'</a>';
?></td>
<td width="30px" align="right">
<?php if (empty($this->items[$i]->t2_flag)): ?>
&nbsp;
<?php else: ?>
<img height="13px" width="19px" src="<?php echo JURI::root(TRUE).'/components/com_sportspredictions/images/'.$this->items[$i]->t2_flag;?>" />
<?php endif; ?>
</td>
<td class="secenter" nowrap="nowrap">
<input type="text" name="predictions[<?php echo $this->items[$i]->id_mat; ?>][1]" style="width:20px" maxlength="2" value="<?php echo $this->items[$i]->prev_equipe1; ?>" />
:

<input type="text" name="predictions[<?php echo $this->items[$i]->id_mat; ?>][2]" style="width:20px" maxlength="2" value="<?php echo $this->items[$i]->prev_equipe2; ?>" />
</td>
</tr>
<?php endfor; ?>
</tbody>



This post has been edited by michalis: Jul 22 2012, 11:17 PM
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post Jul 23 2012, 07:53 AM
Post #2


Advanced User
****

Group: Advanced Member
Posts: 218
Joined: 15-April 11
Member No.: 761



Цитат(michalis @ Jul 23 2012, 12:14 AM) *
please help me out here, all tournaments are listed in one huge endless list, I need to separate them with a space so you can easily tell which tournament is what

I tried adding an extra row to this table, but the extra row appears after every single game so it looks bad

from views/matches/tmpl/default.php



You may alter the row0 and row1 CSS classes so there are some extra space where you want it. Or you may create similar classes with the same purpose.
Go to the top of the page
 
+Quote Post
michalis
post Jul 26 2012, 04:31 PM
Post #3


Newbie
*

Group: Advanced Member
Posts: 46
Joined: 14-July 12
Member No.: 1,272



QUOTE (Ivan Stamenov @ Jul 23 2012, 07:53 AM) *
You may alter the row0 and row1 CSS classes so there are some extra space where you want it. Or you may create similar classes with the same purpose.


it cant be done with css, I want to add a space after every tournament, not after every row or every other row


can you help?

This post has been edited by michalis: Jul 26 2012, 05:24 PM
Go to the top of the page
 
+Quote Post
michalis
post Jul 27 2012, 08:14 AM
Post #4


Newbie
*

Group: Advanced Member
Posts: 46
Joined: 14-July 12
Member No.: 1,272



I tried adding this


<?php if (empty($this->cat_name)): ?>
<tr><td>&nbsp;</td></tr>
<?php else: ?>
&nbsp;
<?php endif; ?>


but it just adds a space at the end of the whole list and not after every tournament:(

This post has been edited by michalis: Jul 27 2012, 08:40 AM
Go to the top of the page
 
+Quote Post
Web Design Seo
post Jul 27 2012, 08:45 AM
Post #5


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



michalis, i can't help you, i am not programmer. Programmers are on vacation from today - see my signature. We are small company and all company will stop to work for 20 business days - to 20 august.

Try to search for php programmer in your city if you want to change look of component. Maybe we must add some options in component admin to allow styling of look. But this will be in next vesion.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No New Posts Front Page By Key Word
in Aggregator for Joomla!
2 -zookool- 22,314 17th March 2016 - 10:16 AM
Last post by: Web Design Seo
No New Posts Need Your Work For Microformatsvotes
Custom configuration MicroformatsVotes
1 alexmart 6,491 27th January 2015 - 07:24 AM
Last post by: Web Design Seo
No New Posts Needing Your Help With Some Characters And Author
1 Jesse69 5,691 30th April 2013 - 08:53 AM
Last post by: Web Design Seo
No New Posts Adding/changing Currencies
3 Samatyme 44,562 11th March 2013 - 06:48 AM
Last post by: Ivan Stamenov
No New Posts Needing Your Help - Scraper To K2
3 Jesse69 7,398 20th March 2012 - 11:03 AM
Last post by: Web Design Seo
No New Posts Add More Boxes And Remove Required Option In Mail Order
3 Sabas Sanchez 11,245 18th July 2011 - 10:39 AM
Last post by: Web Design Seo
No New Posts Need A Shopping Cart
I need the Mail Order plugin but need more...
1 frogdog47 5,438 16th June 2011 - 06:43 AM
Last post by: Web Design Seo
No New Posts Add A Captcha To Mailorder Pro
user question
0 Web Design Seo 11,001 19th October 2010 - 02:33 PM
Last post by: 3D Web Design
No new Adding Multiple Items To A Page Problem
Adding Multiple items to a page problem
4 Maurice 11,347 13th August 2010 - 07:47 AM
Last post by: 3D Web Design


 



RSS Lo-Fi Version Time is now: 2nd June 2026 - 04:54 AM