News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SimplePortal

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

Previous topic - Next topic

LC

Quote from: Pinball Nation on September 04, 2009, 03:26:57 PM
Hello,I want to add a script code in one of the SP blocks.Do i put this in the PHP block.Im going to upload html file to my server to a folder i created.The reason i ask is im not sure where i would place this script code.So i thought i would let SP do it for me since i want it on the portal page anyways.Im trying to add a radio player to my forum.An i can't find any mods to do this.Im using smf 1.1.10.Im still trying to learn how to do all this stuff.
Go to Admin panel->add block then select custom html (near the bottom) and put the html in there. Then where you want it to show up, etc. Or if it's a php or bbc script, the same way.

digit

Quote from: [SiNaN] on June 30, 2009, 02:54:04 AM
digit:

If you replace the attached file with the one in your Sources directory in 2.2.2 version, it will not load anything in forum other than SP admin area.

Before I uninstall (manually - so does that mean drop all sp tables?) will this version effect my existing forum (load js and css stuff) when running in standalone mode? (or will I need to tweak SPortal1-1.php again?)

Thanks!
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Pinball Nation

Thanks for the help LadyChaos.There are two codes i know one is html but not sure about the other.I will post an paste this may work better as im a newbie :)

Pinball Nation

Ok heres a copy of the post an code.
i have an internet radio player on my site and it works great. i create an html page for each station and put this into the html page. change all the red values to what you want. with this being an html page, you can add all the custom changes you want, like background pictures, ad banners, links to other sites, etc etc.

<HTML>
<BODY>
<TITLE>radio station title</TITLE>
<EMBED SRC="url of radio stream"  HEIGHT="42" WIDTH="100%" AUTOSTART="TRUE">
</BODY>

upload that html file to a folder on your server, i have a folder called radio_stations. then add this javascript to your home page again changing the values in red. i use tiny portal and just add it to a scriptbox. this script creates a dropdown list where people just choose the station then hit the go button. you duplicate the option value line for each station you have, and create a new html page for each a station as well.

<script>
<!--

var windowDoPop

function go(whichURL) {
    windowDoPop=window.open(whichURL[whichURL.selectedIndex].value,'doPop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=75');
    windowDoPop.focus();
}
//-->
</script>

<FORM>
<SELECT NAME="SelectURL" size="1">
<option value="url to html page">type name of station here</option>
</SELECT>
<INPUT TYPE="button" VALUE="GO!" onClick="go(this.form.SelectURL.options)">
</FORM>

LC

#2624
Quote from: Pinball Nation on September 04, 2009, 04:15:15 PM
Ok heres a copy of the post an code.
i have an internet radio player on my site and it works great. i create an html page for each station and put this into the html page. change all the red values to what you want. with this being an html page, you can add all the custom changes you want, like background pictures, ad banners, links to other sites, etc etc.

<HTML>
<BODY>
<TITLE>radio station title</TITLE>
<EMBED SRC="url of radio stream"  HEIGHT="42" WIDTH="100%" AUTOSTART="TRUE">
</BODY>

upload that html file to a folder on your server, i have a folder called radio_stations. then add this javascript to your home page again changing the values in red. i use tiny portal and just add it to a scriptbox. this script creates a dropdown list where people just choose the station then hit the go button. you duplicate the option value line for each station you have, and create a new html page for each a station as well.

<script>
<!--

var windowDoPop

function go(whichURL) {
    windowDoPop=window.open(whichURL[whichURL.selectedIndex].value,'doPop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=75');
    windowDoPop.focus();
}
//-->
</script>

<FORM>
<SELECT NAME="SelectURL" size="1">
<option value="url to html page">type name of station here</option>
</SELECT>
<INPUT TYPE="button" VALUE="GO!" onClick="go(this.form.SelectURL.options)">
</FORM>

That's HTML as well, where it starts as <script>. PinBall. :) I tested it out, it seems to be fine.

Pinball Nation

Thanks LadyChaos,So im good as long as i add the script part of the code to html block.But im correct on adding the first code to a folder on my server since i will be adding a file for each station.

Pinball Nation

Thanks for the help LadyChaos.I have a great radio player now. Thanks to LadyChaos an the great SP mod.

4b11l

Excellent mod! Using 2.3 right now since upgrading from 2.0.

Quick question, is there a way to decrease the gap between the blocks?

kai920

Quote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?

there's a br tag between each block. I'd add this to your CSS:

#sp_left br { display: none; }
#sp_left div br { display: block; }

(use #sp_right for the right column)

Kingus

Help When I tried to login to my smf 2.o rc1.2  forum today I was getting an error saying that  I cant login and i should check my cookie settings. I got this error on IE and opera, so i logged in using a proxy site, THen I went to package manager to uninstall simple portal 2.2.1 as I tried to do this it gave me two errors, one of them in index.php and the other in sources, but i went on to uninstall after which my forum crashed. Now when i try to open any page I get this error

Warning: require_once(/home/naijalof/public_html/Sources/SPortal2.php) [function.require-once]: failed to open stream: No such file or directory in /home/naijalof/public_html/index.php on line 66

Fatal error: require_once() [function.require]: Failed opening required '/home/naijalof/public_html/Sources/SPortal2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/naijalof/public_html/index.php on line 66 PLease can someone help me with a solution

plusev

Quote from: kai920 on September 07, 2009, 05:11:18 AM
Quote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?

there's a br tag between each block. I'd add this to your CSS:

#sp_left br { display: none; }
#sp_left div br { display: block; }

(use #sp_right for the right column)

Exactly what I was looking for. Which css would that be for a custom theme?

Thx

4b11l

Quote from: kai920 on September 07, 2009, 05:11:18 AM
Quote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?

there's a br tag between each block. I'd add this to your CSS:

#sp_left br { display: none; }
#sp_left div br { display: block; }

(use #sp_right for the right column)

Thanks!

Well, I guess I can't have the best of both worlds. I didn't want the space to disappear completely, rather; just decrease the space a bit. About the same as the vertical spacing would be great! I guess this isn't possible since it's separated with a br tag?

kai920

Quote from: Kingus on September 07, 2009, 02:58:39 PM
Help When I tried to login to my smf 2.o rc1.2  forum today I was getting an error saying that  I cant login and i should check my cookie settings. I got this error on IE and opera, so i logged in using a proxy site, THen I went to package manager to uninstall simple portal 2.2.1 as I tried to do this it gave me two errors, one of them in index.php and the other in sources, but i went on to uninstall after which my forum crashed. Now when i try to open any page I get this error

Warning: require_once(/home/naijalof/public_html/Sources/SPortal2.php) [function.require-once]: failed to open stream: No such file or directory in /home/naijalof/public_html/index.php on line 66

Fatal error: require_once() [function.require]: Failed opening required '/home/naijalof/public_html/Sources/SPortal2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/naijalof/public_html/index.php on line 66 PLease can someone help me with a solution

Do you have a backup of your index.php? There might be an automatic backup named index.php~ , see if it exists.

Quote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?

What I listed is SimplePortal's CSS so it should work in your custom theme. Try it and see if it makes a difference.

Quote from: 4b11l on September 07, 2009, 10:12:54 PM
Well, I guess I can't have the best of both worlds. I didn't want the space to disappear completely, rather; just decrease the space a bit. About the same as the vertical spacing would be great! I guess this isn't possible since it's separated with a br tag?

Sure you can... after you've hidden the br tag, you can do something like


div.sp_block {margin:5px 0;}

This will add 5px of margin above and below every block, including the top and bottom blocks.

4b11l

#2633
Thanks a lot kai920!

Well, I got it to work, but it seems it messes with the admin formatting on the left.
It seems to of taken off the BR so all the settings are as a continuous sentence now..

So instead of

Administration Center
Support and Credits
News and newsletters
Packages

It's showing them all together without the next settings starting at the new line. It looks like it uses sp_center so when I remove the spacing for my middle blocks, it does so to my admin blocks too. >:(

Afro

#2634
error report

Fatal error: Cannot redeclare sportal_init() (previously declared in /home/afrowall/public_html/Sources/Subs-Portal.php:89) in /home/afrowall/public_html/Sources/SPortal1-1.php on line 307

i forgot to uninstall the previous version before upgrading to the 2.3

what do i do?

Foreclosurepedia

i searched the search area and could not find this answer so i am sorry if it is somewhere i have missed.  TheListener refered me to your main site and I tried to post there but never saw it appear.

first, smf 1.1.10, intifada theme, simpleportal 2.2.3.  http://www.ibrr.org/forum/everything works great.  my question is this:  when i want to enter my shout into the shoutbox i have to click the 'shout' key.  is there some way to simple hit the 'enter' key?

thanx for all ya'll do and hey, this mod (especially the upgrade) has made my life GREAT and my members all said to tell ya'll THANX for adding the shoutbox!

a footnote:  thus far, we haven't experienced any major drag on the server side of things.  i wrote my provider as we're all hobos and don't really have much money to pay for bandwidth and no problems to date.  it stores 15 shouts and refreshes every 10 seconds.  there's about 4 of us that chat.
Vincit Omnia Veritas

MATTEK

I'm runing 2.2.2


Should I use this one?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

TheListener

Please upgrade to the latest version.

There are many new features which have been added including a shoutbox.

Eliana Tamerin

The update is not required. However, it includes many bug fixes that will not be addressed in further 2.2.x versions (as there will be none).
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Foreclosurepedia

i'm sorry, my version of simpleportal is 2.3, not 2.2.3
Vincit Omnia Veritas

Advertisement: