is there a way to make the recent posts block scrool?
never mind i got it to work
Well SHARE AND SHARE ALIKE!!
RAWR !
Mewants this code :P
Amen to that, brother ! 8)
This is the code that i used;
SMF_ROOT/Themes/default/TPortalBlocks.template.php find;
Quote
echo '<div style="width: 100%; overflow: hidden;">';
foreach($what as $w){
above add;
Quoteecho '<marquee behavior="scroll" direction="up" height="200px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
then find;
Quote$counter++;
}
echo '</div>';
}
and replace with;
Quote$counter++;
}
echo '</div></marquee>';
}
thx :) Ill try that later! Oh and for accuracy later when folks are search TP for snippets, can u change ur topic post to 'scrolling' rather than scrooling? ty
lol i like mispelling words. j/k changing now
wanna see it in action? www.Tasty-Fragism.com click on home and its on the right.
I tried it and it works like a charm for me. Thanks for sharing this!
You mean the left. :P
Oh and ur splash page says best viewed @ 1024x768 but Im using that with a huge CRT and its still too low in the page. Can u bring the image up some? Looks sweet though, you make good graphics.
And there is no way in hell Im getting FireFox. :uglystupid2: Whats the dealio with everyone running to FireFox these days? There are security holes in it. You're not anymore secure from viruses, yes maybe from active x stuff, but thats it. U have to download and install all kinds of plugins to get it to work like IE, and then it doesnt render style sheets or play back graphics consistently like IE. Scroll-bar tracks still appear in firefox frames where scroll is set to 'NO'.
Is it just en-vogue to hate Bill Gates?
No the scrolling recent posts is on the left not the right.
I also fixed the graphic on the front page. Is that better? Maybe a screeny of what you see.
Side note. I use FireFox because to me IE sux as to you FireFox sux. Its all opionated. I have had alot of issues with IE and prefer not to use it. Just my 2 Cents.
thanks for shareing, i'll porbly use it at one time or another =)
and just to add my 2 cents i use avant, dont like firefox or ie
What do you mean with the above add part? I'm confused.
I tried this and mine is doing something strange. It starts off with one coming up slow and then the rest catch up and all crash together....whats up?
Got it...just had it inline wrong.
so everything is running smoothly now?
Yip... www.rcmonstertruckforum.com
Quote from: HaxXxoR on April 08, 2006, 05:39:35 AM
No the scrolling recent posts is on the left not the right.
I also fixed the graphic on the front page. Is that better? Maybe a screeny of what you see.
Side note. I use FireFox because to me IE sux as to you FireFox sux. Its all opionated. I have had alot of issues with IE and prefer not to use it. Just my 2 Cents.
FireFox is known to have MORE exploits and holes than IE 6.0 (40 vs 10 as of Sept 2005).
All of that is moot with IE 7 IMHO.
In any case, the new OPERA 8.5 (http://opera.com) is clearly the world's fastest browser.Ã, I use Opera as my non-IE browser because I know that FireFox has lied about nearly all of its claims.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fmywebpages.comcast.net%2FOptimizeXP%2FButtons%2FFirefoxMyths.gif&hash=3d570eaa4786a00dddc9c29f94d72b4b6aee9b69) (http://www.firefoxmyths.com)
^ Very interesting read, if you are into fact vs. fiction.
I think you are a bit misinformed Stig. Those exploits are the ones that are published. Here's a bit of info on what that means.
Quote from Slashdot:
QuotePublished exploits are a downloadable script or source code that can be used to attack real live browsers in the wild. These are not simple advisories that talk about certain theoretical exploits. Published exploits are basically freebies for professional hackers and script kiddies to use in the wild.
Who knows how many "unpublished" exploits there are. I would wager IE having FAR more being as old as it is.
Let me just point you to this article that responds to the 40 vs 10 exploits.
http://www.zdnet.com/5208-10533-0.html?forumID=1&threadID=13445&messageID=268453&start=-1
I'd also like to point out that Mozilla/Firefox put a patch out usually within a week or two after finding any exploits or vulnerabilities. Microsoft takes AGES/months to fix anything.
Thank you 4 the tip! It looks realy good on the forum.
www.johnnyboysforum.nl
how would you make this not scroll - ie still display 30 or so topics, but using a sidebar?
Just remove anything to do with the marquee tag.
that is the way it is standard?
I want to restrict the height of the block, but still have access to a large number of recent posts.
also, I know that ssi_recentTopics('8', array('3','56') , 'array') will remove board 3 and 56 from the array, but how do you display only one board without doing ssi_recentTopics('8', array('1','2','3','4','5','6','7','8','9','10') , 'array') etc etc
also while I am being difficult >:D is there a way to make recent posts display in an editable block - so not using the premade one for TP (so I can edit the settings on two blocks manually)
Those questions have been answered before. I think if you search for recent topics you'll find your answer. In fact, I know that Bloc at one time gave a pretty good explanation of what the array does and how to use it. He even posted the code for you to add into a block just as you're asking.
I have been looking... even fixed up some code along the way. but unless its on page 10 of a thread, and not indexed in a search, I cannot find it.
and so the search continues!
http://www.tinyportal.net/smf/index.php?topic=596.0
Call me dumb... that is the thread I got my array example above from - without reading the code! :idiot2:
I went about it another way - made a recent page :)
http://www.techdomain.com.au/index.php?page=20
Thankyou IchBin!
Arr m8ty, sorry I jacked this thread earlier :P I finally got around to doing this, and its a great addition to the site, thank you :)
@ TechDomain
QuoteCall me dumb... that is the thread I got my array example above from - without reading the code! idiot2
You are DUMB :2funny: But anyway, i think we all do just the same thing now and then ;)
:) rofl :)
WORKED GREAT GOOD INSTRUCTIONS
anyone get this to work with 0.9.5 yet?
Quote from: swampy on September 09, 2006, 07:02:24 PM
anyone get this to work with 0.9.5 yet?
I was wondering the same thing =)
works great!
Hello,
I have this working with SMF 1.1 RC3 and TinyPortal v0.9.6beta. This mod was very easy to "install" thanks to the clear and simple directions.
My problem: the recent posts that are in the scrolling window are also being displayed at the bottom of the portal page. I cannot seem to find out how to remove the recent posts from the bottom of the page while leaving them in the scroll box. I think I must be able to the page-bottom display it off somewhere but cannot find out where to do it.
Can anyone help me?
See it on my test site at http://www.marscafe.com/forum/index.php (http://www.marscafe.com/forum/index.php)
Thank you.
I am trying to get this to work on 1.1.3 -Tp 98 and no go. Nothing happened. I did notice that my code was a little different than what was explained here. Can anyone review and tell me what I am doing wrong?
here is my code
echo '<marquee behavior="scroll" direction="up" height="200px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
echo '
<div style="width: 100%; overflow: hidden;">';
foreach($context['TPortal']['menu'] as $cn){
echo str_repeat(" ", ($cn['sub']+1));
Your code seems to be incomplete joybreezy.
Quote from: IchBinâ„¢ on July 25, 2007, 04:23:41 PM
Your code seems to be incomplete joybreezy.
Ok.. I went and looked at my code again and I noticed that the first line of coding I was instructed to input actually started on line 177, but the ending code for the counter++ is actually on line 170. So now I am REALLY confused.. LOL
// TPortal recent topics block
function TPortal_recentbox()
{
global $context, $settings, $options, $txt , $modSettings;
// is it a number?
if(!is_numeric($context['TPortal']['recentboxnum']))
$context['TPortal']['recentboxnum']='10';
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$bb=array($modSettings['recycle_board']);
else
$bb=array();
$what=ssi_recentTopics($num_recent = $context['TPortal']['recentboxnum'], $bb, $output_method = 'array');
// Output the topics
$counter=1; $cmax=count($what);
echo '
<div style="width: 100%; ' , $context['TPortal']['recentboxscroll']==1 ? 'overflow: auto; height: 20ex;' : '' , '">';
foreach($what as $w){
echo '
<div class="smalltext"><a href="'.$w['href'].'">'.$w['short_subject'].'</a></div>
<div class="smalltext">', $txt[525], ' <b>', $w['poster']['link'], '</b></div>
<div class="smalltext">';
if(!$w['new'])
echo '<a href="'.$w['href'].'"><img border="0" src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';
echo '['.$w['time'].']
</div>';
if($counter != $cmax)
echo '<hr />';
$counter++;
}
echo '
</div></marquee>';
}
// TPortal categories
function TPortal_catmenu()
{
global $context, $settings, $options , $scripturl;
if(isset($context['TPortal']['menu']) && !empty($context['TPortal']['menu'])){
echo '<marquee behavior="scroll" direction="up" height="200px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
echo '
<div style="width: 100%; overflow: hidden;">';
foreach($context['TPortal']['menu'] as $cn){
echo str_repeat(" ", ($cn['sub']+1));
if((!isset($cn['icon']) || (isset($cn['icon']) && $cn['icon']=='')) && $cn['type']!='head' && $cn['type']!='spac'){
echo '<img src="'.$settings['images_url'].'/TPdivider2.gif" alt="" /> ';
}
elseif(isset($cn['icon']) && $cn['icon']!='' && $cn['type']!='head' && $cn['type']!='spac'){
echo '<img alt="*" src="'.$cn['icon'].'" /> ';
}
switch($cn['type']){
case 'cats' :
echo '<a href="'. $scripturl. '?cat='.$cn['IDtype'].'" ' , $cn['newlink']=='1' ? 'target="_blank"' : '' , '>'.$cn['name'].'</a><br />';
break;
case 'arti' :
echo '<a href="'. $scripturl. '?page='.$cn['IDtype'].'"' , $cn['newlink']=='1' ? 'target="_blank"' : '' , '>'.$cn['name'].'</a><br />';
break;
case 'link' :
echo '<a href="'.$cn['IDtype'].'"' , $cn['newlink']=='1' ? 'target="_blank"' : '' , '>'.$cn['name'].'</a><br />';
break;
case 'head' :
echo '<b>'.$cn['IDtype'].'</b><br />';
break;
case 'spac' :
echo '<br />';
break;
default :
echo '<a href="'.$cn['IDtype'].'"' , $cn['newlink']=='1' ? 'target="_blank"' : '' , '>'.$cn['name'].'</a><br />';
break;
}
}
echo '
</div>';
}
}
And while you were at it you confused the heck out of me as well...
What are you trying to do? Why are you posting the code for the catmenu? You see the part where is says function tportal_catmenu()? That is the code for the category menu that TP has. Everything above it is the code for the recent topics. What do you want to do with it?
Quote from: HaxXxoR on April 06, 2006, 08:57:08 PM
This is the code that i used;
SMF_ROOT/Themes/default/TPortalBlocks.template.php find;
Quote
echo '<div style="width: 100%; overflow: hidden;">';
foreach($what as $w){
above add;
Quoteecho '<marquee behavior="scroll" direction="up" height="200px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
then find;
Quote$counter++;
}
echo '</div>';
}
and replace with;
Quote$counter++;
}
echo '</div></marquee>';
}
Thats why I am confused as well because based on this code instruction I went and found the lines listed and placed the new code above or below. That is when I noticed that under TPcategories is where the first line that I am suppose to put code "above" is listed.
Well its off, but not by much. Look for this for the first part. Suprised you didn't see the similarities. :)
<div style="width: 100%; ' , $context['TPortal']['recentboxscroll']==1 ? 'overflow: auto; height: 20ex;' : '' , '">';
foreach($what as $w){
LOL.. thanks so much!!! I'm learning as I go along!!! Thanks again for your help on this!!
IceBin - I have the same code you have with SMF 1.1.1 and TP 0.98
And I get this error message all the time never mind what I try to add or change
154: $counter=1; $cmax=count($what);
155: echo '<marquee behavior="scroll" direction="up" height="200px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
156: <div style="width: 100%; ' , $context['TPortal']['recentboxscroll']==1 ? 'overflow: auto; height: 20ex;' : '' , '">';
157: foreach($what as $w){
158
I must say that my system is running in Hebrew
www.my-audio.net
I don't think you can scroll the div. You have to put the marquee around the text if I remember right. The error (since you didn't post what it is), I assume is from a bad formed echo statement. All echos have to start and end with certain code.
http://www.ichbin.us/index.php?topic=19.0
What do you need me to post for you?
I can do the same thing on my test site so you can see the error.
Thank you
Yeshai
You said you get an error all the time, what error is it?
IchBin!
Help!!!
My site Scrolling Recent Topics Block:
Default theme:
He works well.
Tolkien theme:
The text increasingly smaller.
Thank you
tamasir~
lol, what a strange affect. Can you post the code you're using?
// TPortal recent topics block
function TPortal_recentbox()
{
global $context, $settings, $options, $txt , $modSettings;
// is it a number?
if(!is_numeric($context['TPortal']['recentboxnum']))
$context['TPortal']['recentboxnum']='10';
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$bb=array($modSettings['recycle_board']);
else
$bb=array();
$what=ssi_recentTopics($num_recent = $context['TPortal']['recentboxnum'], $bb, $output_method = 'array');
// Output the topics
$counter=1; $cmax=count($what);
echo '
<div style="width: 100%; ' , $context['TPortal']['recentboxscroll']==1 ? 'overflow: auto; height: 20ex;' : '' , '">';
echo '<marquee behavior="scroll" direction="up" height="170px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
foreach($what as $w){
echo '
<div class="smalltext">
<a href="'.$w['href'].'">'.$w['short_subject'].'</a>
</div>
<div class="smalltext">', $txt[525], ' <b>', $w['poster']['link'], '</b></div>
<div class="smalltext">';
if(!$w['new'])
echo '<a href="'.$w['href'].'"><img border="0" src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';
if($counter != $cmax)
echo '<hr />';
$counter++;
}
echo '
</marquee></div>';
}
I use this. :-\
My tinyporta/Tolkien theme:
http://freewebsablon.hu/forum/index.php?theme=99 (http://freewebsablon.hu/forum/index.php?theme=99)
tamasir~
Can you remove this part of the code to see if this may be causing it please?
if($counter != $cmax)
echo '<hr />';
$counter++;
I'll try.
Thank...
He is not good! :-\
tamasir~
Try disabling all your custom blocks except the recenttopics one. See if it still is doing that.
I test it. :'(
Tanks...IchBin..
tamasir~
http://www.dynamicdrive.com/dynamicindex2/
There are some excellent scrollers here, Ive used a cpl in different themes ive done, hope it helps :)
any way to make the scroll stop when u hover over the block? Just curious, this is a very easy and smart mod, ty =]
The code on page 1 already does this.
Tolkien in theme
He is not good always yet. :'( :(
tamasir~
Sorry, but I do not understand what you are saying tamasir.
I'm sorry. I cannot write in English well.
He is not good at the Tolkien Theme always yet.(Srolling Recent Topics Block)
tamasir~
Thanks for the reply. It wasnt working at first, but thats because i was in opera it was working in ie. My users decided they liked it better static, so it doesnt matter either way lol
How do i make it as smooth as the scrolling shoutbox. it's like it's blinking and is unpleasant to me, i've played around with the variables to no avail, i've reduced the length increased the response time but i still don't like it compared to the shoutbox.
Can anyone help.
Template Parse Error!
There was a problem loading the /Themes/default/TPortalBlocks.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
syntax error, unexpected $end
thats what i get when i use the code above.... I'm using latest tinyportal and smf with xcaliber theme by crip
and it doesn't work with default theme either
Which code are you using Reko? Code above doesn't specify anything considering you're on page 7 and there is no code on 6 or 7.
the first page
Well you screwed up the code if it didn't work, as it has worked for a lot of others. No way we can fix it without seeing the code.