News:

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

Main Menu

TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

MoreBloodWine

How would this be editd to show the small user avatars ?

global $context, $modSettings, $txt;
$context['TPortal']['recentboxnum'] = '15';

if(isset($modSettings['recycle_board']))
$bb = $modSettings['recycle_board'];

$what = ssi_recentTopics($context['TPortal']['recentboxnum'], NULL, NULL, 'array');
$counter=1;
$cmax = count($what);

echo '
<div style="width: 15%; float: left;">';

foreach($what as $w)
{
echo '
<div class="smalltext"><a href="http://www.dust514corps.com/'.$w['href'].'">' . $w['short_subject'] . '</a></div>
<div class="smalltext">', $txt['by'], ' <b>', $w['poster']['link'], '</b></div>
<div class="smalltext">';
if(!$w['new'])
echo '<a href="http://www.dust514corps.com/'.$w['href'].'"><img border="0" src="'.$settings['images_url'].'/Themes/Blackstorm/images/english-utf8/new.gif" alt="new" /></a> ';

echo '['.$w['time'].']
</div>';

if($counter != $cmax)
echo '<hr />';
$counter++;
}
echo '
</div>';
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


IchBin™

ssi_recentTopics doesn't grab user avatars IIRC. You'd have to add the code in to do that either separately, or manually change the ssi_recentTopics function in SSI.php to do what you need.
IchBin™        TinyPortal

MoreBloodWine

Well, the code I provided was provided by TP as the 0.9.8 style block. That said, what's the code used in the current TP for recent topics ? That would give me what I have displayed now but with avaars.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


IchBin™

We have a handful of codes at the TP site that do this. Or just look in the TPSubs.template.php file for the recent topics functions that do this in TP by default.
IchBin™        TinyPortal

stylusss

Reporting an issue:

On my forum, I have two vertical panels, one on the left side and on the right, and all the typical forum stuff goes in the middle. The problem I am experiencing is that when a page loads, the left vertical panel and the forum loads first, then after a second, the right panel kicks in. This results in a "jumpy" looking page as soon as the website finishes loads. I would like the two panels and the forum all to load at the same time, to prevent this jumpiness from occurring from one page to the next. Or,  have the two vertical panels load first, and then the stuff in the middle last. Is this normal behaviour for this modification? Is anyone else experiencing this?
For top-notch server quality and expertise, visit CoreISP.net

DarkAngel612

Quote from: stylusss on May 05, 2013, 02:39:19 AM
Reporting an issue:

On my forum, I have two vertical panels, one on the left side and on the right, and all the typical forum stuff goes in the middle. The problem I am experiencing is that when a page loads, the left vertical panel and the forum loads first, then after a second, the right panel kicks in. This results in a "jumpy" looking page as soon as the website finishes loads. I would like the two panels and the forum all to load at the same time, to prevent this jumpiness from occurring from one page to the next. Or,  have the two vertical panels load first, and then the stuff in the middle last. Is this normal behaviour for this modification? Is anyone else experiencing this?

not sure if it is the way it is supposed to work but I too have a similar problem. I only have the left side of blocks showing...forums are too darn narrow for me with both left and right blocks ...lol

anyway, when I go to our attic or store forum then wait for it to load the left side will actually expand allllll the way to the right--- even before the upper block that holds our shoutbox loads. Then when it gets all its info -- I presume --- it will get to its normal width allowing the rest of the forum to finish loading.

It did not do it in the initial setup but actually started doing it sometime between the 2.0 and 2.0.2 updates and still does so. I thought it was a theme that was misbehaving and turned them all off in the attic then turned them back on when even the default still did it with no other theme .

the store forum does not have many it just has default and 1 other theme.

oh nearly fogot...it is something that happens 3/4 of the time and will not behave like that the rest of the time. It does so in Firefox and Chrome and IE on the pc but all the time on the macintosh older firefox.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

bloc

These problems is due to the HTML table used in TP for its panels. If its a slow connection they will expand and retract until everything is loaded.It would be better if divs was used, using proper width settings for each "panel"/content, as opposed to the table columns that the browser have to re-calculate once evrything is finally loaded. It was done like this to allow the columns having any width..but in hindsight it might be better to set the widths in pre-determined widths, as people normally don't stray too much from a typical 25% left/25% right and 50% main content(or 33% and 66% for 2-panel setup).

stylusss

Quote from: Bloc on May 05, 2013, 07:21:56 AM
These problems is due to the HTML table used in TP for its panels. If its a slow connection they will expand and retract until everything is loaded.It would be better if divs was used, using proper width settings for each "panel"/content, as opposed to the table columns that the browser have to re-calculate once evrything is finally loaded. It was done like this to allow the columns having any width..but in hindsight it might be better to set the widths in pre-determined widths, as people normally don't stray too much from a typical 25% left/25% right and 50% main content(or 33% and 66% for 2-panel setup).

Hi Bloc, so this is normal behaviour (and I'm not going crazy)? I am using TinyPortal with SMF 1.x, which notorious for using tables. Is there anything I can do to curb this problem?
For top-notch server quality and expertise, visit CoreISP.net

bloc

Not much you can do, not without changing how the panel layer is coded. I am not sure if Ichbin have any plans for changing that.

stylusss

Quote from: Bloc on May 05, 2013, 02:45:38 PM
Not much you can do, not without changing how the panel layer is coded. I am not sure if Ichbin have any plans for changing that.

Thanks. Would it be possible to let me know what file to target? Is it a template.php file or /Source file? I can try to play around with the code if anything.
For top-notch server quality and expertise, visit CoreISP.net

bloc

Sure, its TPortal.template.php if I remember correctly, the "template_tp_above" and "template_tp_below" functions.

stylusss

Neither actually lol I searched the file thoroughly, no records of "template_tp_above" and "template_tp_below" exist.
For top-notch server quality and expertise, visit CoreISP.net

bloc

Oh , i am sorry, a bit rusty on where stuff is: TPBlockLayout.template.php of course. :)

Antechinus

I actually recoded my TP files so it does use divs for the side panels (and everything else). AFAICT, tables are really only needed if you want to support IE<8. For any decent browser, you can do it all with divs and css.

This is on a 1.1.x site, btw, running an old version of TP, but wth completely custom markup and css for just about everything in the interface.

bloc

Yes, exactly. There are a few tidbits - like how to calculate what the main content column's width should be, if the panels are in pixels(percents are of course the ideal) and the whole theme has fluid width - but even that can be done in modern browsers now.

stylusss

Quote from: Bloc on May 05, 2013, 03:59:02 PM
Oh , i am sorry, a bit rusty on where stuff is: TPBlockLayout.template.php of course. :)

Thanks, Bloc.

QuoteI actually recoded my TP files so it does use divs for the side panels (and everything else). AFAICT, tables are really only needed if you want to support IE<8. For any decent browser, you can do it all with divs and css.

This is on a 1.1.x site, btw, running an old version of TP, but wth completely custom markup and css for just about everything in the interface.

Antechinus, do you mind uploading your version here (If that's allowed)? In addition, does your forum suffer from what I experience on mine after the changes?
For top-notch server quality and expertise, visit CoreISP.net

Antechinus

Well the version we're running doesn't even have the same files. TPBlockLayout.template.php doesn't exist, and the side panels are coded in the theme's index.template.php, and a whole pile of inline TP settings have been stripped out and replaced with custom CSS, and the theme relies on several other mods, and is pretty much a complete custom interface running on a TP/SMF back end.

So, it's not as if you'll be able to look at the files and just easily copy stuff over. If you want a quick look around, you'll be able to see it on the site linked under my av. Take a look at the source code and pull the css sheet out of your browser. See if it makes sense.

stylusss

Quote from: Antechinus on May 05, 2013, 09:55:35 PM
Well the version we're running doesn't even have the same files. TPBlockLayout.template.php doesn't exist, and the side panels are coded in the theme's index.template.php, and a whole pile of inline TP settings have been stripped out and replaced with custom CSS, and the theme relies on several other mods, and is pretty much a complete custom interface running on a TP/SMF back end.

So, it's not as if you'll be able to look at the files and just easily copy stuff over. If you want a quick look around, you'll be able to see it on the site linked under my av. Take a look at the source code and pull the css sheet out of your browser. See if it makes sense.

Thank you. I think I see how it works now.
For top-notch server quality and expertise, visit CoreISP.net

CheeseHead05

So what exactly is this "tiny portal" and what is it's purpose?

DarkAngel612

it is a content management system---I think that is what it is called. Anyway it gives your forums a polished look with side blocks, upper blocks, lower blocks, a way to create articles and a downloads area for your members and a shoutbox is is strictly member only...

It is a great add on for your forum go to my links to see what it looks like.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

Advertisement: