News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

January 21, 2020, 11:14:23 AM

Login with username, password and session length

Recent

Recent Posts

Pages: [1] 2 ... 10
1
Support / Re: Blocks COLLAPSED at startup possible?
« Last post by lurkalot on January 20, 2020, 03:30:06 PM »
I did a search on this last night actually, it's been asked for only a few times over the years.  Looks like a lot of work to make it happen tbh.
2
Resources / Re: How to: Import shouts from SP/EhPortal
« Last post by lurkalot on January 20, 2020, 03:25:00 PM »
Neat  ;) Thank you Oldiesmann, I'm sure someone will find this very useful should they find themselves in the same position. 

And thanks for switching to TP as well.  8)
3
Support / Re: Blocks COLLAPSED at startup possible?
« Last post by @rjen on January 20, 2020, 01:49:05 PM »
There is no setting for that. I guess it is possible with a code change but I do not really see the point...
4
Resources / How to: Import shouts from SP/EhPortal
« Last post by Oldiesmann on January 20, 2020, 11:32:34 AM »
Just moved a site I'm hosting from EhPortal to TP and the members wanted shoutbox history imported as well, so I wrote a script to do that. Figured I'd share it here in case anyone else wants to do that. Note that this was run on 2.1. If you're on 2.0, you should be able to remove the "$smcFunc['db_select_db']" line and also change "inet_ntop($results['member_ip'])" to just "$results['member_ip']" (this is needed due to differences in how the data is stored in 2.1 vs 2.0)


Code: [Select]
<?php
include_once('SSI.php');
$smcFunc['db_select_db']('your_database');


$query $smcFunc['db_query']('''SELECT shout.id_shout, shout.id_member, shout.member_name, shout.log_time, shout.body, mem.member_ip FROM {db_prefix}sp_shouts AS shout
INNER JOIN {db_prefix}members AS mem ON (mem.id_member = shout.id_member)'
, array());


$shouts = array();


while(
$results $smcFunc['db_fetch_assoc']($query))
{


$shouts[] = array(
$results['id_shout'],
$results['body'],
$results['log_time'],
'shoutbox',
'<a href="' $scripturl '?action=profile;u='$results['id_member'] . '">'$results['member_name'] . '</a>',
inet_ntop($results['member_ip']),
$results['id_member']
);

}


 
$smcFunc['db_insert']('insert''{db_prefix}tp_shoutbox', array('id' => 'int','value1' => 'string','value2' => 'string''type' => 'string''value3' => 'string''value4' => 'string''value5' => 'string'), $shouts, array('id'));


?>
5
Support / Blocks COLLAPSED at startup possible?
« Last post by Wichtlmex on January 18, 2020, 01:05:20 AM »
Hi,
I can see the option to have blocks with articles collapsible or not.
But I want the block to start up in collapsed form..... is that possible?
regards
Michael
6
Installation / Re: Random posts on home page
« Last post by Kim on January 04, 2020, 02:53:32 PM »
I've no idea, I've never had that option checked before lol
I downloaded TP from here
Anyway, thanks again guys, I love TP  :-*
7
Installation / Re: Random posts on home page
« Last post by lurkalot on January 04, 2020, 02:47:49 PM »
Glad @rjen pointed you in the right direction, and it sorted the issue.  O0

I'm still curious as to why upgrading to TP 1.6.4 changed your front page settings, it shouldn't have done that at all. 

I'm assuming because all your mods got uninstalled you upgraded manually using the large upgrade package from the SMF downloads page? 
8
Installation / Re: Random posts on home page
« Last post by Kim on January 04, 2020, 12:57:07 PM »
My forum link

Not sure about the version I've had it that long, I'd say from over a year ago?

Have looked under topics and it has "Forum-topics and articles - sorted on date" ticked

EDIT: I've sorted it, thanks for pointing out where I needed to look  ;)
9
Installation / Re: Random posts on home page
« Last post by lurkalot on January 04, 2020, 11:21:27 AM »
Hi Kim

Also, what version of TinyPortal were you using before the upgrade?
10
Installation / Re: Random posts on home page
« Last post by @rjen on January 04, 2020, 11:19:44 AM »
Random posts? Maybe you set the frontpage tp show topics?

Check the setting under Tinyportal > Settings , frontpage : what to display on frontpage...

Can you share a link to your forum?
Pages: [1] 2 ... 10