help with simple portal block

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
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.
Else your topic may be ignored or locked!
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 00:33

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
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

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);
Board rules! No PM support
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 00:33

Re: help with simple portal block

Post by neuropass »

i should have figured that... Thanks a lot Stoker.
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image