Advertisement:

Author Topic: TinyPortal  (Read 744082 times)

Offline SN

  • Jr. Member
  • **
  • Posts: 398
  • Gender: Male
  • » To Dare is To Do
    • SpursNetwork - Tottenham Hotspurs Fansite
Re: TinyPortal
« Reply #400 on: February 23, 2009, 06:18:17 AM »
Hi Bloc, Really nice Mod this.

I have been looking around for a Portal System for my site, but im not sure which one to go with.

I just want to ask a few questions about this one

Will i be able to use it with any Theme, without editing the code?

Is the extra Buttons like ''Forum'' added on Install?

Will i be able to remove the collapse Blocks buttons so it looks more like a front page ?

bloc

  • Guest
Re: TinyPortal
« Reply #401 on: February 23, 2009, 07:09:53 AM »
Thank you :)

Yes, you can use it with any theme.

No, the "forum" button isn't added to custom themes, reason is simply that the buttons are hardcoded in the themes, in SMF 1.1.x anyway. In SMF 2 it will be no problem, but TP2 isn't ready yet. All of my themes support the "forum" button in SMF 1.1.x though, so having a look at them or at default theme of course, should help you add the button manually.

Yes, you can simply elect to let the users NOT collapse blocks, the icon will then not appear. Its per-block-basis so you need to go through and change them. For a totally customable block, you can turn off both title, frame and background, leaving the styling up to you and the block content.

Offline victoryrock

  • Jr. Member
  • **
  • Posts: 121
Re: TinyPortal
« Reply #402 on: March 04, 2009, 09:04:27 AM »
Errors during installation.
 
Great Mod, except I am getting errors for:
Themes/default/index.template.php
Sources/Load.php
 
Attached are the files.  Are you able to please to see what is wrong with them?
 
Thanks SO much!
VR

bloc

  • Guest
Re: TinyPortal
« Reply #403 on: March 04, 2009, 09:27:33 AM »
Victoryrock, the index.template.php only needs a forum button, so you can disregard that error and just add it manually later on.

The Load.php fails on this codebit:
Code: [Select]
// Build up the linktree.
$context['linktree'] = array_merge(
$context['linktree'],
array(array(
'url' => $scripturl . '#' . $board_info['cat']['id'],

You could go ahead there too, as it the changes can be added manually, but there a few areas to change and it migh be errors before you made the code changes.

...or you can try another route: do a upgrade of SMF(just use same version as your current) to clean any mods away, then install TP first, followed by Aeva + other mods. That might also work.

Offline victoryrock

  • Jr. Member
  • **
  • Posts: 121
Re: TinyPortal
« Reply #404 on: March 04, 2009, 10:49:28 AM »
Thanks Bloc,
 
I am not too familiar with manual changes, so do I need a forum button?
 
Victoryrock, the index.template.php only needs a forum button, so you can disregard that error and just add it manually later on.

 
If I go ahead with the install while ignoring the error for this script, what do I need to replace it with?
 
The Load.php fails on this codebit:
Code: [Select]
      // Build up the linktree.
      $context['linktree'] = array_merge(
         $context['linktree'],
         array(array(
            'url' => $scripturl . '#' . $board_info['cat']['id'],

You could go ahead there too, as it the changes can be added manually, but there a few areas to change and it migh be errors before you made the code changes.

Thanks,
VR

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #405 on: March 04, 2009, 04:12:50 PM »
vistoryrock, the forum button is needed because TinyPortal adds a home page by default. So instead of going to your boardindex when people hit your forum, they will hit the TP page first. Unless you change that setting inside TP to go straight to the boardindex again. So, by default you need a forum button. If you take a look at tinyportal.net you can see how it works by clicking on both buttons.

The changes that need to happen to the Load.php file can be found on this page. If you go ahead with the install you'll have to make the changes shown on this page.
http://docs.tinyportal.net/index.php/topic,140.html

IchBin™        TinyPortal
Coding Guidelines       

Offline victoryrock

  • Jr. Member
  • **
  • Posts: 121
Re: TinyPortal
« Reply #406 on: March 04, 2009, 04:18:20 PM »
IchBin,
 
If I wasn't planning on having the front page anyways, can I go ahead and install without anymore changes?
 
 

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #407 on: March 04, 2009, 04:28:45 PM »
If you're getting an error on the Load.php file during install, you still have to make the changes to that file. But you don't need to add a forum button the the index.template.php file if you don't want to.
IchBin™        TinyPortal
Coding Guidelines       

Offline victoryrock

  • Jr. Member
  • **
  • Posts: 121
Re: TinyPortal
« Reply #408 on: March 06, 2009, 01:42:25 PM »
For the TP Shout, Is there a sound that I can't locate in the the settings somewhere?
 
I would like it so that when someone adds a shout there's a ding or sound of some sort.
 
victoryrock

bloc

  • Guest
Re: TinyPortal
« Reply #409 on: March 06, 2009, 02:18:05 PM »
Currently thats not possible - the shouts aren't logged whether they are new since you last saw them, and they are not fetched in real-time either.

Something like a chat would be more appropriate for that.

Offline victoryrock

  • Jr. Member
  • **
  • Posts: 121
Re: TinyPortal
« Reply #410 on: March 06, 2009, 04:35:37 PM »
Hey Bloc,
 
What's the chances that you can add the code in for my Load.php file (attached) and then I can just replace it after I install it with errors?
 
I am just to afraid to mess something up.
 
Thanks Bloc
 
 
Victoryrock, the index.template.php only needs a forum button, so you can disregard that error and just add it manually later on.

The Load.php fails on this codebit:
Code: [Select]
      // Build up the linktree.
      $context['linktree'] = array_merge(
         $context['linktree'],
         array(array(
            'url' => $scripturl . '#' . $board_info['cat']['id'],

You could go ahead there too, as it the changes can be added manually, but there a few areas to change and it migh be errors before you made the code changes.

...or you can try another route: do a upgrade of SMF(just use same version as your current) to clean any mods away, then install TP first, followed by Aeva + other mods. That might also work.

Offline BarfBag

  • Semi-Newbie
  • *
  • Posts: 96
  • Gender: Male
Re: TinyPortal
« Reply #411 on: March 10, 2009, 10:00:59 AM »
I'm having trouble installing TinyPortal.

Board URL: http://chexquest.org/
SMF 1.1.8
1.     Extract Tree     ./Themes     
2.    Extract Tree    ./Sources    
3.    Extract Tree    ./tp-downloads    
4.    Extract Tree    ./tp-images    
5.    Extract Tree    ./tp-files    
6.    Execute Code    tp_install.php    
7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test successful
9.    Execute Modification    ./Themes/default/index.template.php    Test failed
10.    Execute Modification    ./Themes/babylon/index.template.php    Test successful
11.    Execute Modification    ./Sources/Subs.php    Test successful
12.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
13.    Execute Modification    ./Sources/Security.php    Test successful
14.    Execute Modification    ./Sources/Errors.php    Test successful
15.    Execute Modification    ./Themes/default/Help.template.php    Test successful
16.    Execute Modification    ./Sources/Profile.php    Test successful
17.    Execute Modification    ./SSI.php    Test successful
18.    Execute Modification    ./Sources/BoardIndex.php    Test successful
19.    Execute Modification    ./Sources/QueryString.php    Test successful
20.    Execute Modification    ./Sources/Subs-Post.php    Test successful
21.    Execute Modification    ./Sources/Admin.php    Test successful

I'm not sure whether or not I should go through with the installation.  Any ideas?

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #412 on: March 10, 2009, 11:57:35 AM »
You can continue, you will only need to add a forum button to the index.template.php file. You can see the instructions for that file on this page at TP.net.
http://docs.tinyportal.net/index.php/topic,140.html
IchBin™        TinyPortal
Coding Guidelines       

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: TinyPortal
« Reply #413 on: March 15, 2009, 12:45:51 PM »
Bloc:

I want my SSI news articles on my home page to have their own separate non-forum pages when clicked on, that's the only thing I want on my website. Is this mod appropriate? And how would I implement it for that?

I don't want my forum changed at all and when you click on the news article, I'd like it so /forum/ is not part of the URL.
« Last Edit: March 15, 2009, 12:49:46 PM by mark7144 »

bloc

  • Guest
Re: TinyPortal
« Reply #414 on: March 15, 2009, 02:28:07 PM »
Bloc:

I want my SSI news articles on my home page to have their own separate non-forum pages when clicked on, that's the only thing I want on my website. Is this mod appropriate? And how would I implement it for that?

I don't want my forum changed at all and when you click on the news article, I'd like it so /forum/ is not part of the URL.
Thats not possible at the moment. You would need a call in SSI.php to actually fetch an article to be displayed - since not the whole of TP is loaded when calling SSI.php. It is that you seek..? showing an article from TP outside the forum folder, outside of SMF so to speak..?


Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: TinyPortal
« Reply #415 on: March 15, 2009, 03:01:05 PM »
I have a board on my forum called 'News' and the threads grabbed from that are shown on my non-forum home page using SSI. I want it so when you click on the topic from the home page, it shows in its own page instead of a thread.

bloc

  • Guest
Re: TinyPortal
« Reply #416 on: March 16, 2009, 08:52:17 AM »
For that to work you probably need to 1) fetch the info from 'News" using SSI and returned as an array, and 2) make your own links from that info(it would have the topic number in the array), and finally 3) let another SSI function fetch the actual post into your page.

None of these is possible from TP I am afraid, but you might be able to do it from your own pages, by the help of a mod that adds a SSI function fetching single post. I would get the SSI info on topic zzz into xx.php and make the links on xx.php point to yy.php?topic=zzz, then inside yy.php use that single-post SSI to show topicID=zzz.(first post will show then naturally)

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: TinyPortal
« Reply #417 on: March 16, 2009, 11:00:11 AM »
Thanks for the info, I'll ask in the coding discussion board.

Offline ccraciun

  • Jr. Member
  • **
  • Posts: 114
  • Gender: Male
    • Forum Brasov
Re: TinyPortal
« Reply #418 on: March 22, 2009, 05:47:26 PM »
Hi.
I installed TP 1.0.3 on my test forum and everything work great until now, but i have a question: how can i preserve the layout of the forum page (keeping the whole width). I would like the layout of TP (left, top, right panels) to appear only in the frontpage, but when i click on the forum button, i would like to have the default layout without the panels. Is there a way to accomplish that? I didn't find it in the configuration.
One other thing: there is a way to show "most readed topic" block? I found only "recent topics".
Many thanks!

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #419 on: March 22, 2009, 10:12:41 PM »
In the panel settings you have the option to turn off panels when in the forum. For most read topic, you can use ssi_topTopicsViews.
IchBin™        TinyPortal
Coding Guidelines