collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 136
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {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
  • phantomm: and from what I see only patch is broken, full install package is fine
    October 21, 2016, 03:44:44 PM

* Recent Posts

Where is the code for these elements, where are they stored? by danmsmith018f
[Yesterday at 04:23:44 PM]


Re: v 2.3.3 to v2.3.7 by ♦ Ninja ZX-10RR ♦
[December 11, 2018, 04:14:48 PM]


v 2.3.3 to v2.3.7 by rollingrock
[December 11, 2018, 09:36:20 AM]


[Block] Help with editing few lines on Simpleportal by Wallen
[December 09, 2018, 05:10:34 AM]


Re: LinkTree by Chen Zhen
[November 15, 2018, 02:24:51 PM]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: [Block] Advanced Unread Posts  (Read 48191 times)

0 Members and 1 Guest are viewing this topic.

Offline phantomm

  • Translator
  • *
  • Posts: 406
  • Gender: Male
  • Smile, tomorrow will be worse...
    • Polish ElkArte community
  • SMF Version: None
  • Elkarte Version: 1.0.5
Re: [Block] Advanced Unread Posts
« Reply #40 on: June 24, 2013, 12:21:49 PM »
@phantomm: What is safe mode? I have no enabled any safe mode, i think. Where can i ensure that?

You can check it by creating PHP file (name it whatever you want) with this content:
Code: [Select]
<?php
phpinfo
();
 
?>


Save file and send it to your FTP, now run it in any web browser and look for safe_mode:

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1335
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: [Block] Advanced Unread Posts
« Reply #41 on: June 24, 2013, 03:47:01 PM »
BurkeKnight,

  Perhaps there is a like reference id on the page?

You can try this PHP block that should have a uniform id:
Code: [Select]
/* Unread Posts Block v1.4 ||  c/o Underdog @ http://askususaquestion.net */
global $settings, $sourcedir;
@require_once($sourcedir . '/PortalUnread.php');

/* Current default settings are for a full display example */
/* Recommended settings for compact display (ie. side block) :           */
/* $parameters['container_style'] = 'font-family:Helvetica;font-size:10px;   */
/* $parameters['display'] = 'compact';              */

/* --------------------------------------------BLOCK SETTINGS-------------------------------------------- */
$seconds = 60;
$auto_refresh = true; /* Change to false to disable auto refresh */

/* Basic settings */
$parameters['type'] = 'Posts'; /* Posts/Topics */
$parameters['rows'] = '5'; /* (int) Amount of posts/topics per page */
$parameters['display'] = 'full'; /* full/compact */
$parameters['show_icon'] = 'yes'; /* yes/no - Show new icon */
$parameters['full_height'] = 35; /* (int) Uniform row height for full display */
$parameters['compact_height'] = 45; /* (int) Uniform row height for compact display */
$parameters['container_class'] = 'mediumtext'; /* Set the css class for the whole container .. */
$parameters['container_style'] = 'font-family:Helvetica;font-size:12px;'; /* Set the css attributes for the whole container */
// $parameters['boards'] = '1|2|3|4'; /* Specific boards to display ... uncomment to use this option! */

/* This is the number of recent topics to select new one's from */ 
$parameters['limit'] = 30; /* (int) Maximum amount of posts/topics to display */

/* Image/Language Text  ...  set $parameters['unread_icons'] = false; to disable images & use text */
/* All images located in directory /Themes/default/images/sp */
$parameters['unread_icons'] = true;
$parameters['prev'] = 'Prev'; 
$parameters['next'] = 'Next';
$parameters['vbar_x'] = '|';
$parameters['vbar_y'] = '|';

/* Starting page */
$_SESSION['sp_current_page'] = 1;

/* --------------------------------------------END BLOCK SETTINGS-------------------------------------------- */

/* Execute & then let jQuery reset the container every xx milliseconds */
echo '<div id="UnreadPosts2">', sportal_unread($parameters, false, false), '</div>';

if ($auto_refresh)
echo '<script type="text/javascript" src="'.$settings['default_theme_url'].'/scripts/sp-jquery-1.3.2.min.js"></script>
<script type="text/javascript">
setInterval(function() {       
    $("#UnreadPosts2").load(location.href+" #UnreadPosts2","");
        event.stopPropagation();                       
}, '.((int)$seconds * 1000).');
</script>';



NervoServo,

  The permission value of 0666 would have also been fine. Atm I am not sure what your issue is and will have to brainstorm more ideas for you.  Are you able to view your server php error log? Not the SMF error log rather the server error log.  If you have errors in either for the time of attempting to use the block please post them here.
« Last Edit: June 24, 2013, 04:21:50 PM by Underdog »

Offline NervoServo

  • Newbie
  • Posts: 4
  • SMF Version: 2.0.4
  • SP Version: 2.3.5
Re: [Block] Advanced Unread Posts
« Reply #42 on: June 24, 2013, 06:15:52 PM »
Guys thanks for your replies
@phantom: It says that safe mode is off

@Underdog: The only error logfile i found on my cpanel contains tons of this type of errors:
Code: [Select]
[Mon Jun 24 18:06:15 2013] [error] [client Ip number] File does not exist: /home/mysite/public_html/500.shtml, referer: http://www.mysite.com/index.php?action=admin;area=portalblocks;sa=add
[Mon Jun 24 18:02:34 2013] [error] [client Ip number] File does not exist: /home/mysite/public_html/500.shtml, referer: http://www.mysite.com/index.php?action=admin;area=portalblocks;sa=add
[Mon Jun 24 18:00:30 2013] [error] [client Ip number] File does not exist: /home/mysite/public_html/404.shtml, referer: http://www.mysite.com/index.php?action=forum
[Mon Jun 24 18:00:30 2013] [error] [client IP Number] File does not exist: /home/mysite/public_html/Themes/Inno_2/css/webkit.css, referer: http://www.mysite.com/index.php?action=forum
[Mon Jun 24 18:00:14 2013] [error] [client IP number] File does not exist: /home/mysite/public_html/404.shtml, referer: http://www.mysite.com/index.php?action=forum

This is the error you are looking for or something else?
I tried to upload webkit.css from /themes/default/css/" to themes/inno_2/css/ but nothing changed, the problem still the same.


Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: [Block] Advanced Unread Posts
« Reply #43 on: June 25, 2013, 04:39:09 AM »
Still getting the blank scree with just the star date.
Seems to take a few moments to happen.

Here is a file that has the error log from server, mod list, and the code for the star date.

Also, no errors in smf, strangely. You'll see why I say that when look at the server's log.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1335
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: [Block] Advanced Unread Posts
« Reply #44 on: June 25, 2013, 03:40:44 PM »

NervoServo
Quote
[Mon Jun 24 18:06:15 2013] [error] [client Ip number] File does not exist: /home/mysite/public_html/500.shtml, referer: http://www.mysite.com/index.php?action=admin;area=portalblocks;sa=add
[Mon Jun 24 18:02:34 2013] [error] [client Ip number] File does not exist: /home/mysite/public_html/500.shtml, referer: http://www.mysite.com/index.php?action=admin;area=portalblocks;sa=add

  Those 2 errors happened when you attempted to save the block in which case it was just looking for the html (shtml) file that displays a custom error page. I would have to see other error logs to clarify what is going on with it but you may not have access to those being a shared hosting client. I doubt your actual smf error log will say anything but check anyway & post it if possible.



BurkeKnight,

  It seems as though there is some conflict with the 2 blocks. You say that when that stardate block is disabled this mod works fine? Can you post the actual code of the stardate block? What you posted has a hard coded number in it so I assume it was a copy of the page source? I need to see the actual code.


 

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: [Block] Advanced Unread Posts
« Reply #45 on: June 25, 2013, 08:44:17 PM »
StarDate is not a block. It is hard coded into the index.template.php file.


Code: [Select]
<center><b><font size="3"><font color="#FFFF00">Stardate:</font><font color="#00FFFF"> <SCRIPT language=javascript>
<!-- // -- made by Heath Coop of TrekConnection.com, please keep these credits when using this script
var Now = new Date()
var NowTime = Now.getTime()/1000
var Day = Now.getDate()
var Month = Now.getMonth()+1
var Year = Now.getYear();
if (Year < 2000) Year = Year + 1900
if (Year<1000) { YearDif=Math.abs(Year-87) }
if (Year>1000) { YearDif=Math.abs(Year-1987) }
SDYear=40000+(YearDif*1000)
YearStart = new Date(Year,0,1,0,0,0)
var YearStartTime= YearStart.getTime()/1000
Days=(NowTime-YearStartTime)/86400
if (Days>=183) { SDYear=SDYear+1000
SDDays=(Days*(1000/365))-500 }
if (Days<183) { SDDays=500+(Days*(1000/365)) }
StarDate=Math.floor((SDYear+SDDays) * 10 + .5) / 10
document.write(StarDate) // -->
</SCRIPT>
        </font></font></b></center>

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1335
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: [Block] Advanced Unread Posts
« Reply #46 on: June 25, 2013, 09:47:16 PM »
BurkeKnight,

  I am assuming that you narrowed the issue down to that code by removing it which allowed the Adv Unread Posts to function. If this is correct, try replacing that code you just posted with this:
 
Code: [Select]
<span style="font-size: 3em;font-weight: bold;display: block; text-align: center;overflow: hidden;margin: 0 auto;position: relative;padding: 10px;">
<span style="color:#FFFF00;">
Stardate:
</span>
<span id="myStardate" style="color:#00FFFF;">

        </span>
</span>
<script type="text/javascript"><!-- // --><![CDATA[
// -- made by Heath Coop of TrekConnection.com, please keep these credits when using this script
var Now = new Date();
var NowTime = Now.getTime()/1000;
var Day = Now.getDate();
var Month = Now.getMonth()+1;
var Year = Now.getYear();
if (Year < 2000) {
Year = Year + 1900;
}
if (Year<1000) {
YearDif = Math.abs(Year-87);
}
if (Year>1000) {
YearDif = Math.abs(Year-1987);
}
SDYear = 40000+(YearDif*1000);
YearStart = new Date(Year,0,1,0,0,0);
var YearStartTime = YearStart.getTime()/1000;
Days=(NowTime-YearStartTime)/86400;
if (Days>=183) {
SDYear = SDYear+1000;
SDDays = (Days*(1000/365))-500;
}
if (Days<183) {
SDDays = 500+(Days*(1000/365));
}
StarDate = Math.floor((SDYear+SDDays) * 10 + .5) / 10;
document.getElementById("myStardate").innerHTML = StarDate;
// ]]></script>
« Last Edit: June 26, 2013, 12:56:18 AM by Underdog »

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: [Block] Advanced Unread Posts
« Reply #47 on: June 26, 2013, 12:14:06 AM »
Still doing it.
No, I did not remove the StarDate before.
I was only thinking it could be that because of the coding.
Funny thing is, it only goes to the blank page if on main page. I leave it sitting in admin section, and does not happen.
However, I do have other issues on the site, like the drop down menus refusing to drop down.
These issues all have to be caused by something, and I have no idea what.

Another mod I have that maybe could cause some issues, is the tooltip mod.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1335
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: [Block] Advanced Unread Posts
« Reply #48 on: June 26, 2013, 12:24:08 AM »
BurkeKnight,

  On a local test site I have the stardate code, the adv. unread posts block and the tooltip block I wrote not long ago. All function on the same page (home page) without issue.

btw: I just fixed the css on that stardate code in my last post.. if you would prefer to use it since the markup for the css I used is current compared to some of the deprecated original coding you provided. 
« Last Edit: June 26, 2013, 01:00:05 AM by Underdog »

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: [Block] Advanced Unread Posts
« Reply #49 on: June 26, 2013, 06:36:05 AM »
The new one now works.
I made a mistake last night.
Accidentally edited the wrong one.
Don't forget what I said on the site about the new site after the update.
I still have the old site up and running, and had edited THAT one last night by mistake! LOL

Thanks and sorry for that.

P.S. If could log in there and see the menu issue, and try to come up with ideas, would appreciate it.

Offline Tarista

  • Semi Newbie
  • *
  • Posts: 37
  • SMF Version: 2.0.10
  • SP Version: 2.3.5
Re: [Block] Advanced Unread Posts
« Reply #50 on: September 27, 2013, 01:06:02 PM »
Hi,

I hope it's okay to post in this topic even though it hasn't been posted in for 90 days. :)

I'm wondering about this block/function. When I use it on my site all members are automatically updated in the onlinelist giving the false impression that they have reloaded the whole site. Which confuses people when it comes to private messages. They think that other people are ignoring them and so on.

So I wonder if it would be possible to refresh just the block but not update whatever logs the last_active (?) function. Hope that makes sense.

It's truly a great block/mod otherwise and I assume for most people this is not a big deal. It does give the impression that the site is really active. :)
« Last Edit: October 20, 2013, 05:46:04 AM by Tarista »

Offline Tarista

  • Semi Newbie
  • *
  • Posts: 37
  • SMF Version: 2.0.10
  • SP Version: 2.3.5
Re: [Block] Advanced Unread Posts
« Reply #51 on: October 30, 2013, 10:21:19 AM »
Hope it would be okay if I "bumped" this topic since it was 30 days ago :) Thought perhaps it could have been missed.

Offline samborabora

  • Semi Newbie
  • *
  • Posts: 16
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: [Block] Advanced Unread Posts
« Reply #52 on: September 14, 2014, 01:08:51 PM »
This is an AWESOME block, thanks so much for creating this! two questions:

1. Is this easy on the serverload if there is none viewing the main page?
2. Can a jquery transition be added so that each new post slides down and moves the others with a stylish animation? http://www.kanyetothe.com does a great job of this and I'd love if this could do the same.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1335
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: [Block] Advanced Unread Posts
« Reply #53 on: September 16, 2014, 07:40:01 PM »

samborabora,

  The use of resources should be minimal. When I have some time will look at the example link you posted & possibly implement something for you however currently my scarce free time involves another project.
Also check out this thread: http://simpleportal.net/index.php?topic=13574.20 .. which involves something similar but uses the standard format for display.

Regards.

Offline samborabora

  • Semi Newbie
  • *
  • Posts: 16
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: [Block] Advanced Unread Posts
« Reply #54 on: September 22, 2014, 08:31:23 AM »

samborabora,

  The use of resources should be minimal. When I have some time will look at the example link you posted & possibly implement something for you however currently my scarce free time involves another project.
Also check out this thread: http://simpleportal.net/index.php?topic=13574.20 .. which involves something similar but uses the standard format for display.

Regards.

That would be brilliant if you could! Here's an example of code that I've seen that should be similar to what I am looking for:
Code: [Select]
else if(stuff[1]=='latest'){

   if(!window.hoverlatest){
ii = ii + 1;

$('.forum_right_section .column_box_content').prepend('<div id="newmsg'+ii+'" class="column_box_content_row cb_board_row" style="opacity:0;font-size:12px !important"><span class="cb_content_info"><a href="/forum/index.php?msg='+stuff[2]+'"><img src="images/boardicons/'+stuff[0]+'.jpg" height="24px" width="84px" /></a><div><span class="cb_article_title"><a href="/forum/index.php?msg='+stuff[2]+'">'+stuff[3]+'</a></span></div><div><span class="cb_board_by"><a href="/forum/index.php?msg='+stuff[2]+'">by '+stuff[4]+'</a></span></div><br style="clear: both;" /></div>');

$('#newmsg'+ii).animate({ opacity: 1 }, 350);
}


If that helps in any way, hope so. Just not sure how to implement this idea myself (terrible jscript coder here!!)

Offline samborabora

  • Semi Newbie
  • *
  • Posts: 16
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: [Block] Advanced Unread Posts
« Reply #55 on: October 04, 2014, 03:38:12 PM »
Once again, really appreciate you considering this, what kind of rewriting would be required? Is it something that could be modded onto the existing script or would it need a whole new backend?

Offline samborabora

  • Semi Newbie
  • *
  • Posts: 16
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: [Block] Advanced Unread Posts
« Reply #56 on: February 02, 2015, 02:38:14 PM »
Sorry to bump this, but I'd be keen on finding any help I can in getting this visual transition to work and I'm not very good with jquery animations :/ any help would be most appreciated, and I can try and give better examples if required :D

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: [Block] Advanced Unread Posts
« Reply #57 on: March 18, 2015, 05:47:51 PM »
I've probably got some settings wrong but is it possible to have this block:

constantly show the same results as if you were to visit:  index.php?action=unreadreplies  ?

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1177
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: [Block] Advanced Unread Posts
« Reply #58 on: March 18, 2015, 06:24:20 PM »
Very much likely because I have seen it in use :P
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

▼ My job! ▼

No PMs for support unless it's a paid request. Thank you! :)
#OpIsis

Offline Jade Elizabeth

  • Comrade
  • *
  • Posts: 1146
  • Gender: Female
    • Jades-World
  • SMF Version: None
  • SP Version: None
Re: [Block] Advanced Unread Posts
« Reply #59 on: January 16, 2016, 03:48:02 AM »
I *REALLY* need this, and it's BRILLIANT....except when you try to view unread topics it doesn't load the block or the page....

Code: [Select]
/* Unread Posts Block v1.4 ||  c/o Underdog @ http://askususaquestion.net */
global $settings, $sourcedir;
@require_once($sourcedir . '/PortalUnread.php');

/* Current default settings are for a full display example */
/* Recommended settings for compact display (ie. side block) :           */
/* $parameters['container_style'] = 'font-family:Helvetica;font-size:10px;   */
/* $parameters['display'] = 'compact';              */

/* --------------------------------------------BLOCK SETTINGS-------------------------------------------- */
$seconds = 60;
$auto_refresh = true; /* Change to false to disable auto refresh */

/* Basic settings */
$parameters['type'] = 'topics'; /* Posts/Topics */
$parameters['rows'] = '5'; /* (int) Amount of posts/topics per page */
$parameters['display'] = 'full'; /* full/compact */
$parameters['show_icon'] = 'yes'; /* yes/no - Show new icon */
$parameters['full_height'] = 25; /* (int) Uniform row height for full display */
$parameters['compact_height'] = 45; /* (int) Uniform row height for compact display */
$parameters['container_class'] = 'mediumtext'; /* Set the css class for the whole container .. */
$parameters['container_style'] = 'font-family:open sans;font-size:14px;'; /* Set the css attributes for the whole container */

$parameters['boards'] = '17'; /* Specific boards to display ... uncomment to use this option! */

/* This is the number of recent topics to select new one's from */ 
$parameters['limit'] = 10; /* (int) Maximum amount of posts/topics to display */

/* Image/Language Text  ...  set $parameters['unread_icons'] = false; to disable images & use text */
/* All images located in directory /Themes/default/images/sp */
$parameters['unread_icons'] = true;
$parameters['prev'] = 'Prev'; 
$parameters['next'] = 'Next';
$parameters['vbar_x'] = '|';
$parameters['vbar_y'] = '|';

/* Starting page */
$_SESSION['sp_current_page'] = 1;

/* --------------------------------------------END BLOCK SETTINGS-------------------------------------------- */

/* Execute & then let jQuery reset the container every xx milliseconds */
sportal_unread($parameters, false, false);

if ($auto_refresh)
echo '<script type="text/javascript" src="'.$settings['default_theme_url'].'/scripts/sp-jquery-1.3.2.min.js"></script>
<script type="text/javascript">
setInterval(function() {       
    $("#sp_content").load(location.href+" #sp_content","");
        event.stopPropagation();                       
}, '.((int)$seconds * 1000).');
</script>';
Jade Elizabeth
(Ex Language Coordinator)
Owner of Awesome Crazy (the home of the insane),
Color Me Forum (For Adult Coloring Enthusiasts), and
Creative Burrow (A place for creative people).