help with simple portal block

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!

help with simple portal block

Post 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

Post 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

Post by neuropass »

i should have figured that... Thanks a lot Stoker.