Page 1 of 1

help with simple portal block

Posted: 09 Sep 2010, 00:29
by neuropass
hey guys i'm trying to merge the legend together with the "who is online " block

this is my code:

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
	<!-- Start Online List -->
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt><!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a><!-- ELSE -->{L_WHO_IS_ONLINE}<!-- ENDIF --></dt>
				</dl>
			</li>
		</ul>
		<ul class="topiclist forums">
			<li>
			<div class="content" style="width:auto; height:auto; padding:10px; padding-bottom:0px;">
			<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br /> <br />{LOGGED_IN_USER_LIST}</p>
			</div>
			<div class="content" style="width:auto; height:auto; padding:10px; padding-bottom:0px;">
			<p><!-- Start Legend --><!-- IF LEGEND -->{L_LEGEND}:{LEGEND}<!-- ENDIF --><!-- End Legend --></p>
			</div>
			</li>
		</ul>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- End Online List -->
<!-- ENDIF -->

but i get the legend in a column style rather than one name after the other in the same line. How do i fix that?

http://i52.tinypic.com/x3csgp.png

Re: help with simple portal block

Posted: 09 Sep 2010, 01:07
by Stoker
Open the portal.php file and find:

Code: Select all

$legend = implode('<br />', $legend);
Replace with:

Code: Select all

$legend = implode(', ', $legend);

Re: help with simple portal block

Posted: 09 Sep 2010, 01:52
by neuropass
i should have figured that... Thanks a lot Stoker.