SimplePortal

Customization => Custom Coding => Topic started by: iroNikK on August 19, 2009, 06:37:15 PM

Title: add some things to a block
Post by: iroNikK on August 19, 2009, 06:37:15 PM
hi
i want to add to the block "users online" the Last Member and how many member are registred in the forum..

i would like that appears like this:
# Guests: 37
# Dot Hidden: 0
# Dot Users: 5
# Dot Users Online:
# Last Member: asd
# Total of Users: 23000

i am using SMF 1.1.10 and SimplePortal 2.2.2
url: click (http://razifae.netau.net)
pd: sory my english
Title: Re: add some things to a block
Post by: iroNikK on August 23, 2009, 08:14:21 PM
?
Title: Re: add some things to a block
Post by: Gurbet_42 on August 24, 2009, 06:22:38 PM
All this you have in admin panel bloks...
Title: Re: add some things to a block
Post by: Nathaniel on August 26, 2009, 07:03:08 PM
Moved to the Custom Coding board, this is not a support request. ;)

Try this edit:
Code: ("Find this code (sources/SPortal1-1.php)") [Select]
<li>', sp_embed_image('dot'), ' ', $txt['users'], ': ', $stats['num_users'], '</li>';
Code: ("Replace with this code") [Select]
<li>', sp_embed_image('dot'), ' ', $txt['users'], ': ', $stats['num_users'], '</li>
<li>', sp_embed_image('dot'), ' ', $txt[656], ': ', $context['common_stats']['latest_member']['link'], '</li>
<li>', sp_embed_image('dot'), ' ', $txt[488], ': ', $context['common_stats']['total_members'], '</li>';
Title: Re: add some things to a block
Post by: iroNikK on September 13, 2009, 05:17:45 PM
Hi,
in sources i dont have any file called Sportal1-1.php
i use Simpleportal 2.3
Title: Re: add some things to a block
Post by: Nathaniel on September 13, 2009, 05:20:38 PM
The edit should still work. The file you need to edit is now called 'PortalBlocks.php' with SP 2.3.
Title: Re: add some things to a block
Post by: iroNikK on September 13, 2009, 05:31:54 PM
in portalblocks i only see this:

Code: [Select]
<?php /********************************************************************************** * PortalBlocks.php                             
Title: Re: add some things to a block
Post by: Nathaniel on September 13, 2009, 05:45:59 PM
Your file looks alright to me, its probably your editor that is the problem. If you are using Notepad or something similar, then download a real code editor, like Notepad++
Title: Re: add some things to a block
Post by: iroNikK on September 13, 2009, 06:03:27 PM
i download it and i edit that
but when i opened mi site i saw this

Code: [Select]
Parse error: syntax error, unexpected T_IF in /home/a7502820/public_html/foro/Sources/PortalBlocks.php on line 1
does not matter anyway
SimplePortal 2.3.8 © 2008-2024, SimplePortal