SimplePortal
Support => Install and Upgrade => Topic started by: Aw06 on April 02, 2009, 11:49:00 AM
-
I have a few custom edits & fixes .. will updating to 2.2 overwrite these ?
Also, is it possible for me to get the code to add scroll bar to who is online list for 2.1.1 ?
-
Yeah, you will loose all your edits to the SimplePortal files. But all your blocks will be there, such as PHP, HTML, BBC and all others.
You want the scroll bar for who's online block for 2.1.1 version?
-
You want the scroll bar for who's online block for 2.1.1 version?
Yes that would be great ;D
-
SPortal1-1.php
Find:
foreach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="', $txt['user'], '" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '</table>';
Replace:
echo '
</table>
<div style="max-height: 150px; overflow: auto;">
<table>';
foreach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="', $txt['user'], '" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '</table>
</div>';
-
thanks ...
<div style="max-height: 150px;
^^^ thats what i use to controll when the scroll bar activates ?
******
edit ... nope .. changed it and got a phrase error :-X
-
That means the maximum height of the content can only be 150 pixels. By defining overflow: auto; you make it to display a scroll bar. You can increase 150 pixels if you want to display more users without scroll bar.
-
That means the maximum height of the content can only be 150 pixels. By defining overflow: auto; you make it to display a scroll bar. You can increase 150 pixels if you want to display more users without scroll bar.
I decreased it to 50px and got an error ... im ok with 150px as i assume thats what is being used now on this site, which is about 8 users, i just want to test it with a lower number to see if it works.
-
What kind of an error you get? It should fine if you just remove "1" there.
-
What kind of an error you get? It should fine if you just remove "1" there.
Changed it to 100px & 140px as well .. this is the error
Warning: main(/home/xxxxx/public_html/forum/Sources/SPortal1-1.php) [function.main]: failed to open stream: No such file or directory in /home/xxxxx/public_html/forum/index.php on line 59
Fatal error: main() [function.require]: Failed opening required '/home/xxxxxx/public_html/forum/Sources/SPortal1-1.php' (include_path='/usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/xxxxxxx/public_html/forum/index.php on line 59
:0
Its all good, im seeing the scroll bar now with it set to 150px.. which is about 5 users on my site.
-
Well, the error is saying that SPortal1-1.php file does not exists in Sources directory. Are you sure that you are uploading it correctly?
-
Strange enuff the error goes away after a refresh ???
-
That means we were faster than your FTP Client. :P
-
That means we were faster than your FTP Client. :P
yeah, i realise >:-D
Thanks again
-
Should I mark this as solved?
-
Should I mark this as solved?
Done