collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 428
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: I need some help with a custom block  (Read 6527 times)

0 Members and 1 Guest are viewing this topic.

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
I need some help with a custom block
« on: July 20, 2011, 08:59:53 AM »
Hello...

I have a site which is related to my web radio station
and i have that block with a flash shoutcast player and some other info:

Code: [Select]
require ("./radio/script/lang.php");
require ("./radio/script/config.php");
require ("./radio/script/players.php");
if ($streamstatus == "1") {
// On-line
    echo '<table width="100%"><center><a href="http://www.vinilio.com/index.php?page=schedule">Εβδομαδιαίο Πρόγραμμα Ραδιοφωνικού Σταθμού</a></center><hr /><tr><a id="onlineRadioLink" href="http://radiotuna.com/OnlineRadioPlayer/Create/singleStationPlayer">shoutcast flash player</a><script type="text/javascript" src="http://radiotuna.com/OnlineRadioPlayer/EmbedRadio?playerParams=%7b%22styleSelection0%22%3a0%2c%22styleSelection1%22%3a0%2c%22styleSelection2%22%3a0%2c%22textColor%22%3a16777215%2c%22backgroundColor%22%3a8821027%2c%22buttonColor%22%3a11531148%2c%22glowColor%22%3a11531148%2c%22playerSize%22%3a200%2c%22userGuid%22%3a%22090496ca-e2e8-4274-a4d1-38fefd2226a4%22%2c%22streamId%22%3a81655%2c%22playerTitleText%22%3a%22Vinilio%2520Team%2520Radio%2520Player%22%2c%22playerType%22%3a%22singleStation%22%7d&width=167&height=180"></script><br /></td></tr></table>
<hr />
<table width="100%">
<tr>
<td><b>' . $phrase['now_playing'] . ': </b>' . $song[0] . '</td>
</tr>
</table>
<hr />
<table width="100%">
<tr>
<td><b>' . $phrase['paragogos'] . ':</b></td>
<td><iframe frameborder="0" height="35" width="85" src="http://www.vinilio.com/radio/producer_name.php" style="width: 80; margin: 0; padding: 0; border: 0;" scrolling="no" border="0" allowtransparency="true"></iframe>
</td>
</tr>
</table>
<hr />
<table width="100%">
<center>Έχετε Skype;<br />Μιλήστε ζωντανά με τον παραγωγό και κάντε φωνητικές αφιερώσεις κάνοντας click στο παρακάτω εικονίδιο!</center>
<tr>
<td>
<center><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:Vinilio.com?call"><img src="http://mystatus.skype.com/smallclassic/Vinilio%2Ecom" style="border: none;" width="114" height="20" alt="My status" /></a></center>
</td>
</tr>
</table>

';
  }



Everything is ok but i get these errors in my error log:

Quote
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/vinilio/public_html/Sources/PortalBlocks.php
Line: 2360

8: Undefined index: title
Apply Filter: Only show the errors from this file
File: /home/vinilio/public_html/Themes/default/languages/SearchFocus.greek-utf8.php (body_above sub template - eval?)
Line: 470

8: Undefined index: href
Apply Filter: Only show the errors from this file
File: /home/vinilio/public_html/Themes/default/languages/SearchFocus.greek-utf8.php (body_above sub template - eval?)
Line: 469


Is there anything i can do to fix these errors ?

Thank you very very much for any help

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: I need some help with a custom block
« Reply #1 on: July 20, 2011, 10:12:25 AM »
Don't know if it will work but try this:

Code: [Select]
require ("./radio/script/lang.php");
require ("./radio/script/config.php");
require ("./radio/script/players.php");
if (isset($streamstatus)) {
// On-line
    echo '<table width="100%"><center><a href="http://www.vinilio.com/index.php?page=schedule">Εβδομαδιαίο Πρόγραμμα Ραδιοφωνικού Σταθμού</a></center><hr /><tr><a id="onlineRadioLink" href="http://radiotuna.com/OnlineRadioPlayer/Create/singleStationPlayer">shoutcast flash player</a><script type="text/javascript" src="http://radiotuna.com/OnlineRadioPlayer/EmbedRadio?playerParams=%7b%22styleSelection0%22%3a0%2c%22styleSelection1%22%3a0%2c%22styleSelection2%22%3a0%2c%22textColor%22%3a16777215%2c%22backgroundColor%22%3a8821027%2c%22buttonColor%22%3a11531148%2c%22glowColor%22%3a11531148%2c%22playerSize%22%3a200%2c%22userGuid%22%3a%22090496ca-e2e8-4274-a4d1-38fefd2226a4%22%2c%22streamId%22%3a81655%2c%22playerTitleText%22%3a%22Vinilio%2520Team%2520Radio%2520Player%22%2c%22playerType%22%3a%22singleStation%22%7d&width=167&height=180"></script><br /></td></tr></table>
<hr />
<table width="100%">
<tr>
<td><b>' . $phrase['now_playing'] . ': </b>' . $song[0] . '</td>
</tr>
</table>
<hr />
<table width="100%">
<tr>
<td><b>' . $phrase['paragogos'] . ':</b></td>
<td><iframe frameborder="0" height="35" width="85" src="http://www.vinilio.com/radio/producer_name.php" style="width: 80; margin: 0; padding: 0; border: 0;" scrolling="no" border="0" allowtransparency="true"></iframe>
</td>
</tr>
</table>
<hr />
<table width="100%">
<center>Έχετε Skype;<br />Μιλήστε ζωντανά με τον παραγωγό και κάντε φωνητικές αφιερώσεις κάνοντας click στο παρακάτω εικονίδιο!</center>
<tr>
<td>
<center><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:Vinilio.com?call"><img src="http://mystatus.skype.com/smallclassic/Vinilio%2Ecom" style="border: none;" width="114" height="20" alt="My status" /></a></center>
</td>
</tr>
</table>

';
  }

Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #2 on: July 20, 2011, 10:26:05 AM »
I think is working...

Can you please tell me what are the changes so i will learn something ?

Thank you very very much.


EDIT: Also if its easy for you can you tell me how to put this code in the beggining of the same block ?
I have it in HTML and i dont know how to put it in a PHP block.

Code: [Select]
<script type='text/javascript'>
<!--
function Start(page)
{
OpenWin = this.open(page, "CtrlWindow","toolbar=No,menubar=No,location=No,sc rollbars=No,resizable=No,status=No,width=700,heigh t=500,left=150,top=150,");
}
//-->
</script>

<div style="text-align: center;">
<a href="javascript:void(0);" onclick="javascript:Start ('http://mydomain.com/chat/flashchat.php');">FlashChat</a>
</div>

Thank you again...
« Last Edit: July 20, 2011, 10:30:40 AM by Yngwiedis »

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #3 on: July 20, 2011, 10:40:02 AM »
Sorry but i am still getting errors :(

Quote
8: Undefined index: id
File: /home/vinilio/public_html/Sources/PortalBlocks.php
Line: 2360

8: Undefined index: title
File: /home/vinilio/public_html/Themes/default/languages/SearchFocus.greek-utf8.php (body_above sub template - eval?)
Line: 470

8: Undefined index: href
File: /home/vinilio/public_html/Themes/default/languages/SearchFocus.greek-utf8.php (body_above sub template - eval?)
Line: 469

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: I need some help with a custom block
« Reply #4 on: July 20, 2011, 03:15:15 PM »
Try this then:

Code: [Select]
<?php

//Remove Notice Errors
error_reporting(E_ALL E_NOTICE); 

//HTML Block Code
echo '
<script type="text/javascript">
<!--
function Start(page)
{
OpenWin = this.open(page, "CtrlWindow","toolbar=No,menubar=No,location=No,sc rollbars=No,resizable=No,status=No,width=700,heigh t=500,left=150,top=150,");
}
//-->
</script>

<div style="text-align: center;">
<a href="javascript:void(0);" onclick="javascript:Start ("http://mydomain.com/chat/flashchat.php");">FlashChat</a>
</div>'
;

//Second Code
require ("./radio/script/lang.php");
require (
"./radio/script/config.php");
require (
"./radio/script/players.php");
if (isset(
$streamstatus)) {
// On-line
    
echo '<table width="100%"><center><a href="http://www.vinilio.com/index.php?page=schedule">?ßd?µad?a?? ?????aµµa ?ad??f?????? Sta?µ??</a></center><hr /><tr><a id="onlineRadioLink" href="http://radiotuna.com/OnlineRadioPlayer/Create/singleStationPlayer">shoutcast flash player</a><script type="text/javascript" src="http://radiotuna.com/OnlineRadioPlayer/EmbedRadio?playerParams=%7b%22styleSelection0%22%3a0%2c%22styleSelection1%22%3a0%2c%22styleSelection2%22%3a0%2c%22textColor%22%3a16777215%2c%22backgroundColor%22%3a8821027%2c%22buttonColor%22%3a11531148%2c%22glowColor%22%3a11531148%2c%22playerSize%22%3a200%2c%22userGuid%22%3a%22090496ca-e2e8-4274-a4d1-38fefd2226a4%22%2c%22streamId%22%3a81655%2c%22playerTitleText%22%3a%22Vinilio%2520Team%2520Radio%2520Player%22%2c%22playerType%22%3a%22singleStation%22%7d&width=167&height=180"></script><br /></td></tr></table>
<hr />
<table width="100%">
<tr>
<td><b>' 
$phrase['now_playing'] . ': </b>' $song[0] . '</td>
</tr>
</table>
<hr />
<table width="100%">
<tr>
<td><b>' 
$phrase['paragogos'] . ':</b></td>
<td><iframe frameborder="0" height="35" width="85" src="http://www.vinilio.com/radio/producer_name.php" style="width: 80; margin: 0; padding: 0; border: 0;" scrolling="no" border="0" allowtransparency="true"></iframe>
</td>
</tr>
</table>
<hr />
<table width="100%">
<center>??ete Skype;<br />????ste ???ta?? µe t?? pa?a???? ?a? ???te f???t???? af?e??se?? ?????ta? click st? pa?a??t? e?????d??!</center>
<tr>
<td>
<center><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:Vinilio.com?call"><img src="http://mystatus.skype.com/smallclassic/Vinilio%2Ecom" style="border: none;" width="114" height="20" alt="My status" /></a></center>
</td>
</tr>
</table>

'
;
  }


?>
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #5 on: July 21, 2011, 10:35:58 AM »
Hmmmm...
Is not working...

Something is wrong...

I give again both codes.

HTML Block:

Code: [Select]
<script type='text/javascript'>
<!--
function Start(page)
{
OpenWin = this.open(page, "CtrlWindow","toolbar=No,menubar=No,location=No,sc rollbars=No,resizable=No,status=No,width=700,heigh t=500,left=150,top=150,");
}
//-->
</script>

<div style="text-align: center;">
<b><a href="javascript:void(0);" onclick="javascript:Start ('http://www.vinilio.com/chat/flashchat.php');">Σύνδεση Στο Chat</a></b>
</div>

<hr />
<center><iframe frameborder="0" height="100" width="160" src="http://www.vinilio.com/chat/info_embedded.php" style="width: 140; margin: 0; padding: 0; border: 0;" scrolling="auto" border="0" allowtransparency="true"></iframe></center>

and the PHP Block:

Code: [Select]
require ("./radio/script/lang.php");
require ("./radio/script/config.php");
require ("./radio/script/players.php");
if ($streamstatus == "1") {
// On-line
    echo '<table width="100%"><center><a href="http://www.vinilio.com/index.php?page=schedule">Εβδομαδιαίο Πρόγραμμα Ραδιοφωνικού Σταθμού</a></center><hr /><tr><a id="onlineRadioLink" href="http://radiotuna.com/OnlineRadioPlayer/Create/singleStationPlayer">shoutcast flash player</a><script type="text/javascript" src="http://radiotuna.com/OnlineRadioPlayer/EmbedRadio?playerParams=%7b%22styleSelection0%22%3a0%2c%22styleSelection1%22%3a0%2c%22styleSelection2%22%3a0%2c%22textColor%22%3a16777215%2c%22backgroundColor%22%3a8821027%2c%22buttonColor%22%3a11531148%2c%22glowColor%22%3a11531148%2c%22playerSize%22%3a200%2c%22userGuid%22%3a%22090496ca-e2e8-4274-a4d1-38fefd2226a4%22%2c%22streamId%22%3a81655%2c%22playerTitleText%22%3a%22Vinilio%2520Team%2520Radio%2520Player%22%2c%22playerType%22%3a%22singleStation%22%7d&width=167&height=180"></script><br /></td></tr></table>
<hr />
<table width="100%">
<tr>
<td><b>' . $phrase['now_playing'] . ': </b>' . $song[0] . '</td>
</tr>
</table>
<hr />
<table width="100%">
<tr>
<td><b>' . $phrase['paragogos'] . ':</b></td>
<td><iframe frameborder="0" height="35" width="85" src="http://www.vinilio.com/radio/producer_name.php" style="width: 80; margin: 0; padding: 0; border: 0;" scrolling="no" border="0" allowtransparency="true"></iframe>
</td>
</tr>
</table>
<hr />
<table width="100%">
<center>Έχετε Skype;<br />Μιλήστε ζωντανά με τον παραγωγό και κάντε φωνητικές αφιερώσεις κάνοντας click στο παρακάτω εικονίδιο!</center>
<tr>
<td>
<center><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:Vinilio.com?call"><img src="http://mystatus.skype.com/smallclassic/Vinilio%2Ecom" style="border: none;" width="114" height="20" alt="My status" /></a></center>
</td>
</tr>
</table>

';
  }

Thank you very very much.

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: I need some help with a custom block
« Reply #6 on: July 21, 2011, 11:55:57 AM »
It works on mine :(

Those are notice errors. No big deal but I understand that you want them removed. I added a code to remove notice errors like the ones you are having and it works fine in my test forum.  Are you sure the errors are from this block?

Let's try this, then... Last hope:
Code: [Select]
<?php

//Remove Notice Errors
error_reporting(0); 

//HTML Block Code
echo '
<script type="text/javascript">
<!--
function Start(page)
{
OpenWin = this.open(page, "CtrlWindow","toolbar=No,menubar=No,location=No,sc rollbars=No,resizable=No,status=No,width=700,heigh t=500,left=150,top=150,");
}
//-->
</script>

<div style="text-align: center;">
<a href="javascript:void(0);" onclick="javascript:Start ("http://mydomain.com/chat/flashchat.php");">FlashChat</a>
</div>'
;

//Second Code
require ("./radio/script/lang.php");
require (
"./radio/script/config.php");
require (
"./radio/script/players.php");
if (isset(
$streamstatus)) {
// On-line
    
echo '<table width="100%"><center><a href="http://www.vinilio.com/index.php?page=schedule">?ßd?µad?a?? ?????aµµa ?ad??f?????? Sta?µ??</a></center><hr /><tr><a id="onlineRadioLink" href="http://radiotuna.com/OnlineRadioPlayer/Create/singleStationPlayer">shoutcast flash player</a><script type="text/javascript" src="http://radiotuna.com/OnlineRadioPlayer/EmbedRadio?playerParams=%7b%22styleSelection0%22%3a0%2c%22styleSelection1%22%3a0%2c%22styleSelection2%22%3a0%2c%22textColor%22%3a16777215%2c%22backgroundColor%22%3a8821027%2c%22buttonColor%22%3a11531148%2c%22glowColor%22%3a11531148%2c%22playerSize%22%3a200%2c%22userGuid%22%3a%22090496ca-e2e8-4274-a4d1-38fefd2226a4%22%2c%22streamId%22%3a81655%2c%22playerTitleText%22%3a%22Vinilio%2520Team%2520Radio%2520Player%22%2c%22playerType%22%3a%22singleStation%22%7d&width=167&height=180"></script><br /></td></tr></table>
<hr />
<table width="100%">
<tr>
<td><b>' 
$phrase['now_playing'] . ': </b>' $song[0] . '</td>
</tr>
</table>
<hr />
<table width="100%">
<tr>
<td><b>' 
$phrase['paragogos'] . ':</b></td>
<td><iframe frameborder="0" height="35" width="85" src="http://www.vinilio.com/radio/producer_name.php" style="width: 80; margin: 0; padding: 0; border: 0;" scrolling="no" border="0" allowtransparency="true"></iframe>
</td>
</tr>
</table>
<hr />
<table width="100%">
<center>??ete Skype;<br />????ste ???ta?? µe t?? pa?a???? ?a? ???te f???t???? af?e??se?? ?????ta? click st? pa?a??t? e?????d??!</center>
<tr>
<td>
<center><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:Vinilio.com?call"><img src="http://mystatus.skype.com/smallclassic/Vinilio%2Ecom" style="border: none;" width="114" height="20" alt="My status" /></a></center>
</td>
</tr>
</table>

'
;
  }


?>
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #7 on: July 21, 2011, 12:03:00 PM »
Please take a look on my previous post where the codes are completed.
Are not the same on your code.

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #8 on: July 21, 2011, 07:36:57 PM »
Blue are you there ?

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: I need some help with a custom block
« Reply #9 on: July 21, 2011, 08:16:35 PM »
Code: [Select]
<?php
//Remove Notice Errors
error_reporting(0);

echo 
'
<script type="text/javascript">
<!--
function Start(page)
{
OpenWin = this.open(page, "CtrlWindow","toolbar=No,menubar=No,location=No,sc rollbars=No,resizable=No,status=No,width=700,heigh t=500,left=150,top=150,");
}
//-->
</script>

<div style="text-align: center;">
<b><a href="javascript:void(0);" onclick="javascript:Start ("http://www.vinilio.com/chat/flashchat.php");">S??des? St? Chat</a></b>
</div>

<hr />
<center><iframe frameborder="0" height="100" width="160" src="http://www.vinilio.com/chat/info_embedded.php" style="width: 140; margin: 0; padding: 0; border: 0;" scrolling="auto" border="0" allowtransparency="true"></iframe></center>'
;

require (
"./radio/script/lang.php");
require (
"./radio/script/config.php");
require (
"./radio/script/players.php");
if (
$streamstatus == "1") {
// On-line
    
echo '<table width="100%"><center><a href="http://www.vinilio.com/index.php?page=schedule">?ßd?µad?a?? ?????aµµa ?ad??f?????? Sta?µ??</a></center><hr /><tr><a id="onlineRadioLink" href="http://radiotuna.com/OnlineRadioPlayer/Create/singleStationPlayer">shoutcast flash player</a><script type="text/javascript" src="http://radiotuna.com/OnlineRadioPlayer/EmbedRadio?playerParams=%7b%22styleSelection0%22%3a0%2c%22styleSelection1%22%3a0%2c%22styleSelection2%22%3a0%2c%22textColor%22%3a16777215%2c%22backgroundColor%22%3a8821027%2c%22buttonColor%22%3a11531148%2c%22glowColor%22%3a11531148%2c%22playerSize%22%3a200%2c%22userGuid%22%3a%22090496ca-e2e8-4274-a4d1-38fefd2226a4%22%2c%22streamId%22%3a81655%2c%22playerTitleText%22%3a%22Vinilio%2520Team%2520Radio%2520Player%22%2c%22playerType%22%3a%22singleStation%22%7d&width=167&height=180"></script><br /></td></tr></table>
<hr />
<table width="100%">
<tr>
<td><b>' 
$phrase['now_playing'] . ': </b>' $song[0] . '</td>
</tr>
</table>
<hr />
<table width="100%">
<tr>
<td><b>' 
$phrase['paragogos'] . ':</b></td>
<td><iframe frameborder="0" height="35" width="85" src="http://www.vinilio.com/radio/producer_name.php" style="width: 80; margin: 0; padding: 0; border: 0;" scrolling="no" border="0" allowtransparency="true"></iframe>
</td>
</tr>
</table>
<hr />
<table width="100%">
<center>??ete Skype;<br />????ste ???ta?? µe t?? pa?a???? ?a? ???te f???t???? af?e??se?? ?????ta? click st? pa?a??t? e?????d??!</center>
<tr>
<td>
<center><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:Vinilio.com?call"><img src="http://mystatus.skype.com/smallclassic/Vinilio%2Ecom" style="border: none;" width="114" height="20" alt="My status" /></a></center>
</td>
</tr>
</table>

'
;
  }
 
?>
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #10 on: July 21, 2011, 09:47:40 PM »
I am still getting title and href errors :(


EDIT: Also the popup javascript link is not working...
« Last Edit: July 21, 2011, 10:54:17 PM by Yngwiedis »

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: I need some help with a custom block
« Reply #11 on: July 21, 2011, 11:52:03 PM »
I haven't changed the code. I just added

Code: [Select]
//Remove Notice Errors
error_reporting(0);

Probably the errors you are getting aren't from this block since with the code above it hides all errors from it.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #12 on: July 21, 2011, 11:57:48 PM »
If the errors are not coming from this block, can you tell me how can i find for sure from what block they are ?

Also can you tell me what to do to make the javascript popup link work ?

Thank you and sorry for all the trouble...
« Last Edit: July 22, 2011, 04:04:51 AM by Yngwiedis »

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: I need some help with a custom block
« Reply #13 on: July 22, 2011, 07:38:26 AM »

For the chat link/popup, get rid of the first javascript function and change the first html link to this:
Code: [Select]
<a href="javascript:void(0);" onclick="javascript:window.open(\''.'http://mydomain.com/chat/flashchat.php\',\'FlashChat\',\'width=700,height=500,resizable=1\');");">FlashChat</a>
You could also get rid of the href and put the void(0) right in the onclick but the above should work as it is.

As for your radio, one would need the php files to test and get it working.
I did not look into it perhaps blue will resolve your issue for that.

psst..center tags are deprecated... use style attributes for the tag in use.

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: I need some help with a custom block
« Reply #14 on: July 22, 2011, 10:04:14 AM »
If the errors are not coming from this block, can you tell me how can i find for sure from what block they are ?

The best way is to disable all blocks and start enabling them one by one until you find the one that's causing the errors.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #15 on: July 23, 2011, 04:13:38 AM »

For the chat link/popup, get rid of the first javascript function and change the first html link to this:
Code: [Select]
<a href="javascript:void(0);" onclick="javascript:window.open(\''.'http://mydomain.com/chat/flashchat.php\',\'FlashChat\',\'width=700,height=500,resizable=1\');");">FlashChat</a>
You could also get rid of the href and put the void(0) right in the onclick but the above should work as it is.

Thank you very very much for that. Is working :)



The best way is to disable all blocks and start enabling them one by one until you find the one that's causing the errors.

OK. I will try to find what block causing the errors and i will report back here.

Thank you for everything Blue :)

Offline Yngwiedis

  • Jr. Member
  • **
  • Posts: 67
  • SMF Version: None
  • SP Version: 2.3.3
Re: I need some help with a custom block
« Reply #16 on: July 23, 2011, 05:25:15 AM »
OK...

I put that:

Code: [Select]
//Remove Notice Errors
error_reporting(0);

in some of my custom blocks and i dont get any errors now.

Is a "dirty" solution but i cant do anything else.

Thank you very very much Blue and Underdog  :D


EDIT: Pfff... I am still getting errors about title and href.
This is getting frustrated...

I think i will leave it as it is. I cant find from what block this errors coming.
« Last Edit: July 23, 2011, 05:55:07 AM by Yngwiedis »