• Welcome to Simple Machines Community Forum. Please login or sign up.
October 27, 2021, 01:32:13 PM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


SimplePortal

Started by SimplePortal Team, March 10, 2008, 11:16:07 PM

Previous topic - Next topic

Shambles

Can you show us what you're trying to insert into the custom php block?

(use [code] blocks)

fanciboy4

Recent post block don't have paging features. But the mod is nice.

aegersz

Here is one custom PHP block called Recent Topics that i really like and it has prominence on my home page - i thought someone may want to use it and if you do then adjust the $limit variable to suit your needs:

global $txt, $scripturl, $settings, $context, $color_profile;

$boards = null;
$limit = 39;
$type = 'ssi_recentTopics';

$items = $type($limit, null, $boards, 'array');

if (empty($items))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
else
$items[count($items) - 1]['is_last'] = true;

$colorids = array();
foreach ($items as $item)
$colorids[] = $item['poster']['id'];

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($items as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$items[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}

echo '
<table class="sp_fullwidth">';

foreach ($items as $item)
echo '
<tr>
<td class="sp_recent_icon sp_center">
', $item['new'] ? sp_embed_image('topic') : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
'</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a><br />[', $item['board']['link'], ']
</td>
<td class="sp_recent_info sp_right">
', $item['poster']['link'], '<br />', $item['time'], '
</td>
</tr>';

echo '
</table>';
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

zapiy

Anyone have a block that pulls pages like recent topics?
www.maturevideogamer.co.uk
www.consoleplanet.co.uk
www.retrovideogamer.co.uk

pocttopus


LiroyvH

As far as I'm aware they're working on bringing it back online.
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

davidhs

The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).

CapadY

I need the Dutch languagepack for SimplePortal 2.3.7. but can't reach the official site.

Is here somebody who can help me to it ?
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

d3vcho

Quote from: CapadY on December 02, 2017, 08:00:55 AM
I need the Dutch languagepack for SimplePortal 2.3.7. but can't reach the official site.

Is here somebody who can help me to it ?

I just could find the one for 2.3.5. Not sure if it's the same for 2.3.7;
"Greeting Death as an old friend, they departed this life as equals"

CapadY

I had to tell it immediately but do you also have the UTF-8 version ?


If not i give it a try renaming the uploaded version.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

d3vcho

"Greeting Death as an old friend, they departed this life as equals"

Arantor

Does Dutch use any accented characters? If not, renaming will be fine. If it does, more work than renaming will be required.
No good deed goes unpunished
All helpful urges should be circumvented

ormuz

how can I through a block do something like this:

- Have a predefined list of topics
- Show the amount of these topics to display
- Display them randomly
- Have a layout (output) similar to the boardnews block (subject, content, user, read more, etc)

Any ideas, suggestions?

Madirex

Hello, I can not edit the "Portal Mode" when I change it and I give it to save it is put back to Disabled.



When I modify anything else it leaves me without any problem.

When I installed the package it gave me an error in the file script.js but I did not manage to fix it manually, maybe it could be due to that, but I'm not sure.

maglix04

Quote from: davidhs on November 30, 2017, 08:56:33 AM
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Me too :(
Solution?

Ninja ZX-10RR

Quote from: maglix04 on December 03, 2017, 10:09:39 AM
Quote from: davidhs on November 30, 2017, 08:56:33 AM
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Me too :(
Solution?
Not atm. We got bigger issues than that.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

CapadY

Quote from: d3vcho(); on December 02, 2017, 09:05:31 AM
Nope, sorry.
.
utf8 files where also included in the zip-file, thanks
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

CapadY

At the right side of te forum some portalblocks can be shown,
How can I select the blocks I want to be shown ?
At the moment it looks like there are some random blocks shown.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Madirex

Quote from: Madirex on December 02, 2017, 02:12:06 PM
Hello, I can not edit the "Portal Mode" when I change it and I give it to save it is put back to Disabled.



When I modify anything else it leaves me without any problem.

When I installed the package it gave me an error in the file script.js but I did not manage to fix it manually, maybe it could be due to that, but I'm not sure.

Any help for my case ?

Ninja ZX-10RR

Yes, fix your script.js issue and it will probably start to work. Why did you install with errors anyway?
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Advertisement: