Note that there are some explanatory texts on larger screens.

plurals
  1. POImages are placed side by side, how do I list them vertically?
    primarykey
    data
    text
    <p>i'm not sure how to make a break in this code, so the jaward images in this code below, shows multiple images in a vertical format (instead of showing them side by side horizontally). Because the images are wide, it takes up to much space if I show them horizontally? My coding knowledge is basic, so if you can tell me the specific location, it would be very helpful.. :). I'm also not sure if I should use a page break <p> or a <br>, span or other.</p> <pre><code> // Hack for jAwards integration, displays some medals of the user for Kunena 1.6 $number_medals = 10; // number of medals to show $query = "SELECT b.image, b.name" . "\n FROM #__jawards_awards AS a" . "\n LEFT JOIN #__jawards_medals AS b ON b.id = a.award" . "\n WHERE a.userid=". $this-&gt;profile-&gt;userid . "\n ORDER BY RAND() LIMIT ".$number_medals; $database = &amp;JFactory::getDbo(); $database-&gt;setQuery( $query ); $medals = $database-&gt;loadObjectList(); // URL links to the jAwards-Tab for Community Builder which displays all // medals of the user - change to another URL of needed $awards_url=JRoute::_('index.php?option=com_comprofiler&amp;task=userProfile&amp;user='.$this-&gt;profile-&gt;userid."&amp;tab=getawardstab"); // CSS-class "ja_medals" allows individual styling of medal images and // container. "nobr" keeps the medals from breaking apart, display them // in one row. $msg_jawards = "&lt;div class=\"ja_medals\"&gt;&lt;nobr&gt;"; foreach ($medals as $med){ $msg_jawards.= "&lt;a href=\"$awards_url\" title=\"$med-&gt;name\"&gt;" . "&lt;img style='border:0px;padding:0px;' src=\"".KUNENA_JLIVEURL."/images/medals/".$med-&gt;image ."\" alt=\"".$med-&gt;name."\" /&gt;" . "&lt;/a&gt;"; } $msg_jawards.="&lt;/nobr&gt;&lt;/div&gt;"; unset($medals); echo $msg_jawards; ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload