• Welcome to Simple Machines Community Forum. Please login or sign up.
October 24, 2021, 02:27:29 AM

News:

Check out the SMF Function DB!


SimplePortal

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

Previous topic - Next topic

Ninja ZX-10RR

As of now the situation is unknown, I've been really busy today so I haven't asked SiNaN. I'd have gladly accepted vbgamer's offer already, had it been up to me. However, the issue doesn't seem to be money.
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

aegersz

please try to get it back somehow. it's a great facility and I would be lost without it.

it complements SMF quite well and I have made good use of it.
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

Sea Mac

Quote from: aegersz on November 02, 2017, 03:48:07 AM
please try to get it back somehow. it's a great facility and I would be lost without it.

it complements SMF quite well and I have made good use of it.
What he said ...

Ninja ZX-10RR

Doesn't depend on me, but I'll try :/
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

DJF-1975

Man I sure miss simple portal. I need help with the ver. 2.3.7 shoutbox not auto-loading after creating a shout, and having to refresh the browser. this was a problem before and there was an article at the SP site on a code-fix that I used before for this issue.  now that the site's down I want to help too like so many other's. I know this is NOT your decision, Ninja, but man.. I've got years and years of hosting space and great bandwidth available I use for my own stuff,

IF YOU EVER NEED IT please let me know. NO strings attached JUST to keep the web-space for SP alive.
I've chosen SP over TP for many reasons as I personally love SP, even though I've used TP for years.

Last but not least, if I can do anything to help, don't hesitate to ask. Cheers

D
FYI: Ninja,,, you're always gonna have the a-holes and d-bags whom do not appreciate greatness either because they're jealous, or just selfish and don't care. I guarantee you there's a HUGE influx of people that are wondering where you guys are at, And trust me, I REALLY appreciated SP> I used to tell you guys that all the time in the shoutbox on the SP site. THANK YOU for all your work. I really hope the SP project isn't dead.
DF-Gaming.US
DerekFrampton.com

maglix04

QuoteI need help with the ver. 2.3.7 shoutbox not auto-loading after creating a shout, and having to refresh the browser. this was a problem before and there was an article at the SP site on a code-fix that I used before for this issue.  now that the site's down I want to help too like so many other's.
Fortunately, I saved that topic on pc. I hope that's what you are looking for:
Quote
i found that in Portalshoutbox.template.php the use of htmlspecialchars for non utf-8 languages, due to php 5.4, generates empty values in xml, so that shoutboxes can't refresh when xml is compiled with special chars:
function template_shoutbox_xml()
{
global $context, $txt, $smcFunc;

echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<shoutbox>', $context['SPortal']['shoutbox']['id'], '</shoutbox>';

if ($context['SPortal']['updated'])
{
echo '
<updated>1</updated>
<error>', empty($context['SPortal']['shouts']) ? $txt['sp_shoutbox_no_shout'] : 0, '</error>
<warning>', !empty($context['SPortal']['shoutbox']['warning']) ? $smcFunc['htmlspecialchars']($context['SPortal']['shoutbox']['warning']) : 0, '</warning>
<reverse>', !empty($context['SPortal']['shoutbox']['reverse']) ? 1 : 0, '</reverse>';

foreach ($context['SPortal']['shouts'] as $shout)
echo '
<shout>
<id>', $shout['id'], '</id>
<author>', htmlspecialchars($shout['author']['link']), '</author>
<time>', htmlspecialchars($shout['time']), '</time>
<timeclean>', htmlspecialchars(strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? htmlspecialchars($shout['delete_link_js']) : 0, '</delete>
<content>', htmlspecialchars($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';
}
else
echo '
<updated>0</updated>';

echo '
</smf>';

using $smcFunc['htmlspecialchars'] will fix it. can you consider it in next releases?
function template_shoutbox_xml()
{
global $context, $txt, $smcFunc;

echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<shoutbox>', $context['SPortal']['shoutbox']['id'], '</shoutbox>';

if ($context['SPortal']['updated'])
{
echo '
<updated>1</updated>
<error>', empty($context['SPortal']['shouts']) ? $txt['sp_shoutbox_no_shout'] : 0, '</error>
<warning>', !empty($context['SPortal']['shoutbox']['warning']) ? $smcFunc['htmlspecialchars']($context['SPortal']['shoutbox']['warning']) : 0, '</warning>
<reverse>', !empty($context['SPortal']['shoutbox']['reverse']) ? 1 : 0, '</reverse>';

foreach ($context['SPortal']['shouts'] as $shout)
echo '
<shout>
<id>', $shout['id'], '</id>
<author>', $smcFunc['htmlspecialchars']($shout['author']['link']), '</author>
<time>', $smcFunc['htmlspecialchars']($shout['time']), '</time>
<timeclean>', $smcFunc['htmlspecialchars'](strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? $smcFunc['htmlspecialchars']($shout['delete_link_js']) : 0, '</delete>
<content>', $smcFunc['htmlspecialchars']($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';
}
else
echo '
<updated>0</updated>';

echo '
</smf>';






DJF-1975

It looks familiar, but It isn't working. Thank you for posting however! I'll try it again with a clean version of the template file.
FYI either I'm blind, or I do not see a difference in the two code examples?


*UPDATE*
I took the portal template file from another website I'd fixed it on during that phase of when the SP server/site was still up and it worked. Thanks for your help!


D

OCJ

Maybe its time to pay my respects to Simple Portal and the team - thanks Sinan, and all the other people who volunteered so much. It was great to be involved with the people there.
Hopefully it will come back in some form or other.  At least it is the portal choice of another SMF fork.

Arantor

The code is all still on GitHub. Nothing prevents anyone forking it and publishing it under their own name, especially if they make changes and improvements to it.
No good deed goes unpunished
All helpful urges should be circumvented

vbgamer45

Yeah that is true but would be nice to get the site back. A new name would take a lot time to get word out and then you would have two mods on the mod site that are basically the same. Own .org just in case and submitted offered for .com. Making some contacts to the SP team hopefully will get a reply.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Arantor

I can help if there's anything I can do.
No good deed goes unpunished
All helpful urges should be circumvented

Ninja ZX-10RR

Appreciate all the lovely support but I can't do much other than waiting for SiNaN's reply (knowing his absences it may as well be months), other admins don't seem to be helpful at the moment, honestly.
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

DJF-1975

I completely understand.  I'm sure others will come around. Either way the 2.3.7 version is great 'cept for that one code snippet of the template file for the shoutbox for the refresh issue. I'll include it here. Obviously feel free to vet it.  It fixes the auto-refresh issue once a post is made in the shoutbox. I'd taken the code snippet from the SP site when it was up a few months ago. This file works. cheers

it goes in the ../themes/default/ directory.

D

Ninja ZX-10RR

I have no access to the team account, so I'll just thank you for posting but can't do anything else.
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

zapiy

Is there anywhere that holds come of the custom block code?
www.maturevideogamer.co.uk
www.consoleplanet.co.uk
www.retrovideogamer.co.uk

Ninja ZX-10RR

Quote from: zapiy on November 09, 2017, 12:06:53 PM
Is there anywhere that holds come of the custom block code?
No, that's one of the many issues that come up with not having the site up.
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

GL700Wing

Quote from: DJF-1975 on November 09, 2017, 08:45:13 AM
I completely understand.  I'm sure others will come around. Either way the 2.3.7 version is great 'cept for that one code snippet of the template file for the shoutbox for the refresh issue. I'll include it here. Obviously feel free to vet it.  It fixes the auto-refresh issue once a post is made in the shoutbox. I'd taken the code snippet from the SP site when it was up a few months ago. This file works. cheers

it goes in the ../themes/default/ directory.

D
I've just checked the file you attached to your message and it doesn't seem to contain the auto-load fix maglix04 referred to.  It does, however, seem to contain a set of custom modifications relating to a read-only shoutbox.

Finally, the version of the Portalshoutbox.template.php that was installed from the Simple Portal 2.3.7 mod file I downloaded from this forum already includes the auto-load fix ...
Life doesn't have to be perfect to be wonderful ...

aegersz

Quote from: zapiy on November 09, 2017, 12:06:53 PM
Is there anywhere that holds come of the custom block code?

but since many of us have some custom code blocks you could ask which one you want in another thread and if permitted, somebody could attach it ? if that's allowable ...
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

I have a lot of custom pages, I'd like a code that pulls the latest pages and displays a little like articles and so on like it word with joomla or wordpress.
www.maturevideogamer.co.uk
www.consoleplanet.co.uk
www.retrovideogamer.co.uk

MarkoKg

I have a problem where I can't save content of custom php block, whatever I write inside it is says i have error in php syntax or something like that, even though I'm absolutely sure I don't have error, even if I just echo something etc. Any suggestions?

Advertisement: