SimplePortal

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

Previous topic - Next topic

~DS~

When SP is in Maintenance Mode, blocks can still be visible from /index.php?action=forum

Security issue?
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Angelina Belle

Strangely, I have never noticed this before. I am not sure what the intention is.
The function is similar to integration mode.
It brings down the portal page, but does not disable blocks or page= pages.

I think the features of SimplePortal have evolved since this feature was first introduced.
Bug or feature? Certainly, could be confusing. Worth asking. Sinan has recently had some time available. I'll try over there...
You are welcome to post something over there, too, on whichever board you think it fits best.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

All Colours Sam

I'ts certanly not a security issue, the maintenance page its just that, a page, just like any other page within your forum.

a conditional in  index.php  for it should be enough.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

JBSRodrigues

Hi people. So, I'm trying to copy-paste some flash content into a block from simple portal and it seems to be not working properly.
This is what I believe to be the whole code (taken from the page I found this):

<div id="playerCamaraDiv">










<div>
<script src="flowplayer/flowplayer-3.1.4.min.js"></script>


<!-- player container-->

<div id="player" style="display:block;width:380px;height:300px;"><object width="100%" height="100%" id="player_api" data="flowplayer/flowplayer.commercial-3.1.5.swf" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="quality" value="high"><param name="cachebusting" value="false"><param name="bgcolor" value="#000000"><param name="flashvars" value="config={&quot;key&quot;:&quot;#$9aebd05d6acc83bc985&quot;,&quot;buffering&quot;:false,&quot;autoPlay&quot;:true,&quot;wmode&quot;:&quot;opaque&quot;,&quot;canvas&quot;:{&quot;backgroundColor&quot;:&quot;#000000&quot;,&quot;backgroundGradient&quot;:&quot;low&quot;},&quot;clip&quot;:{&quot;url&quot;:&quot;http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/&quot;,&quot;autoPlay&quot;:true,&quot;autoBuffering&quot;:true,&quot;bufferLength&quot;:2,&quot;live&quot;:true,&quot;provider&quot;:&quot;http&quot;,&quot;scaling&quot;:&quot;fit&quot;,&quot;wmode&quot;:&quot;opaque&quot;},&quot;showErrors&quot;:false,&quot;plugins&quot;:{&quot;controls&quot;:{&quot;url&quot;:&quot;flowplayer/flowplayer.controls-3.1.5.swf&quot;,&quot;autoHide&quot;:&quot;always&quot;,&quot;hideDelay&quot;:&quot;2000&quot;,&quot;all&quot;:true,&quot;play&quot;:false,&quot;volume&quot;:false,&quot;mute&quot;:false,&quot;time&quot;:false,&quot;stop&quot;:false,&quot;playlist&quot;:false,&quot;fullscreen&quot;:true,&quot;scrubber&quot;:true,&quot;backgroundColor&quot;:&quot;#000000&quot;,&quot;tooltips&quot;:{&quot;buttons&quot;:true,&quot;fullscreen&quot;:&quot;Enter Fullscreen mode&quot;}}},&quot;playerId&quot;:&quot;player&quot;,&quot;playlist&quot;:[{&quot;url&quot;:&quot;http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/&quot;,&quot;autoPlay&quot;:true,&quot;autoBuffering&quot;:true,&quot;bufferLength&quot;:2,&quot;live&quot;:true,&quot;provider&quot;:&quot;http&quot;,&quot;scaling&quot;:&quot;fit&quot;,&quot;wmode&quot;:&quot;opaque&quot;}]}"></object></div>


<!-- this script block will install Flowplayer inside previous A tag -->
<script language="JavaScript">
flowplayer("player", "flowplayer/flowplayer.commercial-3.1.5.swf", {
//product key for ebd.csic.es
key: '#$9aebd05d6acc83bc985',
buffering: false,
autoPlay: true,
wmode: 'opaque',
canvas: {
    backgroundColor: '#000000',
    backgroundGradient: 'low'
},
clip: {
url: 'http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/',
autoPlay: true,
autoBuffering: true,
bufferLength: 2,
live: true,
provider: 'http',
scaling: 'fit',
wmode: 'opaque',
onStart: function (){
//if (!flashembed.isSupported([10, 32])) {
    //alert("IS SUPPORTED");
  //} else {
    //failed
  // alert("Si la imagen se queda congelada, mueva ligeramente la barra de desplazamiento inferior.");
  //}
}
},
// don't show errors in the player
    showErrors: false,
onBegin: function (){
//alert("ESTAMOS EN ONBEGIN");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());

},
onStart: function (){
//alert("ESTAMOS EN ONSTART");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());
},
onPause: function (){
//alert("ESTAMOS EN ONPAUSE");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());


},
onBeforeSeek: function (){
//alert("ESTAMOS EN onBeforeSeek");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());


},
onLoad: function (){
//alert("ESTAMOS EN ONLOAD");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());


},
onBufferEmpty: function (){
//alert("onBufferEmpty!!!");

},
onBufferFull: function (){
//alert("onBufferFull!!!");

},
onBufferStop: function (){
//alert("onBufferStop!!!");

},
onNetStreamEvent: function (event){
//alert("onNetStreamEvent: " + event);

},
onSeek: function (){
//alert("onSeek!!!");

},
onError: function(errCode, errMessage){
//alert("ERROR: " + errCode + errMessage);
if(errCode == 100){
alert("Plugin initialization failed. Please, refresh your browser or try it again later");
}
else if(errCode == 200){
alert("Stream not found. Please, refresh your browser or try it again later");
}
else if(errCode == 201){
alert("Unable to load stream or clip file. Please, refresh your browser or try it again later");
}
else if(errCode == 202){
alert("Provider specified in clip is not loaded. Please, refresh your browser or try it again later");
}
else if(errCode == 300){
alert("Player initialization failed. Please, refresh your browser or try it again later");
}
else if(errCode == 301){
alert("Unable to load plugin. Please, refresh your browser or try it again later");
}
else if(errCode == 302){
alert("Error when invoking plugin external method. Please, refresh your browser or try it again later");
}
else if(errCode == 303){
alert("Failed to load resource such as stylesheet or background image. Please, refresh your browser or try it again later");
}
else{
alert("An unexpected error has ocurred while playing the stream. Please, refresh your browser");
}
},

plugins: {            // load one or more plugins
        controls: {            // load the controls plugin
            url: 'flowplayer/flowplayer.controls-3.1.5.swf',    // always: where to find the Flash object
            // now the custom options of the Flash object
            autoHide: 'always', 
            hideDelay: '2000',
            all: true,
            play: false,
            volume: false,
            mute: false,
            time: false,
            stop: false,
            playlist: false, 
            fullscreen: true,
            scrubber: true,
            backgroundColor: '#000000',
            tooltips: {                // this plugin object exposes a 'tooltips' object
                buttons: true,
                fullscreen: 'Enter Fullscreen mode'
            }
        }
    }
});
</script>
</div>
</div>


I don't know what am I doing wrong, because I know it works on other sites, as I see here: http://linceiberico.net/linces-en-directo/
Can you help me?

Thanks! ;)

All Colours Sam

I tried the link you gave and its working fine?  those "linces"  are sleeping right now ;)


oh wait, that is not your site isnt it?



perhaps it is this:flowplayer/flowplayer.commercial-3.1.5.swf

try putting the full url to your player swf  or the full path
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

JBSRodrigues

Quote from: Miss All Sunday on August 25, 2011, 11:41:52 AM
I tried the link you gave and its working fine?  those "linces"  are sleeping right now ;)


oh wait, that is not your site isnt it?



perhaps it is this:flowplayer/flowplayer.commercial-3.1.5.swf

try putting the full url to your player swf  or the full path
Yeah, I know it works, but on my site's block it seems not to. -_- Can you give it a look? My site: http://www.projectolynx.com/
Yes, they are indeed sleeping. I just love them! *.*

edit - sooo, I have to install flowplayer on my site? oO

All Colours Sam

its indeed this part:  flowplayer/flowplayer.commercial-3.1.5.swf   you  must upload your  player swf and then use either the full url or the full path:

path/to/my/player.swf

http://mysite.com/player/player.swf


keep in mind that the free verison of flowplayer does not allow direct streaming.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

JBSRodrigues

I think I made it! Can you please check my site again, just to make sure? :)

All Colours Sam

Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

JBSRodrigues


bluehaze1991

when i uninstalled simple portal 2.3 i got some errors but I accidently kept going with the uninstalling process....i was going to upgrade to the latest version of simple portal but now my site gets this message...


Warning: require_once(/www/110mb.com/b/l/u/e/h/a/z/e/bluehaze1991/htdocs/Sources/Subs-Portal.php) [function.require-once]: failed to open stream: No such file or directory in /www/110mb.com/b/l/u/e/h/a/z/e/bluehaze1991/htdocs/index.php on line 60

Fatal error: require_once() [function.require]: Failed opening required '/www/110mb.com/b/l/u/e/h/a/z/e/bluehaze1991/htdocs/Sources/Subs-Portal.php' (include_path='.:/usr/share/php') in /www/110mb.com/b/l/u/e/h/a/z/e/bluehaze1991/htdocs/index.php on line 60



I did make a back up of my data like an hour ago...help please my site was doing well

DragoN_PT

#4131
Solved already.

Ty for this aweasome mod and keep the good work!

Cookie for the team!   ;)

AZMazda3

Quote from: harry66 on August 23, 2011, 01:41:20 PM
Hey,

does anybody know a fix for Shoutbox Spam? Its very annoying :/


thanks

Is the spam from members or guests? If it's from guests just change the permissions.

Angelina Belle

Quote from: bluehaze1991 on August 26, 2011, 02:05:35 AM
when i uninstalled simple portal 2.3 i got some errors but I accidently kept going with the uninstalling process

Looks like you just need to complete, by hand, what the Package Manager couldn't manage because of subsequent changes. Next time, it will probably be easier for you to uninstall mods in the order you installed them.

For now, I suggest you go to the mod's page to get the "Manual Install Instructions for" your version of SMF, and the version of SimplePortal you just uninstalled. Pay particular attention to the files which are giving you the problem. You only mentioned index.php in your email.  Use the line numbers in your error messages, and look for stuff approximately like the "replace" strings in the manual install instructions.  Without removing stuff added by other mod packages, remove the stuff added for SimplePortal.

Then, you will be in good shape.

Good Luck!
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

ACAMS


I have SMF 2.0 RC3 with SimplePortal 2.3.2

How do I clear all posts in the chatbox.
Can I ban members from the chat box

TheListener

I believe ya referring to the shoutbox lol.

Underdog has made a plug in which once installed gives you a feature which can empty the shoutbox.

Have a look Here

If you use the smf arcade mod then there is also another plug in which allows the Trophy winners to be announced.

ACAMS


Jasonsj10

Hey guys i was trying to install the Simpleportal mod and it gave me a error. When i tried to fix it. It gave me a nother. Its all in the index.php

Info:
SimplePortal: 2.3.3
SMF: 2.0

Here is my Index.php
http://pastie.org/2453955

or download it
http://dl.dropbox.com/u/37673386/index.php


The Error i got was
( ! ) Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\wamp\www\index.php on line 230



                  Thanks in advance,
                                Jason


Angelina Belle

It looks like  you are missing  about 80 lines, including the lines that would make sense of your line 230.

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php', 'Activate'),

etc.

My advice would be to get a fresh copy of index.php, from before the SimplePortal install, then uninstall SimplePortal, ignoring errors related to index.php.

Then try the install over again. If you run into errors during install, make notes of exactly where they occur. This is easy with SMF 2.0 -- just click on the little pencils where there are errors in the list. Then, very carefully, use the manual install instructions to change only those parts of the code.

If you have no other mods installed, you can get that fresh index.php from the install set for your version of SMF.

If you have other mods installed, the best place to get that file probably is the file backup that Package Manager does. You should find this in the Packages/backups directory. Simply extract the file you need from the .tar.gz file.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Jasonsj10

Well, I cant even access the website. Also i did not install it through the website i did it manually.

Advertisement: