SimplePortal

Support => Install and Upgrade => Topic started by: Aw06 on April 02, 2009, 11:49:00 AM

Title: Will 2.2 overwrite custom edits
Post 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 ?
Title: Re: Will 2.2 overwrite custom edits
Post by: [SiNaN] on April 02, 2009, 11:50:32 AM
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?
Title: Re: Will 2.2 overwrite custom edits
Post by: Aw06 on April 02, 2009, 11:55:00 AM
You want the scroll bar for who's online block for 2.1.1 version?

Yes that would be great ;D
Title: Re: Will 2.2 overwrite custom edits
Post by: [SiNaN] on April 02, 2009, 12:17:40 PM
SPortal1-1.php

Find:

Code: [Select]
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:

Code: [Select]
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>';
Title: Re: Will 2.2 overwrite custom edits
Post by: Aw06 on April 02, 2009, 12:40:41 PM
thanks ...

Quote
<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
Title: Re: Will 2.2 overwrite custom edits
Post by: [SiNaN] on April 02, 2009, 12:43:16 PM
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.
Title: Re: Will 2.2 overwrite custom edits
Post by: Aw06 on April 02, 2009, 12:46:13 PM
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.
Title: Re: Will 2.2 overwrite custom edits
Post by: [SiNaN] on April 02, 2009, 12:49:33 PM
What kind of an error you get? It should fine if you just remove "1" there.
Title: Re: Will 2.2 overwrite custom edits
Post by: Aw06 on April 02, 2009, 12:54:28 PM
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

Quote
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.
Title: Re: Will 2.2 overwrite custom edits
Post by: [SiNaN] on April 02, 2009, 12:57:03 PM
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?
Title: Re: Will 2.2 overwrite custom edits
Post by: Aw06 on April 02, 2009, 12:58:38 PM
Strange enuff the error goes away after a refresh  ???
Title: Re: Will 2.2 overwrite custom edits
Post by: [SiNaN] on April 02, 2009, 01:00:54 PM
That means we were faster than your FTP Client. :P
Title: Re: Will 2.2 overwrite custom edits
Post by: Aw06 on April 02, 2009, 01:06:17 PM
That means we were faster than your FTP Client. :P

yeah, i realise  >:-D

Thanks again
Title: Re: Will 2.2 overwrite custom edits
Post by: [SiNaN] on April 03, 2009, 04:00:07 AM
Should I mark this as solved?
Title: Re: Will 2.2 overwrite custom edits
Post by: Aw06 on April 03, 2009, 09:14:56 AM
Should I mark this as solved?

Done
SimplePortal 2.3.8 © 2008-2024, SimplePortal