Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: lurkalot on February 12, 2005, 04:43:00 AM

Title: TinyPortal
Post by: lurkalot on February 12, 2005, 04:43:00 AM
[Link to the mod](https://custom.simplemachines.org/index.php?mod=97)

[TinyPortal](https://www.tinyportal.net/) - Portal Mod for SMF
==================================================
![](https://www.tinyportal.net//Themes/tinyportal-theme/images/logo_light.png)

[![Latest Version](https://img.shields.io/github/release/TinyPortal/TinyPortal.svg)](https://github.com/TinyPortal/TinyPortal/releases)
[![Total Downloads](https://img.shields.io/github/downloads/TinyPortal/TinyPortal/total.svg)](https://github.com/TinyPortal/TinyPortal/releases)
[![GitHub issues](https://img.shields.io/github/issues/TinyPortal/TinyPortal.svg)](https://github.com/TinyPortal/TinyPortal/issues)

## What is TinyPortal?

TinyPortal is a mod for SMF that adds a powerful and mature CMS to your SMF Forum in minutes, with native integration, without having to worry about bridging, database, and appearance. Your SMF and TP will be a homogenous ensemble from installation. It's up to you and your creativity to use TP's features to customize your site and organize its content.

## Features included in TinyPortal:

- **Article System:** The article system gives you a CMS system tightly integrated with your forum. Write articles in php, html or bbcode, and choose what member-groups can access them, who can contribute, and how they are approved.

- **Blocks and Panels:** Blocks is a term for the rectangles of information you can use throughout the portal. For the sake of simplicity the page has been divided into the "panels", which when combined can mimic many common page layouts. Blocks can contain regular html, BBC, php code or special written functions that collect specific types of information. You can show them according to which permissions the visitor has, and even show them just in certain sections.
TinyPortal comes with a number of standard block types, such as: Recent Posts, Theme switcher, Search, Calendar, Poll, RSS feeds, Menu, User Profile block and News.

- **Menu Manager:** The menu manager lets you add single level Buttons / Tabs to the SMF menu, but also create menu's within a portal block available to specific membergroups. You can create and organize various types of menu items: links to articles, categories, or even just a custom link. You can choose to have the link open in the current window or a new window.

- **Downloads Manager**: A built-in module for TP that lets you offer files for your members to browse and download. Its works by having the downloadable files placed in categories, letting you restrict member groups access level per each category.

- **ShoutBox:** An integrated message box in which you can leave messages for others to see and thus maintain a simple "chat" on the site. Combined with permissions you will have much freedom in who can participate as well.

## Questions?
For more detailed information about the features of TinyPortal and how to use them, check out the [TinyPortal documentation](https://www.tinyportal.net/docs). If you cannot find what you are looking for in the documentation, please feel free to ask on the [TinyPortal Support forum](https://www.tinyportal.net)

## Changelog
Please click on the appropriate release to see the [Changelog](https://github.com/Tinyportal/TinyPortal/tags)

## What you need to install TinyPortal
1. In order to install TinyPortal, you need to have a working version of Simple Machines Forum.
SMF version must be SMF2.1. or SMF3.0. Note that SMF3.0 is under development, we cannot guarantee stable support for 3.0 untill a Final version is released.
2. Zip files are provided for install both on the
[Simple Machines Site](https://custom.simplemachines.org/index.php?mod=97) and the [TinyPortal Site](https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=cat61) (the archive with old version packages is available in the download section).

Note: It is recommended to uninstall any previous version of TinyPortal before you install TinyPortal. Make a backup of all your SMF and TinyPortal files before you uninstall.

SMF2.0 is supported by TinyPortal only up to TinyPortal version 2.3.1. Support for SMF2.0 has been dropped starting TinyPortal version 3.0.0.

## License Information:
The contents of this file are subject to the Mozilla Public License Version 2.0 (the "License");
you may not use this package except in compliance with the License. You may obtain a copy of the License at
https://www.mozilla.org/en-US/MPL/2.0/
Title: Re: TinyPortal
Post by: Midgard on February 12, 2005, 04:43:41 AM
This mod from Jerry?
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 05:04:47 AM
No, this is my project. Jerry has his own script. :)

TinyPortal is currently running at http://www.tinyportal.net , if you want to see it in action.
Title: Re: TinyPortal
Post by: Midgard on February 12, 2005, 05:10:30 AM
Excellent, Bloc

Very best mod.
Title: Re: TinyPortal
Post by: Jerry on February 12, 2005, 05:36:51 AM
Very Nice portal :), my error log shows some errors though:

Quote8: Undefined index: mystart
File: /xxx/xxx/public_html/akjerry/Themes/default/TPortalBlocks.template.php (eval?)
Line: 62
and
Quote8: Undefined variable: t
File: /xxx/xxx/public_html/akjerry/Sources/TPortal.php
Line: 205
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 05:43:29 AM
thanks, I will correct those.
Title: Re: TinyPortal
Post by: Midgard on February 12, 2005, 08:33:36 AM
Bloc, need a roster page ;)
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 09:00:20 AM
A what..?
Title: Re: TinyPortal
Post by: Midgard on February 12, 2005, 09:37:23 AM
as http://www.raclan.org/index.php?action=portal;sa=roster
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 09:56:41 AM
I see. :) Well...it could be a just an article in my mod. The make button for that page only for instance.

In the next release of mod, I plan to have the option of an article without a category, or marked as such. It will then show up in the category/content list as a single page. That way special pages can be made that will auto-show in the menu there.
Title: Re: TinyPortal
Post by: Midgard on February 12, 2005, 09:58:00 AM
That's great ;)
Title: Re: TinyPortal
Post by: dtm.exe on February 12, 2005, 10:11:47 AM
I am extrememely frustrated right about now.  I installed the mod and hate it, so I try to uninstall it, that doesn't work.  Then I try deleting the files, THAT works but the stuff on the index page is STILL THERE!  HOW DO I REMOVE THIS  THING PLEASE!

-Dan The Man
Title: Re: TinyPortal
Post by: maufonseca on February 12, 2005, 11:53:18 AM
I like it...... very simple, but very useful......
Are there any modifications to make it work with different themes?
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 12:00:21 PM
Quote from: OIDanTheManIO on February 12, 2005, 10:11:47 AM
I am extrememely frustrated right about now. I installed the mod and hate it, so I try to uninstall it, that doesn't work. Then I try deleting the files, THAT works but the stuff on the index page is STILL THERE! HOW DO I REMOVE THIS THING PLEASE!

-Dan The Man
Try to replace with the original Load.php, Index.template.php and index.php, those files are modified by the mod.

If you have files in the root folder named  index.bak, load.bak and index.template.bak, those are YOUR original files and could just be renamed to php and put in again:

- load.bak => rename to Load.php - put in Sources folder
- index.bak => rename to index.php - put in forum root folder
- index.template.bak => rename to index.template.php - put in themes/default folder.

I will check into why it wont un-install properly.
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 12:01:18 PM
Quote from: maufonseca on February 12, 2005, 11:53:18 AM
I like it...... very simple, but very useful......
Are there any modifications to make it work with different themes?

Look at the tinyportal.mod file..the changes for index.template.php.
Title: Re: TinyPortal
Post by: maufonseca on February 12, 2005, 12:37:03 PM
Thank you, it works,

I found something...... the ShoutBox dont work  :(
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 12:51:03 PM
Yes. I am checking why as of now.
Title: Re: TinyPortal
Post by: dtm.exe on February 12, 2005, 12:53:04 PM
Quote from: Bloc on February 12, 2005, 12:00:21 PM
Quote from: OIDanTheManIO on February 12, 2005, 10:11:47 AM
I am extrememely frustrated right about now. I installed the mod and hate it, so I try to uninstall it, that doesn't work. Then I try deleting the files, THAT works but the stuff on the index page is STILL THERE! HOW DO I REMOVE THIS THING PLEASE!

-Dan The Man
Try to replace with the original Load.php, Index.template.php and index.php, those files are modified by the mod.

If you have files in the root folder named  index.bak, load.bak and index.template.bak, those are YOUR original files and could just be renamed to php and put in again:

- load.bak => rename to Load.php - put in Sources folder
- index.bak => rename to index.php - put in forum root folder
- index.template.bak => rename to index.template.php - put in themes/default folder.

I will check into why it wont un-install properly.

Great, now my forums are F**KED UP!

www.closecombatsquad.com

-Dan The Man
Title: Re: TinyPortal
Post by: maufonseca on February 12, 2005, 01:09:53 PM
Also, in some places, this menu "block" (sorry, I dont know how to call it) gets BIG...... can I stop set it a size so it wont get bigger in some lare thread and other places
(http://img.photobucket.com/albums/v57/maufonseca93/Avatars%20and%20siggys/Window.bmp)


(sorry for my english)
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 01:11:04 PM
Quote from: OIDanTheManIO on February 12, 2005, 12:53:04 PM
Quote from: Bloc on February 12, 2005, 12:00:21 PM
Quote from: OIDanTheManIO on February 12, 2005, 10:11:47 AM
I am extrememely frustrated right about now. I installed the mod and hate it, so I try to uninstall it, that doesn't work. Then I try deleting the files, THAT works but the stuff on the index page is STILL THERE! HOW DO I REMOVE THIS THING PLEASE!

-Dan The Man
Try to replace with the original Load.php, Index.template.php and index.php, those files are modified by the mod.

If you have files in the root folder named  index.bak, load.bak and index.template.bak, those are YOUR original files and could just be renamed to php and put in again:

- load.bak => rename to Load.php - put in Sources folder
- index.bak => rename to index.php - put in forum root folder
- index.template.bak => rename to index.template.php - put in themes/default folder.

I will check into why it wont un-install properly.

Great, now my forums are F**KED UP!

www.closecombatsquad.com

-Dan The Man

Don't you even have a backup when trying out mods?

And..as far as I can see, only the link-tree is wrong. Try to replace all the files as I suggested.
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 01:15:12 PM
Quote from: maufonseca on February 12, 2005, 01:09:53 PM
Also, in some places, this menu "block" (sorry, I dont know how to call it) gets BIG...... can I stop set it a size so it wont get bigger in some lare thread and other places
(http://img.photobucket.com/albums/v57/maufonseca93/Avatars%20and%20siggys/Window.bmp)


(sorry for my english)

Look in the TPadmin section - general settings. there you can set the width of both the left "blocks" bar, and the right. Experiment with whats is best.
Title: Re: TinyPortal
Post by: redone on February 12, 2005, 01:26:35 PM
To be fair to Bloc the portal is Beta and it tells you clearly to make sure you have backup copies of your sources etc.

Backup is your friend!  ;)
Title: Re: TinyPortal
Post by: codenaught on February 12, 2005, 01:39:18 PM
Bloc, the portal is great. I just installed it on my forum.  :)

Nice work. I really like it.  ;)
Title: Re: TinyPortal
Post by: maufonseca on February 12, 2005, 01:45:49 PM
But I think what I have to change is the height...... the widht is ok
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 03:35:58 PM
I see. Hm, I may have to see your index.template.php file to answer that...in the default theme , is it same problem there? Or just in the custom one(s)?
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 03:39:19 PM
For those who can't get the shoutbox to work..this is what you need to change - it was a line that was forgotten on my part:

- Open up index.php in the root folder of the forum and find:

               
                'tpadmin' => array('TPortalAdmin.php', 'TPortalAdmin'),
                'forum' => array('BoardIndex.php', 'BoardIndex'),


..then add this line right under those:


                'tpmod' => array('TPmodules.php', 'TPmodules'),
Title: Re: TinyPortal
Post by: maufonseca on February 12, 2005, 04:35:52 PM
Yeah, it looks good in the default them, because the default theme dont have that background under the blocks


ohh, and thanks for the shoutbox modifications :D
Title: Re: TinyPortal
Post by: SOTG Marine on February 12, 2005, 06:34:10 PM
I'm sorry, maybe I'm not understanding this mod, ... how do I modify what appears on the front page?


I just get this:

                                                                                                            Pages:
There are no articles in this section yet.


Can anyone help?
Title: Re: TinyPortal
Post by: maufonseca on February 12, 2005, 06:40:39 PM
go to TP Admin and you can chose what do you want to see in the homepage
Title: Re: TinyPortal
Post by: [darksteel] on February 12, 2005, 06:43:10 PM
Tiny Portal v0.2beta

Un-installing...

Warning: copy(tp-index.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 7
failed.
Warning: copy(tp-load.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 11
failed.
Warning: copy(tp-template.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 15
failed.Deleting tables....
All done.

TinyPortal is now un-installed.

Title: Re: TinyPortal
Post by: Anguz on February 12, 2005, 06:47:11 PM
Great work, Bloc. As a mod writer, I took a look at your code and have some suggestions:


<remove-file name="$themedir/images/divider.gif" />
<modification format="boardmod" type="file" reverse="true">tinyportal.mod</modification>

[li]Replacing files like you do with index.php, Load.php and index.template.php, will make many other mods not work anymore. Use the script in code only for what you can't do with the mod file, like db stuff. If you want the mod to do advanced things, the XML format, rather than the Boardmod one, may cover your needs. Try to make your mod as compatible with others as possible.[/li]
[li]Leave file extensions .php, .bak will show the content of the file in most servers.[/li]
[li]Why do you use the mod file to change the files you just put with tp_install.php?[/li]
[li]For indentation use tabs instead of spaces.[/li]
[li]The tpadmin.gif button doesn't look like the rest.[/li]
[/list]

I didn't go over the actual code, so I don't have much to comment on that. I hope you find these observations useful to help you improve your mod, which I think is a great way of using SMF. :)
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 07:03:59 PM
Thank you, Anguz. There were many good points here, I will go through them and improve the mod as much as I can. I admit the package side of it isn't ..ideal. So any help is appreciated. :)
Title: Re: TinyPortal
Post by: Anguz on February 12, 2005, 07:06:28 PM
Cool. ;)

Let me know when you post the updated mod so I take a look at it. :)
Title: Re: TinyPortal
Post by: [darksteel] on February 12, 2005, 07:10:56 PM
Quote from: [darksteel] on February 12, 2005, 06:43:10 PM
Tiny Portal v0.2beta

Un-installing...

Warning: copy(tp-index.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 7
failed.
Warning: copy(tp-load.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 11
failed.
Warning: copy(tp-template.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 15
failed.Deleting tables....
All done.

TinyPortal is now un-installed.



I can't unistall, for these errors...
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 07:26:57 PM
Quote from: [darksteel] on February 12, 2005, 07:10:56 PM
Quote from: [darksteel] on February 12, 2005, 06:43:10 PM
Tiny Portal v0.2beta

Un-installing...

Warning: copy(tp-index.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 7
failed.
Warning: copy(tp-load.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 11
failed.
Warning: copy(tp-template.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 15
failed.Deleting tables....
All done.

TinyPortal is now un-installed.



I can't unistall, for these errors...

yes, I am sorry for that. Have you read what i wrote here ? http://www.simplemachines.org/community/index.php?topic=27642.msg213187#msg213187
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 07:32:53 PM
Quote from: Anguz on February 12, 2005, 06:47:11 PM
Great work, Bloc. As a mod writer, I took a look at your code and have some suggestions:


  • The id and version in package-info.xml and tinyportal.mod don't match, they should.
  • The id in package-info.xml should not include the version number.
  • The uninstall is not complete. You should remove the files you added when installing, also reverse the mod actions. Examples:

<remove-file name="$themedir/images/divider.gif" />
<modification format="boardmod" type="file" reverse="true">tinyportal.mod</modification>

[li]Replacing files like you do with index.php, Load.php and index.template.php, will make many other mods not work anymore. Use the script in code only for what you can't do with the mod file, like db stuff. If you want the mod to do advanced things, the XML format, rather than the Boardmod one, may cover your needs. Try to make your mod as compatible with others as possible.[/li]
[li]Leave file extensions .php, .bak will show the content of the file in most servers.[/li]
[li]Why do you use the mod file to change the files you just put with tp_install.php?[/li]
[li]For indentation use tabs instead of spaces.[/li]
[li]The tpadmin.gif button doesn't look like the rest.[/li]
[/list]

I didn't go over the actual code, so I don't have much to comment on that. I hope you find these observations useful to help you improve your mod, which I think is a great way of using SMF. :)

I have corrected the things you suggested..but there was one thing I did not understand:

"Why do you use the mod file to change the files you just put with tp_install.php?"

What file(s) do you mean here..? I have removed the copy part of tp_install.php to just do mysql. Was it these files you were referring to?
Title: Re: TinyPortal
Post by: [darksteel] on February 12, 2005, 07:33:36 PM
thanks, EXELLENT PORTAL bloc :P !!!!!!!!!
Title: Re: TinyPortal
Post by: Anguz on February 12, 2005, 07:38:11 PM
Quote from: Bloc on February 12, 2005, 07:32:53 PM
I have corrected the things you suggested..but there was one thing I did not understand:

"Why do you use the mod file to change the files you just put with tp_install.php?"

What file(s) do you mean here..? I have removed the copy part of tp_install.php to just do mysql. Was it these files you were referring to?

Yes. Actually I was saying that first you replaced the files and then modified them, but looking at it again, you were first modifying and the replacing them. Nevermind, I'll take a look at the new version and post in a moment what I find. :)
Title: Re: TinyPortal
Post by: bloc on February 12, 2005, 07:40:23 PM
uhm..there is no new version as of yet..I will correct some other things first.

But I will let you know of course. ;)
Title: Re: TinyPortal
Post by: Anguz on February 12, 2005, 07:43:06 PM
Heh, you haven't uploaded the new file yet. Sorry, I thought you had already. I'll check back in a moment then. :)
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 04:24:02 AM
Update:
Done some changes in the install/un-install routine. Now it should remove itself as expected. Also the shoutbox bug(shouts not saved) has been corrected.
Title: Re: TinyPortal
Post by: Anguz on February 13, 2005, 04:28:20 AM
/me goes grab a copy.
Title: Re: TinyPortal
Post by: Anguz on February 13, 2005, 04:55:03 AM

<search for>
// Start the linktree off empty..
$context['linktree'] = array();
</search for>
<replace>
        // Start the linktree off empty..not quite, have to insert forum
        $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum - Index'));
</replace>

[li]Write comments properly, in the above example it should probably read:[/li]

// Start the linktree off empty... not quite, have to insert forum.

[li]Keep the indentation level of the code around the one you're inserting. Tabs will help you keep the indentation consistent, but in this case it's weird anyway, with the TinyPortal comment (which, BTW, is missing the period at the end) without indent and the next line with more indent than the line before your new code. Look at this from your mod:[/li]

<search for>
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
</search for>
<add after>
// TinyPortal
           require_once('SSI.php');
           loadtemplate('TPortalBlocks');
</add after>

should be

<add after>
// TinyPortal.
require_once('SSI.php');
loadtemplate('TPortalBlocks');
</add after>

[li]Make your comments unique, you use the "// TinyPortal" one in several places. I've done this mistake myself in some mods.[/li]
[/list]

Again, very well done on the mod. I love how you explore the power of the theme engine. I hope you find the feedback useful. :)

A good read to refresh some stuff:
Coding Guidelines... (http://www.simplemachines.org/community/index.php?topic=7110.0)
Title: Re: TinyPortal
Post by: SOTG Marine on February 13, 2005, 05:09:21 AM
Quote from: maufonseca on February 12, 2005, 06:40:39 PM
go to TP Admin and you can chose what do you want to see in the homepage

Ok, .. neat......  I didn't see that as an option, but ok....

Now I can get articles there, but no forum, and definately no portal of any kind. What am I doing wrong?
Title: Re: TinyPortal
Post by: Anguz on February 13, 2005, 05:14:55 AM
Missed something:

Title: Re: TinyPortal
Post by: SOTG Marine on February 13, 2005, 05:19:44 AM
I'm using the Helios Theme, .. and I think that's my problem. I see everything you guys are talking about on the regular theme. How do I get it to work on the Helios theme?
Title: Re: TinyPortal
Post by: [Unknown] on February 13, 2005, 05:24:28 AM
Quote from: package-info.xml
        <id>bloc:tinyportal</id>
Quote from: tinyportal.mod
<id>
TinyPortal
</id>

Quote from: package-info.xml
        <version>0.4</version>
Quote from: tinyportal.mod
<version>
0.4b
</version>

The version number and id in the .mod file are not used, required, or even checked by the package manager.  Boardmod uses them, but the package manager doesn't.  I don't even recommend bothering with them.  This doesn't, mind you, apply to xml style mods.

-[Unknown]
Title: Re: TinyPortal
Post by: Midgard on February 13, 2005, 05:37:17 AM
I'm using manual install ;)
Title: Re: TinyPortal
Post by: Anguz on February 13, 2005, 06:07:27 AM
Quote from: [Unknown] on February 13, 2005, 05:24:28 AM
The version number and id in the .mod file are not used, required, or even checked by the package manager. Boardmod uses them, but the package manager doesn't. I don't even recommend bothering with them. This doesn't, mind you, apply to xml style mods.

-[Unknown]

Thanks for clarifying it. I didn't know it wasn't required in the Boardmod format as it is in the XML one. I'll probably still make them match for consistency.
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 06:55:35 AM
Thanks Anguz :) - and [Unknown] - I will go over the things you mentioned, especially the comments. I plan to further comment the whole mod properly, and optimize things/functions before the next release, hence the not changing version number. It was the un-install not working that was most important now.

The language files are not complete either, so that will also have to be in.

I am glad you like this mod. Codewise I have a lot to learn yet, so if you have immediate concerns about the code itself, please air them! :) Already I see some queries could be left out in certain situations etc. It should execute fast and efficient, not becoming some slow monster of an addon...(..)
Title: Re: TinyPortal
Post by: Midgard on February 13, 2005, 06:57:33 AM
What time is update this mod?

Bloc, men, did you make a roster page?
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 06:59:59 AM
Quote from: SOTG Marine on February 13, 2005, 05:19:44 AM
I'm using the Helios Theme, .. and I think that's my problem. I see everything you guys are talking about on the regular theme. How do I get it to work on the Helios theme?


I will convert all my themes ( well, almost..) to alternative versions for use in TinyPortal. Mainly its just adding some images, and changing index.template.php. So then you can use that version of Helios instead.

But if you already have Helios modifiled, just send me the index.template.php file and I will insert the code for you.
Title: Re: TinyPortal
Post by: RGSMDNR on February 13, 2005, 11:17:53 AM
25. Execute Modification ./Themes/default/index.template.php Failure

???
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 11:42:19 AM
It will need an unmodified index.template file.
Title: Re: TinyPortal
Post by: Midgard on February 13, 2005, 11:43:25 AM
I want again a roster/leads page
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 11:49:55 AM
You could just use the article system for that...isn't it just a overview of some sort? Or does it pull data from the database? In that case its a bit different...but I am not making something especially for that, I am sorry.
Title: Re: TinyPortal
Post by: Midgard on February 13, 2005, 11:51:57 AM
Okay. np. I'll try it.
Title: Re: TinyPortal
Post by: maufonseca on February 13, 2005, 11:57:10 AM
I got an idea..... I was requesting this mod, but I think it can fit TinyPortal......... Something like the mod page in this site, where members can submit their reviews of something (I have a Gaming site, and I think it can be useful) and people can commet on it and rate it  :D
Title: Re: TinyPortal
Post by: codenaught on February 13, 2005, 12:24:39 PM
Okay, so I really like this Portal but I have a few things that I think would make it better.

More options with the collapse/expand of the left and right sides of the portal
Options such as for the admin to select if they want to have the left side collapsed by default on the forum and also an option for it to be collapsed by default on the portal. Same goes for the right side.

So it could look something like this:

Use left bar: Yes/No
Expand left bar by default on forum: Yes/No
Expand left bar by default on portal: Yes/No

The reason I want this, is because I would like for the right side to be expanded by default on the portal index but collapsed by default when viewing the forum.

Also I noticed that the theme changer for the portal doesn't keep the changed theme with it. So if I changed my theme to something else using the theme changer on the portal, once I log back in it will be showing the theme I was using before I changed the theme using the theme changer from the portal.

And also the Block permissions system doesn't seem to really work right. If I make a block appear only to a group I am in, it will show the block twice and it will still show the block to everyone else still, but the block will only come up once for those people.
Title: Re: TinyPortal
Post by: devinshade on February 13, 2005, 04:26:23 PM
Hi Bloc,

Great work on the mod.  I've been getting these errors though:

Whenever I click on any of the TPAdmin settings, it automatically logs me out.  Hence I can't never get to change any of the settings.  Do you have any ideas how to fix that problem ?  Thanks.

Title: Re: TinyPortal
Post by: [darksteel] on February 13, 2005, 05:08:25 PM
Ready to use in SPANISH language :P

http://www.simplemachines.org/community/index.php?topic=27611.msg213893#msg213893

By me :P
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 05:32:59 PM
Quote from: maufonseca on February 13, 2005, 11:57:10 AM
I got an idea..... I was requesting this mod, but I think it can fit TinyPortal......... Something like the mod page in this site, where members can submit their reviews of something (I have a Gaming site, and I think it can be useful) and people can commet on it and rate it :D

It sounds like a good idea...you mean like a download section that also take comments/reviews?
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 05:40:51 PM
Quote from: akabugeyes on February 13, 2005, 12:24:39 PM
Okay, so I really like this Portal but I have a few things that I think would make it better.

More options with the collapse/expand of the left and right sides of the portal
Options such as for the admin to select if they want to have the left side collapsed by default on the forum and also an option for it to be collapsed by default on the portal. Same goes for the right side.

So it could look something like this:

Use left bar: Yes/No
Expand left bar by default on forum: Yes/No
Expand left bar by default on portal: Yes/No

The reason I want this, is because I would like for the right side to be expanded by default on the portal index but collapsed by default when viewing the forum.

Also I noticed that the theme changer for the portal doesn't keep the changed theme with it. So if I changed my theme to something else using the theme changer on the portal, once I log back in it will be showing the theme I was using before I changed the theme using the theme changer from the portal.

And also the Block permissions system doesn't seem to really work right. If I make a block appear only to a group I am in, it will show the block twice and it will still show the block to everyone else still, but the block will only come up once for those people.

- Yes, the options of pre-collapsed  when viewing the forum is something I will add. Good suggestion.
- The permissions of blocks I have to check upon further.
- the theme changer....is more of a "try-out" changer, it does not render the change permanent. But I can make it try-out for guests and permanent for members. That would be logical.

Thanks for the feedback.  :)
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 05:49:24 PM
Quote from: devinshade on February 13, 2005, 04:26:23 PM
Hi Bloc,

Great work on the mod. I've been getting these errors though:

Whenever I click on any of the TPAdmin settings, it automatically logs me out. Hence I can't never get to change any of the settings. Do you have any ideas how to fix that problem ? Thanks.



That is mysterious...I am not sure what can cause it.

Do you get any error messages at the same time? What about the error log in SMF - do that show any errors reported around the time you try to change settings?
Title: Re: TinyPortal
Post by: bloc on February 13, 2005, 06:15:31 PM
Quote from: [darksteel] on February 13, 2005, 05:08:25 PM
Ready to use in SPANISH language :P

http://www.simplemachines.org/community/index.php?topic=27611.msg213893#msg213893

By me :P

Great! I will further put all the text strings into the language files, so any translation help is welcome.
Title: Re: TinyPortal
Post by: maufonseca on February 13, 2005, 07:08:19 PM
Quote from: Bloc on February 13, 2005, 05:32:59 PM
Quote from: maufonseca on February 13, 2005, 11:57:10 AM
I got an idea..... I was requesting this mod, but I think it can fit TinyPortal......... Something like the mod page in this site, where members can submit their reviews of something (I have a Gaming site, and I think it can be useful) and people can commet on it and rate it :D

It sounds like a good idea...you mean like a download section that also take comments/reviews?
Yeah, I dont know if you have seen it, but something like the "News" section in Php-Nuke, that there are categories, and each one have a diferent icon
Title: Re: TinyPortal
Post by: trenchteam on February 14, 2005, 06:14:50 AM
Quote from: OIDanTheManIO on February 12, 2005, 12:53:04 PM
Quote from: Bloc on February 12, 2005, 12:00:21 PM
Quote from: OIDanTheManIO on February 12, 2005, 10:11:47 AM
I am extrememely frustrated right about now. I installed the mod and hate it, so I try to uninstall it, that doesn't work. Then I try deleting the files, THAT works but the stuff on the index page is STILL THERE! HOW DO I REMOVE THIS THING PLEASE!

-Dan The Man
Try to replace with the original Load.php, Index.template.php and index.php, those files are modified by the mod.

If you have files in the root folder named  index.bak, load.bak and index.template.bak, those are YOUR original files and could just be renamed to php and put in again:

- load.bak => rename to Load.php - put in Sources folder
- index.bak => rename to index.php - put in forum root folder
- index.template.bak => rename to index.template.php - put in themes/default folder.

I will check into why it wont un-install properly.

Great, now my forums are F**KED UP!

www.closecombatsquad.com

-Dan The Man

Its BETA.  Never use it on a real site unless your not worried about fuk ups.  Bloc is doing a great job! Thanks man for this option. I myself am still in the hunt for a portal to fit all my needs. thanks again!
Title: Re: TinyPortal
Post by: Midgard on February 14, 2005, 06:22:10 AM
Turkish Translations:

TPortal.english.php:

<?php
// Version: 1.0 ; TPortal

$txt['tp-by'] = 'by';
$txt['tp-readmore'] = 'Devamı...';
$txt['tp-comments'] = 'Yorumlar';
$txt['tp-nonews'] = 'Yeni haber yok';
$txt['tp-changetheme'] = 'Değiştir';

?>



TPortalAdmin.english.php:

<?php
// Version: 1.0 ; TPortalAdmin

$txt['tp-by'] = 'Gönderen';
$txt['tp-adminonly'] = 'Bu bölüme erisiminiz yok. Sadece yöneticiler bu bölüme girebilir.';
$txt['tp-generalsettings'] = 'Genel Ayarlar';
$txt['tp-shoutboxsettings'] = 'Ses Kutuus';
$txt['tp-shoutboxheight'] = 'Ses kutusunun genisligi';
$txt['tp-shoutboxlimit'] = 'Ses kutusunun limiti:';
$txt['tp-settings'] = 'Ayarlar';
$txt['tp-editblocks'] = 'Bloklari Düzenle';
$txt['tp-editarticles'] = 'Maddeleri Düzenle';
$txt['tp-editshoutbox'] = 'Ses Kutusunu Düzenle';
$txt['tp-shoutboxitems'] = 'Son gönderileni sil/düzenle:';
$txt['tp-fixedwidth'] = 'Genisligi ayarla';
$txt['tp-fixedwidth2'] = '( piksel olarak - 100% icin width 0 for olmali )';

?>

Title: Re: TinyPortal
Post by: bloc on February 14, 2005, 06:45:07 AM
Thanks, Midgard..I may need more translations for the next release. :) Not all strings were translated, just some to get the system started.
Title: Re: TinyPortal
Post by: TarantinoArchives on February 14, 2005, 12:13:07 PM
this mod looks very nice. i think it has the potential to become one of THE smf-powered CMS/portal systems out there.  my suggestion would be the integration of a wide range of already great other mods into this.... just a thought.

keep up the great work
Title: Re: TinyPortal
Post by: bloc on February 14, 2005, 01:17:15 PM
Thanks. :)
Title: Re: TinyPortal
Post by: sportman3333333 on February 14, 2005, 05:08:37 PM
i have 2 errors

8: Undefined index: mystart
File: /home/sportman/public_html/smf/Themes/default/TPortalBlocks.template.php (eval?)
Line: 15
8: Undefined index: mystart
File: /home/sportman/public_html/smf/Themes/default/TPortalBlocks.template.php (eval?)
Line: 62

These errors are filling up my error log. Can you fix them or should i just reinstall it
Title: Re: TinyPortal
Post by: bloc on February 14, 2005, 05:44:23 PM
They should not appear in the latest files..so yes, try to re-install. Just overwrite with the php files from the archive .
Title: Re: TinyPortal
Post by: Anguz on February 14, 2005, 07:49:36 PM
Yo, Bloc.

I gave a quick look at one of the files, TPortalBlocks.template.php, and found something that could be optimized a bit. I didn't check the other functions, but will later if you want.

It's about the TPortal_leftbar() and TPortal_rightbar() functions. They are the same, except for the side, so I put them together in one. Just specify left/right in the call.

I didn't test it, though, so I leave that to you. HIH.


// TPortal side bar, left or right.
function TPortal_sideBar($side)
{
global $context;

foreach ($context['TPortal'][$side . 'block']['blocks'] as $block)
{
$theme = $block['frame'] == 'theme';
echo '<div', ($theme ? ' class="tborder"' : ''), ' style="margin-bottom: 5px;">';
if ($theme || $block['frame'] == 'title')
echo '<div class="titlebg" style="padding: 4px; font-weight: bold;">', $block['title'], '</div>';
echo '<div', ($theme ? ' class="windowbg"' : ''), ' style="padding: 4px;">';

$func = 'TPortal_' . $block['type'];
if (function_exists($func))
$func();
else
echo doUBBC($block['body']);

echo '</div></div>';
}
}
Title: Re: TinyPortal
Post by: bloc on February 14, 2005, 08:30:21 PM
Thanks. :) That is one of the things I meant with optimizing..I will test it and use it.
Title: Re: TinyPortal
Post by: sportman3333333 on February 15, 2005, 02:57:51 PM
thanks, i reinstalled it under 1.0.2 and it works fine
Title: Re: TinyPortal
Post by: Anguz on February 15, 2005, 09:44:02 PM
Bloc, I changed the foreach with a for, since it will probably be a tiny bit faster, so why not? :P


// TPortal side bar, left or right.
function TPortal_sideBar($side)
{
global $context;

for ($i = 0, $n = count($context['TPortal'][$side . 'block']['blocks']); $i < $n; $i += 1)
{
$block =& $context['TPortal'][$side . 'block']['blocks'][$i];
$theme = $block['frame'] == 'theme';

echo '<div', ($theme ? ' class="tborder"' : ''), ' style="margin-bottom: 5px;">';
if ($theme || $block['frame'] == 'title')
echo '<div class="titlebg" style="padding: 4px; font-weight: bold;">', $block['title'], '</div>';
echo '<div', ($theme ? ' class="windowbg"' : ''), ' style="padding: 4px;">';

$func = 'TPortal_' . $block['type'];
if (function_exists($func))
$func();
else
echo doUBBC($block['body']);

echo '</div></div>';
}
}


BTW, did it work? :)
Title: Re: TinyPortal
Post by: Midgard on February 16, 2005, 03:13:05 AM
Yeah worked it.
Title: Re: TinyPortal
Post by: bloc on February 16, 2005, 04:03:39 AM
Yes, worked like a charm. :)
Title: Re: TinyPortal
Post by: Midgard on February 16, 2005, 04:06:14 AM
Bloc I LOVE YOU! :) :) :D :D :D ;)

This mod excellent/super/great/amazing and more

Thank you very very much
Title: Re: TinyPortal
Post by: Anguz on February 16, 2005, 04:23:48 AM
Quote from: Bloc on February 16, 2005, 04:03:39 AM
Yes, worked like a charm. :)

I'm glad. :D
Title: Re: TinyPortal
Post by: NightOwl on February 16, 2005, 04:48:01 AM
Hi Bloc,

I've been using your nice work (Helio theme, with some minor modifications) as the main theme. Seems, there are problems with it working with TinyPortal. It will much appreciated if you can give me a step by step installation guide with both the theme and TPt.

Thanks alots.

minor modifications:

Title: Re: TinyPortal
Post by: bloc on February 16, 2005, 05:53:08 AM
The chat mod...i could help with that, but direct support for it in TinyPortal is not currently planned. As for blocking news from guests I am not sure if it already is supported in SMF? Have to check that.
Title: Re: TinyPortal
Post by: bloc on February 16, 2005, 06:19:02 AM
Quote from: Anguz on February 16, 2005, 04:23:48 AM
Quote from: Bloc on February 16, 2005, 04:03:39 AM
Yes, worked like a charm. :)

I'm glad. :D

Like the coding style there too. :) Shows I have a lot to learn yet. But slowly getting there.. ;D
Title: Re: TinyPortal
Post by: NightOwl on February 16, 2005, 08:06:35 AM
Quote from: Bloc on February 16, 2005, 05:53:08 AM
As for blocking news from guests I am not sure if it already is supported in SMF? Have to check that.

Block guest viewing news can be done with the red code added in template:

if (!empty($settings['enable_news']) && ($context['user']['is_logged']))
               echo '<td width="55%" style="padding-right: 10px;" width="50%" align="left" valign="bottom">'. $topbox.'<div style="padding: 6px; text-align: center;">'.$context['random_news_line'].'</div>'.$botbox.'</td>';

I've have edit things manually cause my site is member-based, something like game clans site. So we don't want our enemies know what we are doing in the News.

The chatroom indicator are also modified with the above blocking solution too. Since the TinyPortal will have full control of the template, I think that will be trouble for my admins to do alternations  afterwards. Since I have to make blocks viewable for login user only.
Title: Re: TinyPortal
Post by: Adrian Malacoda on February 16, 2005, 10:34:22 AM
I enjoy using the TinyPortal mod, but I found something that might be wrong: When I use Internet Explorer to add or edit articles the article ALWAYS reads 'Type content here' or whatever. I think it might be a problem with the Aplos editor.

Second, whenever I create an article which uses an intro, clicking 'Read more' on the article page won't display the rest of the article.

But really, I like the mod. Keep up teh good work!
Title: Re: TinyPortal
Post by: bloc on February 16, 2005, 02:30:49 PM
Yes, the "readmore" bug I am aware of. It will be gone in the next release. As for IE doing something wrong, I have to check further. I might add option of just using BBC or html in a normal textbox too, in case AplosRTE does not work properly.
Title: Re: TinyPortal
Post by: azuregenesis on February 17, 2005, 03:16:57 AM
hey bloc,

i just wanted to know how to integrate this with your "themis" theme. i would love for this to be in the sidebar instead of a front page :)

thanks :)
Title: Re: TinyPortal
Post by: bloc on February 17, 2005, 03:56:55 AM
I will shortly post both Themis and other of my themes converted for use in this portal.

It will however be with a frontpage, since that is essentially what this mod is about. ;) If there are more people wanting that option, I might do it, but right now I hesitate to just put it in.
Title: Re: TinyPortal
Post by: Tanks on February 17, 2005, 03:59:00 AM
Quote from: Bloc on February 13, 2005, 11:42:19 AM
It will need an unmodified index.template file.

I get the same error. If i install a unmodified index.template will my other installed mods stop working ??

I really want this mod, but im so scared my board will stop working  :o

my board is on www.greatwildlands.com

These are the mods i have on my forum:

Actions in Profile Display   
Banner Manager   
Location Mod - Who Flags   
Location Mod   
G&S_Sticky   
Location Mod - Additional Maps   
Integrated Chat   Message
Icon Manager   
OnLine Users Today   
Lots_o_Smileys   
Regular Groups   
SMF 1.0.1 Update Package   
TinyPortal <-- not installed, only uploaded

BTW: i only have the default theme installed.  :D

Title: Re: TinyPortal
Post by: Tanks on February 17, 2005, 09:33:23 AM
Well i finally got this mod installed.  :D Everything is running smoothly, but my banners are gone. Any idea how to fix this ??  ::)
Title: Re: TinyPortal
Post by: cx_one on February 17, 2005, 05:54:01 PM
First I thank you for the mod, I'm loving it.

I think I found a way to make the mod faster.
There are a lot of   IF ..... ELSEIF ..... ELSE in the source.
I started to replace this with SWITCH - CASE.

If you want, I can send you the modified source when I've completed it.

Greets cx_one

Title: Re: TinyPortal
Post by: bloc on February 17, 2005, 06:47:39 PM
Yes, you could send that when you are done if you like. I need to examine it first before possibly using it.
Title: Re: TinyPortal
Post by: Midgard on February 18, 2005, 04:43:03 AM
Need a banner block for my banner mod. For Powered-Banners
Title: Re: TinyPortal
Post by: bloc on February 18, 2005, 06:25:25 AM
I will add a blocktype that can do php...but I won't set up built-in block for just that.
Title: Re: TinyPortal
Post by: bloc on February 18, 2005, 06:26:51 AM
Quote from: Knat on February 17, 2005, 09:33:23 AM
Well i finally got this mod installed. :D Everything is running smoothly, but my banners are gone. Any idea how to fix this ?? ::)

It depends on how the banners were inserted in the code in the first place....was it manually..or through a option of a theme/mod?
Title: Re: TinyPortal
Post by: Tanks on February 18, 2005, 07:16:50 AM
Quote from: Bloc on February 18, 2005, 06:26:51 AM
Quote from: Knat on February 17, 2005, 09:33:23 AM
Well i finally got this mod installed. :D Everything is running smoothly, but my banners are gone. Any idea how to fix this ?? ::)

It depends on how the banners were inserted in the code in the first place....was it manually..or through a option of a theme/mod?

I used the banner-mod, should i uninstall the banner mod, and then install it again to add all the banners ??
Title: Re: TinyPortal
Post by: bloc on February 18, 2005, 07:45:41 AM
No, don't uninstall it...but you need to trace back what was done in index.template.php and just apply the same again. I will have a quick look at what this mod does.
Title: Re: TinyPortal
Post by: bloc on February 18, 2005, 07:55:06 AM
ok, after looking at that, you need to check whether these 2 lines are present in index.template.php file:

- showBanner($zone = 'top');
- showBanner($zone = 'bottom');

If they are not....

Look at the mod and see what it does:
<edit file>
$themedir/index.template.php
</edit file>

<search for>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}
</search for>

<replace>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
showBanner($zone = 'top');
}
</replace>

<search for>
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
</search for>

<replace>
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

showBanner($zone = 'bottom');
</replace>


Search for the code blocks and then insert those mod-banner lines. Then it should work, because the mod does not modify anything that Tinyportal touches.
Title: Re: TinyPortal
Post by: kerux4 on February 18, 2005, 10:55:53 AM
ok, when I try to install this, I get the following

2: copy(index.php~): failed to open stream: Permission denied

How do i fix this??
Title: Re: TinyPortal
Post by: kerux4 on February 18, 2005, 11:02:46 AM
ok, now I am getting this

Table 'htfeozng_smf1.tportal_settings' doesn't exist
File: /home/htfeozng/public_html/forum1/Sources/TPortal.php
Line: 40
Title: Re: TinyPortal
Post by: bloc on February 18, 2005, 11:17:42 AM
Quote from: kerux4 on February 18, 2005, 10:55:53 AM
ok, when I try to install this, I get the following

2: copy(index.php~): failed to open stream: Permission denied

How do i fix this??
Quote from: kerux4 on February 18, 2005, 11:02:46 AM
ok, now I am getting this

Table 'htfeozng_smf1.tportal_settings' doesn't exist
File: /home/htfeozng/public_html/forum1/Sources/TPortal.php
Line: 40
You are using a bit older version of it. Please use the latest archive, that don't create these errors. Also note that it IS beta still, so please do not use it without at least testing it locally - or with a non-important website.

Things WILL change, although I aim to preserve most of what is already done. 
Title: Re: TinyPortal
Post by: kerux4 on February 18, 2005, 01:46:04 PM
Well, I did the smart thing and got my host to install it for me. I must say it is pretty cool.
Title: Re: TinyPortal
Post by: Azraeliitti on February 18, 2005, 02:36:37 PM
I have tested it for three days and noticed the following flaws and bugs:

More to come... :P
Title: Re: TinyPortal
Post by: bloc on February 18, 2005, 06:40:42 PM
Quote from: Azraeliitti on February 18, 2005, 02:36:37 PM
I have tested it for three days and noticed the following flaws and bugs:

  • If you have articles divided for multiple pages, only the articles in the first page show up
  • Writer of the article won't show up
  • If you add tables with WYSIWYG- editor in HTML mode, it won't show them up right
  • Also, if you copy+paste the code to WYSIWYG- editor in HTML mode, the code rarely works right.
  • You should be able to set permissions who can add articles and stuff.
  • Read more- links don't work, so intro- option is useless for now.
  • If you set permissions for table for some membergroups, they still show up for everyone...
  • ...and they show up to the membergroups allowed to view it at least twice.

More to come... :P

Thanks for the feedback. :)

Most of the problems I am aware of and are working on. The ones with tables I have to check, but it most likely is something with the WYSIWYG editor. As for adding support for writer and who can see/write it is planned in the next beta.
Title: Re: TinyPortal
Post by: NightOwl on February 19, 2005, 05:15:44 AM
Quote from: Bloc on February 18, 2005, 06:40:42 PM
Most of the problems I am aware of and are working on. The ones with tables I have to check, but it most likely is something with the WYSIWYG editor. As for adding support for writer and who can see/write it is planned in the next beta.

Glad to hear that. Cause I'm also waiting for the viewing permission of blocks too.
Title: Re: TinyPortal
Post by: Tanks on February 19, 2005, 06:39:26 AM
My banners are working again :-) Thanks Bloc
Title: Re: TinyPortal
Post by: maufonseca on February 19, 2005, 10:08:37 AM
You will make a blank page creator right?
Title: Re: TinyPortal
Post by: bloc on February 19, 2005, 01:05:33 PM
A single page on frontpage you mean? If so, yes.
Title: Re: TinyPortal
Post by: _complex on February 19, 2005, 01:53:39 PM
Dont know if i thanked u yet.. but thx for this.. nice mod..
Title: Re: TinyPortal
Post by: thefool1972 on February 21, 2005, 07:42:26 AM
Hullo,

Was just curious, what would it take to have an option in an article to make it stay at the top?  While I can just date it way ahead, this is only a workaround.

Also, allowing sticky posts to stay at the top of the news would be good too.

Thanks,
John Bowden 
Title: Re: TinyPortal
Post by: bloc on February 21, 2005, 07:53:32 AM
You can already make an article "on top " regardless of date - just use the option of  "set as featured". It will then come on top of the first page.

Sticky posts from the news on top too..? Not planned , but I can check how difficult it might be. The news from forum is taken from the SSI.php function, so if that don't collect information about stickiness, it would mean another call to the database just for that then...but I will check further first.
Title: Re: TinyPortal
Post by: thefool1972 on February 21, 2005, 02:12:33 PM
Oh good!  When I didn't see it as a checkbox in the message creation, I didn't notice it...

Thanks!
Title: Re: TinyPortal
Post by: mennou on February 22, 2005, 12:26:27 PM
How can i make the portal work with these themes?
Theme Settings
SMF Default Theme 
Classic YaBB SE Theme   
theme1   
MidLand   
MidMetal   
MidBlue   
xtSMF Theme!   
Iblues Theme   
Hotmail Theme   
red   
Loon Theme - Blue   
MidOrange   
XP Theme!   
curveSMF   
TechHead   
amdred01-rc111   
amdgreen01-rc111   
amdgreen01-english-buttons11   
Season Theme - Autumn dark   
Season Theme - Winter light   
hendrix-exp-v103   
woodland10   
Apollo   
Mercury   
Themis   
Juno   
SMF Black Theme   
Chat Bubbles2
Title: Re: TinyPortal
Post by: bloc on February 22, 2005, 01:34:31 PM
Well, at least some of my themes are already converted : Helios, Mercury and Themis. And of course SMF default theme..that one is the the one that gets modded..! For downloads of my converted ones , look here :
http://www.bloczone.net/smf/index.php?board=24.0

As for the others they will have to be done manually, but its only index.template.php in them that needs some modifications. If the theme authors agreed on that, i could help out on this...but I won't start mass-converting them as such.

I will make a tutorial on how to convert other themes though. 
Title: Re: TinyPortal
Post by: riekl on February 22, 2005, 01:48:58 PM
I love this mod .. 2 questions ..

#1) The front page has the no articles thing .. however .. in the tpadmin i have it set to show the posts from my announcements forum .. yet nothing i post in the announcements forum appears on this front page ??

#2) On your site you have a block showing the most recent threads .. i desperatly need that :)  have code for that ?
Title: Re: TinyPortal
Post by: peterstannard on February 22, 2005, 02:38:31 PM
Quote from: riekl on February 22, 2005, 01:48:58 PM
I love this mod .. 2 questions ..

#1) The front page has the no articles thing .. however .. in the tpadmin i have it set to show the posts from my announcements forum .. yet nothing i post in the announcements forum appears on this front page ??

#2) On your site you have a block showing the most recent threads .. i desperatly need that :)  have code for that ?

1) maybe you have turned it off?

2) use ssi (www.yourforums.com/forum/ssi_examples.php
Title: Re: TinyPortal
Post by: riekl on February 22, 2005, 03:08:50 PM
#1)

Found out the problem .. apparently the forum you use must be open to GUEST for the tinyportal to read it ? :(

#2)

Thanks for the link .. i'm still clueless about how to actually use this i'm not a web designer ..
Title: Re: TinyPortal
Post by: verbam on February 22, 2005, 04:20:45 PM
I have the same problem, you can NOT see any topic in TPortal UNLESS you give to guests permission to see THE TOPICS BUT...

Configure it like this:

Forum Configuration --> Edit Features and Options --> Allow guests to browse the forum  = NO
Manage Permissions  --> Permissions by Board (your Board name) --> Unregistered Guests = YES


Gives the result that your MEMBERS will see the Topics in TPortal (but you have to login to see something)

(Temporary you can use these settings ???)

Title: Re: TinyPortal
Post by: bloc on February 22, 2005, 04:49:13 PM
Of course guest can't see the topics if you don't allow guest to see them inside the forum! It would be not very logical to show them on portal's frontpage - and then not show them once in.

This is the beauty of SSI.php, which the portal use for getting the news in the first palce - it takes into account what forums members/non-members actually can see. ;)
Title: Re: TinyPortal
Post by: bloc on February 22, 2005, 04:54:53 PM
Quote from: riekl on February 22, 2005, 01:48:58 PM
I love this mod .. 2 questions ..

#1) The front page has the no articles thing .. however .. in the tpadmin i have it set to show the posts from my announcements forum .. yet nothing i post in the announcements forum appears on this front page ??

#2) On your site you have a block showing the most recent threads .. i desperatly need that :) have code for that ?

1. As others have said, check that all members/non-members actually can see them through the forum.

2. The recent topics block on BlocZone is indeed using SSI.php, and that block will be built-in upon the next beta release.
Title: Re: TinyPortal
Post by: mennou on February 22, 2005, 05:52:45 PM
it'd  be nice  of you ....most of the mods  only works with the default  smf theme.. it'd be nice if  u can help me out..


Quote from: Bloc on February 22, 2005, 01:34:31 PM
Well, at least some of my themes are already converted : Helios, Mercury and Themis. And of course SMF default theme..that one is the the one that gets modded..! For downloads of my converted ones , look here :
http://www.bloczone.net/smf/index.php?board=24.0

As for the others they will have to be done manually, but its only index.template.php in them that needs some modifications. If the theme authors agreed on that, i could help out on this...but I won't start mass-converting them as such.

I will make a tutorial on how to convert other themes though. 
Title: Re: TinyPortal
Post by: riekl on February 22, 2005, 06:12:45 PM
Bloc,

There is a problem with this :)  Every other portal I have seen uses the USERS permissions to access those threads not guest.  With your portal unless i give guest access to the forum, no one, not even administrators see anything at all on the front page.

Can't you make the portal use the users permissions so that if a guest is on sure they see a blank page, but if a user with access is logged on they see the threads .. thats how i've always seen it done ?
Title: Re: TinyPortal
Post by: bloc on February 22, 2005, 07:48:45 PM
hm..I just noticed this too..I have to get back to you when I have found out what it can be.
Title: Re: TinyPortal
Post by: bloc on February 22, 2005, 08:16:44 PM
Ok, I have looked at the way SSi.php does things - which the boardnews use - and it seems that it just checks if the board is allowed for guests. If not, it don't show anything.

I may have to supply a slightly modified function instead of the SSi.php one, which I was hoping to avoid. But current behavior is not what I want, the guest may not see anything, but members should. If the board are just allowed for certain membergroups, that too should be reflected.
Title: Re: TinyPortal
Post by: verbam on February 23, 2005, 05:04:32 AM
Would it be in the next upgrade from TPortal ?

This was the reason why i configured my board as discribed before:

Forum Configuration --> Edit Features and Options --> Allow guests to browse the forum  = NO
Manage Permissions  --> Permissions by Board (your Board name) --> Unregistered Guests = YES

In this way my MEMBERS can see the topics in the PORTAL and not the guest.
The only negative thing about this, is that you HAVE to login to see something from the board.

In NORMAL situation it has to be:
Forum Configuration --> Edit Features and Options --> Allow guests to browse the forum  = YES
Manage Permissions  --> Permissions by Board (your Board name) --> Unregistered Guests = NO

Then guest can see the PORTAL & his news.

CU
Title: Re: TinyPortal
Post by: bloc on February 23, 2005, 05:40:54 AM
Yes, this is important, so I will try have this working for the next release.
Title: Re: TinyPortal
Post by: mennou on February 23, 2005, 02:44:04 PM
 8)  can you  add a small  poll (voting) on the next version??
Title: Re: TinyPortal
Post by: bloc on February 23, 2005, 05:25:05 PM
One from the forum you mean?
Title: Re: TinyPortal
Post by: mennou on February 23, 2005, 06:46:08 PM
yeah but it has to be on ur portal..    here's an example http://mkportal.it/   roll  down  u will see the poll.. it'd be awsome.
Title: Re: TinyPortal
Post by: wise on February 24, 2005, 06:33:45 AM
just installed the portal. It's adjusted my frontpage - but I dont see any tpadmin settings at all?? How do I edit the portal??!!
Title: Re: TinyPortal
Post by: NightOwl on February 24, 2005, 07:52:16 AM
Quote from: mennou on February 23, 2005, 02:44:04 PM
8)  can you  add a small  poll (voting) on the next version??

Once the blocks can runs php inside, You can put anything to it.
Title: Re: TinyPortal
Post by: Adrian Malacoda on February 24, 2005, 10:59:20 PM
Well I've fixed the 'read more' bug, you just have to change the PHP a little bit:

This was a modification I made to the TPortal.template.php file in my theme directory.
Quote// if featured..do something to the subject?

                    echo '</div><div style="padding: 8px; padding-top: 0px;" class="windowbg2"><div style="padding-bottom: 4px; vertical-align: bottom;" class="smalltext" style="color: #0000f0;"> '.$news['time'].' '.$txt['tp-by'].' <b>
                                                  <a href="'.$news['poster']['href'].'">'.$news['poster']['name'].'</a></b></div>';
         if(isset($_GET['page']))
         {
            $news['link'] = 0;
         }

                  if($news['icon']!='noicon'){
                              echo '<span class="normaltext">'.$news['body'].'</span>';
NOTE: The boldface text is my addition. The rest are already in the PHP file.
Title: Re: TinyPortal
Post by: bloc on February 25, 2005, 04:34:59 AM
Thanks, but I have already re-written that whole block of code somewhat, to make it work like intended. The fetching/checking of $_GET values is done in the Sources/TPortal.php, not in the template - as it should.
Title: Re: TinyPortal
Post by: webhigh on February 25, 2005, 06:48:27 AM
Just wanted to chime in and say that because of your Tiny Portal I am again attempting to switch from phpBB to SMF. Still don't like the way permissions are set (way too confusing - spent almost 6 hours yesterday getting them to work the way I need) but the TP allows me to do things I need with customers of our reseller - most noteably show ads for the vendors just to their clients.

So thanks for a great job well done on this mod - when do you plan a update release ? And does anyone know where to get a copy of the classic yaBBse(?)  theme that works the link on the authors site does not work.

Thanks again
Title: Re: TinyPortal
Post by: bloc on February 25, 2005, 06:58:06 AM
Thank you. I hopefully will update it within the next days.
Title: Re: TinyPortal
Post by: mennou on February 25, 2005, 07:48:10 PM
bloc beside the portal mod what other mods you have ??
Title: Re: TinyPortal
Post by: bloc on February 25, 2005, 08:04:17 PM
None. I mainly do themes. ;D
Title: Re: TinyPortal
Post by: mennou on February 25, 2005, 08:10:03 PM
so what u plan to add on the next version??
Title: Re: TinyPortal
Post by: verbam on February 26, 2005, 06:13:09 AM
I am here again, but maybe it is important to know.
Conserning:
QuoteForum Configuration --> Edit Features and Options --> Allow guests to browse the forum  = NO
Manage Permissions  --> Permissions by Board (your Board name) --> Unregistered Guests = YES

In this way my MEMBERS can see the topics in the PORTAL and not the guest.
The only negative thing about this, is that you HAVE to login to see something from the board.

In NORMAL situation it has to be:
Forum Configuration --> Edit Features and Options --> Allow guests to browse the forum  = YES
Manage Permissions  --> Permissions by Board (your Board name) --> Unregistered Guests = NO

There is some future in SMF, where it goes wrong, i mean next:

1) give guest permission to see some topics
2) in this topics i have add an attached document
3) give the guest NO permission to download these attached document

if you go to my site everything is going ok, means you can actualy see the topics as guest (& pitty: also the attached document).
if i click (as guest) on the attached item, SMF ask you to login and login and login and ........

for this reason i have uninstall temporary the TPortal and the results seems to be the same.

as long this error will be there (i have send allready a note to SMF) the portal can NOT react on a proper way.

Note:
Many people are thinking: why let them see the topics & not the attached documents?
1) because SMF haves this settings to do it
2) because the topic contains explanation about the document who is attached

I hope i am not disturbing you too much with this kind off info.
(sorry for my bad english)
CU
Title: Re: TinyPortal
Post by: bloc on February 26, 2005, 06:25:18 AM
No, its great you share this. I have not been able to look at this problem yet - just on my "bug"- list , so if it is a issue with SMF, it will of course be present in TinyPortal too...

Let me know what you find out eventually - if you have the time. :)
Title: Re: TinyPortal
Post by: verbam on February 26, 2005, 08:20:29 AM
Thanks!  :)

I have taking some time to make a PDF document with the settings and results off these.
Let's hope you will get something out off it.

Here is the document: http://verbam.sytes.net/xtra/SMC_ERROR_20050226.pdf

Little correction from the document: My opinion: "It goes wrong there where SMF shows the attachment !"

Let me know something!

CU
(http://verbam.sytes.net/xtra/happy.gif)
Title: Re: TinyPortal
Post by: bloc on February 26, 2005, 09:18:26 AM
ah..I understand some more now...the behaviour of returning to the frontpage is default in SMF. As TinyPortal patches the index.php to go to TP frontpage instead, it will naturally go there of course. If TP is not installed it would just go to the boardindex.

I think [Unknown] has written something about why it is like that. If I remember correctly it was more problems with it staying at the page, than just returning to index.php.
Title: Re: TinyPortal
Post by: verbam on February 26, 2005, 12:32:46 PM
Yes, BUT

The thing what i try to tell, exept it goes wrong at the portal, the greatest error comes from SMF.
SMF shows the download links in the forum to GUESTS !
example how it goes wright:    index.php?action=recent   gives the correct pages (without the download link)

Maybe SMF can considder to check this.

Thanks for all your replies !!!!
Title: Re: TinyPortal
Post by: [Unknown] on February 26, 2005, 05:17:02 PM
Obviously the cookie isn't setting properly, or you have cookies disabled and the session isn't carrying through.

It is meant to show attachments to guests, but not allow them to download them.  This is as intended.

-[Unknown]
Title: Re: TinyPortal
Post by: verbam on February 27, 2005, 11:59:30 AM
It is meant to show attachments to guests, but not allow them to download them.  This is as intended.

No ! Do NOT showing the attachents at all to the guest (like it is in your recent.php) !
But the forum SHOWS the attachment, while mmy settings are DON'T show it !!!

CU
Title: Re: TinyPortal
Post by: bloc on February 27, 2005, 12:04:24 PM
I think that could be done by just modifying the Display.tempalte a bit. You essentially dont want to show anything about whether there is an attachment or not to guests?

I guess - not having looked at it - it could be put behind a check to see if the user is a member or not.
Title: Re: TinyPortal
Post by: Tanks on March 03, 2005, 03:22:01 PM
Hey Bloc

'Whats the status on version 0.5 ??

I feel like a little kid waiting for christmas  :P

The things i really need so badly to work is:

Permissions and the new posts shown on frontpage.

again i must thank you for this portal, its very great software :-)

Title: Re: TinyPortal
Post by: nanoarray on March 04, 2005, 01:02:13 AM
Thanks, Bloc, for re-directing me here.  I had difficulty finding this thread.  Anyway, I post my question again here:

I notice that after I close the right and left side boxes, they reappear if I click any link.  Is there a way to close the side box permanently when users close them the first time?  It may become annoying for users to close them every time after they click a link.  Any suggestion?
Title: Re: TinyPortal
Post by: bloc on March 04, 2005, 03:23:50 AM
:) They should do that already...but only if you are a member. As a guest they will not remember what they were.
Title: Re: TinyPortal
Post by: _complex on March 05, 2005, 12:39:15 AM
Should I install this version. Or wait for V5 as someone said in this thread earlier... what's the progress of that version.

Or should i just gone ahead and install this version???.. thanks..

complex
Title: Re: TinyPortal
Post by: bloc on March 05, 2005, 02:54:29 AM
I am getting near finishing v0.5beta so you could wait for that. Its going to work fine upgrading from 0.4 though - you could try it if you want.
Title: Re: TinyPortal
Post by: nanoarray on March 05, 2005, 05:06:13 AM
Is there a way to set my forum so that users can choose a language between English and French?
Title: Re: TinyPortal
Post by: fittizle on March 05, 2005, 05:31:45 AM
Quote from: wise on February 24, 2005, 06:33:45 AM
just installed the portal. It's adjusted my frontpage - but I dont see any tpadmin settings at all?? How do I edit the portal??!!

I was wondering the same exact thing.
Title: Re: TinyPortal
Post by: bloc on March 05, 2005, 06:52:44 AM
Quote from: nanoarray on March 05, 2005, 05:06:13 AM
Is there a way to set my forum so that users can choose a language between English and French?
If you mean the whole forum, not just TinyPortal - you need to download french langauge pack, install it into default themes languages folder, and finally choose french in admin section(it will show up when you ahve uploaded it.)

Now - Tinyportal use the same system, but I haven't translated it to french, so you need to copy the TPxxxx.english.php and rename them to TPxxxx.french.php. If you then look into them the texts can be translated.

Currently its not many texts that are not hard-coded, but in future releases this will change.
Title: Re: TinyPortal
Post by: bloc on March 05, 2005, 07:26:27 AM
Quote from: fittizle on March 05, 2005, 05:31:45 AM
Quote from: wise on February 24, 2005, 06:33:45 AM
just installed the portal. It's adjusted my frontpage - but I dont see any tpadmin settings at all?? How do I edit the portal??!!

I was wondering the same exact thing.

Check if this is correct:

1. You are using the default theme, or a converted theme to show the blocks and the extra buttons ( forum and tpadmin)

2. If you are not , you can still access:
Tinyportal admin : index.php?action=tpadmin
Forum frontpage: index.php?action=forum

But I would suggest converting your preferred theme or using a already converted one.
Title: Re: TinyPortal
Post by: nanoarray on March 05, 2005, 02:01:32 PM
I want to put underline in page index links.  How do I do that?  If I change stylesheet, it will change the whole forum, but I just want to underline the page index.
Title: Re: TinyPortal
Post by: bloc on March 05, 2005, 02:31:21 PM
You need to open TPortal.template.php and find this code:
            // show number of pages, don't show 0 pages
            if($pages>0){
              echo '<div style="padding: 5px; text-align: right; padding-right: 50px;">  ';
              echo '<b>Pages</b>: ';
              for($t=0 ; $t<=$pages ; $t++){
                     $s=$t+1;
                     if($t==$whichpage){
                       echo ' <b>['.$s.']</b> ';
                     }
                     else{
                       $what=floor(($t*$context['TPortal']['frontpage_limit']));
                       if($what<0)
                          $what=0;
                       echo ' <a href="' . $scripturl . '?tpstart='. $what .'', (isset($context['TPortal']['mycat']) && $context['TPortal']['mycat']!='') ? ';cat='.$context['TPortal']['mycat'] : '' ,'" /><b>'.$s.'</b></a> ';
                     }
               }
               echo '</div>';
            }
         }


Now, for you to change the "pages" style, I suggest adding a new style to <a href="' . $scripturl . '?tpstart.... like this:
<a style="pagenav" href="' . $scripturl . '?tpstart......

Then in style.css you define that style like :

.pagenav, .pagenav:link, .pagenav:visited
{
        text-decoration: underline;
}

a.pagenav:hover
{
        color: #cc3333;
}
Title: Re: TinyPortal
Post by: fittizle on March 05, 2005, 04:12:46 PM
Quote from: Bloc on February 22, 2005, 01:34:31 PM
Well, at least some of my themes are already converted : Helios, Mercury and Themis. And of course SMF default theme..that one is the the one that gets modded..! For downloads of my converted ones , look here :
http://www.bloczone.net/smf/index.php?board=24.0

As for the others they will have to be done manually, but its only index.template.php in them that needs some modifications. If the theme authors agreed on that, i could help out on this...but I won't start mass-converting them as such.

I will make a tutorial on how to convert other themes though. 

I did exactly what the tinyportal.mod instructed to do for the index.template.php, but I got a parse code error that says the following.

emplate Parse Error!
There was a problem loading the /Themes/Daze_burgandy/index.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.
Title: Re: TinyPortal
Post by: nanoarray on March 05, 2005, 04:40:54 PM
Thanks.  It's a good try, but it doesn't work.  I notice that in MessageIndex.template.php, there is a variable called  $context['page_index'].  It's at the very last line.  Which file contains the definition of that variable?


// Finish off the form - again, if Quick Moderation is being done with checkboxes. (1)
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
echo '
<input type="hidden" name="sc" value="' . $context['session_id'] . '" />
</form>';

echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
<tr>
<td align="left" class="catbg" width="100%">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td nowrap="nowrap" style="font-size: smaller;">
                            <a name="bot"></a><b>', $txt[139], ':</b> ', $context['page_index'], $modSettings['topbottomEnable'] ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_up.gif" alt="' . $txt['topbottom4'] . '" border="0" align="top" />' : $txt['topbottom4']) . '</a>' : '', '
Title: Re: TinyPortal
Post by: bloc on March 05, 2005, 05:24:47 PM
I got the impression you wanted to change something particular for TinyPortal...as it don't use that $context['page_index'], it just mimics its appearance.

That variable is defined in Subs.php i think( without checking) , and if you need styling it, you could do the same there by setting a style in a <span> right before and after the variable.
Title: Re: TinyPortal
Post by: bloc on March 05, 2005, 05:26:32 PM
Quote from: fittizle on March 05, 2005, 04:12:46 PM
Quote from: Bloc on February 22, 2005, 01:34:31 PM
Well, at least some of my themes are already converted : Helios, Mercury and Themis. And of course SMF default theme..that one is the the one that gets modded..! For downloads of my converted ones , look here :
http://www.bloczone.net/smf/index.php?board=24.0

As for the others they will have to be done manually, but its only index.template.php in them that needs some modifications. If the theme authors agreed on that, i could help out on this...but I won't start mass-converting them as such.

I will make a tutorial on how to convert other themes though.

I did exactly what the tinyportal.mod instructed to do for the index.template.php, but I got a parse code error that says the following.

emplate Parse Error!
There was a problem loading the /Themes/Daze_burgandy/index.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.

It's easy to make a small mistake...you probably got a apostrophe wrong somewhere. If you send me the file I can take a look for you.
Title: Re: TinyPortal
Post by: Col on March 08, 2005, 10:17:41 PM
I've just installed this on my evaluation board (looks like I'm coming over to SMF), and this looks to be a very useful mod. I tried to install the chat mod, and it failed. I decided to uninstall the TP mod, but that failed.

.......Scrub that, I was viewing a cached page. The whole forum has crashed:

Warning: main(/home/XXXXXXXX/public_html/smf/Sources/TPortal.php): failed to open stream: No such file or directory in /home/XXXXXXX/public_html/smf/index.php on line 57

Fatal error: main(): Failed opening required '/home/XXXXXXX/public_html/smf/Sources/TPortal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/XXXXXXX/public_html/smf/index.php on line 57

There was a failure with trying to modify the classic template when I tried to install the chat mod. I tried unistall Tiny Portal to see if that would correct the situation, and well, that's when I lost the forum.

Let me know if anyone wants copies of any files. It seems like some kind of install/unistall problem. I'll keep them for a few days, and install a fresh forum to work on instead.
Title: Re: TinyPortal
Post by: sh33zo on March 08, 2005, 11:13:11 PM
Would it be possible to add the possibility to add php scripts to the Blocks?
I have a couple script that would make my site complete and easy to update!
This is exactly what i needed!!
Keep up the good work and if you could add the php script feature it would be perfect!!
Thankz
Sh33zo ;)
Title: Re: TinyPortal
Post by: bloc on March 09, 2005, 05:11:00 AM
Quote from: Col on March 08, 2005, 10:17:41 PM
I've just installed this on my evaluation board (looks like I'm coming over to SMF), and this looks to be a very useful mod. I tried to install the chat mod, and it failed. I decided to uninstall the TP mod, but that failed.

.......Scrub that, I was viewing a cached page. The whole forum has crashed:

Warning: main(/home/XXXXXXXX/public_html/smf/Sources/TPortal.php): failed to open stream: No such file or directory in /home/XXXXXXX/public_html/smf/index.php on line 57

Fatal error: main(): Failed opening required '/home/XXXXXXX/public_html/smf/Sources/TPortal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/XXXXXXX/public_html/smf/index.php on line 57

There was a failure with trying to modify the classic template when I tried to install the chat mod. I tried unistall Tiny Portal to see if that would correct the situation, and well, that's when I lost the forum.

Let me know if anyone wants copies of any files. It seems like some kind of install/unistall problem. I'll keep them for a few days, and install a fresh forum to work on instead.

That error message indicates that TinyPortal is indeed gone..but your classic theme(modified to work with TP) most likely is not changed back( you have to do that manually). Did you try just using the default theme again?
Title: Re: TinyPortal
Post by: bloc on March 09, 2005, 05:14:51 AM
Quote from: sh33zo on March 08, 2005, 11:13:11 PM
Would it be possible to add the possibility to add php scripts to the Blocks?
I have a couple script that would make my site complete and easy to update!
This is exactly what i needed!!
Keep up the good work and if you could add the php script feature it would be perfect!!
Thankz
Sh33zo ;)

This is in the next beta. You can test it too before comitting it, not all php scripts like being inside the forum "workspace".

You will have an option to test the php script in another window - to at least check for obvious errors. And blocks will in the next beta be set to "off" by default. So you get a chance to check before making it visible.
Title: Re: TinyPortal
Post by: Col on March 09, 2005, 05:57:27 AM
Quote from: Bloc on March 09, 2005, 05:11:00 AM
That error message indicates that TinyPortal is indeed gone..but your classic theme(modified to work with TP) most likely is not changed back( you have to do that manually). Did you try just using the default theme again?

How would I do that? There is NO forum. Yes, most of the files (all?) are still there, but I do not have a forum, let alone an admin section to select an alternate theme. :(
Title: Re: TinyPortal
Post by: bloc on March 09, 2005, 07:01:21 AM
Try to upload the original Sources files again, and the index.php in the root folder of forum - thats what causing the failure I think. I may been a little hasty in answering here - thinking the theme caused it. But it seem more clear to me now that TP it NOT completely gone. Hence the suggestion here.

If its your test-server, I would just start anew, especially since you are trying out the chat mod too. Just do one step at a time to check it doesn't break along the way.
Title: Re: TinyPortal
Post by: sh33zo on March 09, 2005, 10:14:03 AM
Quote from: Bloc on March 09, 2005, 05:14:51 AM
Quote from: sh33zo on March 08, 2005, 11:13:11 PM
Would it be possible to add the possibility to add php scripts to the Blocks?
I have a couple script that would make my site complete and easy to update!
This is exactly what i needed!!
Keep up the good work and if you could add the php script feature it would be perfect!!
Thankz
Sh33zo ;)

This is in the next beta. You can test it too before comitting it, not all php scripts like being inside the forum "workspace".

You will have an option to test the php script in another window - to at least check for obvious errors. And blocks will in the next beta be set to "off" by default. So you get a chance to check before making it visible.

Cool!! ;D :)
Any ETA on the next version?
Title: Re: TinyPortal
Post by: Col on March 09, 2005, 11:35:07 AM
Quote from: Bloc on March 09, 2005, 05:14:51 AM
Quote from: sh33zo on March 08, 2005, 11:13:11 PM
Would it be possible to add the possibility to add php scripts to the Blocks?
I have a couple script that would make my site complete and easy to update!
This is exactly what i needed!!
Keep up the good work and if you could add the php script feature it would be perfect!!
Thankz
Sh33zo ;)

This is in the next beta. You can test it too before comitting it, not all php scripts like being inside the forum "workspace".

You will have an option to test the php script in another window - to at least check for obvious errors. And blocks will in the next beta be set to "off" by default. So you get a chance to check before making it visible.

Thanks for your reply Bloc.

Being completely new to SMF (I have a yabb forum for the moment), you can immagine that it was a little disconcerting to see my evaluation SMF forum go belly up within hours. - I was hoping to find out why?

I've set up another forum anyway, and I've installed the same mods. It's a bit hard to get your head arround why you can get failure reports, but then proceed, and it installs. (I had set the file that looked as tough it would fail to 777). To be frank, I find this forum software a bit confusing, but it promises so much, I'm sticking with it.

I was surprised to find that the portal has a shoutbpox with it. - Is this the same as the 'ultimate Shoutbox'? - I assume not, but I don't know how to display 'Ultimate Shoutbox' with TP. - I was adivsed that this was the best wat to go, but how do I use the US code to display it in TP?

Thanks.
Title: Re: TinyPortal
Post by: bloc on March 09, 2005, 11:37:18 AM
Quote from: sh33zo on March 09, 2005, 10:14:03 AM
Quote from: Bloc on March 09, 2005, 05:14:51 AM
Quote from: sh33zo on March 08, 2005, 11:13:11 PM
Would it be possible to add the possibility to add php scripts to the Blocks?
I have a couple script that would make my site complete and easy to update!
This is exactly what i needed!!
Keep up the good work and if you could add the php script feature it would be perfect!!
Thankz
Sh33zo ;)

This is in the next beta. You can test it too before comitting it, not all php scripts like being inside the forum "workspace".

You will have an option to test the php script in another window - to at least check for obvious errors. And blocks will in the next beta be set to "off" by default. So you get a chance to check before making it visible.

Cool!! ;D :)
Any ETA on the next version?
Within this week.
Title: Re: TinyPortal
Post by: bloc on March 09, 2005, 11:44:02 AM
Quote from: Col on March 09, 2005, 11:35:07 AM

I was surprised to find that the portal has a shoutbpox with it. - Is this the same as the 'ultimate Shoutbox'? - I assume not, but I don't know how to display 'Ultimate Shoutbox' with TP. - I was adivsed that this was the best wat to go, but how do I use the US code to display it in TP?

Thanks.

No, the shoutbox is internal to TinyPortal. Not associated with "Ultimate Shoutbox" in any way. I havent expanded this much, but I can see some enhancements to it being made later on.

If the Ultimate shoutbox is supposed to go in a block, it would be possible to that in the next beta, havent tested it though.
Title: Re: TinyPortal
Post by: Col on March 09, 2005, 12:36:23 PM
Again, thanks.

One suggestion, I notice that there isn't a display option for guests. There might be occasions that you'd like to display a notice for guests only to see, but would have little use for members.
Title: Re: TinyPortal
Post by: Col on March 09, 2005, 04:46:11 PM
Oh dear,

Portal mod seems to have downed another forum. I uninstalled the portal mod, and it's happened again. I received the same message as before. Perhaps someone would like to try uninstalling this mod from a test forum. I can only assume there is an error with the uninstaller. - I'm assuming that each mod that can only be uninstalled has it's own uninstaller? - Hey, I'm new here.

I had previously uninstatted the Ultimate Shoutbox, and that went without a hitch. I think there is a problem with this mods uninstaller.
Title: Re: TinyPortal
Post by: bloc on March 09, 2005, 05:22:18 PM
It should work. But probably the installing and un-installing of two mods made it break.
Title: Re: TinyPortal
Post by: Kindred on March 09, 2005, 05:28:00 PM
hmmm... I skimmed through the posts here, but I am uncertain if any of this has been reported and is already fixed (or not).

I just installed SMF 1.0.2 and the 0.4beta of the tinyportal.

Nice job, as usualy, Bloc!

1) question: How does one get a theme supported in the tiny portal?  I have a couple of Bloc's Themes and Loon Purple... I'd like them to support the portal, and I am willing to do the hand-work needed to get them together.... right now, any theme except the default drops out of the portal (and it's difficult to get the portal back!)

2) issue: I add an article. If I leave the intro blank, the article TEXT is not saved (it says Type content here, when I view the published item)

3) issue: I have an article added. It did not record the name of the user who entered the article.

4) question: How does one set permissions to enter articles in TinyPortal? (in other words, I'd like to have a usergroup (aka "writer") who can enter articles.

5) one hour of installation and seven pages of this....   caused by?
issue:  8: Undefined index: mystart
File: /*DIR*/Themes/default/TPortal.template.php (eval?)
Line: 15

hmmm.... I think that's it for now.
Title: Re: TinyPortal
Post by: bloc on March 09, 2005, 05:52:14 PM
All of these are errors that are hopefully gone in the next beta.

Regarding permissions, it will be a option of letting other membergroups submit articles. The admin(s) can then "approve" them to let them show. But still not quite ready this function.

About converting other themes, I need to write a tutorial about this. Still haven't got around to it yet.
Title: Re: TinyPortal
Post by: Col on March 09, 2005, 06:00:19 PM
Hi Bloc,

I've insatlled yet another forum to test this, and it uninstalled without a problem this time. However, I did not install the shoutbox, so you appear to be correct that it's a combination thing. Still, what's causing this? - Id did unistall them in reverse order before, so there must be an error in one of the mods, mustn't there?
Title: Re: TinyPortal
Post by: bloc on March 09, 2005, 07:12:24 PM
One thing is for sure: they both modify some common code, if not there would probably not be any problem. I can only guess that the reverse changes of shoutbox leaves it unrecognisable for TP to un-install. And that it probably also removes things TP DOES need, before even un-installing. Or vice-versa.
Title: Re: TinyPortal
Post by: Col on March 09, 2005, 08:51:16 PM
....I mean reverse to my install, so last mod in, first mod out!
Title: Re: TinyPortal
Post by: jorgewolf on March 10, 2005, 06:54:10 AM
Hi all:

Thanks a lot to BLOC for his work.
I have been all the mornig watching this thread trying to find any help...

I want to put a shoutbox in my forum, and the one included in TINY PORTAL seems to be easy and usefull.

is there any posibility to instal only than shoutbox form the tiny portal mod?
2nd choice... in there any shoutbox mod working on a 1.02 release.
3rd choice... suicide... I think i can find a solution before that... LOL

thanks all and sorry for my english
Title: Re: TinyPortal
Post by: Col on March 10, 2005, 07:35:22 AM
Have you read this thread: http://www.simplemachines.org/community/index.php?topic=8415.0

I believe the above works with 1.0.2, it's what I've been trying. I'm still unsure of the cause of my problems. - Indeed, it's possible the error was mine somewhere. The proper shoutbox should offer far more control than the one with TinyPortal. If you only want the shoutbox, and not the whole portal, I'd say try the shoutbox above.
Title: Re: TinyPortal
Post by: jorgewolf on March 10, 2005, 07:47:49 AM
Yes, i have tried that , but it seems not to work with the 1.0.2 version because it looks for tables that doesnt exists on the new version.

Pacol is helping me on it and he couldnt install it, if he can´t, i think its impossible, jajajjajjajaj

Isn´t any other mod os shoutbox????? working on a 1.0.2 version?

thanks...+

pdt: if it doesnt work finally, i would have to install the fantastic tiny portal, but only needing the shout box it semms to be too much space for my web
Title: Re: TinyPortal
Post by: Col on March 10, 2005, 09:17:08 AM
Jorge,

You need to add the following in your template somewhere:

', smfshout(), '

I don't know how to do this myself, and I suppose it will depend on what you want. You'll have to look through the thread like me! ;)
Title: Re: TinyPortal
Post by: Retell on March 10, 2005, 09:29:48 AM
Hey bloc, When can we expect 0.5B?  :P
Title: Re: TinyPortal
Post by: bloc on March 10, 2005, 09:45:54 AM
On its way.
Title: Re: TinyPortal
Post by: Retell on March 10, 2005, 09:50:06 AM
YAY!!!!!! ;D


Retell ;)
Title: Re: TinyPortal
Post by: sh33zo on March 11, 2005, 04:16:55 PM
I have a couple more suggestions to improve this mod.

1- I need to give access to some of my members to add articles.

2- It would be nice if I could move arround the menu links! (Alphabetical order doesnt cut it for me!)

3- Guestbook maybe?

Please le tme know if these would be possible to add.
Thank you,
Sh33zo
Title: Re: TinyPortal
Post by: bloc on March 11, 2005, 05:57:38 PM
1. Submission of articles is planned. Not sure if it will be in this next beta.
2. Menu manager is added to the next beta. You can add, move , delete links to set category, article or just any link.
3. Not currently, but perhaps later on.
Title: Re: TinyPortal
Post by: azuregenesis on March 13, 2005, 05:38:52 AM
installed the TP enhanced version of themis.

crashed my board. lost all member data and everything...

i have to start over now...

later :(
Title: Re: TinyPortal
Post by: bloc on March 13, 2005, 06:41:43 AM
I assume you installed the mod first?
Title: Re: TinyPortal
Post by: bloc on March 13, 2005, 06:49:40 AM
Quote from: Col on March 10, 2005, 07:35:22 AM
The proper shoutbox should offer far more control than the one with TinyPortal. If you only want the shoutbox, and not the whole portal, I'd say try the shoutbox above.

In fact the shoutbox ( in the upcoming beta) has already most of what "Ultimate shoutbox" have...but of course, if you ONLY need the shoutbox, TP is not the right choice.
Title: Re: TinyPortal
Post by: azuregenesis on March 13, 2005, 07:10:07 AM
Quote from: Bloc on March 13, 2005, 06:41:43 AM
I assume you installed the mod first?

acually yeah. but it's fine now. since i had to restart, the themis theme having 3 different color themes gave me some good color ideas :)

no hard feelings XD
Title: Re: TinyPortal
Post by: azuregenesis on March 13, 2005, 09:02:17 AM
oh, and BTW, in your themis_tp theme, how come even though i change the "Show userinfo/news on top" to no, it still shows up. it's non existent in helios and mercury though.

and when i change "What to show on frontpage" to forum only, it still shows the articles page.

just a couple of thoughts.

thanks! :)
Title: Re: TinyPortal
Post by: bloc on March 13, 2005, 12:02:27 PM
Themis is not complete, and the other one is a bug. But I will release the next beta today, so it should be fixed then.
Title: Re: TinyPortal
Post by: azuregenesis on March 13, 2005, 12:14:52 PM
Quote from: Bloc on March 13, 2005, 12:02:27 PM
Themis is not complete, and the other one is a bug. But I will release the next beta today, so it should be fixed then.

that's great! :)

and also, (sorry for finding llthese things) the shoutbox names linking to the users porfiles thing (it was on your boards), i did what you said and it still doesn't seem to work. the names in my shoutbox aren't linking to the user's profiles.

and also, one quick thing. on your front page, there's a welcome to bloczone article. and it says ight under the title " Today at 01:40:18 by  Bloc"

my query on that is, on my site (using themis or any other TP enhanced theme) it's just says " Today at 01:40:18 by" no name at the end. is there a way to fix this?

it's only on articles. links to the forum posts that show up on the front page show the complete " Today at 01:40:18 by  Bloc" thing. name and all.

thanks for your time and patience.
Title: Re: TinyPortal
Post by: bloc on March 13, 2005, 01:00:55 PM
That too is fixed..my site runs the latest beta now. ;)
Title: Re: TinyPortal
Post by: azuregenesis on March 13, 2005, 03:10:24 PM
Quote from: Bloc on March 13, 2005, 01:00:55 PM
That too is fixed..my site runs the latest beta now. ;)

yay! thanks!

the no name thing has been slightly fixed, it now says "Today at 01:40:18 by Admin" even though my username is NOT admin. but i AM the admin lol. so, slight fix there.

the shoutbox thing, nope. no idea why that's not workin :(
Title: Re: TinyPortal
Post by: Col on March 14, 2005, 03:28:29 PM
I tried this out on the default template, but missed the option of the colapsable header. I know all the info can be displayed in the columns, but I would like the option. So, any chance of a check box for a third middle button for the header?
Title: Re: TinyPortal
Post by: bloc on March 14, 2005, 06:17:25 PM
Not planned right now, but it can be.
Title: Re: TinyPortal
Post by: FuzyTedy on March 14, 2005, 09:59:29 PM
Really nice portal!  I'm having a problem with the articles though.  I can not seem to get words to show up at all.  I type an article and "send" it but all I get is :

Today at 04:39:00 AM by
Type content here

I've waited a while to see if it will change but it does not.  When I go back to edit the article all my typing is gone and is back to "Type content here"

Title: Re: TinyPortal
Post by: bloc on March 15, 2005, 02:32:48 AM
Its IE that have problems sometimes in the editor. Firefox works fine though. I will probably change the editor to another soon.
Title: Re: TinyPortal
Post by: bloc on March 15, 2005, 07:20:19 AM
For all looking for the next beta (0.5beta) it can be found here (http://www.bloczone.net/smf/index.php?topic=145.0). I will update in here too, as soon as the mod system here is sorted out ( I can't update it yet).
Title: Re: TinyPortal
Post by: xtremecruiser on March 17, 2005, 08:44:22 AM
Be careful if you try and [ Uninstall ] this mod, I used it on my test site and when I tried to [ Uninstall ] it I had this error

26.     Execute Modification     ./Themes/default/index.template.php     Failure

if you try and remove it, nothing will work anymore
Title: Re: TinyPortal
Post by: Kindred on March 17, 2005, 08:48:07 AM
xtreme...   did you install ANY other mods before or after tinyportal?
Title: Re: TinyPortal
Post by: bloc on March 18, 2005, 06:02:42 AM
Updated to v.05beta. Quite a few bugs have been fixed, and some new features added as well.

Remember that this is still at beta stage - please test it out on a non-important forum installation first, to check it behaves as intended. Also beware using it with other mods can be tricky if you want to uninstall it.

I recommend that before installing it when other mods are present , or installing other mods afterwards, you take a copy of these files BEFORE installing TinyPortal at all:

{forum folder}/index.php
{forum folder}/Sources/Load.php
{forum folder}/Themes/default/index.template.php

...any modified theme: {forum folder}/Themes/{other themes}/index.template.php

That way, if you un-install TinyPortal and it fails, you could upload these 3 copies again and the site will be back to before installing TinyPortal. There is also some tables named tportal.xxxx in the database, you can erase those too, but they won't affect the forum in any way.

Title: Re: TinyPortal
Post by: Thasmo on March 18, 2005, 06:19:24 AM
I'm to dumb to install this.

I get this error when using the package manager:

Quote2: copy(/home/www/DOMAIN/htdocs/forum/Themes/default/images/divider.gif): failed to open stream: Permission denied
Datei: /home/www/DOMAIN/htdocs/forum/Sources/Subs-Package.php
Zeile: 814

I have given the correct FTP details,
so, what to do else to get it running?

Thanks!

(Using Version 0.5beta!)
Title: Re: TinyPortal
Post by: Punkp2p on March 18, 2005, 07:57:39 AM
I have a little problem with TinyPortal.

I can only edit the last 15 articles.  I have around 120 total.

And when i try to look through the categories in normal user view the page links at the bottom keep bouncing me around and i can't view everyone of them.  i guess it would explain a bit better if you looked at it   http://www.punkp2p.com/forums 

I can kinda deal with the page links acting up for now.

But i really need to be able to edit more than the last 15 articles.  Is there any way to get an update to allow viewing and editing all articles in the tpadmin ?
Title: Re: TinyPortal
Post by: bloc on March 18, 2005, 09:42:51 AM
Update it with the v0.5beta, if you haven't done so. This has been fixed there.
Title: Re: TinyPortal
Post by: bloc on March 18, 2005, 09:43:57 AM
Quote from: Thasmo on March 18, 2005, 06:19:24 AM
I'm to dumb to install this.

I get this error when using the package manager:

Quote2: copy(/home/www/DOMAIN/htdocs/forum/Themes/default/images/divider.gif): failed to open stream: Permission denied
Datei: /home/www/DOMAIN/htdocs/forum/Sources/Subs-Package.php
Zeile: 814

I have given the correct FTP details,
so, what to do else to get it running?

Thanks!

(Using Version 0.5beta!)

Well, it sounds like a permisson thing..maybe you should try to set some permissions on the forum folders?
Title: Re: TinyPortal
Post by: Punkp2p on March 18, 2005, 03:50:55 PM
i updated the files for tp v0.5 and now i get this error when i do anything

Unknown column 'off' in 'where clause'
File: /mnt/nfs-1/vol4/web/p/pu/pun/www.punkp2p.com/web/forums/Sources/TPortal.php
Line: 169

I can't get to the admin or the forums or anything. please help.
Title: Re: TinyPortal
Post by: bloc on March 18, 2005, 05:02:26 PM
The MySQL tables did not get updated...just the files. Did you use the package in this thread? It should have updated the tables for you as part of the upgrade.

However, if you need help, send me a PM and I will try to update the database for you.
Title: Re: TinyPortal
Post by: batgod on March 20, 2005, 03:40:01 AM
This is the best mod ever! Just what I was hoping for,  just starting experimenting with SMF and loving it (a bit too much to my real work and sleeps chagrin)  all of you are so awesome, the very few problems i even had were neatly dealt with in this forum!  Thanks alot, I look forward to getting to know everyone, and after i get this figured out a bit more on my personal site look forward to integrating it into my pet store's and maybe being able to contribute on here!

Thanks alot everyone and keep up the great work!
Title: Re: TinyPortal
Post by: bloc on March 20, 2005, 03:59:30 AM
Great to hear you like SMF - and the mod. ;D

I think its safe to say a LOT of us suffer from missing sleep due to the fascination of SMF, in a "I-got-explore-this! kind of way....! :)
Title: Re: TinyPortal
Post by: Anguz on March 20, 2005, 04:46:47 AM
Oh so true.
Title: Re: TinyPortal
Post by: Azraeliitti on March 20, 2005, 06:25:04 AM
The links to other pages seem to live their own life. If you try to click older pages in some category, it takes you to older pages in the mainpage.  And none of the links take you to the right page, when you click the page two it takes you to the page five etc. Aslo, the WYSIWYG editor likes to throw empty lines and spaces and is pain in the ass.
Title: Re: TinyPortal
Post by: amanoffewwords on March 20, 2005, 06:52:49 AM
Hi Bloc,

Love the mod.

Is it possible to have it load the whole forum in the main area. i.e. default to index.php?action=forum?

Cheers
amofw
Title: Re: TinyPortal
Post by: eyvind on March 20, 2005, 02:09:50 PM
Bloc, have you updated the file with all major fixes? I would really like to try this mod out on my website.
Title: Re: TinyPortal
Post by: Tanks on March 20, 2005, 02:12:59 PM
Quote from: eyvind on March 20, 2005, 02:09:50 PM
Bloc, have you updated the file with all major fixes? I would really like to try this mod out on my website.

Check out Bloc's website: http://www.bloczone.net/

I think the portal works fine now  ;) but remember to backup your stuff anyway  :o

Title: Re: TinyPortal
Post by: eyvind on March 20, 2005, 02:19:42 PM
Thank you, you guys are really nice, at my home (aboho.com/forum/, I practivally live there being #12th top poster there) we are all nice, but I have seen that at many forums people get really mean: once I saw a guy ask a question about a game (how to jump, it was a sidescroller kinda thing), and the poeple there practically chased him away, even though he answered his own question beforea nyone had the chance to reply. Sorry for going off topic.

I will be sure to enjoy your portal bloc, you have worked hard on it I can tell.  Scandinavians have a tendency to work hard,  ;).
Title: Re: TinyPortal
Post by: bloc on March 20, 2005, 03:19:34 PM
Thank you. :) As Knat mentions it is updated..but do a backup in any case.

Right now I have the flu...:P so not much is going on with the portal, but once I get better I will start on it with the planned modules. And of course make it stable.
Title: Re: TinyPortal
Post by: 8218 on March 20, 2005, 05:17:04 PM
when i run install file i get:

Tiny Portal v0.5beta
Checking if TinyPortal tables exists....
Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 8

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 8

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 18

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 18

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 20

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 20

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 21

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 21

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 22

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 22

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 23

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 23

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 24

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 24

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 25

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 25

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 26

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 26

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 27

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 27

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 28

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 28

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 29

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 29

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 30

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 30

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 31

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 31

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 32

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 32

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 33

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 33

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 34

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 34

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 35

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 35

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 36

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 36

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 37

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 37

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 38

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 38

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 39

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 39

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 40

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 40

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 41

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 41

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 42

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 42

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 43

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 43

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 51

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 51

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 67

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 67

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 69

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 69

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 70

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 70

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 71

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 71

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 72

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 72

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 73

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 73

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 74

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 74

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 75

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 75

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 76

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 76

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 77

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 77

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 84

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 84

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 97

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 97

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 99

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 99

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 100

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 100

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 101

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 101

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 102

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 102

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 103

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 103

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 104

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 104

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 109

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 109

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 129

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 129

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 131

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 131

All done.

TinyPortal is installed.
Title: Re: TinyPortal
Post by: bloc on March 20, 2005, 05:47:49 PM
uhm...the mysql tables did not install, although the files probably did.

It seems you have no password on the user for mysql? That could be the problem though.
Title: Re: TinyPortal
Post by: amanoffewwords on March 21, 2005, 04:22:54 AM
Anyone know how do this then:

Is it possible to have it load the whole forum in the main area. i.e. default to index.php?action=forum?

Cheers
Charles
Title: Re: TinyPortal
Post by: bloc on March 21, 2005, 04:43:04 AM
It had this option, but I removed it for now because of the numerous errors.

It might be back later on.
Title: Re: TinyPortal
Post by: bloc on March 21, 2005, 06:09:44 AM
NOTE:
I have taken away the mod files for the time being , until I feel its stable enough to be used in general.
Title: Re: TinyPortal
Post by: nanoarray on March 21, 2005, 07:17:01 PM
how do you add a js to the block of TinyPortal?  It doesn't seem to read js.
Title: Re: TinyPortal
Post by: nanoarray on March 21, 2005, 07:18:36 PM
Or, how do I add a tinyportal box manually without using TPadmin control panel?
Title: Re: TinyPortal
Post by: 8218 on March 22, 2005, 10:28:24 AM
How do you install it?
Title: Re: TinyPortal
Post by: bloc on March 22, 2005, 01:05:57 PM
Well, if you do have the archive - through the package manager.
Title: Re: TinyPortal
Post by: bloc on March 22, 2005, 01:08:48 PM
Quote from: nanoarray on March 21, 2005, 07:17:01 PM
how do you add a js to the block of TinyPortal?  It doesn't seem to read js.

Beta4 will not read javascript, no.

Quote from: nanoarray on March 21, 2005, 07:18:36 PM
Or, how do I add a tinyportal box manually without using TPadmin control panel?

A bit complex, but take a look at TPortalBlocks.template.php to see how it works there. You could make your own "type", but it involves changing several things.
Title: Re: TinyPortal
Post by: nanoarray on March 25, 2005, 12:02:13 AM
I can't install TinyPortal anymore.  I thought it's good enough.  Can you make the old version available again?
Title: Re: TinyPortal
Post by: bloc on March 25, 2005, 04:01:24 AM
No, I am not putting it up here before its more stable. Especially the install/un-install routines needs a great deal more error-checking.
Title: Re: TinyPortal
Post by: dtm.exe on March 25, 2005, 02:34:43 PM
OK, I was able to successfully reinstall TinyPortal.  Now that thet is taken care of, I'd like to know where I go to control the articles that are posted there.  I checked Admin options, but I saw nothing.

-Dan The Man
Title: Re: TinyPortal
Post by: dtm.exe on March 25, 2005, 02:38:26 PM
Also, what should I do to allow users to go to the board index?  I see that whenever I click on Home, it brings me back to the articles page.

-Dan The Man
Title: Re: TinyPortal
Post by: bloc on March 25, 2005, 03:27:25 PM
All admin functions for TinyPortal is available when clicking on "tpadmin" button.

If you dont have a "forum" button, something went wrong - or you are using some other theme than default, or a TinyPortal adjusted theme.
Title: Re: TinyPortal
Post by: dtm.exe on March 25, 2005, 03:59:41 PM
I'm using the Themis theme and still no board index button or TinyPortal control panel.

-Dan The Man
Title: Re: TinyPortal
Post by: bloc on March 25, 2005, 05:51:48 PM
well..are you using the themis_tp theme then? not regular themis?
Title: Re: TinyPortal
Post by: dtm.exe on March 25, 2005, 06:03:19 PM
I'm not sure.  Where do I download a bunch of your TinyPortal compatible themes?

-Dan The Man
Title: Re: TinyPortal
Post by: bloc on March 25, 2005, 06:04:07 PM
http://www.bloczone.net/smf/index.php?board=24.0
Title: Re: TinyPortal
Post by: dtm.exe on March 25, 2005, 06:10:08 PM
Thank you :)

-Dan The Man
Title: Re: TinyPortal
Post by: dtm.exe on March 25, 2005, 06:24:02 PM
OK, these themes aren't working.  I install them, and then when I go to my profile to change my theme, I get an internal server error.

-Dan The Man
Title: Re: TinyPortal
Post by: bloc on March 25, 2005, 06:53:47 PM
Are you sure the mod is installed? It will render an error if not.
Title: Re: TinyPortal
Post by: dtm.exe on March 25, 2005, 06:56:46 PM
Quote from: Bloc on March 25, 2005, 06:53:47 PM
Are you sure the mod is installed? It will render an error if not.

D'oh!  HOW COULD I BE SO STUPID?!  Thanks :)

-Dan The Man
Title: Re: TinyPortal
Post by: sh33zo on March 27, 2005, 10:57:01 PM
I currently have 0.4beta installed and missed the 0.5 beta.. was wondering if i was going to have problems upgrading in the futur? or is it going to be easy to do the upgrade?
Title: Re: TinyPortal
Post by: bloc on March 28, 2005, 04:21:17 AM
No, the upgrade should go fine. It will upgrade from all previous betas, and keep the settings and data intact.
Title: Re: TinyPortal
Post by: MentalMuscle on April 12, 2005, 01:55:08 PM
This is a great idea, and perfect for a gaming site were news posting is secondary to the content of the forum.  Plus given the theming capabilities of SMF one site could be used for a gaming community involved in multiple games.  Each member can just be configured to see the content for the game they play, and a theme tailored for each game as well.

Bloc keep up the great work, and if you need any other testers let me know.
Title: Re: TinyPortal
Post by: nokonium on April 12, 2005, 02:15:56 PM
Quote from: MentalMuscle on April 12, 2005, 01:55:08 PM
Bloc keep up the great work,

Agreed, I like it a lot.
Title: Re: TinyPortal
Post by: bloc on April 12, 2005, 02:36:27 PM
Thanks, both. Its getting more stable, and slowly getting to the way I want it. ;)

Mentalmuscle, if you like to be beta-test it, stop by http://www.bloczone.net
Title: Re: TinyPortal
Post by: opheliagrimm on May 15, 2005, 06:40:22 PM
Bloc, count me in as well.

I am in love with the helios theme and have a close eye on your tiny portal work.

was a bit worried when you first pulled it off the shelf.

Do you have room in your beta program for one more?
Title: Re: TinyPortal
Post by: dustrho on May 24, 2005, 03:53:32 PM
I had successfully installed this (v0.6.5 release), and then I uninstalled it (I'll explain later).  So, I uninstalled this and now I can't get into my forums.  Any idea on how I should get my forums back up online?  All I get is a white page...

http://www.sandtroopers.com/yabbse/index.php

PLEASE HELP!!!

I never made a backup copy of those three files that have been mentioned (index.php, index.template.php and Load.php), since I wasn't aware to back up those specific files.

PS - I was using the Helios TP theme for this portal.  Should I have switched back to a regular portal before uninstalling the theme?  I hope I don't have to rebuild my forums, because the last time I backed up was about a week ago.
Title: Re: TinyPortal
Post by: bloc on May 24, 2005, 05:26:52 PM
Nothing is lost, it just that the TP enabled theme tries to fetch something which isn't there no more, most likely. Just upload the UPGRADE version on whatever version of SMF you have and run the upgrade.php. It should sort out any problems with remaining bits of TP in your files.

This has proven to be the biggest obstacle in this mod, so I am currently changing heavily what the install prosess actually changes , for the next release. Making TP enabled themes work as normal even when TP is not present(which they really should)is also at the top of my rather long list. ;)
Title: Re: TinyPortal
Post by: Teknomancer on November 29, 2005, 12:58:48 AM
Where can I download TinyPortal ?
Title: Re: TinyPortal
Post by: bloc on November 29, 2005, 06:41:25 AM
For now: http://www.tinyportal.net
But I will soon put it up here again.
Title: Re: TinyPortal
Post by: Dannii on November 29, 2005, 07:05:35 AM
I get a 404 error for that page ;)

Try http://www.tinyportal.net/smf/index.php
Title: Re: TinyPortal
Post by: bloc on November 29, 2005, 07:48:03 AM
Oops. :) Thanks, eldacar.
Title: Re: TinyPortal
Post by: NezumiRyu on December 07, 2005, 06:20:20 PM
Definitely post when you are going to put the mod back up on here.

I'm interested in beta testing it since I just set up a bare SMF forum and if I loose anything, it's not a big deal. XD I tried to register art your tinyportal.net site to sign up for the beta testing, but I couldn't register.

O_o Wouldn't let me.

But yea... I'd love to be part of it if it's possible. ^_^ It's a very neat looking mocification. I've been trying to do multi colums for a while now and it just never works well.
Title: Re: TinyPortal
Post by: tuga on December 30, 2005, 09:07:31 PM
where i can found this mod tinyportal?
Title: Re: TinyPortal
Post by: JayBachatero on December 30, 2005, 09:08:51 PM
tinyportal.net  You need to register and make a post here http://www.tinyportal.net/smf/index.php?board=25.0

-JayBachatero
Title: Re: TinyPortal
Post by: kai920 on January 01, 2006, 02:41:23 AM
Hey guys,

recently discovered "Tinyportal". looks great.

my site is currently running Joomla! (www.kaitech.hk) but I've discovered that my site revolves around the forum, which of course runs SMF. just wondering what the adv/disadv's are of Joomla vs Tinyportal, and if anyone has made this switch recently.

Thanks
Title: Re: TinyPortal
Post by: Dannii on January 02, 2006, 07:48:20 AM
Tinyportal is very nice, simple to use, and easy to integrate perfectly with SMF. It doesn't however have many modules yet, so if you use many of Joomla's modules you will probably lose many of them if you switch.

However you're very welcome to make new modules/mods for smf if you do wish to make the switch!
Title: Re: TinyPortal
Post by: Rain501 on January 02, 2006, 09:02:58 AM
Quote from: kai920 on January 01, 2006, 02:41:23 AM
Hey guys,

recently discovered "Tinyportal". looks great.

my site is currently running Joomla! (www.kaitech.hk) but I've discovered that my site revolves around the forum, which of course runs SMF. just wondering what the adv/disadv's are of Joomla vs Tinyportal, and if anyone has made this switch recently.

Thanks

I'm running SMF w/ TP and Joomla together :)

I'm keeping my Joomla pages as my main site, with the various content cats & pages with TP sitting on my forums. I've modified the index template file so that it disables the main TP page, but then you can still use the blocks aroud the forum to add links to the main site and other custom content, i.e. I have a gaming site, and use the blocks to link through to specific competitions from the forums. It makes linking the two sides of my site much easier to access and makes the site feel more 'whole' if you get what I'm on about :D
Title: Re: TinyPortal
Post by: kai920 on January 02, 2006, 10:43:57 PM
Rain, do you mind posting (or PM to me) the link of your site so I can see it in action?

thanks!
Title: Re: TinyPortal
Post by: kai920 on January 19, 2006, 11:37:34 AM
Rain, just went on your xbox360 site... looks great!  I definitely see what you mean by running Joomla & TP together.

This may be the way I want to go with my site. Everyone just comes for SMF anyway!  8)

(Find that it's somewhat hard & pointless to put posts into Joomla)
Title: Re: TinyPortal
Post by: TuXie on February 07, 2006, 02:33:03 AM
where we can download it? ;)
Title: Re: TinyPortal
Post by: Dannii on February 07, 2006, 02:40:29 AM
http://tinyportal.net
Title: Re: TinyPortal
Post by: TuXie on February 07, 2006, 03:02:38 AM
i find it. it's excellent. we can merge smf and tp. it's name will be SMP(Simple Machines Portal). :D
Title: Re: TinyPortal
Post by: Dannii on February 07, 2006, 03:05:22 AM
What do you mean?
Title: Re: TinyPortal
Post by: hartiberlin on May 25, 2006, 09:14:46 PM
Hi,
I can not register at the tinyportal.net site.
I wanted to download tinyportal,
but it does not let me register there..
Does anybody else also have this problem ?
Thanks.
Title: Re: TinyPortal
Post by: elpvn on May 26, 2006, 03:04:07 AM
Try delete your internet cookies (remind that the cookies must be enable before access BlocZone) and register again by this link

http://www.tinyportal.net/smf/index.php?action=register

If have any problem please report here or PM to me  ;D
Title: Re: TinyPortal
Post by: gerrymore on May 26, 2006, 11:10:39 AM
Quote from: hartiberlin on May 25, 2006, 09:14:46 PM
Hi,
I can not register at the tinyportal.net site.
I wanted to download tinyportal,
but it does not let me register there..
Does anybody else also have this problem ?
Thanks.

Tiny Portal is having some problems at the moment. The server went down yesterday [25th May], and the problems have been since then. The site will be back to normal when Bloc has Internet Access again [he is moving house at the moment].

All I can suggest is keep trying, but delete any old cookies for www.tinyportal.net each time.
Title: Re: TinyPortal
Post by: StormLrd on May 26, 2006, 11:57:53 PM
Site seems mostly back up, ive had none of the problems I had yesterday on it. Although its been very quiet around there lol.
Title: Re: TinyPortal
Post by: moviespot on May 27, 2006, 07:10:37 AM
it's show me blank on the control panel .. no options under tiny portal

please , let me know how i can show options  :-\
Title: Re: TinyPortal
Post by: gerrymore on May 28, 2006, 12:47:45 PM
www.tinyportal.net is now working again. There was an error because of an upgrade by the hosts. The host has now fixed the problem.
Title: Re: TinyPortal
Post by: cardude on September 17, 2006, 01:32:42 PM
Quote from: 8218 on March 20, 2005, 05:17:04 PM
when i run install file i get:

Tiny Portal v0.5beta
Checking if TinyPortal tables exists....
Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 8

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 8

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 18

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 18

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 20

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 20

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 21

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 21

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 22

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 22

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 23

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 23

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 24

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 24

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 25

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 25

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 26

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 26

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 27

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 27

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 28

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 28

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 29

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 29

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 30

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 30

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 31

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 31

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 32

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 32

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 33

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 33

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 34

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 34

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 35

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 35

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 36

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 36

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 37

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 37

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 38

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 38

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 39

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 39

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 40

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 40

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 41

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 41

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 42

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 42

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 43

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 43

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 51

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 51

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 67

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 67

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 69

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 69

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 70

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 70

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 71

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 71

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 72

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 72

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 73

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 73

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 74

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 74

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 75

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 75

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 76

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 76

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 77

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 77

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 84

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 84

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 97

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 97

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 99

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 99

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 100

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 100

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 101

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 101

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 102

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 102

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 103

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 103

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 104

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 104

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 109

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 109

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 129

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 129

Warning: mysql_query(): Access denied for user: 'www-data@localhost' (Using password: NO) in /web/www/frac/users/d2shop/tp_install.php on line 131

Warning: mysql_query(): A link to the server could not be established in /web/www/frac/users/d2shop/tp_install.php on line 131

All done.

TinyPortal is installed.

I am getting all of these errors too?  It doesn't use my MySQL password, but I don't know how to fix it.  The thing never even asked me for my password.

My site - http://trooptool.uni.cc/forum/tp_install.php
Title: Re: TinyPortal
Post by: bloc on September 17, 2006, 02:01:41 PM
Thats an very old TP install file..the 0.5beta. You better off using v 0.9.5, which is out now.

About password..it doesn't ask because it collects it from your SMF installation.
Title: Re: TinyPortal
Post by: URPG on September 17, 2006, 04:40:37 PM
Yeah, but the Themes need upgrading, right now it's only running on two or 3 themes unless you know how to upgrade them yourself :( but even 0.85 would be better then 0.5 i guess... lol
Title: Re: TinyPortal
Post by: Helvetii on September 28, 2006, 12:39:36 AM
How make shoutbox work without use (inframe) ???
Title: Re: TinyPortal
Post by: bloc on September 28, 2006, 03:05:15 AM
It will only work inside TP - that means inside a block or as a another page in TP: index.php?action=tpmod;sa=shoutbox
Title: Re: TinyPortal
Post by: brianjw on October 20, 2006, 06:45:04 PM
Quote from: Brian Wilson's Activities Forum

Go to http://www.brianjwilson.com/forum
I have tiny portal installed and you can see this as a demo of TinyPortal.
8) I LOVE TP ;D

Title: Re: TinyPortal
Post by: jdvarner on January 02, 2007, 11:28:29 PM
Does tiny portal work with smf 1.1.1?
Title: Re: TinyPortal
Post by: Garry1953 on January 03, 2007, 03:13:24 AM
Quote from: jdvarner on January 02, 2007, 11:28:29 PM
Does tiny portal work with smf 1.1.1?

Works fine for me.
Title: Re: TinyPortal
Post by: jdvarner on January 03, 2007, 09:49:03 AM
i downloaded the package at tiny portal and uploaded to a 1.1.1 site,and got package not compatable error.
Title: Re: TinyPortal
Post by: codenaught on January 03, 2007, 05:30:43 PM
When you enter the package manager add on ;version_emulate=1.1 to the end of the url and then run that url. It should now let you install Tiny Portal on 1.1.1.
Title: Re: TinyPortal
Post by: brianjw on January 03, 2007, 08:35:39 PM
You must modify the package-info.xml because it was only originally made for 1.1 RC3. Bloc says next version will be compatible with SMF 1.1.1. All TP Themes are compatible with TP unless any files have changed. It is free and works 100%. What I use is the manual installation for TP because I want to wait until the mod works 100% with a version then just modify ;)
Title: Re: TinyPortal
Post by: digisubs on February 14, 2007, 12:57:05 AM
how do you modify the package-info.xml to work on version 1.1.2?
Title: Re: TinyPortal
Post by: URPG on February 14, 2007, 05:46:16 AM
There already is a version posted on bloczone...
Title: Re: TinyPortal
Post by: brianjw on February 14, 2007, 09:42:54 PM
As URPG stated "On tinyportal aka Bloczone" they have a new version posted, well actually not new version but modified to work for smf 1.1.2
www.tinyportal.net
Title: Re: TinyPortal
Post by: perplexed on February 15, 2007, 06:48:53 PM
I'm using 1.1.2 and tiny portal 0.9.7.1 which seems to work.  I guess I better go over there and check it out
Title: Re: TinyPortal
Post by: brianjw on February 15, 2007, 06:50:36 PM
Also, if you have upgraded the quick way through the package manager, none of your mods or settings got effected :)
Title: Re: TinyPortal
Post by: Skhilled on March 05, 2007, 09:16:08 AM
Quote from: digisubs on February 14, 2007, 12:57:05 AM
how do you modify the package-info.xml to work on version 1.1.2?
Use TP 0.97.1. :)

UPDATE: The latest version is TP 0.983. This will work with smf 1.1.1 and 1.1.2. :)
Title: Re: TinyPortal
Post by: Matthew Schenker on March 25, 2007, 06:34:31 PM
I have a kind of general question here...

Is Tinyportal an effective way to build a simple Web site around your forum?  I have a relatively simple site I am trying to create, and it also has a forum.  Will Tinyportal be good enough?  Am I better off with something like Joomla or Mambo?

Thanks!
Title: Re: TinyPortal
Post by: bloc on March 25, 2007, 07:35:16 PM
That depends on what you seek..Joomla have a lot of modules that do certian things, TP is more of a general toolbox, have options like php or html pages(articles) and generally made to be simplistic  to operate. It also works entirely from within SMF, saving the hassle of maintaining two scripts.

But do have a look at http://www.tinyportal.net to see it in action. ;)
Title: Re: TinyPortal
Post by: Matthew Schenker on March 26, 2007, 10:42:32 AM
Thanks, I'm going to give Tinyportal a try.  Seems like a nice solution for my Web site.
Title: Re: TinyPortal
Post by: brianjw on March 26, 2007, 10:46:56 AM
I use it too. It is a very nice powerful solution for people who want a website (like me) instead of just a little forum. Now the forum is only one little feature on my site but before it was the whole thing. Of course I also use those mods, SMF Gallery, SMF Arcade, SMF Links, and more! ;)

/me wants you to download tinyportal cuz its awesome 8)
Title: Re: TinyPortal
Post by: Matthew Schenker on March 26, 2007, 10:53:16 AM
brianjw,
Thanks...I'm still learning, so it's good to hear endorsements from people who know a lot!
Title: Re: TinyPortal
Post by: Skhilled on April 13, 2007, 09:45:20 AM
Once you learn to use articles you'll find that you can create and add things you haven't een thought of before. You might also want to check out the "Block Snippets" sections at TP. ;)
Title: Re: TinyPortal
Post by: Matthew Schenker on April 13, 2007, 09:51:39 AM
A warning to people considering Tinyportal...

I had to uninstall TinyPortal from my test forum because it broke the entire site.  Menus stopped appearing, the Gallery was no longer accessible, boards were gone, and the administrator area had missing entries.

Even after I uninstalled it, pieces of Tinyportal were left in my test forum.  No one could help me clean it up, so I uninstalled my entire test forum from my Web host and then re-installed SMF without Tinyportal.

What a mess!
Title: Re: TinyPortal
Post by: Tick on April 13, 2007, 11:42:34 AM
Well thats strange.  I use TP and have received all the support I needed there.  I have installed this on a few forums with no problem.   Was the theme you were using a TP modified theme.  Also your language settings can cause what you described.
Title: Re: TinyPortal
Post by: Matthew Schenker on April 13, 2007, 12:44:51 PM
Buddha,
Yes, I was surprised, based on all the positive comments I have heard about Tinyportal.

But let me tell you, I will not be attempting to install Tinyportal again, unless it's on a totally plain forum that I can uninstall and reinstall easily.

Just for the record:
- I was using the default theme
- My language settings were not changed
- The only modification I had on my forum was the Gallery

Even if my situation is unusual, people should be aware of the risks involved with Tinyportal.
Title: Re: TinyPortal
Post by: Herman's Mixen on April 13, 2007, 12:53:17 PM
Well dan you used or an very old buggy version or did'nt install it on the right way i am useing it from about the first awarenes of TP the very first beta, and alpha's and i did never complain about it coz the support i awesome and the installer / uninstaller is a smooth one ;)
Title: Re: TinyPortal
Post by: Matthew Schenker on April 13, 2007, 01:08:30 PM
I installed the latest version.  That was the one offered on the Tinyportal site. If it was buggy, it's not my fault and is just one more reason for people to be careful about installing this!

The people at the Tinyportal site were friendly, but there were no good answers.
Title: Re: TinyPortal
Post by: Herman's Mixen on April 13, 2007, 04:15:16 PM
first of all ... you need to be patient at all coz our mod developer on tinyportal is also a developer of smf ... sinds... he has no time to develo two systems along smf is the first ting.. then time;s left thers should be time for TP ... and if i know bloc for a long time ... as known ... he will take a look at it no hasels.....

so i think it's un-reasonble too yell at who ?? be patient and it will come home some how
Title: Re: TinyPortal
Post by: Tick on April 14, 2007, 09:55:34 AM
@Matthew Schenker, Well I am sorry you had a bad experience with TP.  I know that Tp completely changed the feel of my site.  I set up a test site to play around with it at to find a solution to any problem I could incounter on my live site.  Dont give up on it just yet.   Play around with it and read as much as you can about it.  Usually I find it was just a simple fix to correct the problem I was having.  Dont give up or you will miss out.  And as someone else stated just be patient with your questions over there, I havent seen anyone yet who was willing to do the work not get the help they needed.
Hope this helps.  Buddha
Title: Re: TinyPortal
Post by: Matthew Schenker on April 14, 2007, 10:01:35 AM
Buddha,
I like the idea of Tinyportal, which is why I installed it on my forum.

Based on my experience, I'm sure you can understand why I would not want to try it again!  My guess is, if I installed it again, it would do the same thing it did before.

But yes, I would like to have something like this available to me. Perhaps I'll create a "Test Test Forum" to play around with it!

Matthew
Title: Re: TinyPortal
Post by: rider on April 14, 2007, 10:25:56 AM
Quote from: Matthew Schenker on April 13, 2007, 09:51:39 AM
A warning to people considering Tinyportal...

I had to uninstall TinyPortal from my test forum because it broke the entire site.  Menus stopped appearing, the Gallery was no longer accessible, boards were gone, and the administrator area had missing entries.

Even after I uninstalled it, pieces of Tinyportal were left in my test forum.  No one could help me clean it up, so I uninstalled my entire test forum from my Web host and then re-installed SMF without Tinyportal.

What a mess!
I'm willing to bet that if you had changed your forum default langauge to english from english-utf8 or updated the english-utf8 files,all the problems would have gone away.Try it again on a test test forum.I've installed TP many of times and never had issues.One ? for you.When you installed TP did you use TP themes?Regular SMF themes will not work with TP.
Title: Re: TinyPortal
Post by: Matthew Schenker on April 14, 2007, 02:53:05 PM
I am very interested in what Tinyportal has to offer.
I'll install it again in a new "test test forum" and see what happens.

QuoteWhen you installed TP did you use TP themes?Regular SMF themes will not work with TP.
OK, maybe this accounts for the problems.  I installed SMF, then installed Tinyportal.  The only modification I installed was the Gallery.  But I did not change any themes.  Do you mean I have to change themes after I install Tinyportal?  Did I miss this in the instructions?  If this whole thing is my fault, then I'll be happy to admit it!

I'll check it out and let everyone know.
Title: Re: TinyPortal
Post by: Tick on April 14, 2007, 02:56:50 PM
They default theme will work with tp.  If you want any special themes they have to be themes converted to use with tp.  Also when you do an install of the test forum go to the server settings in your admin panel.  make sure your forum default language is english not english utf
Title: Re: TinyPortal
Post by: Matthew Schenker on April 14, 2007, 03:00:32 PM
QuoteThey default theme will work with tp.  If you want any special themes they have to be themes converted to use with tp.  Also when you do an install of the test forum go to the server settings in your admin panel.  make sure your forum default language is english not english utf

I was using the default theme the first time, and my settings were for English, not English UTF.  So the mystery remains!

Well, I am going to create a test test forum and install Tinyportal again.  No harm done in trying it, just to make sure I missed something the first time.

Thanks for all your help.
Title: Re: TinyPortal
Post by: Tick on April 14, 2007, 03:02:11 PM
Please keep us posted .  If it does it again and you dont mind post a link so maybe we can see more clearly what the problem is .
Title: Re: TinyPortal
Post by: Matthew Schenker on April 14, 2007, 03:08:42 PM
QuotePlease keep us posted .  If it does it again and you dont mind post a link so maybe we can see more clearly what the problem is .

I'll definitely do that!  Thanks again for your help.
Title: Re: TinyPortal
Post by: brianjw on April 14, 2007, 03:17:42 PM
@Matthew: You didn't install TinyPortal correct. Also you should receive fast support from www.tinyportal.net if that kind of problem happens again. ;)
Title: Re: TinyPortal
Post by: nokonium on April 14, 2007, 03:19:03 PM
Matthew, I can see that you registered on the Bloc Zone but you don't appear to have posted a support question.

Regarding your problems ...

With a large mod like Tiny Portal it is best to install it into a pristine SMF. Always install the largest mods first and you will have fewer install 'test failed'. It is important to be using the default theme.  Also use the default language - English when installing, if you don't do this there will be errors and problems. Missing text strings is almost certainly due to a language problem. Each language has its own language files and also some themes have their own language files.

To view TP in other than the default theme you need a theme that is compatible with TP. There are a lot of them available on the Bloc Zone and they are free.
Title: Re: TinyPortal
Post by: Matthew Schenker on April 15, 2007, 09:11:48 AM
nokonium,
I don't know why my question is not appearing in the search.  That's completely frustrating.

In any case, I do like the idea of Tinyportal.  I'll be reporting back later.

Thanks!
Title: Re: TinyPortal
Post by: Skhilled on April 22, 2007, 02:56:04 PM
A suggestion is to make sure your permissions are correct before installing any mod.

Go to Packages -> Options -> Cleanup Permissions. Select "Make all files writable."

This should allow TP or any other mod to have the permissions it needs to install files as well as modify files it needs during installation. :)

I hope this helps.
Title: Re: TinyPortal
Post by: Matthew Schenker on April 23, 2007, 09:45:49 AM
QuoteA suggestion is to make sure your permissions are correct before installing any mod.

Go to Packages -> Options -> Cleanup Permissions. Select "Make all files writable."

This should allow TP or any other mod to have the permissions it needs to install files as well as modify files it needs during installation.

Thanks for the tip.  But I have a question...

I just went into Packages > Options > Cleanup Permissions and selected "All Files Are Writable."

Then I hit the "Change File Permissions" button.

But when the screen refreshes, it's back on the "Only the standard files are writable" option.

Is this normal?
Title: Re: TinyPortal
Post by: rider on April 23, 2007, 12:37:40 PM
Quote from: Matthew Schenker on April 23, 2007, 09:45:49 AM
QuoteA suggestion is to make sure your permissions are correct before installing any mod.

Go to Packages -> Options -> Cleanup Permissions. Select "Make all files writable."

This should allow TP or any other mod to have the permissions it needs to install files as well as modify files it needs during installation.

Thanks for the tip.  But I have a question...

I just went into Packages > Options > Cleanup Permissions and selected "All Files Are Writable."

Then I hit the "Change File Permissions" button.

But when the screen refreshes, it's back on the "Only the standard files are writable" option.

Is this normal?
yes it is.You can go ahead and install TP.
Title: Re: TinyPortal
Post by: TrueSatan on April 23, 2007, 01:08:34 PM
I'd just make sure, via ftp, that the file permissions have changed properly as I've seen a number of instances where the user hadn't got the ftp settings in the forum quite right or the server wasn't complying and they hadn't changed via this method...just make sure.
Title: Re: TinyPortal
Post by: Matthew Schenker on April 23, 2007, 06:50:55 PM
OK, I just re-installed a fresh version of SMF 1.1.2, then I installed TinyPortal, and once again the forum was completely wrecked...

Menus missing, administration area doesn't work right, TinyPortal menus gone, boards gone, and on and on.

Luckily, this was an empty test forum that I can easily delete from the server.

I think I'm done with TinyPortal!
Title: Re: TinyPortal
Post by: rider on April 24, 2007, 05:05:02 AM
Quote from: Matthew Schenker on April 23, 2007, 06:50:55 PM
OK, I just re-installed a fresh version of SMF 1.1.2, then I installed TinyPortal, and once again the forum was completely wrecked...

Menus missing, administration area doesn't work right, TinyPortal menus gone, boards gone, and on and on.

Luckily, this was an empty test forum that I can easily delete from the server.

I think I'm done with TinyPortal!
Did you d/l any of the themes that are made for tinyportal?You can D/L them from the TP site.Also if you try again post a link for us to see what happening.I'm sure its something simple.As we've all stated TP is not that hard to install and have it working fine on many sites.
Title: Re: TinyPortal
Post by: Skhilled on April 26, 2007, 09:42:46 AM
Quote from: TrueSatan on April 23, 2007, 01:08:34 PM
I'd just make sure, via ftp, that the file permissions have changed properly as I've seen a number of instances where the user hadn't got the ftp settings in the forum quite right or the server wasn't complying and they hadn't changed via this method...just make sure.
Some servers may require more work. I believe these servers do not have their permissions set properly for their users.

Quote from: Matthew Schenker on April 23, 2007, 06:50:55 PM
OK, I just re-installed a fresh version of SMF 1.1.2, then I installed TinyPortal, and once again the forum was completely wrecked...

Menus missing, administration area doesn't work right, TinyPortal menus gone, boards gone, and on and on.

Luckily, this was an empty test forum that I can easily delete from the server.

I think I'm done with TinyPortal!
I'm starting to think you are having a permission issue or hosting problem. I've installed it dozens of times on different servers and when there was a problem like yours it is was due to hosting.

Also you might want to make sure that you are using the correct version of TP for smf. If your smf version is utf-8 then tp must be the same. If not, then make sure both smf and tp are NOT utf-8.
Title: Re: TinyPortal
Post by: Matthew Schenker on May 21, 2007, 11:04:39 AM
I'm pretty sure it's not a hosting issue, and my forum is not utf-8.  All I know is Tinyportal caused major problems for me.

I do like the concept of Tinyportal, and would really like to make use of this sort of thing.
Title: Re: TinyPortal
Post by: brianjw on May 21, 2007, 06:24:10 PM
If I were you try http://www.tinyportal.net (for support) and try http://www.tinyportals.com (for tinyportal customization) :)

Brianjw
Title: Re: TinyPortal
Post by: Tick on May 21, 2007, 07:39:04 PM
@Matthew Schenker  If you want to have tiny portal on your site why dont you give it a try again.  You might have to do a manual install.   Come over the http://www.tinyportal.net and you will find all the info for the manual install there.  We can guide you through it if you want.
Title: Re: TinyPortal
Post by: brianjw on May 21, 2007, 07:52:33 PM
Thats what I said!
Title: Re: TinyPortal
Post by: TrueSatan on May 21, 2007, 08:11:37 PM
To be frank I think that Skhilled has probably got it about right...if one of us with some experience of server wrestling were to get to grips with it by being given suitable access we might manage to persuade TP to work on Matthew's sites but doing it via forum Q&A would be awfully difficult.
Title: Re: TinyPortal
Post by: Tick on May 21, 2007, 08:27:49 PM
Quote from: brianjw on May 21, 2007, 07:52:33 PM
Thats what I said!

brian,  I think you  would have a hard time helping him over at tiny portals dont you think. ;)
Title: Re: TinyPortal
Post by: brianjw on May 22, 2007, 06:38:35 PM
yes, i was just telling him to go there :)
Title: Re: TinyPortal
Post by: RAdams on June 18, 2007, 10:50:48 AM
I understand the project is suspended pending a more stable release, but is there any way to get the previous version files? It was working fine for me... and I really need it. :(
Title: Re: TinyPortal
Post by: TrueSatan on June 18, 2007, 12:02:04 PM
Quote from: RAdams on June 18, 2007, 10:50:48 AM
I understand the project is suspended pending a more stable release, but is there any way to get the previous version files? It was working fine for me... and I really need it. :(

http://www.tinyportal.net/index.php?action=tpmod;dl=cat5 (http://www.tinyportal.net/index.php?action=tpmod;dl=cat5)

You will find that support there (Tiny Portal's own site) can often answer questions more easily regarding their product that we can here.
Title: Re: TinyPortal
Post by: Tick on June 18, 2007, 01:00:56 PM
I have been using it for a while now.  To me it seems pretty stable. I have not had any problems out of it.
Title: Re: TinyPortal
Post by: babjusi on June 18, 2007, 01:54:11 PM
TinyPortal is as stable as a granite rock
Title: Re: TinyPortal
Post by: Tick on June 18, 2007, 04:13:12 PM
Very well said.  I agree.   :D
Title: Re: TinyPortal
Post by: perplexed on June 19, 2007, 07:26:19 AM
I just installed another new one yesterday and it goes through without a hitch.  It's a great mod/portal/addition to SMF :)
Title: Re: TinyPortal
Post by: Skhilled on June 25, 2007, 08:24:40 AM
Quote from: RAdams on June 18, 2007, 10:50:48 AM
I understand the project is suspended pending a more stable release, but is there any way to get the previous version files? It was working fine for me... and I really need it. :(
I believe that suspension was for a previous version...0.7 something, if I recall.
Title: Re: TinyPortal
Post by: TrueSatan on June 25, 2007, 08:31:05 AM
Quote from: Skhilled on June 25, 2007, 08:24:40 AM
Quote from: RAdams on June 18, 2007, 10:50:48 AM
I understand the project is suspended pending a more stable release, but is there any way to get the previous version files? It was working fine for me... and I really need it. :(
I believe that suspension was for a previous version...0.7 something, if I recall.

No, Skhilled. Look at the first post in this topic and see http://custom.simplemachines.org/mods/index.php?mod=97 (http://custom.simplemachines.org/mods/index.php?mod=97) At least as regards this site it still appears to be suspended though the download of the last version is available on TP's own site on the link I gave earlier.
Title: Re: TinyPortal
Post by: Skhilled on June 25, 2007, 09:35:41 AM
Yeah, the version there is 0.5b and the date is 2005. Bloc may not have contested the suspension and just kept updates on his site. I can't say for sure, tho.

TP is at version 0.983 and testing has begun for 1.0.  8)
Title: Re: TinyPortal
Post by: ~Unkn0wn~ on July 14, 2007, 11:42:38 PM
Works or not? Need it
Title: Re: TinyPortal
Post by: Assistance on July 14, 2007, 11:47:54 PM
Quote from: assasinkilla on July 14, 2007, 11:42:38 PM
Works or not? Need it

yes 100%
Title: Re: TinyPortal
Post by: babjusi on July 14, 2007, 11:53:32 PM
Quote from: assasinkilla on July 14, 2007, 11:42:38 PM
Works or not? Need it

It works fine, but you will have to download it at the tp site

www.tinyportal.net
Title: Re: TinyPortal
Post by: boilinggold on July 15, 2007, 12:19:47 AM
Hi,

I have just installed SMF, the latest version is 1.1.3
Now I found out that most mods I wanted to use are compatible up to 1.1.2 only.
I wonder when will the mods be upgraded to be compatible to the latest version of SMF?

Btw, nice work, Bloc on the Amber theme. The best I've seen so far. I will most probably stick to it.
However some of the menu items from other mods do not appear in your Amber theme. i.e., smf blog, gallery, etc.

Also, I badly need your TinyPortal mod. Download for it has been suspended.

When is the next release coming up?


Title: Re: TinyPortal
Post by: Tick on July 15, 2007, 12:23:04 AM
You can download the Tiny Portal mod now.  Go to http://tinyportal.net  YOu can also get support for all of Bloc's themes there.  That is his site.
Title: Re: TinyPortal
Post by: pcbonez on July 20, 2007, 06:50:31 AM
Time to update this,,,, ya think?
Title: Re: TinyPortal
Post by: TrueSatan on July 20, 2007, 07:40:40 AM
No...the mod is not fully supported here but if you go to Tiny Portal's own site it is completely up to date and fully maintained with an active support provided there too.
Title: Re: TinyPortal
Post by: Dantesue on September 28, 2007, 07:24:04 PM
Hey folks. I am sure you can help me if I am clear about what I need.

Here goes:

I downloaded TinyPortal. I have it on my desktop. In my packages download/upload I cannot upload what is on my desktop. It is TP_0983 Folder.

I did go to the .zip file and hit upload. My FTP shows it there on my host's server.

Now I tried to install from the packages board and I get this:

"Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager."

---

What am I doing wrong?
Title: Re: TinyPortal
Post by: Dantesue on September 28, 2007, 07:37:23 PM
It looks like everything. I installed a set of smf smileys. No problem. I modified a few pieces of code for the header.

It looks like I may be unclear on the concept of HOW TO install a mod. If there were a better read me on what exactly to do I would do it manually. Time would be more but I would then get to see what is going on and why.

I don't really enjoy using widgets unless I know exactly what they are saving me time on.
Title: Re: TinyPortal
Post by: Tick on September 28, 2007, 07:38:21 PM
When you go to packages in you admin panel you will see a tab called options.  CLick on that and select the option to make all files writable.   Then you will have to put in you ftp info  after that try it and it should work.  YOu can change them back the same way.   Hope this helps . TIck
Title: Re: TinyPortal
Post by: Dantesue on September 28, 2007, 07:41:50 PM
thanks, I'll try it. I think I was using mysql info in place of ftp info.

Title: Re: TinyPortal
Post by: Tick on September 28, 2007, 07:46:43 PM
Ok cool.  Post back if you get stuck and I will try to further assist.  Tick.
Title: Re: TinyPortal
Post by: Dantesue on September 28, 2007, 07:55:36 PM
I can't believe how easy and effortless this was!

It is all there. The issue was me entering the wrong info for my ftp. (I use a few programs).

(For my own curiosity I will look into a manual upgrade check list just so I know what happens.)

I'd recommend anyone thinking of using smf and tiny portal to jump right in.

thank you.


Title: Re: TinyPortal
Post by: Dantesue on September 28, 2007, 07:59:25 PM
now on to the TP shout box.

there is nothing wrong with the smf shout box, I downloaded it but I want tiny windows on teh side and the expandability TP is supposed to give me.

see you all around the internet(s).

when my forum has a few more personal quirks added to it, I will link back here.

thanks again.

D.
Title: Re: TinyPortal
Post by: Tick on September 28, 2007, 08:07:13 PM
Glad you got it. Enjoy.
Title: Re: TinyPortal
Post by: brianjw on September 28, 2007, 08:53:33 PM
I have a question -

How would I edit the TPortalBlocks.php /.template.php in order to display text above the shoutbox so I can put a little tiny image saying three simple rules of the shoutbox...

Thanks in advance,
Brianjw
Title: Re: TinyPortal
Post by: G6™ on September 29, 2007, 01:47:52 PM
That is a tinyportal question Biran.....
Title: Re: TinyPortal
Post by: brianjw on September 29, 2007, 02:37:40 PM
exactly and this is the tinyportal topic ;)
Title: Re: TinyPortal
Post by: G6™ on September 29, 2007, 02:41:58 PM
Yes it is, but more a release thread then a support for tinyportal thread as tinyportal have it's own support site  ;)
Title: Re: TinyPortal
Post by: brianjw on September 29, 2007, 03:06:09 PM
so no one can provide support here? How bout tiny portal media. After all it does have "Tiny Portal" in the name :)
Title: Re: TinyPortal
Post by: G6™ on September 29, 2007, 03:09:28 PM
Yes, tinyportal media does help with tinyportal questions, but the main tinyportal site is best for tp related questions.
tinyportal media is a standalone site and are not a part of tinyportal more then help out with installation of mods and themes for tinyportal.
Title: Re: TinyPortal
Post by: lwbbs on October 25, 2007, 06:41:18 PM
Suggestion:

If the tagging system is installed before the TinyPortal v0.9.8.
TinyPortal v0.9.8 will fail. Because the following operation.
<file name="$themedir/index.template.php">
    <operation>
        <search position="before"><![CDATA[$current_action = 'admin';
    if (in_array($context['current_action'], array(]]></search>
        <add><![CDATA['tags',]]></add>
    </operation>
             

This conflict can be solved by manually modified the code.
If Tagging system can change the code to the following:

<file name="$themedir/index.template.php">
    <operation>
        <search position="before"><![CDATA[$current_action = 'admin';
    if (in_array($context['current_action'], array('search', 'admin','calendar', 'profile', 'mlist', 'register', 'login', 'help','pm']]></search>
        <add><![CDATA[, 'tags']]></add>
    </operation>


The conflict will be solved if TinyPortal v0.9.8 remove two ")))" in tinyportal09x-11x.mod file
(lines 307 and 310). So I suggest TinyPortal  can change it.
From:

<search for>
    if (in_array($context['current_action'], array('search', 'admin','calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
</search for>
<replace>
    if (in_array($context['current_action'], array('search', 'admin','calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm','forum', 'tpadmin')))
</replace>


to:

<search for>
    if (in_array($context['current_action'], array('search', 'admin','calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm'
</search for>
<replace>
    if (in_array($context['current_action'], array('search', 'admin','calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm','forum', 'tpadmin'
</replace>



Title: Re: TinyPortal
Post by: perpetuallove on November 11, 2007, 10:56:49 AM
UGH! I think i am just having bad luck today cuz i was doing so good with this stuff til now! lol. I cant get TP to work with other themes..... i have googled and read and read and read some more but nothing seems to help! The theme I am- obviously if you have seen my other posts- DESPERATELY wanting to use is CANDY! lol. I want to edit the colors a bit but i love the set up and will be truly disappointed if i can not get this to work!
Title: Re: TinyPortal
Post by: Tick on November 11, 2007, 11:20:57 AM
If you get the theme authors permission I am sure that crip at tinyportal would be glad to convert this theme for ya.   
Title: Re: TinyPortal
Post by: brianjw on November 11, 2007, 11:44:36 AM
If you're talking about the theme I created, "Candy", sure you all have permission as long as copyrights stay the same place where they are and stuff like that.

For the future, you can always use crips theme convert as well - http://www.jr62.com/cripconvert.htm

brianjw
Title: Re: TinyPortal
Post by: perpetuallove on November 11, 2007, 12:36:59 PM
aw yes i believe it is your theme, brianjw. While i have you here- would it be ok with you if i altered the orange color? If not thats ok i understand and I can move on to find another theme that would fit it well- i just love the designs you have and the overall way its setup!

And Tick thank you for your response- who is this crip and how do i find "him"? lol- im sure you are laughing at that question but thats ok......lol.

And whats this "theme convert"? is that a way for me to convert this myself?

I am trying to get some other mods to work first before I embark on this journey- but would love to have the info at hand when i do!

Thanks again!
Title: Re: TinyPortal
Post by: Tick on November 11, 2007, 12:39:44 PM
Crip is the one who converts most of our TP theme here http://www.tinyportals.net/index.php make a post in his board there and give him a link to this topic to see you have permission to convert and he will help you there.   However you can do this yourself by following his conversion guide in his board there.  Tick
Title: Re: TinyPortal
Post by: perpetuallove on November 11, 2007, 12:48:40 PM
oh i see. thank you Tick... by the way- nice avatar!
Title: Re: TinyPortal
Post by: Tick on November 11, 2007, 12:52:58 PM
Thank you it was made by Lesmond whom you can also find at that site.  If you ask real nicely he may make you one if you want. 
Title: Re: TinyPortal
Post by: brianjw on November 11, 2007, 01:03:15 PM
You can modify my theme in anyway you want, as long as the copyright stays at the bottom as the original author of the theme. ;)
Title: Re: TinyPortal
Post by: bloc on November 12, 2007, 05:51:53 PM
In TP v1.0 beta - set to be released in the near future - the changes won't be needed. It will rather use the layer system of SMF to place the panels in any theme. Plus of course lots of other improvements. :)
Title: Re: TinyPortal
Post by: brianjw on November 12, 2007, 05:57:03 PM
That is going to be awesome! :)

Is TPv1.0 beta going to be released here too? :)
Title: Re: TinyPortal
Post by: lesmond on November 12, 2007, 05:59:11 PM
Quote from: Bloc on November 12, 2007, 05:51:53 PM
In TP v1.0 beta - set to be released in the near future - the changes won't be needed. It will rather use the layer system of SMF to place the panels in any theme. Plus of course lots of other improvements. :)

Yes and its coming along nicely too Bloc, we are proud of all the hard work you put into it :)
Title: Re: TinyPortal
Post by: bloc on November 12, 2007, 06:10:48 PM
Thanks, Les. :)

brianjw, yes, thats is the plan.
Title: Re: TinyPortal
Post by: Elrond on November 30, 2007, 09:54:52 AM
TP Rules!!! This is a mod that's helped me a lot! Proud of the work Bloc! Bravo!
Title: Re: TinyPortal
Post by: miregrobar on February 01, 2008, 09:04:45 PM
I love TP
Title: Re: TinyPortal
Post by: Goodman854 on March 19, 2008, 04:54:17 PM
How come I cant download it?
Title: Re: TinyPortal
Post by: Tick on March 19, 2008, 04:57:10 PM
Quote from: goodman854 on March 19, 2008, 04:54:17 PM
How come I cant download it?
Are you trying to download it as a registered user?
Title: Re: TinyPortal
Post by: Nibogo on March 19, 2008, 05:50:20 PM
Someone have the  Çöl Ateşi theme for TP??
Title: Re: TinyPortal
Post by: Apllicmz on March 22, 2008, 10:07:15 PM
you can try here how can install manual...
http://forum.joomlamz.com/index.php?topic=3417.0
Title: Re: TinyPortal
Post by: perplexed on March 24, 2008, 11:52:03 AM
Quote from: NIBOGO on March 19, 2008, 05:50:20 PM
Someone have the  Çöl Ateşi theme for TP??

you could ask at TP site, they have many themes, and also themes for joomla, coppermine etc
Title: Re: TinyPortal
Post by: Harvester on April 10, 2008, 04:33:44 PM
anyone know why now that I have TP Installed, in my admin area the TinyPortal block is blank?
Title: Re: TinyPortal
Post by: Goodman854 on June 25, 2008, 08:01:05 PM
Quote from: Tick on March 19, 2008, 04:57:10 PM
Quote from: goodman854 on March 19, 2008, 04:54:17 PM
How come I cant download it?
Are you trying to download it as a registered user?
Because the link is suspended. AND when I clicked download it was just text. It goes on about being an outdated mod.  I gusse you have to do manual.
Title: Re: TinyPortal
Post by: Sakae on September 27, 2008, 01:58:42 PM
Either the website of Tinyportal is down?

I think this is a MOD that is being extinct?
Title: Re: TinyPortal
Post by: Dragooon on September 27, 2008, 02:04:29 PM
TP is nowhere near extinction, the site's working fine for me.
Title: Re: TinyPortal
Post by: Matthew Schenker on September 27, 2008, 03:41:23 PM
Good Afternoon,
I've been running TinyPortal on one of my sites for a while.  But now it looks like the software is gone.  Their Web site no longer works!

What happened to TinyPortal?  Is anyone going to pick up development of this mod?

Thanks,
Matthew
Title: Re: TinyPortal
Post by: Kindred on September 27, 2008, 04:05:44 PM
what are you guys talking about? ???

The Tiny Portal Site (http://www.tinyportal.net/index.php?action=forum) is still there.
Title: Re: TinyPortal
Post by: Matthew Schenker on September 27, 2008, 04:11:04 PM
Hello,
When I go to www.tinyportal.com or www.tinyportal.org I get a nothing site.  That's been true for at least a week.
What's going on here?
Matthew
Title: Re: TinyPortal
Post by: Sakae on September 27, 2008, 04:17:10 PM
Quote from: Matthew Schenker on September 27, 2008, 04:11:04 PM
Hello,
When I go to www.tinyportal.com or www.tinyportal.org I get a nothing site.  That's been true for at least a week.

Here too. Where do you are, Matthew? I'm from Brazil.
Title: Re: TinyPortal
Post by: bloc on September 27, 2008, 05:08:13 PM
Only tinyportal.net is currently used. And TP is well and alive lol. :)
Title: Re: TinyPortal
Post by: brianjw on September 27, 2008, 05:29:10 PM
Quote from: Bloc on September 27, 2008, 05:08:13 PM
Only tinyportal.net is currently used. And TP is well and alive lol. :)
Didn't tinyportals.net and other urls used to be used? What happened to them? Are those URLs going to be used again ever on tiny portal? It seems everyone is still linking to tinyportals.net so it may be wise to at least continue using that URL.
Title: Re: TinyPortal
Post by: bloc on September 27, 2008, 05:51:29 PM
Thats true..I still have those, but recently moved server, I will need to point them to tp.net. Thanks for the heads-up :)
Title: Re: TinyPortal
Post by: brianjw on September 27, 2008, 07:36:55 PM
Quote from: Bloc on September 27, 2008, 05:51:29 PM
Thats true..I still have those, but recently moved server, I will need to point them to tp.net. Thanks for the heads-up :)
Just trying to keep you in business. ;D
Title: Re: TinyPortal
Post by: Goodman854 on October 05, 2008, 12:25:19 AM
Quote from: Tick on March 19, 2008, 04:57:10 PM
Quote from: goodman854 on March 19, 2008, 04:54:17 PM
How come I cant download it?
Are you trying to download it as a registered user?
dah yes
But i dont need it any more. I thought it was somthing its not.
Title: Re: TinyPortal
Post by: atlantisrising on November 25, 2008, 09:55:36 AM
I am trying to modify my new theme, there is a piece of code that is apparently essential to get TP blocks out of my blogs.  For some reason, I keep getting an unexpected T-string error. 

I'm running TPv1.0.6, SMF 1.1.6, Blog Community 2.0.2

The bit of code giving me a headache is:

';
// TinyPortal
if($context['TPortal']['leftbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
         if($context['TPortal']['rightbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end
echo '


Oh, and the theme won't show up on the blog index, either.  If anyone can help me or point me in the right direction, I would really appreciate it.
Title: Re: TinyPortal
Post by: brianjw on November 25, 2008, 04:18:50 PM
http://www.tinyportal.net
Title: Re: TinyPortal
Post by: bloc on February 20, 2009, 04:39:39 PM
TinyPortal v1.0 beta 3 is now available, refer to first post (http://www.simplemachines.org/community/index.php?topic=27642.0) for download link and more information on the release.
Title: Re: TinyPortal
Post by: Yahmez on February 20, 2009, 10:52:51 PM
I have tried to install all versions on TP to no avail. I am using SMF 1.1.8 with the core theme and I keep getting 'test failed' for ./Sources/Load.php & ./Themes/default/index.template.php
Do I need a fresh install of SMF to install TP?
Title: Re: TinyPortal
Post by: Antechinus on February 21, 2009, 12:45:53 AM
No, you don't, but it is easier to install TP on a fresh SMF forum because then you have no mods that will interfere with TP.
The installation process is fully documented so you can edit those two files manually if necessary.
Title: Re: TinyPortal
Post by: babjusi on February 21, 2009, 07:25:10 AM
It looks very good. Congratulations to the TP team :)
Title: Re: TinyPortal
Post by: Yahmez on February 21, 2009, 09:42:21 AM
Quote from: Antechinus on February 21, 2009, 12:45:53 AM
No, you don't, but it is easier to install TP on a fresh SMF forum because then you have no mods that will interfere with TP.
The installation process is fully documented so you can edit those two files manually if necessary.
So should I uninstall my mods and then try? Also if I use package manager, despite the errors, will it install everything and will I just need to edit those two files? Or will that crash my forum?
Title: Re: TinyPortal
Post by: bloc on February 21, 2009, 03:27:58 PM
The index.template modding its not important - you'll miss the forum button of course - but Load.php is. You can go ahead, and simply do the modifications manually on Load.php, before running anything.

If you crash still, nothing in TP is lost, but the you WILL need a fresh set of SMF files to get it going again.
Title: Re: TinyPortal
Post by: Apllicmz on February 22, 2009, 01:48:05 PM
Good work
update 1.0.3
thank you
Title: Re: TinyPortal
Post by: SN 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 ?
Title: Re: TinyPortal
Post by: bloc 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.
Title: Re: TinyPortal
Post by: victoryrock 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
Title: Re: TinyPortal
Post by: bloc 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:
// 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.
Title: Re: TinyPortal
Post by: victoryrock 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?

Quote from: Bloc 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.


If I go ahead with the install while ignoring the error for this script, what do I need to replace it with?

Quote from: Bloc on March 04, 2009, 09:27:33 AM
The Load.php fails on this codebit:
      // 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
Title: Re: TinyPortal
Post by: IchBin™ 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

Title: Re: TinyPortal
Post by: victoryrock 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?

Title: Re: TinyPortal
Post by: IchBin™ 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.
Title: Re: TinyPortal
Post by: victoryrock 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
Title: Re: TinyPortal
Post by: bloc 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.
Title: Re: TinyPortal
Post by: victoryrock 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


Quote from: Bloc 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:
      // 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.
Title: Re: TinyPortal
Post by: BarfBag 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?
Title: Re: TinyPortal
Post by: IchBin™ 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
Title: Re: TinyPortal
Post by: mark7144 on March 15, 2009, 12:45:51 PM
Bloc:

I want my SSI news articles on my home page (http://www.murraysworld.com/) 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.
Title: Re: TinyPortal
Post by: bloc on March 15, 2009, 02:28:07 PM
Quote from: mark7144 on March 15, 2009, 12:45:51 PM
Bloc:

I want my SSI news articles on my home page (http://www.murraysworld.com/) 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..?

Title: Re: TinyPortal
Post by: mark7144 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.
Title: Re: TinyPortal
Post by: bloc 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)
Title: Re: TinyPortal
Post by: mark7144 on March 16, 2009, 11:00:11 AM
Thanks for the info, I'll ask in the coding discussion board.
Title: Re: TinyPortal
Post by: ccraciun 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!
Title: Re: TinyPortal
Post by: IchBin™ 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.
Title: Re: TinyPortal
Post by: ccraciun on March 24, 2009, 02:08:29 AM
Thank you IchBin™. It works.
Title: Re: TinyPortal
Post by: karbaciun on March 24, 2009, 12:42:04 PM
hi

tinyportal or simple portal are beter? why?
Title: Re: TinyPortal
Post by: IchBin™ on March 24, 2009, 03:06:04 PM
Depends on what you think "makes something better".  Does more features mean better? Does support for the mod mean its better? What specifically are you asking is better? You'll get a biased opinion for the most part I think. Especially when asking in the TinyPortal mod topic. :) I've been involved with TP for too long to think anything else is better. :D
Title: Re: TinyPortal
Post by: hellboy78 on March 26, 2009, 06:03:03 AM
I use SMF 118 , blacktothefuture themes, and few mods.

istalling Tiny Portal involves do something manually?
Title: Re: TinyPortal
Post by: wvanfleet on March 26, 2009, 11:24:27 AM
I have SMF and installed TP, but other than seeing some items under a TP section to the left of my forum, I can't seem to see any evidence that TP has added anything.  More specifically, I thought that it would provide me with a front page that would be what people would get to first, and from which they could get to the forum.  I can't seem to make that happen.  I am not very knowledgeable.  Would appreciate any help.  Thanks!
Title: Re: TinyPortal
Post by: hellboy78 on March 26, 2009, 12:56:10 PM
how to add an html frontpage and have a new link for forum board?
Title: Re: TinyPortal
Post by: wvanfleet on March 26, 2009, 02:15:16 PM
I posted this too soon.  I am now starting to have success, and I think I will be okay.  Thank you very much.
Title: Re: TinyPortal
Post by: Skhilled on March 26, 2009, 04:57:55 PM
Quote from: hellboy78 on March 26, 2009, 06:03:03 AM
I use SMF 118 , blacktothefuture themes, and few mods.

istalling Tiny Portal involves do something manually?

Usually, it does not and should install without a problem. This also depends on your forum setup and server configuration. You'll also want to make sure any themes you use are created specifically for Tinyportal.

Quote from: hellboy78 on March 26, 2009, 12:56:10 PM
how to add an html frontpage and have a new link for forum board?

You'll have to create your html frontpage with an article and set it to be used on the frontpage. Then change settings to view frontpage articles only.

To have a link to your forum board, just include a link to it on your html frontpage. The link would be http://www.yoursite.com/index.php?action=forum
Title: Re: TinyPortal
Post by: willerby on March 26, 2009, 06:31:26 PM
Any news on 2.0 RC1 version?
Title: Re: TinyPortal
Post by: hellboy78 on March 27, 2009, 05:59:27 AM
Quote from: Skhilled on March 26, 2009, 04:57:55 PM
Quote from: hellboy78 on March 26, 2009, 06:03:03 AM
I use SMF 118 , blacktothefuture themes, and few mods.

istalling Tiny Portal involves do something manually?

Usually, it does not and should install without a problem. This also depends on your forum setup and server configuration. You'll also want to make sure any themes you use are created specifically for Tinyportal.

Quote from: hellboy78 on March 26, 2009, 12:56:10 PM
how to add an html frontpage and have a new link for forum board?

You'll have to create your html frontpage with an article and set it to be used on the frontpage. Then change settings to view frontpage articles only.

To have a link to your forum board, just include a link to it on your html frontpage. The link would be http://www.yoursite.com/index.php?action=forum

thank you

what I need now is a Forum Button into this place, so my members can pass to forum easly
Title: Re: TinyPortal
Post by: Skhilled on March 27, 2009, 10:25:31 AM
Quote from: willerby on March 26, 2009, 06:31:26 PM
Any news on 2.0 RC1 version?

TP2 for SMF RC1 has just started testing. It will be some time before it is available...probably not until SMF 2 goes gold but don't quote me on that. Anything can happen and it's up to Bloc do decide when it's ready. ;)

Quote from: hellboy78 on March 27, 2009, 05:59:27 AM
thank you

what I need now is a Forum Button into this place, so my members can pass to forum easly

That depends on your theme. If it is one of Bloc's or Tinyportalmedia's themes check in the theme's settings to see if you can add it there. If not, you'll have to edit the index.template.php for your theme to add the button. Take a look at how the default's code is and copy that, if you can.

You can also create a menu block and add links to it. This is the easiest way cause you will never again have to edit your themes to make any links show. You can also use that type of block for any mod that has a link like SMF Arcade, a blog, a chat room, etc. You would just use the same type of url as I've previously posted in a menu block. :)
Title: Re: TinyPortal
Post by: karbaciun on March 28, 2009, 09:15:21 AM
Quote from: IchBin™ on March 24, 2009, 03:06:04 PM
Depends on what you think "makes something better".  Does more features mean better? Does support for the mod mean its better? What specifically are you asking is better? You'll get a biased opinion for the most part I think. Especially when asking in the TinyPortal mod topic. :) I've been involved with TP for too long to think anything else is better. :D

tnx but

my question  was for all, and everybody that work with tp and simpleportal and know which is beter, (no publisher mod) ;)
this question publish in both topic mod of TP and simpleportal for understand beter. ;)

now, everybody working with 2 mod please help me,with a view to : powering, compatibility, and supporting,.. :-*
Title: Re: TinyPortal
Post by: ccraciun on March 31, 2009, 01:46:08 PM
@karbaciun: why don't you try both of them and see what suite you best? that's what i'm doing right now and i'm sure it's best thing to do. ;)
Title: Re: TinyPortal
Post by: Skhilled on March 31, 2009, 04:22:03 PM
I agree. It boils down to what works best for you.
Title: Re: TinyPortal
Post by: karbaciun on April 05, 2009, 12:06:25 PM
Quote from: ccraciun on March 31, 2009, 01:46:08 PM
@karbaciun: why don't you try both of them and see what suite you best? that's what i'm doing right now and i'm sure it's best thing to do. ;)

good, but this try need long time and I want to use of experiences of other person in this subject.

tnx for anything
Title: Re: TinyPortal
Post by: Skhilled on April 05, 2009, 03:56:59 PM
I suggest that you open another topic in a board where people who use other portals are more likely to see it. Since this is for TP "support" only I doubt it people who use other portals will visit here a lot. You'll probably get more variety of responses in the Chit Chat board.
Title: Re: TinyPortal
Post by: Vampy on April 11, 2009, 02:07:51 PM
I have a what will probably be a completely noob question but....

Is it possible to integrate an entire existing site containing lots of things and not just a forum into TP so that the theme across the whole site is consistent?

If you're wondering what I mean here is my site www.purplehell.com currently using an adapted "Amber" theme by bloc, I had to manually write the theme into each page and the CSS file to keep the site consistent. I want to be able to change the theme and not have to rewrite every page and/or the CSS file on the site every time - will I be able to integrate this into TP rewriting the pages only once or will I have to go with another complete CMS with a bridge to SMF?
Title: Re: TinyPortal
Post by: bloc on April 11, 2009, 06:19:37 PM
Vampy, I see your need, but what you ask is something that other CMS's do better: include SMF rather than work with it. Thats the main reason I started TP - to get away from the "including" which never worked theme-wise and ran two big scripts at the same time :P TP runs inside SMF, use same templates and makes it easier on the server. The need to use different folders is then not an issue even, as you can just stick SMF in root and TP will provide "pages" and "categories" through the callings. If you need it to be SEO, use the SEO option of SMF and TP links will look better.

You need to consider if you really need "folders" in the path though. If you do, then TP might be the wrong choice of Portal/CMS.
Title: Re: TinyPortal
Post by: Vampy on April 11, 2009, 11:20:58 PM
Thanks for getting back to me Bloc - I have a while to think, as I'm waiting until I go live with 2.0 before I consider anything and TP isn't ready for 2.0 yet.

The reason I need to keep things, especially the riddle tools, in a separate folder is because of the scripts etc. these cannot be integrated into SMF,  I don't think.... My other option is pure CSS keeping the theme/design simple as I know the same problem exists regarding the scripts and other CMS's

OR and here's my bugbear :P - have different themes on the main site and the forum
Title: Re: TinyPortal
Post by: bloc on April 12, 2009, 06:10:02 AM
Different themes can be done - sort of - with TP. One option is to simply set the article(s) preferred theme to another than the default for forum -  or set default theme to one theme, then select another theme for all the boards.

If you have scripts then you could make PHP articles in TP, place your scripts into a folder right under the forum(it doesn't matter where really) then include/require them into the articles. It depends on the script of course, but most times it works fine. It would then show as a page within TP/SMF, even if your scripts is actually somewhere else.
Title: Re: TinyPortal
Post by: R.Bourne on April 12, 2009, 11:36:30 PM
We decided to uninstall this MOD after about 2 months. Our decision doesn't have anything to do with the quality of this MOD. Although we switched to SimplePortal MOD, that one got uninstalled after only a few hours due to a few issues, ie, not compatible with different browsers out there .....

However, as I mentioned this on the other thread and as a general suggestion, which in fact applies to the majority of MODs out there, please .... PLEASE ... allow a complete cleanup after uninstalling your MODS. Considering the size of MySQL databases, even 1 MB data is too much when the a particular MOD is no longer installed. Thanks for your attention.
Title: Re: TinyPortal
Post by: bloc on April 13, 2009, 05:13:30 AM
Quote from: R.Bourne on April 12, 2009, 11:36:30 PM
We decided to uninstall this MOD after about 2 months. Our decision doesn't have anything to do with the quality of this MOD. Although we switched to SimplePortal MOD, that one got uninstalled after only a few hours due to a few issues, ie, not compatible with different browsers out there .....

However, as I mentioned this on the other thread and as a general suggestion, which in fact applies to the majority of MODs out there, please .... PLEASE ... allow a complete cleanup after uninstalling your MODS. Considering the size of MySQL databases, even 1 MB data is too much when the a particular MOD is no longer installed. Thanks for your attention.

The amount of requests when early TP versions removed its data, was so much that we opted to keep the data when you un-installed it. Especially when people upgraded from one beta version to another, they tend to un-install if they had many other mods, thus would also remove the vital TP data! Sadly many mods collide and make updates harder, so the need to revive the TP data is very important.

However, the database data is kept fairly collected so its just a question of removing 6-7 xxx_tp_yyyy tables, that should not be too hard to remove manually. As for uploaded files, removing the tp-files, tp-images and tp-downloads should quickly fix that.
Title: Re: TinyPortal
Post by: R.Bourne on April 13, 2009, 05:48:22 AM
Thanks Bloc. Yes, I am aware that your MOD is beta ... and well .... BETA means BETA! LOL ;)

But, anyway thanks for your time and reply.

P.S. We are in love with all your themes, BTW :D
Title: Re: TinyPortal
Post by: TheListener on April 18, 2009, 10:00:27 AM
Tried to install tinyportal on 1.1.8

We had 4 fails so decided against it.

Was willing to give the mod a chance.  :(
Title: Re: TinyPortal
Post by: R.Bourne on April 18, 2009, 06:24:00 PM
Quote from: TheListener on April 18, 2009, 10:00:27 AM
Tried to install tinyportal on 1.1.8

We had 4 fails so decided against it.

Was willing to give the mod a chance.  :(

If you are really interested to keep it, I'd suggest you check out their web sites for an excellent step-by-step installation. I remember we had a few failures, however, in less than a few min, after reviewing their site, all problems resolved.

http://docs.tinyportal.net/index.php?board=8.0;sort=subject

The portal itself has so many features and it's really cool. Their internal support forum does a good job of answering user's questions.

Good luck
Title: Re: TinyPortal
Post by: IchBin™ on April 19, 2009, 02:04:15 AM
Quote from: TheListener on April 18, 2009, 10:00:27 AM
Tried to install tinyportal on 1.1.8

We had 4 fails so decided against it.

Was willing to give the mod a chance.  :(

Not something I usually do, but if you're desperate enough you can proceed with the install. Then manually make the changes to the files that it failed on that TinyPortal requires. The changes, generally are not that complex. Of course, you should make a backup before doing anything to your forum in case you need to roll back and restore. :)
Title: Re: TinyPortal
Post by: TheListener on April 19, 2009, 02:07:53 AM
The problems we have are not knowing how or where to manually install.
Title: Re: TinyPortal
Post by: R.Bourne on April 19, 2009, 03:23:00 AM
Quote from: TheListener on April 19, 2009, 02:07:53 AM
The problems we have are not knowing how or where to manually install.

It is already documented in the link that I posted in my previous response. In fact, per their instruction, it's OK to proceed with the installation and update the failed files manually right after.
Title: Re: TinyPortal
Post by: Vampy on April 19, 2009, 07:47:01 AM
Quote from: Bloc on April 12, 2009, 06:10:02 AM
Different themes can be done - sort of - with TP. One option is to simply set the article(s) preferred theme to another than the default for forum -  or set default theme to one theme, then select another theme for all the boards.

If you have scripts then you could make PHP articles in TP, place your scripts into a folder right under the forum(it doesn't matter where really) then include/require them into the articles. It depends on the script of course, but most times it works fine. It would then show as a page within TP/SMF, even if your scripts is actually somewhere else.

I have lots of different scripts depending on the tool required, from perl (In cgi-bin) through java to javascript and so on, most of which are kept in their own folders for neatness. As I have no idea how to even start integrating them into articles I think I have a lot of reading to do before I could even attempt it :P

Quick question though - would this then require SMF to be installed into root instead of a sub folder as it is now?
Title: Re: TinyPortal
Post by: IchBin™ on April 19, 2009, 11:38:00 AM
Depends on what you want. If you want TP to be your landing page, then yes SMF has to be in the root folder because TP is only a mod for SMF.
Title: Re: TinyPortal
Post by: Vampy on April 19, 2009, 08:25:54 PM
Hmm then it won't work for me :( - I need the sub-domains and cgi-bin to stay in root along with several other things :(
Title: Re: TinyPortal
Post by: vestradeus on April 30, 2009, 07:44:02 AM
I skimmed over the last few pages, saw nothing relating to my woes, so here I go.

I've installed with no issues, learned to manage my blocks and al that jazz, got things looking good and wrote a couple articles, which worked great for me...the admin.

However, in my goal to farm out the hard work to my peoples (writing the future articles) it seems they can only gain the ability to submit one if I give permissions to manages articles and categories as well - and that's a bit more power then I want to be handing out. Is there some setting I've somehow missed that allows people to submit and article without the permissions to manage all of them?
Title: Re: TinyPortal
Post by: bloc on April 30, 2009, 08:35:50 AM
Yes, once you give them permission to "submit BBC" or "submit HTML" ( but not "manage articles") - then they get a "submit an article" link inside the userinfo type of block. They can use that to send in articles without access to all others.
Title: Re: TinyPortal
Post by: kingkingston on May 11, 2009, 08:16:41 PM
Quote from: vestradeus on April 30, 2009, 07:44:02 AM
I skimmed over the last few pages, saw nothing relating to my woes, so here I go.

I've installed with no issues, learned to manage my blocks and al that jazz, got things looking good and wrote a couple articles, which worked great for me...the admin.

However, in my goal to farm out the hard work to my peoples (writing the future articles) it seems they can only gain the ability to submit one if I give permissions to manages articles and categories as well - and that's a bit more power then I want to be handing out. Is there some setting I've somehow missed that allows people to submit and article without the permissions to manage all of them?
You could just use the articles mod
Title: Re: TinyPortal
Post by: bloc on May 25, 2009, 01:19:38 PM
UPDATE

We are happy to announce the release of TinyPortal v1.0 beta 4 for SMF 1.1.x where many bugs from the previous beta have been fixed. The main focus was getting rid of errors, in order to make the operation of TP better.

From the changelog:

- Editor was cleaning up inline styles and tag attributes. Fixed.
- HTML code was not converted back from entities.Fixed.
- Layout B was off in the calculations.
- Permission check for uploading files trapped the check for submitting articles.
- Saving article titles with single quotes caused errors in saving global_tags.
- rating downloads were allowed for guests.fixed.
- Moved selection of themes to theme-block-type.
- Errors in creating topics when uploading from DL manager.
- DL manager root categories did not follow custom sorting order.
- Added settings to change the type of wysiwyg editor for Downloads.
- Added option to turn block on and off in the block editing screen.
- Sitemap items were cleared out when custom menus changed.
- Showing linktree option for articles fetched wrong variable.
- CSS errors for IE6 in DL manager frontpage.
- TP assumed tp_news permission on non-admins, causing saving to fail.
- Print article rendered BBC articles wrong.
- BBC articles did not convert entities.
- Articles were not following options for frame/title/none visibility settings.
- Added taglinks in forum as well, adjustments on layout.
- Child categories were hidden if parent category was empty of articles. TP Admin.
- RSS block did not interpret image tag in RSS feeds properly.
- Wrong logic in frontpanel display routine.
- Printing PHP articles wasn't working.
- cleaned up the article layouts.
- posting screen preview hung because of added TP layers.
- textarea/form tags broke TP admin form tags.
- A extraneous comma was casing problems in IE when Mootools scrolling of shouts were selected.
- Added back old scroller code for Shoutbox.
- Removed the "more" smilies when in Post screen.
- Article array wasn't filled for main section of blocks.
- padding differences between panels corrected.
- Create new tags was not working from editing articles.
- Category of single page was not set, making it show layout options from frontpage instead.


To update from earlier versions or install fresh, simply upload the package and run it. In case you need to install manually, follow the instructions in the mod file for SMF files, upload files and upload+run tp_install.php to insert the database tables.

- You can also update your forum through the package manager, by adding the TP server in the list of servers there. Once added, you will see the 2 latest betas which you can download and install. The server adress to use is: http://www.tinyportal.net/tpmods.
Title: Re: TinyPortal
Post by: ccraciun on May 25, 2009, 01:32:56 PM
Great news!

I'm looking forward to test it; i observe "padding differences between panels corrected" - that stopped me from further tests, i'm glad to hear that it was solved!

Many thanks for your work!
Title: Re: TinyPortal
Post by: babjusi on May 25, 2009, 01:50:54 PM
Nice work Bloc :)
Title: Re: TinyPortal
Post by: fdLP. on May 26, 2009, 05:50:56 AM
Hello , i do use TP at 1.1.9 , but my custom membergroups cant see the portal. Normal members can. why that happens?
Title: Re: TinyPortal
Post by: fdLP. on May 26, 2009, 09:31:16 AM
Bump .. also from the time i added it , I cant quote anything.
Title: Re: TinyPortal
Post by: bloc on May 26, 2009, 11:03:51 AM
Do you have a link? Normally SMF would operate as usual after TP is installed, but every block and article category needs to have permissions set for the membergroups that should view it. Like boards really.

Why you can't quote i can't say, do you use a custom theme?
Title: Re: TinyPortal
Post by: fdLP. on May 26, 2009, 12:51:44 PM
Quote from: Bloc on May 26, 2009, 11:03:51 AM
Do you have a link? Normally SMF would operate as usual after TP is installed, but every block and article category needs to have permissions set for the membergroups that should view it. Like boards really.

Why you can't quote i can't say, do you use a custom theme?

Yes i do use a custom theme , url is www.gaming-devs.com .
Title: Re: TinyPortal
Post by: bloc on May 26, 2009, 01:03:43 PM
Hm, the quoting..does it work on default theme? (http://gaming-devs.com/forum/index.php?action=forum;theme=1)
Title: Re: TinyPortal
Post by: IchBin™ on May 26, 2009, 01:37:39 PM
Is your quick edit having any problems? I've noticed on your site that you have other problems as well. If you view the source of your frontpage you'll notice that there is an extra blank line at the very top of the source before the <doctype line. If this happens, it often leads to the problem where your captcha does not work for registration. Which you'll notice if you view your registration page, that your captcha is not working. You need to look through all of your language files and make sure that there are no extra spaces or lines before the opening <?php tag, and after the closing ?> tag. If you find any, remove/delete them. If you don't find any, I would then check the files in the Sources directory for the same problem. Hopefully, once you find the problem your other problems will magically go away as well. :)
Title: Re: TinyPortal
Post by: fdLP. on May 26, 2009, 01:56:25 PM
Quote from: Bloc on May 26, 2009, 01:03:43 PM
Hm, the quoting..does it work on default theme? (http://gaming-devs.com/forum/index.php?action=forum;theme=1)

No it doesnt work with default theme.
I still cant see the menu with the custom memberships.

Quote from: IchBin™ on May 26, 2009, 01:37:39 PM
Is your quick edit having any problems? I've noticed on your site that you have other problems as well. If you view the source of your frontpage you'll notice that there is an extra blank line at the very top of the source before the <doctype line. If this happens, it often leads to the problem where your captcha does not work for registration. Which you'll notice if you view your registration page, that your captcha is not working. You need to look through all of your language files and make sure that there are no extra spaces or lines before the opening <?php tag, and after the closing ?> tag. If you find any, remove/delete them. If you don't find any, I would then check the files in the Sources directory for the same problem. Hopefully, once you find the problem your other problems will magically go away as well. :)

you are awesome!Thank you so much.I checked the TP's files and yes , most of them had some blank lines after the closing ?> .
Title: Re: TinyPortal
Post by: IchBin™ on May 26, 2009, 02:19:49 PM
Sweet! Glad that fixed it for you. Captcha on your site now looks like its working. So I'm assuming this affected quote and stuff too. :)
Title: Re: TinyPortal
Post by: fdLP. on May 27, 2009, 03:14:23 AM
Quote from: IchBin™ on May 26, 2009, 02:19:49 PM
Sweet! Glad that fixed it for you. Captcha on your site now looks like its working. So I'm assuming this affected quote and stuff too. :)

yeap probably , and i thank you.

@Bloc ,can you check my problem please?
Title: Re: TinyPortal
Post by: bloc on May 27, 2009, 04:37:15 AM
I have checked the install routine, and it does install without errors on a fresh SMF 1.1.9. I can only assume something on your site hasn't the original files, maybe a another mod is interfering there.

EDIT: I can't see any spaces in TP files either, but will double-check again.
Title: Re: TinyPortal
Post by: fdLP. on May 27, 2009, 05:11:19 AM
Quote from: Bloc on May 27, 2009, 04:37:15 AM
I have checked the install routine, and it does install without errors on a fresh SMF 1.1.9. I can only assume something on your site hasn't the original files, maybe a another mod is interfering there.

EDIT: I can't see any spaces in TP files either, but will double-check again.

I Just installed TP1_beta3 in fresh 1.1.9 files local and i created a new group and the new group with standard perms cannot see the left , right panels.

EDIT : i fixed it , i had to press on the "E"  to edit the brackets and give to custom members permissions!
Title: Re: TinyPortal
Post by: tbk22 on June 11, 2009, 04:33:30 PM
is it compatible with most custom themes? even if these themes were not made to tinyportal?
Title: Re: TinyPortal
Post by: IchBin™ on June 11, 2009, 04:42:02 PM
Yes. The only customization usually needed is a forum button.
Title: Re: TinyPortal
Post by: thesikaleon on June 16, 2009, 04:24:53 AM
This is my site http://greekschat.info

Installed smf 1.1.9 , tiny portal 0.9.8 and language greek utf 8

The problem is that in my homepage only the frontpage blocks are vissible. There is no way to make visible the center, lest side και right side blocks.

My theme is Green Light v1 (http://www.tinyportal.net/index.php?action=tpmod;themegallery=view;design=62), but it seems to works fine  HERE (http://www.fussilet.com/index.php?theme=115), with no problems.


I tried different themes from tinyportal official site but I found only one theme (leather theme) that works OK for me, and all the blocks are vissible.



Is there any sollution or it's just the leather theme that I can use?


thanks for your time  ;)
Title: Re: TinyPortal
Post by: IchBin™ on June 16, 2009, 10:27:03 AM
I don't see any panels or blocks on your site. What are your frontpage settings? What are your panel settings?
Title: Re: TinyPortal
Post by: treyzbrownz on July 31, 2009, 05:36:59 PM
Hey Guys.
Why, when I change the font size, in the forum post, that shows on the tinyportal, it never changes?

I want it font size 12, but it want change
can someone please help me..
Title: Re: TinyPortal
Post by: ishaan on October 17, 2009, 09:00:55 PM
Hello Brother ,

I am using your  TinyPortal,

what i need now is that i want to show only 1 big in a Topic shown in the Portal Page,Other images like screen shots and other should only load when we click on "click more" , So Tell me how to DO so .

plzz tell me..
  :(
Title: Re: TinyPortal
Post by: bloc on October 18, 2009, 05:26:15 AM
Quote from: ishaan on October 17, 2009, 09:00:55 PM
Hello Brother ,

I am using your  TinyPortal,

what i need now is that i want to show only 1 big in a Topic shown in the Portal Page,Other images like screen shots and other should only load when we click on "click more" , So Tell me how to DO so .

plzz tell me..
  :(

Try select "forum only" for the frontpage option, and then select only 1 item to show per page. You will get the latest in the board you specify then.

If you are looking to show one particular topic on frontpage only thats not possible.
Title: Re: TinyPortal
Post by: IchBin™ on October 20, 2009, 03:30:29 AM
Maybe you should ask this in the Simple Portal topic since it seems you are using that portal and not TinyPortal. ::)
Title: Re: TinyPortal
Post by: KensonPlays on October 28, 2009, 06:54:45 PM
Will this ever work for 2.0? What edits? I need this, i heard this could be used to connect to wordpress. is this so?
Title: Re: TinyPortal
Post by: bloc on October 28, 2009, 08:31:20 PM
Quote from: Kcmartz on October 28, 2009, 06:54:45 PM
Will this ever work for 2.0? What edits? I need this, i heard this could be used to connect to wordpress. is this so?
- It will, its already in beta testing on it.

- "Edits"..?

- TP doesn't work with Wordpress. If you have custom code that fetch data from Wordpress, then TP allow you to add that into a PHP type of block or article, thats all.
Title: Re: TinyPortal
Post by: j_jindal1 on November 18, 2009, 10:01:31 AM
What has happened to http://www.tinyportal.net

It's showing some empty folders at my end..  :( When will it be back..
Title: Re: TinyPortal
Post by: IchBin™ on November 18, 2009, 10:42:41 AM
Strange, everything seems to be working fine for me. Try a different browser?
Title: Re: TinyPortal
Post by: bloc on November 18, 2009, 11:02:42 AM
It was a temporary lapse in the server during a upgrade - should be fine now.
Title: Re: TinyPortal
Post by: Beadan on December 01, 2009, 07:18:01 AM
Quote from: Bloc on February 13, 2005, 06:59:59 AM
Quote from: SOTG Marine on February 13, 2005, 05:19:44 AM
I'm using the Helios Theme, .. and I think that's my problem. I see everything you guys are talking about on the regular theme. How do I get it to work on the Helios theme?


I will convert all my themes ( well, almost..) to alternative versions for use in TinyPortal. Mainly its just adding some images, and changing index.template.php. So then you can use that version of Helios instead.

But if you already have Helios modifiled, just send me the index.template.php file and I will insert the code for you.

Hi Bloc

Will I be able to send you my index.template.php as well?  I'm receiving the following error on TP.

TinyPortal1.0 beta 4
"Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that bla bla"
Fault:
7.     Execute Modification     ./index.php     Test failed

I have prob posted a similar question on the Helios section with the problem I'm having with simple awards as well.

Any help would be appreciated!
Title: Re: TinyPortal
Post by: Kindred on December 01, 2009, 08:06:57 AM
please do not cross post in multiple threads. I have explained your problem in the helios thread. (BTW: Neither problem has to do with helios... also, please note the failure is in index.php not index.template.php. It has nothing to do with the theme)

Title: Re: TinyPortal
Post by: Distroman on December 02, 2009, 08:40:02 AM
Execute Modification     ./Themes/default/index.template.php     Test failed
Execute Modification     ./Themes/default/Help.template.php     Test failed

Until this everything was going fine.  :)

Oh, no other mods installed.

Heeeeelp.  :)
Title: Re: TinyPortal
Post by: IchBin™ on December 02, 2009, 10:00:30 AM
If you don't have any other mods installed, this is probably because you installed mods previously or altered those two files. You'll need to do one of two things.
1. Restore those two files that the install failed on, then try the install again.
2. Or install the code to those files manually after running through the install even when it has failed.
Title: Re: TinyPortal
Post by: Distroman on December 02, 2009, 10:12:54 AM
Thanks heaps, greatly, profusely and with much gusto.  :)
Title: Re: TinyPortal
Post by: paulmagno on December 17, 2009, 11:32:39 AM
Hi...I've had TinyPortal installed for about two months now and it's worked perfectly...until yesterday when I tried to edit the info in the side panels. Now, when I access the TinyPortal part of the Admin area, I can't access the "Panels and Blocks" or "Modules and Tags" sections...Everything else comes up fine, but when I try to get those two sections, I get a message that says:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

I haven't changed anything at all to my board or tiny portals...How can I fix this? Oh, yeah: I'm using SMF version 1.1.10 and TinyPortal version 1.083

By the way, I tried to access TinyPortals.net, but the site has been down since yesterday...

Thanks in advance!
Title: Re: TinyPortal
Post by: bloc on December 17, 2009, 11:43:45 AM
This is probably due to TP fetching latest news from tp.net. It has been down for 12 hours now, and I am trying to get the host to check whats wrong.
Title: Re: TinyPortal
Post by: paulmagno on December 17, 2009, 12:36:01 PM
Quote from: Bloc on December 17, 2009, 11:43:45 AM
This is probably due to TP fetching latest news from tp.net. It has been down for 12 hours now, and I am trying to get the host to check whats wrong.

Problem solved...Thank you very much Sr. Bloc
Title: Re: TinyPortal
Post by: paulmagno on December 28, 2009, 11:33:51 AM
Quote from: paulmagno on December 17, 2009, 11:32:39 AM
Hi...I've had TinyPortal installed for about two months now and it's worked perfectly...until yesterday when I tried to edit the info in the side panels. Now, when I access the TinyPortal part of the Admin area, I can't access the "Panels and Blocks" or "Modules and Tags" sections...Everything else comes up fine, but when I try to get those two sections, I get a message that says:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

I haven't changed anything at all to my board or tiny portals...How can I fix this? Oh, yeah: I'm using SMF version 1.1.10 and TinyPortal version 1.083

By the way, I tried to access TinyPortals.net, but the site has been down since yesterday...

Thanks in advance!

Problem is back...Is this Tiny Portal again or is it me? I can't access the panels to edit them...
Title: Re: TinyPortal
Post by: paulmagno on December 29, 2009, 12:07:20 AM
Quote from: paulmagno on December 28, 2009, 11:33:51 AM
Quote from: paulmagno on December 17, 2009, 11:32:39 AM
Hi...I've had TinyPortal installed for about two months now and it's worked perfectly...until yesterday when I tried to edit the info in the side panels. Now, when I access the TinyPortal part of the Admin area, I can't access the "Panels and Blocks" or "Modules and Tags" sections...Everything else comes up fine, but when I try to get those two sections, I get a message that says:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

I haven't changed anything at all to my board or tiny portals...How can I fix this? Oh, yeah: I'm using SMF version 1.1.10 and TinyPortal version 1.083

By the way, I tried to access TinyPortals.net, but the site has been down since yesterday...

Thanks in advance!

Problem is back...Is this Tiny Portal again or is it me? I can't access the panels to edit them...

Bump!
Help!
Problem is same as in quote box
Title: Re: TinyPortal
Post by: Ken. on December 29, 2009, 04:55:03 AM
paulmanno, you'll likely get a quicker response by posting your issue on the TinyPortal Support boards.
http://www.tinyportal.net/index.php?action=forum (http://www.tinyportal.net/index.php?action=forum)
Title: Re: TinyPortal
Post by: paulmagno on January 01, 2010, 10:31:53 PM
Quote from: paulmagno on December 29, 2009, 12:07:20 AM
Quote from: paulmagno on December 28, 2009, 11:33:51 AM
Quote from: paulmagno on December 17, 2009, 11:32:39 AM
Hi...I've had TinyPortal installed for about two months now and it's worked perfectly...until yesterday when I tried to edit the info in the side panels. Now, when I access the TinyPortal part of the Admin area, I can't access the "Panels and Blocks" or "Modules and Tags" sections...Everything else comes up fine, but when I try to get those two sections, I get a message that says:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

I haven't changed anything at all to my board or tiny portals...How can I fix this? Oh, yeah: I'm using SMF version 1.1.10 and TinyPortal version 1.083

By the way, I tried to access TinyPortals.net, but the site has been down since yesterday...

Thanks in advance!

Problem is back...Is this Tiny Portal again or is it me? I can't access the panels to edit them...

Bump!
Help!
Problem is same as in quote box

Help, please...nobody is responding to my problem at Tinyportals.net...

would a switch to simple portal be recommended?
Title: Re: TinyPortal
Post by: bloc on January 02, 2010, 05:35:22 AM
Its related to the main site, so the RSS fails. I am working to figure out why, but you are welcome to try SimplePortal instead of course.
Title: Re: TinyPortal
Post by: Plural.. on January 04, 2010, 04:28:39 PM
Very nice mod. I was wondering, where is that forum template that is displayed in the pictures provided? Do they come with the mod?

Thank you.
Title: Re: TinyPortal
Post by: Ken. on January 04, 2010, 04:40:48 PM
Quote from: Plural.. on January 04, 2010, 04:28:39 PM
Very nice mod. I was wondering, where is that forum template that is displayed in the pictures provided? Do they come with the mod?

Thank you.

If you are asking about the themes the answer is no, TinyPortal includes no themes, instead it uses the themes that you install through the SMF theme management system.
There are custom themes available of course, here on SMF, on the TP site and other sites that make themes for SMF. 
Title: Re: TinyPortal
Post by: Lt Storm on January 04, 2010, 10:29:35 PM
I can't access the modules/tags and blocks/panels, I can access other options in the Tiny Portal, but when I try to access the Panels or Modules options it loads forever then goes to "can't display page".  I get this both in IE and FireFox.  Everything was fine earlier, and those are the only two pages that won't load. 

Any idea what's going on?
Title: Re: TinyPortal
Post by: IchBin™ on January 05, 2010, 12:43:11 AM
It's because those two pages pull information from TP.net. And right now TP.net is down while Bloc works out some problems. Will hopefully be back by tomorrow.
Title: Re: TinyPortal
Post by: oOo--STAR--oOo on February 18, 2010, 01:38:33 AM
Does TP offer a download System?
Title: Re: TinyPortal
Post by: Bikken on February 18, 2010, 03:43:18 AM
Quote from: aljo1985 on February 18, 2010, 01:38:33 AM
Does TP offer a download System?

Yes, check it out here: http://www.tinyportal.net/index.php?action=tpmod;dl
Title: Re: TinyPortal
Post by: Ken. on February 18, 2010, 05:17:43 AM
Just to add to Bikken's post... there is also a download system built into TinyPortal that can be used to host files on your site and make them available for download. It can be set to allow for member uploads and downloads.
Title: Re: TinyPortal
Post by: oOo--STAR--oOo on February 18, 2010, 06:31:01 AM
Is it better than the download system thats available here?
Style and feture wise?
Title: Re: TinyPortal
Post by: Ken. on February 18, 2010, 06:47:00 AM
Quote from: aljo1985 on February 18, 2010, 06:31:01 AM
Is it better than the download system thats available here?
Style and feture wise?

That's always going to be a matter of personal preference, for me the answer is yes because I use TinyPortal and think it's best... for others the answer may be different.
The best way to resolve questions like this for yourself is to set up a test site and try the different options that are available to determine what suits your needs.
Title: Re: TinyPortal
Post by: ricardo35 on March 23, 2010, 11:50:36 AM
Hello.

I have got a question regarding TP and SMF.

I'm trying to get the forum displayed next to the left tiny portal blocks. However I do NOT want the right side of the blocks to be displayed on the forum.
I've found an option in the admin panel saying '' hide panels when in custom actions'' @ Panels & Blocks.
Adding ''Forums'' makes both left and right blocks dissapear. Removing ''Forums'' Makes both blocks appear.

I'm clueless :)

Thanks!
Title: Re: TinyPortal
Post by: bloc on March 23, 2010, 11:52:55 AM
There is a setting on the "panels" page that let you hide the panel when inside the forum, tick off that and you should be fine.
Title: Re: TinyPortal
Post by: ricardo35 on March 23, 2010, 12:03:44 PM
Thanks for your reply.

Do you mean that I have to check the other boxes and uncheck the forum one?
That seems a little bit odd in my opinion, as I would have to do this for all right blocks then?

Pic07 displays the Settings page from Panels.. Where I can only say whether to display both blocks or none.

EDIT: I found it, thanks!
Title: Re: TinyPortal
Post by: ricardo35 on March 23, 2010, 01:30:29 PM
I've got one more question..

Tinyportal allows you to create some block that displays recent topics on your forum.
Now I've made two of these blocks. Both blocks show the last 5 posts on my forum in any section.
I was now wondering how I could make one block only show the last 5 topics from one specific forum.

If anyone happens to know if this is possible and how, please let me know!

Thanks in advance.
Title: Re: TinyPortal
Post by: IchBin™ on March 23, 2010, 01:37:48 PM
There are several custom block code snippets on the TP site in the block code snippets board for exactly this. A search through this board will help you find what you need.
http://www.tinyportal.net/index.php?board=46.0
Title: Re: TinyPortal
Post by: ricardo35 on March 23, 2010, 01:54:54 PM
Hey.

Thanks for your reply.

I checked one of your topics with the extremely long code, this one gave an error on line 1.

The other code I tried, which works.
       
global $scripturl;

echo '
                        <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
                               <tr><td colspan="3" class="titlebg">Recent topics</td></tr> ';
       $what=ssi_recenttopics('4', NULL, 'array');


        foreach ($what as $topic)
        {
                echo '
                                <tr>
                                        <td class="windowbg" valign="middle">
                                                ', $topic['link'];

                // Is this topic new? (assuming they are logged in!)
                if (!$topic['new'] && $context['user']['is_logged'])
                        echo '
                                                <a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['new_from'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';

                echo '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="20%">
                                                ', $topic['poster']['link'], '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="35%">';
                if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
                        echo '
                                        <a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" style="float: right;" /></a>';
                echo '
                                                <span class="smalltext">
                                                        ', $topic['time'], '
                                                </span>
                                        </td>
                                </tr>';
        }

        echo '
                        </table>';


However, here, I won't be able to select specific boards from my forum, for as far I know.
Is this possible? And if please let me know :)

Thanks!
Title: Re: TinyPortal
Post by: IchBin™ on March 23, 2010, 02:20:59 PM
There are several topics for your request in that board I pointed you to. Here's one.

http://www.tinyportal.net/index.php?topic=25497.0
Title: Re: TinyPortal
Post by: bloc on April 01, 2010, 01:15:49 PM
- TinyPortal have been updated to v1.0 beta5 today, with support for SMF 2.0 RC2/RC3 + lots of bugfixes and improvements. Check first post for download link or visit http://www.tinyportal.net for more details.
Title: Re: TinyPortal
Post by: Antechinus on April 02, 2010, 04:47:41 PM
Congratulations on the new release. :)
Title: Re: TinyPortal
Post by: bloc on April 03, 2010, 05:27:21 PM
Did you choose a module that should show on frontpage? currently only the Shoutbox will show, so thats prob. why you get the error.
Title: Re: TinyPortal
Post by: KensonPlays on April 03, 2010, 07:00:51 PM
Now this is for RC3, I am trying it out, registered at tinyportal.net...

EDIT:
My activation email never came... not spam or inbox!
Title: Re: TinyPortal
Post by: bloc on April 04, 2010, 08:05:04 AM
Did you get in, Kcmartz?
Title: Re: TinyPortal
Post by: KensonPlays on April 04, 2010, 08:54:47 AM
Yes, finally, but the admin is wierd, not in admin, but a whole new menu area menu! I don't like that :|. I switched back to PortaMx, which I am way more familiar with, sorry...
Title: Re: TinyPortal
Post by: bloc on April 04, 2010, 08:55:38 AM
No worries. :)
Title: Re: TinyPortal
Post by: KensonPlays on April 04, 2010, 08:57:33 AM
Thanks, once it looks like I will be more familiar with it's admin layout, then I might try it again...
Title: Re: TinyPortal
Post by: Snogmarr on April 04, 2010, 09:56:32 AM
Ref 030410-156p+3
funny
you answered above posters question yesterday after mine then his again today even after I had asked again about the error,,,
you were on line when I asked again yet you answered above post again and ignored mine.

can you tell me why.

Title: Re: TinyPortal
Post by: bloc on April 04, 2010, 11:28:16 AM
Quote from: xnathansxdadx on April 04, 2010, 09:56:32 AM
Ref 030410-156p+3
funny
you answered above posters question yesterday after mine then his again today even after I had asked again about the error,,,
you were on line when I asked again yet you answered above post again and ignored mine.

can you tell me why.



There is no reason, your error is a language error. Check you have the latest of them - or clear the cache.
Title: Re: TinyPortal
Post by: Lordmiller on April 04, 2010, 11:54:55 AM
Beta 5 Installed into 2.0 RC 3, everything works, except if I try to upload a file into the download manager I get this error after entering all the data and hitting the save/send button:

Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Die Roller Ap', '

', 'http://rpgfreelancers.org/smf/tp-downloads/icons/blan' at line 3
File: /home/celedor/public_html/smf/Sources/TPdlmanager.php
Line: 221

Which I believe indicates a cross issue with this mod:

http://custom.simplemachines.org/mods/index.php?mod=2032

Any thoughts as to what the issue is, so I can attempt to fix?

Edit: Reply from the Die Roller Mod Author:

Quote from: Arantor on April 04, 2010, 12:12:31 PM
That's nothing to do with this mod; there are no changes whatsoever in TPdlmanager.php on account of the last version I did I hadn't used TP at all. I'd be asking TP about it.

Even if I uninstall the die roller mod, the same error pops up whenever I hit the save button attempting to upload a file.
Title: Re: TinyPortal
Post by: IchBin™ on April 05, 2010, 05:07:41 PM
There are several issues being addressed in the last beta. Your issue is one of them miller.
Title: Re: TinyPortal
Post by: Lordmiller on April 05, 2010, 11:41:37 PM
It was fixed actually. . . .no apostrophes in file titles. . . .turned out that was the issue, Bloc responded with the fix within a few hours. . .really sweet portal, and fast turnaround, what more could I ask for?
Title: Re: TinyPortal
Post by: Galjoen on April 11, 2010, 10:18:40 AM
Installed on smf 1.1.11 and I get the following errors:

1) when checking profile:

Fatal error: Call to undefined function tpshout_profile() in /home/******/public_html/Sources/Profile.php on line 340
Fatal error: Call to undefined function tp_summary() in /home/******/public_html/Sources/Profile.php on line 343
Fatal error: Call to undefined function tp_articles() in /home/*****/public_html/Sources/Profile.php on line 343

2) I am using english utf8 and also get the following :

Unable to load the 'TPortal.english-utf8' language file.

Can anyone tell me where this files should be, as I cannot see on server, or alternatively give me edits I need to add to english-utf8  to create TPortal.english-utf8
Title: Re: TinyPortal
Post by: bloc on April 11, 2010, 03:28:59 PM
For the language files you coudl just rename the TPxxx.english.php to TPxxx.english-utf8.php, thats quickest.

The errors in profile is probably due to missing edits, check that all edits for TP were indeed carried out.
Title: Re: TinyPortal
Post by: tsak on April 17, 2010, 12:17:00 PM
hello. i have 2 problems.
1)How i can add a forum link on my menu
2)If someone try to see my portal non of the images of the theme i use are loaded. So he can see a white page with links only.

Can someone help me? Thx for your time
Title: Re: TinyPortal
Post by: Ken. on April 17, 2010, 06:26:36 PM
tsak, the best and easiest way to get answers is to post your issue on the TinyPortal site.

http://www.tinyportal.net/index.php?action=forum
Title: Re: TinyPortal
Post by: Soulflare3 on April 20, 2010, 07:50:10 PM
I installed the mod on SMF 1.1.11, and everything works for the most part, except:
When I click the Admin tab, I get the following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/******/public_html/smf/Sources/Admin.php on line 999

Before, I had gotten an error on line 406 that said there was an extra '*', so I went in and deleted the extra asterisk, but now I have another error :o. I tried to uninstall it to see if it would go back to normal, and it does, except once uninstalled, the error moves to line 998. I am going back to before I installed it, because I don't have access to some of my Admin tools. If you can fix the problem so that the Admin tab works, I'll reinstall it, but until then, I'm going back.
Title: Re: TinyPortal
Post by: Arantor on April 20, 2010, 07:53:11 PM
You could attach the broken file...
Title: Re: TinyPortal
Post by: Soulflare3 on April 20, 2010, 08:08:10 PM
I'm using an autoinstaller that came with my account, so it is literally easier and faster just to delete it and reinstall it.
Title: Re: TinyPortal
Post by: Arantor on April 20, 2010, 08:11:15 PM
Not really if you actually want anyone to identify the problem and help you prevent it in future.
Title: Re: TinyPortal
Post by: Soulflare3 on April 20, 2010, 08:13:13 PM
I meant SMF not TinyPortal. TinyPortal messed up my SMF files. (And the backups weren't accessible)
Title: Re: TinyPortal
Post by: Arantor on April 20, 2010, 08:18:29 PM
Yes, and without seeing the file there's no guarantee it won't happen again next time.
Title: Re: TinyPortal
Post by: Soulflare3 on April 20, 2010, 08:19:51 PM
I would like to appologize. I just reinstalled TinyPortal, and the errors are no longer there. Apparently I had a corrupted file on my server. Sorry for bothering you.
Title: Re: TinyPortal
Post by: Arantor on April 20, 2010, 08:22:54 PM
It should work just fine on a fresh install but something else you installed broke it - and won't work next time you install it...
Title: Re: TinyPortal
Post by: Soulflare3 on April 20, 2010, 08:23:46 PM
Yeah, I'm playing around with it ATM to find out which install corrupted the main board files.
Title: Re: TinyPortal
Post by: Soulflare3 on April 21, 2010, 05:28:55 PM
Quote from: Galjoen on April 11, 2010, 10:18:40 AM
Installed on smf 1.1.11 and I get the following errors:

1) when checking profile:

Fatal error: Call to undefined function tpshout_profile() in /home/******/public_html/Sources/Profile.php on line 340
Fatal error: Call to undefined function tp_summary() in /home/******/public_html/Sources/Profile.php on line 343
Fatal error: Call to undefined function tp_articles() in /home/*****/public_html/Sources/Profile.php on line 343

2) I am using english utf8 and also get the following :

Unable to load the 'TPortal.english-utf8' language file.

Can anyone tell me where this files should be, as I cannot see on server, or alternatively give me edits I need to add to english-utf8  to create TPortal.english-utf8


I am getting the exact same errors while viewing my profile in SMF 1.1.11, and also get the following error:
Fatal error: Call to undefined function tp_download() in /home/******/public_html/smf/Sources/Profile.php on line 347
when I click on the uploaded files link in the same sidebar.
Title: Re: TinyPortal
Post by: IchBin™ on April 21, 2010, 07:52:39 PM
All of these errors have been covered at TinyPortal if you take a search over there.
Title: Re: TinyPortal
Post by: Soulflare3 on April 22, 2010, 03:07:58 AM
Thank you. I found the reference you mentioned.
Title: Re: TinyPortal
Post by: !RFAN on May 18, 2010, 10:28:35 PM
okay... this is the 2nd time when i installed this mod and getting the sae error after installation... i cant even open my site...

Fatal error: Call to undefined function TP_loadTheme() in /home/hitohi/public_html/Sources/Load.php on line 1403

please help me ASAP
Title: Re: TinyPortal
Post by: IchBin™ on May 18, 2010, 11:16:33 PM
My guess is that your installation is not doing the edits to the files that it needs. The TP_loadTheme() function is in TPortal.php. I'd suggest you hit the parse button on the mod page for your version of SMF, then go through the files and see if it made the appropriated edits. Either that or it didn't upload the TPortal.php file to the Sources directory.
Title: Re: TinyPortal
Post by: !RFAN on May 19, 2010, 03:03:52 AM
hmmm... i did manual work on index.php and now its working fine..
pnly one problem... when i go to portal as an admin i can see panels but as a member i cant see any panels...

attatchment 1: as admin
attatchment 2 : as member

Title: Re: TinyPortal
Post by: !RFAN on May 19, 2010, 03:50:10 AM
sorry but i have done it... now every thing is working fine...

one question... can i use pretty urls with this mod... will it work??
Title: Re: TinyPortal
Post by: IchBin™ on May 19, 2010, 09:42:45 AM
I know there were problems in the past with that mod. But I've never used it myself, and don't know anyone else that has used that with TP. I'd suggest giving it a try and see.
Title: Re: TinyPortal
Post by: !RFAN on May 23, 2010, 01:23:18 PM
hmmm... so will it be beneficial in SEO??
i mean can i get ant SEO benefit from this...which is a function of CMS.
Title: Re: TinyPortal
Post by: rd on May 23, 2010, 01:28:45 PM
Quote from: amigozone on May 23, 2010, 01:23:18 PM
hmmm... so will it be beneficial in SEO??
i mean can i get ant SEO benefit from this...which is a function of CMS.

PrettyURLs? No, you will not get a benefit in SEO, because good looking URLs don't matter, it;s the content.
TinyPortal? Depends, like all other portals, if you use it to display content then search engines will of course index.
Title: Re: TinyPortal
Post by: rd on June 04, 2010, 07:58:06 PM
Yo, does anyone know if TP allows pictures to be resized in the frontpage because my picture is shown too big >.>
Title: Re: TinyPortal
Post by: FUBAR on June 04, 2010, 08:11:19 PM
Quote from: Royalduke on June 04, 2010, 07:58:06 PM
Yo, does anyone know if TP allows pictures to be resized in the frontpage because my picture is shown too big >.>

How are you displaying the picture on the front page?  Are you using a block or porting forum posts to the front page? 

It should do it either way but if using a block you would need to set it properly.   If using a forum post it should follow your forum rules for resizing an image. 
Title: Re: TinyPortal
Post by: rd on June 04, 2010, 10:05:42 PM
I'm using hotlinked images in forum posts.
Title: Re: TinyPortal
Post by: rd on June 04, 2010, 10:06:12 PM
Here: http://battleplanes.info

Title: Re: TinyPortal
Post by: rd on June 05, 2010, 08:25:50 AM
I still need help. I can't control size for sone reason and I'm hotlinking the images from with sites with the img bbcode.
Title: Re: TinyPortal
Post by: IchBin™ on June 05, 2010, 01:37:23 PM
TP doesn't change the sizes of the images if you don't constrain them within SMF from what I remember. Especially when you are only putting them inline and not as attachments.
Title: Re: TinyPortal
Post by: !RFAN on June 05, 2010, 02:14:15 PM
use highslide mod for this purpose... m using it an working fine for me..check out here: http://www.amigozone.tk
Title: Re: TinyPortal
Post by: Abel6669 on June 11, 2010, 08:58:05 AM
Hi there,

Ive downloaded TP a few days ago, and when i installed it, front page images were missing, just red "x"'d boxes were there.

Ive tried downloading from this website, SMF main site several times. Upon looking through the .zip, the files that are missing are ot actually IN it???

Can anyone help me?
Title: Re: TinyPortal
Post by: bloc on June 11, 2010, 11:07:01 AM
Which ones?
Title: Re: TinyPortal
Post by: Abel6669 on June 11, 2010, 04:32:47 PM
Quote from: Bloc on June 11, 2010, 11:07:01 AM
Which ones?

Most of them I think...

this screenshot I have shows the only ones i have noticed so far - one of which is "TPedit2" (I think)

Title: Re: TinyPortal
Post by: bloc on June 12, 2010, 06:19:47 AM
Upload all TP images into "Themes/default/images/tinyportal" folder, it seems they wasn't uploaded. Possibly also into "Themes/Moderndark64/images/tinyportal" folder.

They are located in the zip file as "common/Themes/default/images/tinyportal"
Title: Re: TinyPortal
Post by: Crip on June 25, 2010, 02:50:43 PM
Awesome update Mr. Bloc! (http://www.simplemachines.org/community/Themes/default/images/post/thumbup.gif)  (http://www.simplemachines.org/community/Themes/default/images/post/thumbup.gif)   
Title: Re: TinyPortal
Post by: agridoc on June 26, 2010, 05:10:06 AM
I post this as there might be quite a few that cant' connect to http://www.tinyportal.co.uk (http://www.tinyportal.co.uk).

After quite some struggling trying to connect, I concluded that ZoneAlarm Extreme security software blocks the site after a few clicks and, a crazy thing, it blocks the modem router.  :o

There might be others that have the same difficulties and think that the site is down or not working.

The new TP Support site is up and working!

From my experience until now

For ZoneAlarm Extreme users

If you can't connect to http://www.tinyportal.co.uk (http://www.tinyportal.co.uk) try again after resetting your modem (wait for Internet connection to be reestablished first).

After a few clicks you might see that the site is unavailable. This is caused by ZoneAlarm Extreme blocking the modem. You must reset again to reestablish connection with the site. If it's a wireless modem - router the same behavior appears from a WI-FI connection.

Disabling the firewall doesn't change anyrthing. If ZoneAlarm Extreme is unloaded everything goes OK (if the modem is first reset), no blocking, however this is not recommended for safety reasons.

Users of other security software might have similar behavior. If you can't connect, try the above instructions. Please report here if security software is another ZoneAlarm product or a different one.

I post here as people with problems accessing www.tinyportal.co.uk will not be able to post there.

Check Point (Zone Alarm) and the site's host will be contacted to find a solution.

Addition

What affects www.tinyportal.co.uk with ZoneAlarm Extreme. The site of the host has the same behavior.

Browser security -> Settings -> Advanced
Enable site status check <- Must be checked off

From ZoneAlarm Browser Security Help (http://download.zonealarm.com/bin/forcefield_x/help/wwhelp/wwhimpl/js/html/wwhelp.htm)
QuoteEnable site status check : Checks security-related information about each site you visit. See Web Site Safety Check and Rating for more information.

Title: Re: TinyPortal
Post by: Jojie on June 26, 2010, 09:15:09 AM
hi, I had an RSS issue. But unfortunately when i was asking over at tinyportal.net ... the last reply i coudln't read becuase the site has since closed.  but issue so far is this;

i have 2 sites. one running ver 0.098 and the other running the latest version. The one running the latest version will not show any RSS  -- that is any RSS at all... where as the other site with ver .98 can. I was asked something about running external website through php which i have no clue how to do/answer  so i asked how can i test it.. which ofcourse i got a reply after.. but that's when the site closed down..

so basically i'm starting from scratch again.  with help that is..
Title: Re: TinyPortal
Post by: Ken. on June 26, 2010, 10:17:19 AM
Joj, try posting your question on the new TinyPortal support site, you should be able to get an answer there.
www.tinyportal.co.uk (http://www.tinyportal.co.uk)
Title: Re: TinyPortal
Post by: lurkalot on June 27, 2010, 05:01:33 AM
Where is the Changelog for TP1.0 beta 5-2 ? 

It would be nice to see what's fixed / added / taken away etc in this new version. Now that the bugtracker has gone. ;)
Title: Re: TinyPortal
Post by: Akyhne on June 27, 2010, 09:51:40 AM
Where do we find the translations for old and new versions now?
Title: Re: TinyPortal
Post by: Mick. on June 27, 2010, 10:54:30 AM
Hey TP!   I registered to the new site 1/2 hour ago, but no activation email yet has come my way :o
Title: Re: TinyPortal
Post by: ZarPrime on June 27, 2010, 11:33:22 AM
Akyhne,


There haven't been a lot of translations done yet but there are some.  You can check the International Board on the new site or have a look at this topic --> http://www.tinyportal.co.uk/index.php?topic=32105.0 (http://www.tinyportal.co.uk/index.php?topic=32105.0)


I will ask Bloc the next time I talk to him to give me the downloads for the ones we had at the time TP.net closed.  We will be  discussing what to do about translations on the Team Board over there in the next couple of days.


Bluedevil,


I don't know what the problem might have been.  I activated you manually.


ZarPrime
Title: Re: TinyPortal
Post by: Akyhne on June 27, 2010, 11:38:15 AM
I might start the Danish translation, but I don't intend to start all over. It would be nice with the old language packs in hand.
Title: Re: TinyPortal
Post by: ZarPrime on June 27, 2010, 11:59:24 AM
I'm not even certain that anyone ever did a Danish translation for TP 1.0 beta 5.  I'll just have to ask Bloc.  Most people did their own translations for the latest version since it's only been out for a couple of months.  There are a few translations available but it may be that we will just need to start over.


ZarPrime
Title: Re: TinyPortal
Post by: Mick. on June 27, 2010, 12:09:05 PM
Thanx ZP,   you rock! ;)
Title: Re: TinyPortal
Post by: rngrdanny22 on July 02, 2010, 11:14:53 AM
Good morning,

I am having an issue with a theme I am creating. My issue is with the topnav (top menu with home, forum, admin, etc). I have TinyPortal installed, but when I go into a message board, it highlights the "Home" tab instead of the "Forum" tab. I noticed that on www.DzinerStudio.com, no matter what you click on in the "Forum" drop down menu or whichever board you go into, the "Forum" tab stays highlighted.

Is there a trick to doing this that I'm overlooking?

Thanks!
Title: Re: TinyPortal
Post by: Touti on July 04, 2010, 08:45:31 AM
Hi Forum,

My site was hacked last night.

SMF 1.1.11
TP 1.0 Beta 4

The hacker managed to upload a compressed script using TP.  He put a file called dbc.php.pjpg in the tp-images/File folder and then used it to replace my index.php file.

My access log for that period (http://www.totalexpedition.com/log.txt)

This what I get in my browser when I navigate to myserver/tp-images/dbc.php.pjpg

(http://www.totalexpedition.com/MGalleryItem.php?id=2367)

(http://www.totalexpedition.com/MGalleryItem.php?id=2368)

It looks like a nice little hacking interface.   I checked the IP Address and it's not a registered member of my forum.  I tried all the links that the hacker used which I see in my access log.

This is what he used
http:// web site address /FCKeditor/editor/filemanager/browser/default/browser.html?connector=connectors/php/connector.php

That shows the content of the tp-images/File folder and with a file upload box at the bottom

Bloc, I understand that FCK Editor comes from a 3rd party and that you're just including it with TP but maybe you should modify the one in your distribution to include a security check and make sure only forum members that are logged in can upload files.
Title: Re: TinyPortal
Post by: bloc on July 04, 2010, 10:16:02 AM
FCKeditor is not inlcuded with v1.0 beta4.

That must be from an earlier TP version as I removed it already in v1.0beta1...one of the reasons was exactly that vulnerability + other possible problems with it.
Title: Re: TinyPortal
Post by: Touti on July 04, 2010, 10:58:53 AM
Thanks Bloc, that's good to know.  I've been using TP since 0.98 and I just kept upgrading with each new version, I had no idea that you had dropped FCK Editor.  Does this mean there's no more wysiwyg for writing articles ?

Edit: Nevermind, I renamed the FCKeditor folder and I still have wysiwig.  Maybe next time I upgrade I'll read the change log  :-[
Title: Re: TinyPortal
Post by: IchBin™ on July 04, 2010, 11:21:12 AM
No, it means that a different editor is being used.
Title: Re: TinyPortal
Post by: bloc on July 04, 2010, 04:26:57 PM
V1.0 beta5.2 has been released, but the changelog was left out:

QuoteChangelog:

- Textareas inside PHP code would interfere with TP source code.Fixed.
- Errors with utf-8 characters not shown correctly in shoutbox+articles.
- Changed slightly shoutbox to better fit in narrow panels.
- Fixed CAPTCHA errors in article comments.
- Fixed avatars not showing in forum topics on frontpage.
- Added WAP and IMODE subtemplate code.
- Corrected javascript errors for menu item editing.
Title: Re: TinyPortal
Post by: Svannah on July 06, 2010, 01:11:26 PM
Bloc,  I was referred to you by K@.  I'm having issues with the custom theme I installed from SMF on my website and getting the blocks to appear. I have TinyPortal installed.

See this thread for more info. http://www.simplemachines.org/community/index.php?topic=389397.0

Anything you can do to help me get the left block to appear?
Title: Re: TinyPortal
Post by: agridoc on July 06, 2010, 01:40:41 PM
Svannah which version of SMF and TP are you using? You posted that you have not installed it yourself, so it may be an older version.
Whatever version of TP, a new block must be set to ON to show up. In a PHP block there will be no content if errors exist.

In newer versions, besides the panel selection, you must also define in which sections you want the block to appear.
Title: Re: TinyPortal
Post by: MaXiForum.cz on July 06, 2010, 01:44:23 PM
QuoteTinyportal.net is now closed and all support will have to happen on the SMF modsite in the future.

Hello!
Will appear another update or not?
I would like to know if TinyPortal ends...
Thanks
Title: Re: TinyPortal
Post by: Svannah on July 06, 2010, 02:08:00 PM
Quote from: agridoc on July 06, 2010, 01:40:41 PM
Svannah which version of SMF and TP are you using? You posted that you have not installed it yourself, so it may be an older version.
Whatever version of TP, a new block must be set to ON to show up. In a PHP block there will be no content if errors exist.

In newer versions, besides the panel selection, you must also define in which sections you want the block to appear.

Agridoc,  I'm using 1.1.11 for SMF, and for TP 0.983.  I've selected everything I can think of to have the blocks show up, but nothing makes them appear.  I've got two articles made to appear in the block, and those are set appropriately.  Before I installed the current theme, the blocks were there, but when I put in the theme I have now, they were gone.
Title: Re: TinyPortal
Post by: bloc on July 06, 2010, 04:50:08 PM
Quote from: MaXiForum.cz on July 06, 2010, 01:44:23 PM
QuoteTinyportal.net is now closed and all support will have to happen on the SMF modsite in the future.

Hello!
Will appear another update or not?
I would like to know if TinyPortal ends...
Thanks

You already have the newest update, right here in this topic - the v1.0 beta5.2 version.

On the question if TP will end or not: I have no plans to go beyond v1.0 final at this point, IMO it works fine as it is, for what it does. Bugs and minor adjustments must be fixed of course and released, especially when SMF come out in new versions.
Title: Re: TinyPortal
Post by: agridoc on July 06, 2010, 05:22:21 PM
Quote from: Svannah on July 06, 2010, 02:08:00 PMAgridoc,  I'm using 1.1.11 for SMF, and for TP 0.983.  I've selected everything I can think of to have the blocks show up, but nothing makes them appear.  I've got two articles made to appear in the block, and those are set appropriately.  Before I installed the current theme, the blocks were there, but when I put in the theme I have now, they were gone.

I see the point now.

TP 0.9.8 needed themes to be converted to work with, TP 1.0 not. it works with standard SMF themes.

So you can go one of two ways.
- Install another theme that is made to work with TP 0.9.8x, unfortunately I have no links available.
- Upgrade to TP 1.0 beta5.2 (http://custom.simplemachines.org/mods/index.php?mod=97) so you can work with any theme compatible with the SMF version you have. This move will need a plan and should be a major upgrade of your site.
Title: Re: TinyPortal
Post by: Svannah on July 06, 2010, 05:29:11 PM
Quote from: agridoc on July 06, 2010, 05:22:21 PM
I see the point now.

TP 0.9.8 needed themes to be converted to work with, TP 1.0 not. it works with standard SMF themes.

So you can go one of two ways.
- Install another theme that is made to work with TP 0.9.8x, unfortunately I have no links available.
- Upgrade to TP 1.0 beta5.2 (http://custom.simplemachines.org/mods/index.php?mod=97) so you can work with any theme compatible with the SMF version you have. This move will need a plan and should be a major upgrade of your site.

Well I'd rather not change themes - and an upgrade can't hurt...but I am still very new to some of this stuff.  I know how to dinstall packages, but as for what it will do to my site...that I really know nothing about.  The site itself is still being set up, so currently only myself and three others are registered there.  If I had to re-do everything, that would suck, but I'd do it. 

What do you mean the move will need a plan?  Will I have to redo everything I've already got set up then?

Title: Re: TinyPortal
Post by: agridoc on July 06, 2010, 06:24:07 PM
Installing a theme is very simple.

If TP 0.9.8.3 can be uninstalled, it's easy. If other mods are installed after TP and quite some customization has been done it needs a plan. I am speaking for big sites with quite some content, members, mods, manual customization, bridged software. This seems  not to be your case.
Title: Re: TinyPortal
Post by: Svannah on July 06, 2010, 06:36:44 PM
So a few articles, some forum boards, some calendar events - that might be ok?

And it looks like TP can be uninstalled and I don't have any other mods that I'm aware of.  Nothing else showing up in the Modules tab under Packages.
Title: Re: TinyPortal
Post by: Svannah on July 06, 2010, 06:46:29 PM
Ok well I have a test site set up so I can mess around with settings before I apply them to my live site.  I uninstalled TP .983 and installed the beta from the link you provided...and now I can't do anything on the test site.

I get a Database Error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IFNULL(mem.realName,art.author) as realName FROM smf_tp_articles AS art
LEFT ' at line 2
File: /home/thedi13/public_html/grayorder/test/Sources/TPortal.php
Line: 2153
Title: Re: TinyPortal
Post by: agridoc on July 06, 2010, 07:07:57 PM
TP.0.9.8.3 uninstalled without error messages?

Get the latest Large upgrade of SMF (1.1.11 of SMF 2.0 RC3) upload the files overwriting the old ones and run upgrade.php. That will bring back the site. Then reinstall TP 1.05.2.
Title: Re: TinyPortal
Post by: Svannah on July 06, 2010, 07:27:48 PM
Quote from: agridoc on July 06, 2010, 07:07:57 PM
TP.0.9.8.3 uninstalled without error messages?

Get the latest Large upgrade of SMF (1.1.11 of SMF 2.0 RC3) upload the files overwriting the old ones and run upgrade.php. That will bring back the site. Then reinstall TP 1.05.2.

I assume you mean one of the installs from this page? http://download.simplemachines.org/

Which one?
Title: Re: TinyPortal
Post by: agridoc on July 06, 2010, 08:14:32 PM
It's up to you to decide, TP 1.05.2 will work with both.

SMF 1.1.11 is more stable, has some mods not yet available for SMF 2.0.

Usually RC3 versions are close to maturity, so you may try 2.0 RC3, has quite some new features but remember there is a note
Note: As this is in development, we do not recommend running SMF 2.0 RC3 on a production site.

If your members are not expected to be hundreds soon choose the newer version.
Title: Re: TinyPortal
Post by: Claine on July 07, 2010, 01:29:12 AM
I'm getting a lot of errors.  There is two main kinds.  I'm not exactly sure where they're from but they both mention TP so this is probably a good place to start.  There is a slight variation between them, but in general they all look like this:


2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
Apply Filter: Only show the errors from this file
File: /home/kureaac1/public_html/tzelkora.com/Themes/default/Login.template.php (tp_below sub template - eval?)
Line: 69


Apply Filter: Only show the errors with the same message
8: Undefined index: tp_panels
Apply Filter: Only show the errors from this file
File: /home/kureaac1/public_html/tzelkora.com/Themes/default/Login.template.php (tp_below sub template - eval?)
Line: 69


I use SMF 2.0 RC3
Title: Re: TinyPortal
Post by: MaXiForum.cz on July 07, 2010, 11:27:14 AM
Quote from: Bloc on July 06, 2010, 04:50:08 PM
Quote from: MaXiForum.cz on July 06, 2010, 01:44:23 PM
QuoteTinyportal.net is now closed and all support will have to happen on the SMF modsite in the future.

Hello!
Will appear another update or not?
I would like to know if TinyPortal ends...
Thanks

You already have the newest update, right here in this topic - the v1.0 beta5.2 version.

On the question if TP will end or not: I have no plans to go beyond v1.0 final at this point, IMO it works fine as it is, for what it does. Bugs and minor adjustments must be fixed of course and released, especially when SMF come out in new versions.

Thank you Bloc
And do you know that your copyright addresses to the closed site? :)
Title: Re: TinyPortal
Post by: bloc on July 07, 2010, 11:45:53 AM
Yes, I do. This will be changed on the next update.
Title: Re: TinyPortal
Post by: MaXiForum.cz on July 07, 2010, 03:44:18 PM
Quote from: Bloc on July 07, 2010, 11:45:53 AM
Yes, I do. This will be changed on the next update.

Ok ok thank you Bloc.
TinyPortal looks very nice :-)
Title: Re: TinyPortal
Post by: IchBin™ on July 11, 2010, 05:18:16 PM
Quote from: Claine on July 07, 2010, 01:29:12 AM
I'm getting a lot of errors.  There is two main kinds.  I'm not exactly sure where they're from but they both mention TP so this is probably a good place to start.  There is a slight variation between them, but in general they all look like this:


2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
Apply Filter: Only show the errors from this file
File: /home/kureaac1/public_html/tzelkora.com/Themes/default/Login.template.php (tp_below sub template - eval?)
Line: 69


Apply Filter: Only show the errors with the same message
8: Undefined index: tp_panels
Apply Filter: Only show the errors from this file
File: /home/kureaac1/public_html/tzelkora.com/Themes/default/Login.template.php (tp_below sub template - eval?)
Line: 69


I use SMF 2.0 RC3
I'm guessing you have a block code snippet or something causing these errors. Can you figure out when you are getting the errors? If you disable all blocks, do you still get the errors?
Title: Re: TinyPortal
Post by: tRu3_sKiTz0 on July 13, 2010, 09:38:56 AM
Hey everyone! I just had a quick question. First off, I have been using both TP and SP for a while now because I like SP but for some reason I could never get the forum from displaying in the home page or portal page so I kept TP because it kept SP from taking over my portal page. I WAS going to uninstall both and just use ADK but now I get errors everytikme I try to unstall either one. I guess it doesn't really matter because I like the SP and I guess I need TP so I don't really wanna try to get rid of it. My question is; How do I remove the tinyportal link that is in the footer. I am not using any features from tiny portal and it seems that the website is down so I really just wanna get rid of the footer link because it is wayy up abive all the others and looks out of place and to top it off, I'
m not even using any features of tinyportal. Please help, I just wanna remove the footer link because it is unsitely and the website isnt even there anymore.

Thanks in advance!
Title: Re: TinyPortal
Post by: Ken. on July 13, 2010, 09:51:18 AM
Removing copyright links is not a question you'll get answers for here... that's not something anyone in a support role would condone.

The new TinyPortal support site can be found here:
http://www.tinyportal.co.uk/index.php (http://www.tinyportal.co.uk/index.php)

And.. running two portals in the same SMF install is not a good idea... to easy to have conflicts between the two portals.
You should pick the one you like best and remove the other from your site.
Title: Re: TinyPortal
Post by: tRu3_sKiTz0 on July 13, 2010, 10:48:15 AM
I wish I could but as I have stated the timy portal is the only hting keeping simple portal from sticking it all on one page but that isnt even the problem. The problem is that the TinyPortasl link is so far above everything else, is there a way I can move it down so that it is in with the rest of the links and not up above them like that ?

EDIT: Not to mention the fact that the lionk in the footer is dead anyway.
Title: Re: TinyPortal
Post by: Kindred on July 13, 2010, 10:56:53 AM
actually, I'd bet that much of the problem actually comes from having two portals installed.
Title: Re: TinyPortal
Post by: IchBin™ on July 13, 2010, 10:59:29 AM
To move the TP copyright:
http://www.tinyportal.co.uk/index.php/topic,30116.0.html

The footer link is not dead yet, it still leads to a splash page that leads to the new support site. The link will be changed in the next update.
Title: Re: TinyPortal
Post by: tRu3_sKiTz0 on July 13, 2010, 11:44:51 AM
Okay, I guess at this point, I just don't see the point in sign ing up for yet another another forum when there is a support section here. Here is what my "TPBlockLayout.php file has in it.

<?php
// Version: 1.0 beta5; TPBlockLayout
// For use with SMF v2.0

function template_tp_above()
{
global $context $scripturl$settings$language $txt$options;

if(!empty($context['TPortal']['upshrinkpanel']))
echo '
<div style="float: right; margin-right: 0.5em; margin-top: -1.5em;">'
$context['TPortal']['upshrinkpanel'] , '</div>';

if($context['TPortal']['toppanel']==1)
echo '
<div id="tptopbarHeader" style="' 
in_array('tptopbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']=='display: none;' '' 'clear: both;">
'
TPortal_panel('top') , '
</div>'
;

echo '
<table cellpadding="0" cellspacing="0" width="100%" style="margin: 0; padding: 0; table-layout: fixed; clear: both;">
<tr>'
;

// TinyPortal integrated bars
if($context['TPortal']['leftpanel']==1)
{
echo '
<td id="tpleftbarContainer" style="width:' 
, ($context['TPortal']['leftbar_width']) , 'px; ' in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']=='display: none;' '' '" valign="top">
<div id="tpleftbarHeader" style="' 
in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']=='display: none;' '' '">
$context['TPortal']['useroundframepanels']==?
'<span class="upperframe"><span></span></span>
<div class="roundframe" style="overflow: auto;">' 
''
TPortal_panel('left') , 
$context['TPortal']['useroundframepanels']==?
'</div>
<span class="lowerframe"><span></span></span>' 
'' '
</div>
</td>'
;

}
echo '
<td align="left" valign="top" ' 
$context['browser']['is_ie'] ? 'width="100%"' '' ,  '>
<div id="tpcontentHeader">'
;
  
if($context['TPortal']['centerpanel']==1)
echo '
<div id="tpcenterbarHeader" style="' 
in_array('tpcenterbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']=='display: none;' '' '">
TPortal_panel('center') , '
</div>'
;

}

function 
template_tp_below()
{
global $context $scripturl$settings$language $txt$options;

if($context['TPortal']['lowerpanel']==1)
echo '
<div id="tplowerbarHeader" style="' 
in_array('tplowerbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']=='display: none;' '' '">
TPortal_panel('lower') , '</div>';

echo '</div>
</td>'
;

// TinyPortal integrated bars
if($context['TPortal']['rightpanel']==1)
{
echo '
<td id="tprightbarContainer" style="width:' 
,$context['TPortal']['rightbar_width'], 'px;' in_array('tprightbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']=='display: none;' '' '" valign="top">
<div id="tprightbarHeader" style="' 
in_array('tprightbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']=='display: none;' '' '">
$context['TPortal']['useroundframepanels']==?
'<span class="upperframe"><span></span></span>
<div class="roundframe">' 
''
TPortal_panel('right') , 
$context['TPortal']['useroundframepanels']==?
'</div>
<span class="lowerframe"><span></span></span>' 
'' '
</div>
</td>'
;

}

echo '
</tr>
</table>'
;

if($context['TPortal']['bottompanel']==1)
echo '
<div id="tpbottombarHeader" style="clear: both;' 
in_array('tpbottombarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']=='display: none;' '' '">
TPortal_panel('bottom') , '
</div>'
;

echo '<div id="tportal" class="smalltext">' tportal_version() , '</div>';
}

?>



What do I change so that I can I move it to where the rest of the links are instaed of being so far above everything else? BTW, why support a mod that doesnt have a comprehensive support thread? Just sayin... v
Title: Re: TinyPortal
Post by: IchBin™ on July 13, 2010, 01:22:02 PM
You don't have to sign up to read the link I posted for you to see how to change it. You can see that the code is at the very bottom of the file as was mentioned in the topic I linked you to. It also shows you how to move the copyright out of that file, and into the index.template.php where you want it.
Title: Re: TinyPortal
Post by: tRu3_sKiTz0 on July 14, 2010, 08:14:15 AM
OMG I'm a tard! LOL I'm so sorry for ******in at ya like that. I see it now, I don't know why I missed it before. I think I was just burnt out. Thanks man, I really appreciate it.

EDIT: Okay got it! Now it fits nicely right next to the theme copyright! I can't thank you enough, I don't know what I thought I was looking at before but it's all good now lol.
Title: Re: TinyPortal
Post by: IchBin™ on July 14, 2010, 09:58:19 AM
lol no problem.
Title: Re: TinyPortal
Post by: Akyhne on July 16, 2010, 12:14:13 PM
http://www.mysite.com/index.php?action=tpmod;dl & http://www.mysite.com/index.php?action=tpmod;dl=search

The DL Manager module is not active.

I don't see why this should generate an error that's placed in the log.

As I had the dl manager enabled the first week I had the 2.0 version installed, I now get a bunch of errors from spiders visiting my forum. It's not an error it's disabled - it's a (missing) feature.
Title: Re: TinyPortal
Post by: IchBin™ on July 16, 2010, 12:26:55 PM
If you'd like to change that, just open up the TPdlmanager.php file and change this part:
if(!$context['TPortal']['show_download'])
        fatal_error($txt['tp-dlmanageroff']);


To this:
if(!$context['TPortal']['show_download'])
        redirectexit();


That'll take you to the board index if it's disabled.
Title: Re: TinyPortal
Post by: Akyhne on July 16, 2010, 12:29:37 PM
Already did ;)
Title: Re: TinyPortal
Post by: miDnIghtEr20C on July 21, 2010, 08:53:04 PM
i get one error trying to install this.. and that's on the     ./Themes/default/index.template.php     Test failed.    is it because i have ajax chat up?
Title: Re: TinyPortal
Post by: IchBin™ on July 22, 2010, 09:45:23 AM
It's likely because of another mod yes. If you want, you can install anyway and then make the alterations to the file that are shown when you click the parse button for your version of SMF on the mods download page. Make a backup before you do any changes though.
Title: Re: TinyPortal
Post by: thellie on July 25, 2010, 06:01:20 AM
before i go to my backup, i thought i'd see if you have an easy answer...

i've spent the day installing mods, most autoinstalling through packages, but some manually using the relevant manuals. checking them before going onto the next one, and backing up once or twice.

but, as things were going so well i decided to forego backing up for the final couple of hours. i also had a bright idea about the mods which wouldn't auto install - running the pre-install to see which files failed, then putting the originals into the folder (renaming the modded ones temporarily), and rerunning the pre-install to make sure all tests were successful... which worked well until i came to tiny portal.

i had fails on load.php, subs.php and index.template.php... after renaming the modded versions of these files, and then copying in the originals to relevant folders, i re-ran the pre-install in packages.

nothing but a blank page, all over the site.

i've run through all page modifications in the manual, checking every file, and nothing has been updated, there's no tiny portal code added in the entire site (apart from stuff put in by smf and other mods). i've even checked the database, and repaired it, just to be on the safe side.

i can't uninstall as i can't get to the packages (or any other) page...

any ideas? :)

EDIT: sorry, i should have said that i dropped those 3 original files back in again, but that didn't work - which is not surprising as the code hadn't been changed.

TP1b5.2.zip, modding smf 1.1.11

i will pull all the potential affected files out (those mentioned in the TP manual) and put the originals back in to see if this helps.

EDIT2: durrrrrrrr, i missed putting a file back in after it failed...  :-[
Title: Re: TinyPortal
Post by: tRu3_sKiTz0 on July 25, 2010, 06:15:23 PM
Hey guys I had to make some changes to my site and I recently got everything back to normal, however, I tried to move the copyright from up above to below with the rest of the copyrights just like I did before using the steps posted on support site. Now when I try to do it I get rrors. My site won't even load. I put it back the way it was to make sure that my site will still load but I really don't like the copyright where it is. Could someone maybe take a look at my files and tell me what to fix or what to move? I will upload whatever files I need to. 
Title: Re: TinyPortal
Post by: hazyredeyes on July 26, 2010, 03:47:37 PM
New to the site, and i was recommended to this thread:
http://www.simplemachines.org/community/index.php?topic=392679.0

I updated our clubs SMF board to 1.1.11 and all was well.

Afterward,I tried to edit the HTML through admin to change up a banner we had at the top of the board. After i edited the HTML, no one cannot access the boards once trying to sign in. All we get is the attached screen shot once you try to sign in and on anything afterward,even on clickable items.

I must add, im 100% new to this. The guy  doing the work on the boards cut out a town and left it to me to figure out.

Any ideas on what i need to do to get the board aback and keep the paying members happy??
Title: Re: TinyPortal
Post by: gbsothere on July 26, 2010, 03:48:22 PM
I left a message for you on your 1.1.x Support thread, hazyredeyes.   :)  (Or edited my reply, rather.)
Title: Re: TinyPortal
Post by: improv on July 30, 2010, 10:16:33 AM
I give you my thanks for this awesome and amazing mod.
I tried out a lot of portals and still TP is the best.
Title: Re: TinyPortal
Post by: armycadets on August 01, 2010, 11:34:27 AM
Hello! I'm having a issue with TinyPortal useing 2.0 RC3
When i try to add a new block to tiny portal i get this error-

Field 'var3' doesn't have a default value
File: C:\HostingDIR\USERNAME\battlefield3news.com\wwwroot\Sources\TPortalAdmin.php
Line: 2337

This is the code from line 2299 to 2337
elseif($from == 'addblock')
{
checkSession('post');
isAllowedTo('tp_blocks');

$title = empty($_POST['tp_addblocktitle']) ? '-no title-' : tp_sanitize($_POST['tp_addblocktitle']);
$panel = $_POST['tp_addblockpanel'];
$type = $_POST['tp_addblock'];
if(!is_numeric($type))
{
if(substr($type,0,3) == 'mb_')
{
$request =tp_query("SELECT * FROM " . $tp_prefix . "blocks WHERE id =" . substr($type,3), __FILE__, __LINE__);
if(tpdb_num_rows($request)>0)
{
$cp = tpdb_fetch_assoc($request);
tpdb_free_result($request);
}
}
else
$od = TPparseModfile(file_get_contents($boarddir . '/tp-files/tp-blockcodes/' . $type.'.blockcode') , array('code'));
}
if(isset($od['code']))
{
$body = tp_convertphp($od['code']);
$type = 10;
}
else
$body = '';

if(isset($cp))
$request = tp_query("INSERT INTO " . $tp_prefix . "blocks
(type,frame,title,body,access,bar,pos,off,visible,var1,var2,lang,access2,editgroups)
VALUES(" . $cp['type'] . ", '" . $cp['frame'] . "', '" . $title . "', '" . htmlentities($cp['body'],ENT_QUOTES) . "','" . $cp['access'] . "',
" . $panel .", 0, 1,1," . $cp['var1'] . "," . $cp['var2'] . ",'" . $cp['lang'] . "','" . $cp['access2'] . "','" . $cp['editgroups'] . "') " , __FILE__, __LINE__);
else
$request = tp_query("INSERT INTO " . $tp_prefix . "blocks
(type,frame,title,body,access,bar,pos,off,visible,var1,var2,lang,access2,editgroups)
VALUES(" . $type . ", 'theme', '" . $title . "', '" . htmlentities($body, ENT_QUOTES) . "', '-1,0,1', " . $panel .", 0, 1,1,0,0,'','actio=allpages','') " , __FILE__, __LINE__);


Any insight you could give on this issue would be wonderful, thanks!
Title: Re: TinyPortal
Post by: IchBin™ on August 01, 2010, 04:49:25 PM
Assuming you're running TP 1 beta 5.2 ?
Title: Re: TinyPortal
Post by: armycadets on August 01, 2010, 08:05:34 PM
Yes
Title: Re: TinyPortal
Post by: IchBin™ on August 01, 2010, 11:51:06 PM
http://www.tinyportal.co.uk/index.php?topic=32976.msg264995#msg264995
Title: Re: TinyPortal
Post by: HugeLunatic on August 07, 2010, 11:52:10 AM
I'm having a problem with the text showing in the TP admin panel.  Some areas show but most don't (see image).   I just restored my forum from a backup and had to reinstall TP since that seemed to have gone MIA along with my custom theme.   My theme is a highly modified one by dziner studio and I use smf 1.1.11.  I have installed the theme from a fresh download since it appears version 1.0/beta now does not require a custom theme.  I did install the mod with no other mods installed and using the default smf theme.  This missing text is gone with both default theme and custom theme.  Any help to get the text to show would be very much appreciated as I love the TP front page.

Update:  Just wanted to post that the reason for this was the forum default language needed to be changed to English and not English uft-8.   So I guess I solved the problem, I will leave this for anyone else who may run into this.  Thanks.  =)
Title: Re: TinyPortal
Post by: moonrise on August 07, 2010, 09:20:15 PM
I'm posting here because Im not sure what else to do. I have poked about the tinyportal site, but I am leaving town first thing in the morning and I really need to figure this out.
SMF 1.11
TP Beta 5-1
Theme- Actualism
http://mysticalmundane.com

I installed tiny portal 5-1 . I was previously using simple portal.
I had a hard time figuring out how to use the categories etc for tiny portal. I was trying to make a welcome message to leave up on the board for while I went away.
Then I received a database error:

Error Message:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IFNULL(mem.realName,art.author) as realName FROM vlhl_tp_articles AS art
LEFT' at line 2
File: /home/mystical/public_html/Sources/TPortal.php
Line: 2153

So, searching about, I found a thread that suggested going into the Myphp admin and in the database removing the block. I did this, and got this message:
Table 'mystical_8Cj6Psm.vlhl_tp_blocks' doesn't exist
File: /home/mystical/public_html/Sources/TPortal.php
Line: 2025

It is on every page, except 'Home'
Home is now gone. Just a blank white page with 'Table 'mystical_8Cj6Psm.vlhl_tp_articles' doesn't exist'

Is there a way I can just remove tiny portal from my site altogether in the cpanel? Since I can't access my admin section anymore?
Or is there some way I can get my admin to reappear so that I can remove tiny portal (maybe try a fresh install, or just go with simple portal)
I have made a big mess and ridiculously close to tears.

Sincerely,
Shilo

Title: Re: TinyPortal
Post by: Sabre™ on August 08, 2010, 12:36:53 AM
This is one approach you may take.
Go into your packages folder, and then into the backup folder within, and select the backup which reads along the lines of before tiny portal.
Upload this to the root of your site(where your packages, sources and smileys folders are), and let it overwrite the folders and templates.
This will bring your site back to the state before you installed the portal.
Then proceed to remove the tables in your database.
If you like, I or an official TP staff member may be able to assist you in reinstalling it without flaw, if you decide to try it again :)
Title: Re: TinyPortal
Post by: moonrise on August 08, 2010, 01:34:43 AM
Thank you so much!
Im going to finish packing for my trip (i leave in a few hours and will have no internet access), put the kids to bed and then I will give it a try.
Title: Re: TinyPortal
Post by: Sabre™ on August 08, 2010, 03:59:30 AM
Good luck mate, if you have any issues, PM me and I'll get it sorted before you leave.
If you get it all done, good stuff, and enjoy your trip :)
Title: Re: TinyPortal
Post by: Ingwie on August 08, 2010, 01:18:50 PM
Hello folks! ^.^

I just have installed TinyPortal...but i am having a major problem. Because i need to kill two things out off the site - but they still reappear...

Both must be killed completly, so i can use just the pannels and blocks on the mainpage, with statistis and online users. I want to have the usermanue al the time in the view, even at the forum and that stuff. And to see the statistics more times.....oh help! :eek:
Title: Re: TinyPortal
Post by: IchBin™ on August 09, 2010, 10:06:26 AM
Link to your site? What version of SMF and TinyPortal are you using? Assuming you're talking about blocks for all these things?
Title: Re: TinyPortal
Post by: !RFAN on August 16, 2010, 09:03:45 AM
is there any solution for wap2 bug of tinyportal???
Title: Re: TinyPortal
Post by: Akyhne on August 16, 2010, 09:50:49 AM
Quote from: amigozone on August 16, 2010, 09:03:45 AM
is there any solution for wap2 bug of tinyportal???
Yup! Pretty annoying with dousins of errors in the log every day!
Title: Re: TinyPortal
Post by: bloc on August 16, 2010, 12:01:00 PM
I hope to get out a bugfix release soon, where these things will be attended to.
Title: Re: TinyPortal
Post by: !RFAN on August 16, 2010, 03:37:27 PM
Quote from: Bloc on August 16, 2010, 12:01:00 PM
I hope to get out a bugfix release soon, where these things will be attended to.

please do it ASAP :D
Title: Re: TinyPortal
Post by: tragidy on August 16, 2010, 04:52:12 PM
Quote from: Bloc on August 16, 2010, 12:01:00 PM
I hope to get out a bugfix release soon, where these things will be attended to.


Glad to hear that.
Title: Re: TinyPortal
Post by: WillyP on August 24, 2010, 03:42:46 PM
Me too! 8)

But, in the meantime, here is a feature request!

I would like to rename two fields and add two fields to the Download Manager on my site.  And so I thought 'It would be nice to be able to rename/ add fields in the admin area'.

Specifically, people who upload files are not necessarily the authors of the files.  And many of those files were created long ago.  But, the 'Author' and 'Created' sort categories get populated automatically based on the uploader's name, and the date the files were uploaded.

So I would like to change these fields to 'Uploaded By' and Uploaded On'.  Then add two fields that would be populated by the uploader, which would be 'Author or Artist' and 'Created On'.  If left blank, they would default to the name of the uploader and date of upload.

I would also like to see a sort category by game-type, ie: 'Anarchy',  'Single-Player', 'CTF'  etc...  But I think that would be better handled through a tagging system, because many files fit have more than one game-type, and some files need tags that are not game-types, like patches and music.  Of course, a tagging sytem is something altogether different.  So I guess that is two feature requests!

Thanks for looking!  ;D
Title: Re: TinyPortal
Post by: MoreBloodWine on August 28, 2010, 08:14:43 PM
Just installed this on RC3 but I'm not seeing the TinyPortal admin menu on the left side along wih the rest of all the 2.0 admin stuff  ???
Title: Re: TinyPortal
Post by: bloc on August 28, 2010, 09:03:34 PM
Thats because the TP admin stuff are in its own menu on top. Try finding that and you will get inside TP admin. Or...just go to "/index.php?action=tpadmin".
Title: Re: TinyPortal
Post by: MoreBloodWine on August 29, 2010, 05:44:15 PM
Gotcha, also, are you gonna be adding the bullets back to the user and stats block like with 098 ? I find that it makes them seem more organized.
Title: Re: TinyPortal
Post by: bloc on August 30, 2010, 04:42:31 AM
No plans for that..but I'll look into it.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 30, 2010, 05:16:54 AM
Quote from: Bloc on August 30, 2010, 04:42:31 AM
No plans for that..but I'll look into it.
Good to know, most people probably could care less about them but I got so use to having them in 098 that it just doesnt look right without them now.
Title: Re: TinyPortal
Post by: bloc on August 30, 2010, 06:51:42 AM
Actually..I liked them lol. They gave TP a more specific look, so they are back now, for v1.0 RC1.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 30, 2010, 07:12:44 AM
Quote from: Bloc on August 30, 2010, 06:51:42 AM
Actually..I liked them lol. They gave TP a more specific look, so they are back now, for v1.0 RC1.
So I did a good thing today by mentioning it lol

Also, I know the rule is that its done when its dont but I gotta ask lol. Do you have any sort of ETA on when you'd like to have a 1.0 final ?
Title: Re: TinyPortal
Post by: bloc on August 30, 2010, 08:22:01 AM
Yes, you did. ;D But really, it coincided with some long-time changes for improving smaller details I have been looking at lately.

Well, the RC1 will be out this week I reckon. So awaiting any bugs coming in from that the final might be not too far away, maybe a few weeks only. After that i like to add block/article/panel-cache features, to lessen TP's footprint on the server. That will be v1.1 of TP appropriately.
Title: Re: TinyPortal
Post by: JeffGoudreau on August 30, 2010, 08:32:33 AM
Hello. I am having a tough time with TinyPortal. I have SMF 1.11.1. My site is called www.canadiankayakanglers.com (http://www.canadiankayakanglers.com) I am trying to create a homepage very similar to this one www.norcalkayakanglers.com (http://www.norcalkayakanglers.com) I cant figure out how to create the blocks in the middle on the homepage. (http://sphotos.ak.fbcdn.net/hphotos-ak-snc4/hs293.snc4/40997_426959384278_527144278_5037454_2038743_n.jpg) He has blocks like the one at the top that is called "MLPA - Mootch Life Protection Account" or further below he has many blocks of info. I am not sure how to create these. Also on the left side he has ads and things showcasing his articles. I dont know where to go to create these on my website. I have all the content and stuff. Im just not sure how to create this kinda thing? Can you help me fgure out this? Where to look to start?
Thanks
Title: Re: TinyPortal
Post by: bloc on August 30, 2010, 09:20:03 AM
Well, for the MLP block you could just go to "TPadmin / blocks" and start creating one, preferably a HTML or BBC block and add your content. That would be in the "frontpanel" or perhaps "upper panel".

For the ads the quickest way is to simply add a "leftpanel block" and then add the code for the ad. Then set "Frame options" of the block to "Do not use title/frame styles". That will give you no borders/background and will look great for ads.
Title: Re: TinyPortal
Post by: bloc on August 30, 2010, 09:21:13 AM
Btw, I noticed you are using TP 0.9..it will work the same, but have fewer options.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 30, 2010, 10:00:42 AM
Quote from: Bloc on August 30, 2010, 08:22:01 AM
Yes, you did. ;D But really, it coincided with some long-time changes for improving smaller details I have been looking at lately.

Well, the RC1 will be out this week I reckon. So awaiting any bugs coming in from that the final might be not too far away, maybe a few weeks only. After that i like to add block/article/panel-cache features, to lessen TP's footprint on the server. That will be v1.1 of TP appropriately.
Sounds good to me, also Bloc, I hate to ask but if I gave you a copy of the theme I'm using would you do me a favor and remove all of the TP 098 edits ? I only ask because when upgrading with the edits in place the side bars for lack of a better word are doubled up but one sets invisible because it's looking for 098 side bars.

I would start with a clean theme but I have some mods installed with custom edits to the original code.
Title: Re: TinyPortal
Post by: JeffGoudreau on August 30, 2010, 04:29:33 PM
OMG. I cant figure this out? I must be retarded. I am in the block manager. There is no area that shows frontpanel or upper panel. All the options I have are right, left, center and front page. The front page one has nothing created so I know that the old admin didnt use it to create the front stuff.  I have created left side and right side blocks before but nothing on the front page. So I have nothing to copy from. 
Is there something I am missing? thanks for your help.
Title: Re: TinyPortal
Post by: JeffGoudreau on August 30, 2010, 04:45:08 PM
(http://sphotos.ak.fbcdn.net/hphotos-ak-ash2/hs198.ash2/46073_427111219278_527144278_5041430_264232_n.jpg) Where else besides this area can you pick where it will show up? This area has NO selection for the HOME page. I cant figure out how to tell the block to show up on my home page and then further tell it where on my home page to show up? Thats where Im lost I guess. After that I have no clue how to code anything but thats another story :) For now I just need to figure out how to make the thing in the right area.
Title: Re: TinyPortal
Post by: IchBin™ on August 30, 2010, 04:48:29 PM
It's been a long time since I've seen TP 0.9.8. I can't remember what options are available TBH. If you have panel options, make sure your panel settings are set to show on the frontpage.
Title: Re: TinyPortal
Post by: JeffGoudreau on August 30, 2010, 04:54:34 PM
(http://sphotos.ak.fbcdn.net/hphotos-ak-snc4/hs417.snc4/48024_427114749278_527144278_5041522_1543681_n.jpg)
Do you mean in this area? Everything looks like its on.
Title: Re: TinyPortal
Post by: JeffGoudreau on August 30, 2010, 05:00:28 PM
ok. I figured out something. An area in the frontpage section was turned to Articles only rather than show blocks. So I changed that and now my test block I created actually shows up :) Now I figure I can work from here. I hope :) Does anyone know where someone can find coding examples for these kinds of things? Im no good at that and I have been making do copying and pasting from the old Admin and then playing around with easy stuff like height and width numbers and being scared to mess up the original codes. I would love to find an area with some kind of examples outside this websites boundries.
Title: Re: TinyPortal
Post by: JeffGoudreau on August 30, 2010, 05:29:35 PM
arrghh!! Now I finally figured out how to do this and there is some wierd little thing. if you go to the home page you will see CanadianKayakAnglers above my center block and I cant figure out why it is there and how to get rid of it? After I ditched the article that was there it just showed up?
Title: Re: TinyPortal
Post by: IchBin™ on August 30, 2010, 05:47:17 PM
That is the SMF linktree Jeff. If you want to remove it, you likely have to remove it from one of the TP files. Since I don't have 0.9.8 setup, I'd suggest you start by looking in for the words "theme_linktree()" in the Themes/default/TPortal.template.php file and either comment it out or remove it. After you're done with that, take a few deep breaths and relax. This is supposed to be fun, not full of "arrghh's". :P
Title: Re: TinyPortal
Post by: bloc on August 30, 2010, 06:07:16 PM
Indeed lol. :)

Quote from: MoreBloodWine on August 30, 2010, 10:00:42 AM
Quote from: Bloc on August 30, 2010, 08:22:01 AM
Yes, you did. ;D But really, it coincided with some long-time changes for improving smaller details I have been looking at lately.

Well, the RC1 will be out this week I reckon. So awaiting any bugs coming in from that the final might be not too far away, maybe a few weeks only. After that i like to add block/article/panel-cache features, to lessen TP's footprint on the server. That will be v1.1 of TP appropriately.
Sounds good to me, also Bloc, I hate to ask but if I gave you a copy of the theme I'm using would you do me a favor and remove all of the TP 098 edits ? I only ask because when upgrading with the edits in place the side bars for lack of a better word are doubled up but one sets invisible because it's looking for 098 side bars.

I would start with a clean theme but I have some mods installed with custom edits to the original code.

Sure, send it to [email protected] and I will have a look.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 30, 2010, 06:42:09 PM
Quote from: Bloc on August 30, 2010, 06:07:16 PM
Indeed lol. :)

Quote from: MoreBloodWine on August 30, 2010, 10:00:42 AM
Quote from: Bloc on August 30, 2010, 08:22:01 AM
Yes, you did. ;D But really, it coincided with some long-time changes for improving smaller details I have been looking at lately.

Well, the RC1 will be out this week I reckon. So awaiting any bugs coming in from that the final might be not too far away, maybe a few weeks only. After that i like to add block/article/panel-cache features, to lessen TP's footprint on the server. That will be v1.1 of TP appropriately.
Sounds good to me, also Bloc, I hate to ask but if I gave you a copy of the theme I'm using would you do me a favor and remove all of the TP 098 edits ? I only ask because when upgrading with the edits in place the side bars for lack of a better word are doubled up but one sets invisible because it's looking for 098 side bars.

I would start with a clean theme but I have some mods installed with custom edits to the original code.

Sure, send it to [email protected] and I will have a look.
Thx ;-)

Even with 0.98 being the "dinosaur" that it is in some peoples eyes hopefully you still remember what to look for to completely remove it from the heme ;-p
Title: Re: TinyPortal
Post by: JeffGoudreau on August 30, 2010, 06:47:15 PM
lol. Thanks. To be honest I think this is fun. I just have noone to help me and for 2 years now I have asked a friend that ignores my requests. For some people this is super simple and it takes just one time of showing me and I can figure it out again. Just frustrating when the knowledgable dont help the retards. haha. Thank you for helping me. I am gonna try and figure out how to change that.
Title: Re: TinyPortal
Post by: ZarPrime on August 30, 2010, 08:18:58 PM
Jeff,


Part of the problem here is that you are using a version of TinyPortal [version 0.9.8] that was released over 3 and a half years ago now.  This is the main reason why it is difficult to help you since many of us that offer support for the Mod have moved on to the latest version.  However, for each block you create, on the block edit screen, there should be a link at the bottom to [show] or [hide] where to show each block.  One of the selections should be to show the block on the FrontPage only.  If this doesn't help you, you might want to go to our support site, register there, and ask one of the Support Team Members to help you.  Both Ichbin and I are Team Members over there along with several others.  Once you post over there in Support, one of us may be better able to help you solve this issue.  The site is located here --> http://www.tinyportal.co.uk/index.php (http://www.tinyportal.co.uk/index.php)


ZarPrime
Title: Re: TinyPortal
Post by: JeffGoudreau on August 30, 2010, 09:01:12 PM
My server guy says he does a backup daily and that I shouldnt worry about upgrading these kinds or things. But Im really rookie and I dont know what will happen with the existing stuff. If I upgrade to the latest version will the stuff I just did get screwed up? I can install a upgrade mod. I did a mod upload before. I will update it if you think its ok? lol.
Title: Re: TinyPortal
Post by: bloc on August 31, 2010, 03:14:38 AM
It should work out fine, TP 1.0 will read the old data and use them.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 31, 2010, 03:41:17 AM
I found out not to long ago that I can't even use this new version because of what I said in that one email I sent you after you did those 098 theme code removal for me. Thx again for that BTW.
Title: Re: TinyPortal
Post by: ZarPrime on August 31, 2010, 09:51:32 AM
MoreBloodWine,


Any version of TP after 1.x will work fine with any theme that works with SMF without special edits to the theme.  The only thing that might be required is the manual addition of a Forum tab.  Only TP 0.9.8 required the special edits to the theme.  In other words, if there is a theme that works fine with SMF 1.1.11 (without TP), it will work fine with the latest TP as well.  If you find this to not be the case, then I would suggest that you setup a test site to check this.


ZarPrime
Title: Re: TinyPortal
Post by: agridoc on September 01, 2010, 01:03:15 AM
Quote from: JeffGoudreau on August 30, 2010, 09:01:12 PMMy server guy says he does a backup daily and that I shouldnt worry about upgrading these kinds or things. But Im really rookie and I dont know what will happen with the existing stuff. If I upgrade to the latest version will the stuff I just did get screwed up? I can install a upgrade mod. I did a mod upload before. I will update it if you think its ok? lol.

Hello JeffGoudreau

Estimating roughly from your posts your level of experience and knowledge I would rather advise you to leave TP 0.9.8 as is until you get more familiar with SMF and TP administration. There are a lot of big SMF and TP 0.9.8 (my main site is 0.9.7 with modifications  :D ) around working perfectly. Unless not been compatible with SMF 2.0 and needing some extra theme code TP 0.9.8 still stands well up in comparison.

Check the SMF Admin screens and options, learn which mods are added and how to handle packages. Go around TP admin and learn about TP settings, Frontpage settings, Blocks and articles. TP 1.0 has more features but is more complex. Whatever you create with TP 0.9.8 will be available when you will feel more comfortable with SMF and TP and decide to upgrade to TP 1.0x.
Title: Re: TinyPortal
Post by: Anpu on September 01, 2010, 08:20:24 AM
Hi, I tried fresh install of SMF 2 RC 3 and TP 1beta5. I downloaded both from a site, and tried also to download TP in package section of SMF. It shows that TP is successfully installed, opens that pop up with list of created stuff, thank you etc. I close it, press "Home" and get following error: Table 'portal.smf_tp_settings' doesn't exist.
Any idea? Sorry if it was posted before, I searched on Google even but no useful results.
Title: Re: TinyPortal
Post by: bloc on September 01, 2010, 09:45:33 AM
It would seem the database table wasn't created. You will have to do them manually then I am afraid. Try running the file "tp_upgrade.php" from the SMF20RC3 folder, it should then update just the database.

If not, you will need a SQL file to "import" into phpMyAdmin for example, I can help with that if you can't get tp_upgrade.php to work.
Title: Re: TinyPortal
Post by: Anpu on September 01, 2010, 02:34:51 PM
Hm I couldn't repair. I see TP zip is in Packages, so I extracted that and tried to run file. It didn't allow even I set it 777 rights. So, I copied that file to root, but it just refreshes, and message I posted earlier stays. So, or I am doing something wrong,or it didn't work.
Title: Re: TinyPortal
Post by: bloc on September 01, 2010, 03:38:25 PM
Hm, prob. didn't work then. Do you ahve the emans to run/import a SQl file? And can you see in the database if any xxx_tp_xxx tables were created?
Title: Re: TinyPortal
Post by: JeffGoudreau on September 01, 2010, 05:41:28 PM
ok. thanks :) I will talk to my server dude. He is pretty knowledgable and runs a large SMF. Maybe he can upgrade it with 0 probs. If not Im happy with the Dinosaur :p
Title: Re: TinyPortal
Post by: Anpu on September 02, 2010, 03:24:19 AM
Quote from: Bloc on September 01, 2010, 03:38:25 PM
Hm, prob. didn't work then. Do you ahve the emans to run/import a SQl file? And can you see in the database if any xxx_tp_xxx tables were created?
You are right, there are no tp tables at all.  :-\
Yes, I can import SQL file.
Title: Re: TinyPortal
Post by: bloc on September 02, 2010, 03:34:16 AM
Ok, I need to sort it out properly, this can be handy for others too. I'll post it here when its ready.
Title: Re: TinyPortal
Post by: SilverKnight on September 02, 2010, 04:17:14 AM
Quote from: Bloc on September 02, 2010, 03:34:16 AM
Ok, I need to sort it out properly, this can be handy for others too. I'll post it here when its ready.

Good to see you still working on it Bloc.
Title: Re: TinyPortal
Post by: JeffGoudreau on September 02, 2010, 07:40:27 PM
ok. I have learned alot :) BUT! now I cant figure out where to check off to make my Left side blocks show up on the front page. The only way to make this happen seems to be if I include it on every page which I dont want to do. I have options for placing the block on all of the boards, admin crap and everything but no option to show it just on the front page. so eventually the whole left side of the home page will look blank. I have sponsors logos I can put in there and I know its possible. Can you try to point me to the right area? One day Im gonna be a pro :)
Title: Re: TinyPortal
Post by: IchBin™ on September 02, 2010, 08:03:53 PM
So did you upgrade or not? You indicated you were going to do it, but now I don't know which version you are running. Kind of hard to tell you what to do if I don't know what you're using.

If you're still using TP 0.9.8 the blocks should show on your frontpage by default without needing to set anything.

If you're using TP 1.x there is a checkbox you can select for frontpage.

If you're blocks are not showing, you must have an article or something that is set to not display the blocks or something on the frontpage.
Title: Re: TinyPortal
Post by: agridoc on September 03, 2010, 12:45:06 AM
Quote from: JeffGoudreau on September 02, 2010, 07:40:27 PMI have options for placing the block on all of the boards, admin crap and everything but no option to show it just on the front page.

In TP 0.9.8 you create Frontpage blocks, they appear only in Frontpage. You select in Frontpage Settings what and how you want to be displayed in Frontpage.

In TP 1.0 you have much more options. More block areas and for any single block you can choose to be displayed only in Frontpage. It also needs more careful planning.
Title: Re: TinyPortal
Post by: bloc on September 05, 2010, 08:53:15 AM
Quote from: Anpu on September 02, 2010, 03:24:19 AM
Quote from: Bloc on September 01, 2010, 03:38:25 PM
Hm, prob. didn't work then. Do you ahve the emans to run/import a SQl file? And can you see in the database if any xxx_tp_xxx tables were created?
You are right, there are no tp tables at all.  :-\
Yes, I can import SQL file.

This is a SQL file straight out of a fresh TP install on SMF 2.0RC3. It should work on all SMF2 versions though.

Just import it into phpMyadmin, but remember to change all "smf_tp_" to your prefix first: "{yourprefix}tp_" - if you use anything else than "smf_".
Title: Re: TinyPortal
Post by: MoreBloodWine on September 06, 2010, 03:08:31 AM
SMF 2.0 RC3
TP Latest

Playing around on a test site, anyway, why do I still have a forum tab / button if I have it set to go to the forum index ?

With the old TP if I had goto forum index set the extra "forum" button vanished.

http://www.eojmarket.com/sigtest/index.php
Title: Re: TinyPortal
Post by: bloc on September 06, 2010, 03:18:28 AM
It should not show it..so thats a bug for sure.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 06, 2010, 03:31:45 AM
Quote from: Bloc on September 06, 2010, 03:18:28 AM
It should not show it..so thats a bug for sure.
Sweet, I just contributed soemthing again lol...

1. Bullets are back...
2. This

;-p
Title: Re: TinyPortal
Post by: MoreBloodWine on September 06, 2010, 04:03:56 AM
What needs to be changed to take away the hyperlinking of the days that goto a new post page for the mini calendar ?

Everything I've tried either breaks the calendar block or just doesnt work...

global $scripturl;

$now = mktime();
$today = date('j',$now);
$year = date("Y",$now);
$month = date("n",$now);
$days = array($today=>array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: white; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>'));

$day_name_length = 3;
$month_href = $scripturl . '?action=calendar';
$first_day = 7;
$pn = array();

$first_of_month = gmmktime(0,0,0,$month,1,$year);
//remember that mktime will automatically correct if invalid dates are entered
// for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
// this provides a built in "rounding" feature to generate_calendar()

$day_names = array(); //generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) //January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); //%A means full textual day name

list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$title   = htmlentities(ucfirst($month_name)).' '.$year;  //note that some locales don't capitalize month and day names

//Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn); @list($n, $nl) = each($pn); //previous and next links, if applicable
if($p) $p = '<span class="smalltext">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
if($n) $n = ' <span class="smalltext">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';
$calendar = '<table>'."\n".
'<caption >'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).$n."</caption>\n<tr>";

if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
//if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '<th class="smalltext" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}

if($weekday > 0) $calendar .= '<td class="smalltext" colspan="'.$weekday.'"> </td>'; //initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday   = 0; #start a new week
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if(isset($days[$day]) and is_array($days[$day])){
@list($link, $classes, $content) = $days[$day];
if(is_null($content))  $content  = $day;
$calendar .= '<td "'.($classes ? ' class="'.htmlspecialchars($classes).'">' : '>').
($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= "<td class=\"smalltext\" style=\"padding-right:4px;\"><a";
if(((($weekday+$first_day) % 7)==0)||((($weekday+$first_day) % 7)==6))
{
$calendar .= ' style="color:#FF0000;"';
}
$calendar .= " href=\"".$scripturl."?action=calendar;sa=post;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7) $calendar .= '<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; //remaining "empty" days

echo $calendar."</tr>\n</table>\n";
Title: Re: TinyPortal
Post by: bloc on September 06, 2010, 11:31:11 AM
Try adding "text-decoration: none;" right after "color: steelblue;"
Title: Re: TinyPortal
Post by: MoreBloodWine on September 06, 2010, 11:49:52 AM
didnt work ;-/
Title: Re: TinyPortal
Post by: MoreBloodWine on September 07, 2010, 08:37:42 AM
Never caught this until now but whats with all the extra padding for the blocks ?

There's an addition 10px on each side as far as I can tell which means the blocks need to be larger than they did wih 098 to get your content to show properly.

See attached pics...

If possible I would like to be able to control this padding or atleast scale it down to what it use to be if not a tad smaller say something like 4px instead of the 6px that was in 098.
Title: Re: TinyPortal
Post by: Kindred on September 07, 2010, 09:08:38 AM
firebug is your friend
Title: Re: TinyPortal
Post by: MoreBloodWine on September 07, 2010, 09:14:05 AM
Quote from: Kindred on September 07, 2010, 09:08:38 AM
firebug is your friend
OMG that was so helpful, thank you for your crypticness !!!!!!!!!
Title: Re: TinyPortal
Post by: IchBin™ on September 07, 2010, 09:42:08 AM
Quote from: MoreBloodWine on September 07, 2010, 09:14:05 AM
Quote from: Kindred on September 07, 2010, 09:08:38 AM
firebug is your friend
OMG that was so helpful, thank you for your crypticness !!!!!!!!!

There's a link in my sig for you. It's a great tool for firefox that will help you see exactly where the padding is coming from by merely highlight an element on the page.

Should also note, that normally I don't think there is that much padding. If you are using the editor to put the code in, make sure it's not adding extra code for you etc.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 07, 2010, 09:49:29 AM
The code is the same unedited version which creates the same block in 098. As for FireBug, I have played around with it before and as for now all I see is something about 8px padding around a div. Even getting rid of all the code and putting in nothing but an echoed Testing 1, 2, 3... thee look is still the same. I know this is a beta and things are bound to change, I was just "putting it out there".
Title: Re: TinyPortal
Post by: Kindred on September 07, 2010, 09:55:22 AM
which, to me, indicates a CSS issue....   which is why firebug is your friend.
Title: Re: TinyPortal
Post by: ZarPrime on September 07, 2010, 11:57:03 AM

Quote from: MoreBloodWine on September 06, 2010, 04:03:56 AMWhat needs to be changed to take away the hyperlinking of the days that goto a new post page for the mini calendar ?

Everything I've tried either breaks the calendar block or just doesnt work...

global $scripturl;

$now = mktime();
$today = date('j',$now);
$year = date("Y",$now);
$month = date("n",$now);
$days = array($today=>array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: white; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>'));

$day_name_length = 3;
$month_href = $scripturl . '?action=calendar';
$first_day = 7;
$pn = array();

$first_of_month = gmmktime(0,0,0,$month,1,$year);
//remember that mktime will automatically correct if invalid dates are entered
// for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
// this provides a built in "rounding" feature to generate_calendar()

$day_names = array(); //generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) //January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); //%A means full textual day name

list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$title   = htmlentities(ucfirst($month_name)).' '.$year;  //note that some locales don't capitalize month and day names

//Begin calendar. Uses a real <caption>. See http:/eintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn); @list($n, $nl) = each($pn); //previous and next links, if applicable
if($p) $p = '<span class="smalltext">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
if($n) $n = ' <span class="smalltext">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';
$calendar = '<table>'."\n".
'<caption >'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).$n."</caption>\n<tr>";

if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
//if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '<th class="smalltext" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}

if($weekday > 0) $calendar .= '<td class="smalltext" colspan="'.$weekday.'"> </td>'; //initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday   = 0; #start a new week
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if(isset($days[$day]) and is_array($days[$day])){
@list($link, $classes, $content) = $days[$day];
if(is_null($content))  $content  = $day;
$calendar .= '<td "'.($classes ? ' class="'.htmlspecialchars($classes).'">' : '>').
($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= "<td class=\"smalltext\" style=\"padding-right:4px;\"><a";
if(((($weekday+$first_day) % 7)==0)||((($weekday+$first_day) % 7)==6))
{
$calendar .= ' style="color:#FF0000;"';
}
$calendar .= " href=\"".$scripturl."?action=calendar;sa=post;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7) $calendar .= '<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; //remaining "empty" days

echo $calendar."</tr>\n</table>\n";



MoreBloodWine,


If you are using TP 2.0 RC3 and the latest TinyPortal, try the code posted in this post --> http://www.tinyportal.co.uk/index.php?topic=32717.msg262975#msg262975 (http://www.tinyportal.co.uk/index.php?topic=32717.msg262975#msg262975)


ZarPrime
Title: Re: TinyPortal
Post by: MoreBloodWine on September 07, 2010, 04:33:26 PM
Quote from: Kindred on September 07, 2010, 09:55:22 AM
which, to me, indicates a CSS issue....   which is why firebug is your friend.
Maybe so but sometimes I just dont get it, I get the basic idea of it and what its used for but sometimes I just look at it and go WHAAAAAAAAAAAAAT !
Title: Re: TinyPortal
Post by: Anpu on September 09, 2010, 07:50:16 AM
Quote from: Bloc on September 05, 2010, 08:53:15 AM
This is a SQL file straight out of a fresh TP install on SMF 2.0RC3. It should work on all SMF2 versions though.

Just import it into phpMyadmin, but remember to change all "smf_tp_" to your prefix first: "{yourprefix}tp_" - if you use anything else than "smf_".
tytytytyty

Just one note: import failed (it said SQL query in line 1 was incorrect) so I copy/pasted everything in SQL, it executed and works!
Thanks Bloc
Title: Re: TinyPortal
Post by: Akyhne on September 09, 2010, 08:12:12 AM
Bug:

When I do an export of my DB and tries to import it again, I get an error on several tp tables. One of them is:

DROP TABLE IF EXISTS `test_tp_events`;

CREATE TABLE `test_tp_events` (
id int(11) NOT NULL auto_increment,
id_member int(11) NOT NULL,
date int(11) NOT NULL,
textvariable mediumtext NOT NULL,
link mediumtext NOT NULL,
description mediumtext NOT NULL,
allowed mediumtext NOT NULL,
eventid int(11),
on tinyint(4),
PRIMARY KEY (id)
) TYPE=MyISAM;

The last colums is called "on" which is a reserved word in MySql:
Title: Re: TinyPortal
Post by: wilsy on September 09, 2010, 10:28:51 AM
Hi all,

When I click on a category in downloads I get: -

8: Undefined index: author_id
File: /home/atcoukco/public_html/Sources/TPSubs.php
Line: 2475

Any ideas?
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 11:31:55 AM
What version of TP and SMF?
Title: Re: TinyPortal
Post by: Akyhne on September 09, 2010, 11:42:25 AM
v1.0 beta 5.x... I guess. The mod doesn't tell. SMF2 RC3.
Title: Re: TinyPortal
Post by: wilsy on September 09, 2010, 12:18:33 PM
Quote from: IchBin™ on September 09, 2010, 11:31:55 AM
What version of TP and SMF?

Hi Ich,

Its SMF 1.1.11 and the latest version of TP.

Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 12:36:30 PM
Yes, that and a few other downloads manager fixes are in the next release.
Title: Re: TinyPortal
Post by: wilsy on September 09, 2010, 12:41:40 PM
Thanks Ich,

Is there an iterim fix? I could do with getting my downloads system back up and running :)
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 01:27:15 PM
It's not running because of that error? You have something else wrong I'm guessing. My downloads still worked, just a layout problem and some undefined errors are there.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 09, 2010, 01:50:28 PM
I'm guessing the extra padding I pointed out in the blocks is an "error", is that a planned fix ?
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 01:58:15 PM
Why would that be an error? It's just stylistic preference. You can change it in the CSS if you don't like it.

.blockbody {
    line-height: 1.3em;
    padding: 8px;
}

Removing the padding: 8px; will cut half of the space you want out.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 09, 2010, 02:07:40 PM
Quote from: IchBin™ on September 09, 2010, 01:58:15 PM
Why would that be an error? It's just stylistic preference. You can change it in the CSS if you don't like it.

.blockbody {
    line-height: 1.3em;
    padding: 8px;
}

Removing the padding: 8px; will cut half of the space you want out.
I'm not saying it was an error although I suppose it sounds like I may have been, I just figure the same padding rules would have been used that were used for 098.

Edit: Where specifically is the TP css located ?
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 02:18:36 PM
If you do not have a tp-style.css file in your custom theme, then it would be in the default themes location.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 09, 2010, 02:22:14 PM
Quote from: IchBin™ on September 09, 2010, 02:18:36 PM
If you do not have a tp-style.css file in your custom theme, then it would be in the default themes location.
Thx for that, by changing it to 0px it now has the same padding as 098 ;-)

Edit: What would I look for to apply the same padding to the title area ?
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 02:37:24 PM
The title area of a block does not have any padding that I can see. It looks like you'll have to remove a < span > tag or two to get the left space to disappear.  I don't know where to find this code at the moment though.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 09, 2010, 02:45:36 PM
Quote from: IchBin™ on September 09, 2010, 02:37:24 PM
The title area of a block does not have any padding that I can see. It looks like you'll have to remove a < span > tag or two to get the left space to disappear.  I don't know where to find this code at the moment though.
Ehh, it's not really a big thing with the title, I was more concerned with saving that body space so my blocks don't need to be 16px wider than normal so looks like I'm good, Thx Ichy ;-)

Ok you probably dont like Ichy lol but I had to say it, been wanting to for a while lol

Edit: I actually would like to suggest one thing. Would it be possible to add soemthing to the TP admin area that would allow the CSS to be edited from the web ?
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 02:49:01 PM
I think Bloc has added all the options he wants for blocks lol. He already gives you like 10 layouts to choose from.  Adding in this would just further complicate it IMO. But I'm not the developer for it. :) If I were you maybe post a feature request in our issue tracker at the tp.net.co.uk site.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 09, 2010, 02:50:37 PM
Quote from: IchBin™ on September 09, 2010, 02:49:01 PM
I think Bloc has added all the options he wants for blocks lol. He already gives you like 10 layouts to choose from.  Adding in this would just further complicate it IMO. But I'm not the developer for it. :) If I were you maybe post a feature request in our issue tracker at the tp.net.co.uk site.
I don't mean make the block css editable by the web but rather the whole css file itself.
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 03:20:10 PM
If the file is not editable in your SMF admin then the file is not editable by the web server. I can edit mine just fine from the Admin page for editing the theme tp-style.css.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 09, 2010, 03:29:15 PM
Quote from: IchBin™ on September 09, 2010, 03:20:10 PM
If the file is not editable in your SMF admin then the file is not editable by the web server. I can edit mine just fine from the Admin page for editing the theme tp-style.css.
Maybe I'm brain farting but I don't believe the tp-style.css file is currently web editable.

If it is then where might I look for it in the TP admin area ?
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 03:35:43 PM
If you don't have one in your custom theme (assuming you're using a custom theme), then it's always in the default theme. If you see the file name and it's not editable (you can't click on it), then you need to change the permissions on the file so that the web server can write to it. I should note: you can't edit default theme files. So if you need to edit that file, copy it to your custom theme.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 09, 2010, 03:41:22 PM
Quote from: IchBin™ on September 09, 2010, 03:35:43 PM
If you don't have one in your custom theme (assuming you're using a custom theme), then it's always in the default theme. If you see the file name and it's not editable (you can't click on it), then you need to change the permissions on the file so that the web server can write to it. I should note: you can't edit default theme files. So if you need to edit that file, copy it to your custom theme.
Gotcha, but will copying it to the custom theme folder overwrite the one in the default theme folder ?
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 03:45:07 PM
Yes. The same goes for any file that you put in your custom theme. If it's in the custom theme folder it gets used instead of the default theme files.
Title: Re: TinyPortal
Post by: wilsy on September 09, 2010, 03:55:57 PM
Quote from: IchBin™ on September 09, 2010, 01:27:15 PM
It's not running because of that error? You have something else wrong I'm guessing. My downloads still worked, just a layout problem and some undefined errors are there.

Hi Ich,

The error can be demonstrated here: -

http://atco-uk.com/index.php?action=tpmod;dl=cat1
Title: Re: TinyPortal
Post by: IchBin™ on September 09, 2010, 04:58:41 PM
Looks like you are a version behind. I'm betting that is fixed in TP 1 beta 5.2 because I'm not having that same problem. :)
Title: Re: TinyPortal
Post by: wilsy on September 10, 2010, 07:59:10 AM
Quote from: IchBin™ on September 09, 2010, 04:58:41 PM
Looks like you are a version behind. I'm betting that is fixed in TP 1 beta 5.2 because I'm not having that same problem. :)

I did install the latest version, its just not reflected by the tp version displayed at the site.
Title: Re: TinyPortal
Post by: wilsy on September 10, 2010, 09:21:50 AM
Ich, all sorted. Reinstalled files and its solved the issue.

:)
Title: Re: TinyPortal
Post by: IchBin™ on September 10, 2010, 09:44:41 AM
Sweet. Good work wilsy!
Title: Re: TinyPortal
Post by: vlindertje on September 11, 2010, 08:04:07 AM
Hello,

I just registrated on tinyportal. And activated it. Then i try logg in. Nothing happens.
I try many times, then i try to ask for my password, so i follow the link and do what it say. Then i come in a circle where i get again and over again the same page and maillink,  write my username or email. But i cannot change a password.

There is no email adres on that site for helping me, thats why i try it here. Please someone can help me?
Title: Re: TinyPortal
Post by: ZarPrime on September 11, 2010, 09:07:51 AM
vlindertje,


TinyPortal.net no longer exists.  Do you mean that you registered over at the TP Support Site? --> http://www.tinyportal.co.uk/index.php (http://www.tinyportal.co.uk/index.php)


2 people have registered there since yesterday and are awaiting activation.  I don't see the username you are using here as one of them.  If you want to PM me the Username that you registered with and your EMail Address, I will activate you manually if I can find it.  Otherwise, you'll need to register again.


ZarPrime
TP Support Site
Title: Re: TinyPortal
Post by: vlindertje on September 11, 2010, 10:08:56 AM
i send you a private message, thanx for helping!
Title: Re: TinyPortal
Post by: ZarPrime on September 11, 2010, 10:48:38 PM
No Problem. ;)  I'm glad we got you fixed up.


ZarPrime
Title: Re: TinyPortal
Post by: MyOutdoorsIowa on September 12, 2010, 01:13:50 PM
Greetings,

I'm running SMF2.0 RC3 and get the following 2 errors when trying to install TinyPortal - v1.0 beta 5.2 via the package manager. I'm totally new to SMF, so any help would be appreciated.

Execute Modification     ./Sources/Subs.php     Test failed
Add After     ./Sources/Subs.php     Test failed
Title: Re: TinyPortal
Post by: bloc on September 12, 2010, 03:06:30 PM
If you have other mods installed, try un-installing them , and run TP again. Then afterwards add those others back. Its most likely a conflict between mods.
Title: Re: TinyPortal
Post by: MyOutdoorsIowa on September 12, 2010, 04:54:18 PM
Quote from: Bloc on September 12, 2010, 03:06:30 PM
If you have other mods installed, try un-installing them , and run TP again. Then afterwards add those others back. Its most likely a conflict between mods.
Thank You for your reply.

It seems that I went a little crazy installing mods  :o I have several that will not even uninstall? At any rate I did a fresh install of SMF 2.0RC3 and installed TP v1.0 beta 5.2 and everything seemed to go fine except all of the mod icons are missing from admin and the shout box does not function after activation. You can view the test site @ http://hawgz.com/smf2/index.php?action=forum
Title: Re: TinyPortal
Post by: bloc on September 13, 2010, 01:20:17 PM
Check if you really have the folder called "tinyportal" inside Themes/defualt/images. If not, upload it.
Title: Re: TinyPortal
Post by: MyOutdoorsIowa on September 13, 2010, 05:47:15 PM
Quote from: Bloc on September 13, 2010, 01:20:17 PM
Check if you really have the folder called "tinyportal" inside Themes/defualt/images. If not, upload it.

Thanks for the advise  :) For some reason I'm not being allowed to upload to that directory?  :'( 

I'm getting very frustrated, I'm thinking there are some ownership problems with my host?
Title: Re: TinyPortal
Post by: bloc on September 13, 2010, 06:03:55 PM
Most likely, yes. Normally this would be uploaded automatically by the mod.
Title: Re: TinyPortal
Post by: JW21 on September 16, 2010, 01:53:17 PM
SMF 1.1.11
TP v0.9.8

I recently updated from SMF 1.1.10 to 1.1.11 and then had to install TinyPortal again. Now I have a bit of an issue with deleting articles. I had two articles on the front page. I no longer needed the one called 2009/2010 Sponsors do I deactivated the article and then deleted it. But the header for that article remains on the front page. How do I get rid of it??? You can see what I'm talking about by going to: http://www.hazeltonwolverines.ca/forum/
Title: Re: TinyPortal
Post by: lurkalot on September 16, 2010, 02:32:30 PM
TP 098 is getting on a bit now, and this thread is for v1.0 beta 5.2.  ;) 

You could however do this. (I think) 

phpMyAdmin / Database you are using / Structure / smf_tp_articles / Browse to name of article You want to delete.  And delete it from database.

Or if not sure you can also ask for help here, http://www.tinyportal.co.uk
Title: Re: TinyPortal
Post by: MoreBloodWine on September 19, 2010, 08:25:51 PM
Hey Bloc, got a request for ya.

The "move" butons in the block admin area, would it be possible to instead of using the clickable images to make it a dropbox where a person just chooses where they want the block to go and then use the save button at the bottom to save the block positions at which point they'd move to the appropriate categories.

Edit: Found what I guess are bugs because if intentional I'm stumped.

1. Uncategorized articles alows show this at the top which is annoying.

TP Error: This article isn't assigned yet

2. Articles don't appear to be viewable at all when logged out / in guest mode.

All you see, if uncategorized is the above message I typed for number one.

3. Also getting alot of these when trying to view articles.

2: Invalid argument supplied for foreach()
Title: Re: TinyPortal
Post by: bloc on September 20, 2010, 12:59:21 PM
1 and 2 a re intentional, you are not supposed to see a article not assigned, as guest. The TPerror is just for your benefit, so you know it doesn't have a category yet. This might change to allow non-categorized articles, but it means lots of changes that I don't want to add into v1.0 RC1 at this point.

Number 3 I am not sure, but could be related, will need more info about the error.

- About move buttons..I might look at JS based moving of blocks, but this will be for TP 1.1 then, for same reason as above.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 20, 2010, 03:11:57 PM
Quote from: Bloc on September 20, 2010, 12:59:21 PM
1 and 2 a re intentional, you are not supposed to see a article not assigned, as guest. The TPerror is just for your benefit, so you know it doesn't have a category yet. This might change to allow non-categorized articles, but it means lots of changes that I don't want to add into v1.0 RC1 at this point.

Number 3 I am not sure, but could be related, will need more info about the error.

- About move buttons..I might look at JS based moving of blocks, but this will be for TP 1.1 then, for same reason as above.
Sounds good, as for the errors... thats pretty much all the info I have. As for the whole article thing... What would be the right settings to have an article viewable by everyone including guests ? Unless I'm missing something, I could swear that as a guest while the article might have been hidden from me that I still saw that red text. I'd have to check again though.

Edit: What code do I need to use to color both PHP & regular HTML blocks so the background color is diferent then what the theme tries to apply ?

Edit 2: Also getting alot of these...

8: Undefined index: theme_color both this and the other error are related to articles.
Title: Re: TinyPortal
Post by: Akyhne on September 20, 2010, 08:07:03 PM
@Bloc: Where should we be posting bugs?
Title: Re: TinyPortal
Post by: IchBin™ on September 20, 2010, 08:33:29 PM
I think you should be able to access the bugtracker on the TP site.
http://www.tinyportal.co.uk/index.php?project=1
Title: Re: TinyPortal
Post by: ffingers on September 22, 2010, 01:58:47 AM
quick question....

where can i find the code to edit the default blocks....i.e., the stats block, the user block, etc....i know on 1.1.11 there was a tpblocks.template i think that i edited but that same file on 2.0 RC3 is blank...i am sort of at a loss...i can't find them anywhere
Title: Re: TinyPortal
Post by: bloc on September 22, 2010, 02:54:22 AM
They are located in TPsubs.template.php now. 
Title: Re: TinyPortal
Post by: bloc on September 22, 2010, 03:06:31 AM
v1.0 RC1 released
- Added navigation to almost all tpadmin functions.
- fixed some inconsistencies in TPadmin layout.
- Theme block didn't redirect to where it was. fixed.
- fixed issue where panels did not show on certain actions, when set to show on all forum actions.(collapsing boards, posting, search results etc.)
- Fixed entity problems with block titles and edit block screen.
- Added text entry for viewing the forum in Whos Online section.
- Add menu textbox did not show in IE8 because of missing tags. Fixed.
- Menu items was removed from Sitemap block if menu block was off. Fixed.
- Wrong links for adding HTML/BBC articles inside the "tinyportal" menu.
- forum button didn't highlight when in board/topic. Fixed.
- Fixed errors in the TP section of member profile.
- dates on article titles for frontpage did not use language choice.Fixed.
- Frontblocks meant for guests was also shown for members. Fixed.
- Shoutbox admin was encoding entities upon save, but not decoding when fetched.
- More fixes for bugs discovered in beta5.
- Some changes on default styles in TP.
Title: Re: TinyPortal
Post by: MaXiForum.cz on September 22, 2010, 06:25:19 AM
Congratulation Bloc. Very nice work :)
Title: Re: TinyPortal
Post by: SN on September 22, 2010, 07:12:26 AM
Congrats on the Update bloc.

But i think i have found a Bug.

when you select No on "Admin can see all blocks?"

then no blocks at all are visible to admins.

When im logged in as Admin... i see no blocks. When i log out as a guest, i see all the blocks. It wasn't like this on 5.2 because i had that setting on " no " on that version
Title: Re: TinyPortal
Post by: Nolt on September 22, 2010, 07:14:37 AM
Great Bloc, thanks for this release :)
Title: Re: TinyPortal
Post by: bloc on September 22, 2010, 11:31:11 AM
Quote from: SN on September 22, 2010, 07:12:26 AM
Congrats on the Update bloc.

But i think i have found a Bug.

when you select No on "Admin can see all blocks?"

then no blocks at all are visible to admins.

When im logged in as Admin... i see no blocks. When i log out as a guest, i see all the blocks. It wasn't like this on 5.2 because i had that setting on " no " on that version

Is this on SMF 1.1 or SMF 2.0 RC3?
Title: Re: TinyPortal
Post by: SN on September 22, 2010, 12:01:37 PM
Quote from: Bloc on September 22, 2010, 11:31:11 AM
Quote from: SN on September 22, 2010, 07:12:26 AM
Congrats on the Update bloc.

But i think i have found a Bug.

when you select No on "Admin can see all blocks?"

then no blocks at all are visible to admins.

When im logged in as Admin... i see no blocks. When i log out as a guest, i see all the blocks. It wasn't like this on 5.2 because i had that setting on " no " on that version

Is this on SMF 1.1 or SMF 2.0 RC3?

SMF 2.0 RC3, on my test forum with no other mods installed
Title: Re: TinyPortal
Post by: lurkalot on September 22, 2010, 12:32:28 PM
Quote from: SN on September 22, 2010, 07:12:26 AM

when you select No on "Admin can see all blocks?"

then no blocks at all are visible to admins.

When im logged in as Admin... i see no blocks. When i log out as a guest, i see all the blocks. It wasn't like this on 5.2 because i had that setting on " no " on that version

I'm confused now, lol..  Isn't it supposed to work like that?  When you log out you can see the blocks because you're a guest not a Admin. :)
Title: Re: TinyPortal
Post by: SN on September 22, 2010, 01:44:53 PM
Quote from: lurkalot on September 22, 2010, 12:32:28 PM
Quote from: SN on September 22, 2010, 07:12:26 AM

when you select No on "Admin can see all blocks?"

then no blocks at all are visible to admins.

When im logged in as Admin... i see no blocks. When i log out as a guest, i see all the blocks. It wasn't like this on 5.2 because i had that setting on " no " on that version


I'm confused now, lol..  Isn't it supposed to work like that?  When you log out you can see the blocks because you're a guest not a Admin. :)

It never worked like that on previous version.

for example, i have blocks that are just viewable for guests... on 5.2 when i put this "on" i could not view the blocks that where viewable for guest (which is good) but i could view all other blocks.

Title: Re: TinyPortal
Post by: MoreBloodWine on September 22, 2010, 02:56:31 PM
Hey bloc, just curious but did you get those bullets back in since you said you rather liked the idea ?

Also, I havent had a chance to check soem other the other stuff out yet but I was wondering.

1. In the recent block they post like this line breaking when the text gets to wide...

[RSS] Mafia II : Jimmy's ... by MoreBloodWine [Today at 02:53:02 PM]

could you maybe add some <br />'s after the title an by lines so it looks like this which is what it does / did for 098 ?

[RSS] Mafia II : Jimmy's ...
by MoreBloodWine
[Today at 02:53:02 PM]

2. Any chance of getting those hr's back in to seperate the posts in the recent block, again like in 098 ?

Edit:

3. Think this may have been overlooked but what would be the code to use to color php and regular HTML blocks. Using the <body> tag in both except with PHP I echo it doesn't work.
Title: Re: TinyPortal
Post by: ffingers on September 22, 2010, 03:52:38 PM
To upgrade can i just install over the old version or do I need to do an uninstall and a reinstall?
Title: Re: TinyPortal
Post by: tamasir on September 22, 2010, 04:01:13 PM
Congratulation Bloc.
In TinyPortal.eu Team name: tamasir~
Title: Re: TinyPortal
Post by: bloc on September 22, 2010, 04:11:11 PM
Quote from: SN on September 22, 2010, 01:44:53 PM
Quote from: lurkalot on September 22, 2010, 12:32:28 PM
Quote from: SN on September 22, 2010, 07:12:26 AM

when you select No on "Admin can see all blocks?"

then no blocks at all are visible to admins.

When im logged in as Admin... i see no blocks. When i log out as a guest, i see all the blocks. It wasn't like this on 5.2 because i had that setting on " no " on that version


I'm confused now, lol..  Isn't it supposed to work like that?  When you log out you can see the blocks because you're a guest not a Admin. :)

It never worked like that on previous version.

for example, i have blocks that are just viewable for guests... on 5.2 when i put this "on" i could not view the blocks that where viewable for guest (which is good) but i could view all other blocks.


The idea was to make admins not having to see all blocks, but only those *specifically* for admins. But to not make it too ahrd on this change, a setting for it was added. So if "on" it behaves like before, that admin see everything. If "off" admin only see those blocks set for them.

I will test if its working properly though.
Title: Re: TinyPortal
Post by: IchBin™ on September 22, 2010, 04:13:02 PM
Quote from: ffingers on September 22, 2010, 03:52:38 PM
To upgrade can i just install over the old version or do I need to do an uninstall and a reinstall?
Unless you have installed some mods after it (which could conflict), you should be able to upgrade. If there are no errors, there shouldn't be any reason you can't upgrade.
Title: Re: TinyPortal
Post by: bloc on September 22, 2010, 04:13:40 PM
Quote from: MoreBloodWine on September 22, 2010, 02:56:31 PM
Hey bloc, just curious but did you get those bullets back in since you said you rather liked the idea ?

Also, I havent had a chance to check soem other the other stuff out yet but I was wondering.

1. In the recent block they post like this line breaking when the text gets to wide...

[RSS] Mafia II : Jimmy's ... by MoreBloodWine [Today at 02:53:02 PM]

could you maybe add some <br />'s after the title an by lines so it looks like this which is what it does / did for 098 ?

[RSS] Mafia II : Jimmy's ...
by MoreBloodWine
[Today at 02:53:02 PM]

2. Any chance of getting those hr's back in to seperate the posts in the recent block, again like in 098 ?

Edit:

3. Think this may have been overlooked but what would be the code to use to color php and regular HTML blocks. Using the <body> tag in both except with PHP I echo it doesn't work.

Yes, i liked them and added them back. the hr's are out..but I can release the blockcode for the old one. Also, same for the 0.9 version, but that already exists in the added blockcodes. You can choose it when you add blocks.

Using body tag in blocks? I don't quite follow.
Title: Re: TinyPortal
Post by: bloc on September 22, 2010, 04:14:26 PM
Quote from: tamasir on September 22, 2010, 04:01:13 PM
Congratulation Bloc.
In TinyPortal.eu Team name: tamasir~
Thanks, tamasir. :)
Title: Re: TinyPortal
Post by: GhostRider2110 on September 22, 2010, 05:01:09 PM
Just installed upgrade, but the version notice at the bottom still says TinyPortal 1.0 beta 5-1 did something mess up?  Nothing else seems broken...  Great job Bloc!!!

See-ya
Mitch
Title: Re: TinyPortal
Post by: MoreBloodWine on September 22, 2010, 05:18:21 PM
Quote from: Bloc on September 22, 2010, 04:13:40 PM
Quote from: MoreBloodWine on September 22, 2010, 02:56:31 PM
Hey bloc, just curious but did you get those bullets back in since you said you rather liked the idea ?

Also, I havent had a chance to check soem other the other stuff out yet but I was wondering.

1. In the recent block they post like this line breaking when the text gets to wide...

[RSS] Mafia II : Jimmy's ... by MoreBloodWine [Today at 02:53:02 PM]

could you maybe add some <br />'s after the title an by lines so it looks like this which is what it does / did for 098 ?

[RSS] Mafia II : Jimmy's ...
by MoreBloodWine
[Today at 02:53:02 PM]

2. Any chance of getting those hr's back in to seperate the posts in the recent block, again like in 098 ?

Edit:

3. Think this may have been overlooked but what would be the code to use to color php and regular HTML blocks. Using the <body> tag in both except with PHP I echo it doesn't work.

Yes, i liked them and added them back. the hr's are out..but I can release the blockcode for the old one. Also, same for the 0.9 version, but that already exists in the added blockcodes. You can choose it when you add blocks.

Using body tag in blocks? I don't quite follow.
Well, if you added the bullets back in that just leaves 1 & 2 which you said are out, so ya assuming the block code from 098 to this new version isnt to different then I would like the block code and the find / replace, find / add after stuff to get 1 & 2 done for the recent posts block.

Also, I may be trying to think to much into the below quote but I don't get what your saying / mean.
QuoteAlso, same for the 0.9 version, but that already exists in the added blockcodes. You can choose it when you add blocks.

As for the body stuff, I meant that I tried stuff like this to color the block but it didnt work.

echo '<body bgcolor="HEX HERE">';

echo 'Block stuff here...';

echo '</body>';

That didnt work, basically I just wana know what do I need to do to color the background of a single block.
Title: Re: TinyPortal
Post by: IchBin™ on September 22, 2010, 05:25:48 PM
Well if you add a div then you'd put the background like this:

<div style="background-color: #CC0000;"></div>

However, the blocks have paddings and stuff that will likely leave you with a border around the inside body part of your block. It might be easier/better to just look at the HTML (with a cool tool like firebug) so you can get ID name. Each block has a unique ID. Then in your css file just add a section for it.

#block11 {
    background-color: #CC0000;
}
Title: Re: TinyPortal
Post by: ffingers on September 22, 2010, 05:37:01 PM
Love this mod bloc. Been using it on my 1.1.11 site for two years. I am jumping ship to 2.0 now and doing prep work. With 2.0 the are some great mobile themes like mobile curve and smf4iphone. However the blocks  from tinyportal make it look completely wonky. Is there a way to disable tinyportal for mobile themes. I know you don't have one built-in but is it possible to add a conditional somewhere to check for a theme ID and therefore not load tinyportal. If you could toss me the code I can do the manual edits for now. Thanks. I am assuming it would just be conditionals in the index.template to not call the init for tinyportal? Right?
Title: Re: TinyPortal
Post by: MoreBloodWine on September 22, 2010, 05:37:32 PM
Quote from: IchBin™ on September 22, 2010, 05:25:48 PM
Well if you add a div then you'd put the background like this:

<div style="background-color: #CC0000;"></div>

However, the blocks have paddings and stuff that will likely leave you with a border around the inside body part of your block. It might be easier/better to just look at the HTML (with a cool tool like firebug) so you can get ID name. Each block has a unique ID. Then in your css file just add a section for it.

#block11 {
    background-color: #CC0000;
}
The div solution worked but as you suggested due to the padding there was a border or sorts, now this isnt such a big deal since I mainly wanted content to stand out more.

Also, I was curious to see if the CSS could be used directly in the block as shown below but that didnt work.

echo '
<style type="text/css">
#block18 {
    background-color: #FFFFFF;
}
</style>
';


Is there something I'm doing wrong ?

Ok, I know I should be putting it in the css file or whatever but every time I want co change a bg color if at all I'd have to do this and that to get to the file and I find itwould just be easier to manage the color locally (directly form the block itself).
Title: Re: TinyPortal
Post by: IchBin™ on September 22, 2010, 05:47:38 PM
It's either the way I described, or you change one of the block layout options to suit what you're looking for.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 22, 2010, 05:58:27 PM
Quote from: IchBin™ on September 22, 2010, 05:47:38 PM
It's either the way I described, or you change one of the block layout options to suit what you're looking for.
In any case I edited the tp-style.css in the default folder and added

#block18 {
    background-color: #101010;
}

But it doesnt appear to be doing anything, and yes, I have the right block number.
Title: Re: TinyPortal
Post by: bloc on September 22, 2010, 07:19:22 PM
It won't override unless you set the block to be either "title only" or "no title or frame" for its options. 

Quote from: ffingers on September 22, 2010, 05:37:01 PM
Love this mod bloc. Been using it on my 1.1.11 site for two years. I am jumping ship to 2.0 now and doing prep work. With 2.0 the are some great mobile themes like mobile curve and smf4iphone. However the blocks  from tinyportal make it look completely wonky. Is there a way to disable tinyportal for mobile themes. I know you don't have one built-in but is it possible to add a conditional somewhere to check for a theme ID and therefore not load tinyportal. If you could toss me the code I can do the manual edits for now. Thanks. I am assuming it would just be conditionals in the index.template to not call the init for tinyportal? Right?
Its possible to turn off all panels, yes..but you will need to do it in the theme's template_init() function. The quickest way is to simply set new layers - TP use its own "tp" layer", so you could just reset them with the default layers:

$context['template_layers'] = array('html','body');

..at the end of template_init() function;
Title: Re: TinyPortal
Post by: gregj on September 22, 2010, 08:11:29 PM
Apologizies if this is in the wrong place. We have TP 1.083 loaded in SMF 1.1.11, and problem with aprostophes having slashes after them in the shoutbox. I've searched but have not come up with anything.   Thanks in advance.
Title: Re: TinyPortal
Post by: IchBin™ on September 22, 2010, 09:24:00 PM
What is the TP version at the bottom of your forum say? You posted the internal version which doesn't mean anything to anyone except bloc. Did you see that Bloc just released an update today? If you haven't upgraded, I'd highly suggest you do as it will fix problems just like what you are having.
Title: Re: TinyPortal
Post by: Wiwar on September 22, 2010, 09:36:41 PM
Can you please supply me with a quick fix for this minor problem:

I'd like my shoutbox to scroll from recent through previous shouts? Before I mess about experimenting with my files, I'd rather ask the experts! :)

Thanks in advance
Title: Re: TinyPortal
Post by: agridoc on September 23, 2010, 01:39:10 AM
Good work Bloc, many bugs fixed.  8)

A note for non latin chars language and multilingual users upgrading from TP 0.9.8.

Most bugs affecting non latin chars languages are fixed and the language option for blocks is back again. A caution here, it works differently than in TP 0.9.8. In TP 0.9.8 if a language is selected the block appears only if this language is selected. In TP 1.0 RC1 the language option for blocks (NEW) in TP settings must be turned on. Then existing language specific blocks will work as expected, however the desired languages MUST be selected in the remaining blocks, so they appear with every language.

With this version TP is full back for sophisticated multilingual sites.
Title: Re: TinyPortal
Post by: agridoc on September 23, 2010, 01:47:45 AM
Quote from: Wiwar on September 22, 2010, 09:36:41 PMI'd like my shoutbox to scroll from recent through previous shouts? Before I mess about experimenting with my files, I'd rather ask the experts! :)

Good observation Wiwar, the sorting goes to ASCending by date if you choose scrolling, while it is DESCending by date in simple presentation. I had a quick look but I didn't find a solution, however my specialty in TP is Languages and Internationalization, I believe one will be soon available.
Title: Re: TinyPortal
Post by: SN on September 23, 2010, 02:13:06 AM
Quote from: Bloc on September 22, 2010, 04:11:11 PM
Quote from: SN on September 22, 2010, 01:44:53 PM
Quote from: lurkalot on September 22, 2010, 12:32:28 PM
Quote from: SN on September 22, 2010, 07:12:26 AM

when you select No on "Admin can see all blocks?"

then no blocks at all are visible to admins.

When im logged in as Admin... i see no blocks. When i log out as a guest, i see all the blocks. It wasn't like this on 5.2 because i had that setting on " no " on that version


I'm confused now, lol..  Isn't it supposed to work like that?  When you log out you can see the blocks because you're a guest not a Admin. :)

It never worked like that on previous version.

for example, i have blocks that are just viewable for guests... on 5.2 when i put this "on" i could not view the blocks that where viewable for guest (which is good) but i could view all other blocks.


The idea was to make admins not having to see all blocks, but only those *specifically* for admins. But to not make it too ahrd on this change, a setting for it was added. So if "on" it behaves like before, that admin see everything. If "off" admin only see those blocks set for them.

I will test if its working properly though.

Yeah that is how i have it set up bloc. But none of the blocks are showing when im logged in as admin

Picture 1 is my front page settings. And picture 2 is an example of how i have a block set up which isn't showing for admin

Title: Re: TinyPortal
Post by: gregj on September 23, 2010, 07:13:16 AM
Quote from: IchBin™ on September 22, 2010, 09:24:00 PM
What is the TP version at the bottom of your forum say? You posted the internal version which doesn't mean anything to anyone except bloc. Did you see that Bloc just released an update today? If you haven't upgraded, I'd highly suggest you do as it will fix problems just like what you are having.

The version of TP is v1.0 beta 4.

I will try the update.  thanks
Title: Re: TinyPortal
Post by: GhostRider2110 on September 23, 2010, 11:55:30 AM
Quote from: GhostRider2110 on September 22, 2010, 05:01:09 PM
Just installed upgrade, but the version notice at the bottom still says TinyPortal 1.0 beta 5-1 did something mess up?  Nothing else seems broken...  Great job Bloc!!!

See-ya
Mitch

Guess it would help if I gave SMF version.  1.1.11 is current SMF using BlueSkies modified.  You can see at www.usscalemasters.org

It did have the 5-2 version which I was told didn't get the version display updated.  Did this happen again on this update? 

See-ya
Mitch
Title: Re: TinyPortal
Post by: ZarPrime on September 24, 2010, 08:44:03 AM
Quote from: GhostRider2110 on September 23, 2010, 11:55:30 AM
Quote from: GhostRider2110 on September 22, 2010, 05:01:09 PM
Just installed upgrade, but the version notice at the bottom still says TinyPortal 1.0 beta 5-1 did something mess up?  Nothing else seems broken...  Great job Bloc!!!

See-ya
Mitch

Guess it would help if I gave SMF version.  1.1.11 is current SMF using BlueSkies modified.  You can see at www.usscalemasters.org (http://www.usscalemasters.org)

It did have the 5-2 version which I was told didn't get the version display updated.  Did this happen again on this update? 

See-ya
Mitch


Mitch,


Which file did you download from this page? --> http://mods.simplemachines.org/index.php?mod=97 (http://mods.simplemachines.org/index.php?mod=97)


Look on the right.  You should see 3 files.  The bottom one is "TinyPortal10RC1.zip".  That is the latest version and is the one you should download and install.  Just to make sure you did things right, uninstall the version you have installed now before installing this new one.  Backup first, of course.


I just did a search in this latest version for the string "TinyPortal 1.0 beta" and that string no longer exists in this latest version.  That issue with beta 5-2 has been fixed.  If you have any further trouble, stop over at the TP Support Site (http://www.tinyportal.co.uk/index.php) and one of us can help you.


ZarPrime
Title: Re: TinyPortal
Post by: IdanC on September 24, 2010, 04:46:06 PM
i've been using Simple Portal for about a year now, and even though i'm happy with it, i played around a little bit with TinyPortal, and was very impressed. now i consider switching to TP.

any thoughts? pros? cons?
Title: Re: TinyPortal
Post by: MoreBloodWine on September 24, 2010, 04:58:23 PM
Quote from: MoreBloodWine on September 22, 2010, 05:58:27 PM
Quote from: IchBin™ on September 22, 2010, 05:47:38 PM
It's either the way I described, or you change one of the block layout options to suit what you're looking for.
In any case I edited the tp-style.css in the default folder and added

#block18 {
    background-color: #101010;
}

But it doesnt appear to be doing anything, and yes, I have the right block number.
No rush but I would still like that block code to make the 1.0 blocks look like 098 if you don't mind handing it out Bloc ;-)
Title: Re: TinyPortal
Post by: IchBin™ on September 24, 2010, 05:16:41 PM
Quote from: IdanC on September 24, 2010, 04:46:06 PM
i've been using Simple Portal for about a year now, and even though i'm happy with it, i played around a little bit with TinyPortal, and was very impressed. now i consider switching to TP.

any thoughts? pros? cons?

They are both great mods IMO. Take a look at both of them, see the features that they have that you like. Which ever one has what you need, use it! :)
Title: Re: TinyPortal
Post by: IdanC on September 24, 2010, 05:22:58 PM
thanks, let me try to be more specific -

even if this mod or the other has more features, i really care about flexibility - is TP's code readable? even if SimplePortal didn't use the smartest code, it was preety straight forward and easy to manipulate. can you say the same about TP?

(i'm asking because unlike features exploration, diving into the code is quite a commitment...
Title: Re: TinyPortal
Post by: ZarPrime on September 24, 2010, 06:49:03 PM

MoreBloodWine,


I have no idea what version of TinyPortal you are using.  I don't think you have ever said.  If you are using the latest version, when you click to add a block in the TPAdmin Blocks area, you have 3 choices ...


1.  Choose type of block:
2.  .. or use existing blockcode:
3.  .. or copy from existing block:


If you look under ".. or use existing blockcode:" you will see "Classic Recent Topics Written by Bloc" as one of the selections.  This is "The older classic recent topics news from TP v0.9.8.".  If you choose this one, you will be presented with the edit screen for a php block containing the appropriate code.


You can then make any changes to that code that you want to do to get the look that you want.  The following topic on the TP support Site will show you some information about changing the particular code in this block to get the look that you want --> http://www.tinyportal.co.uk/index.php?topic=33209.0


If you can't figure out what to change to get the look that you want, feel free to start a new support topic over there and someone will help you.


ZarPrime
Title: Re: TinyPortal
Post by: ZarPrime on September 24, 2010, 07:02:31 PM
Quote from: IdanC on September 24, 2010, 05:22:58 PM
thanks, let me try to be more specific -

even if this mod or the other has more features, i really care about flexibility - is TP's code readable? even if SimplePortal didn't use the smartest code, it was preety straight forward and easy to manipulate. can you say the same about TP?

(i'm asking because unlike features exploration, diving into the code is quite a commitment...


IdanC,


I know you said that you are trying to be more specific but I don't really understand the question.  "is TP's code readable?"  Sure, it's written in php just as SimplePortal is.  Most of the time, there is really no reason do "dive into the code", as you say, though you certainly could if you wanted to.  If you could be just a little more specific, and give us an example of something that you have changed in SimplePortal that you would like to change in TinyPortal as well, maybe we could get an idea of just what it is you are trying to do.


ZarPrime
Title: Re: TinyPortal
Post by: bloc on September 24, 2010, 07:21:01 PM
Quote from: IdanC on September 24, 2010, 05:22:58 PM
thanks, let me try to be more specific -

even if this mod or the other has more features, i really care about flexibility - is TP's code readable? even if SimplePortal didn't use the smartest code, it was preety straight forward and easy to manipulate. can you say the same about TP?

(i'm asking because unlike features exploration, diving into the code is quite a commitment...
Have you taken a look at the code? The only real judge on whether its readable enough, is you. :)

As for coding style, I have more or less used whats common in SMF, but TP has grown to be a big mod and thus might seem complex in nature. Latest version v1.0 RC1 is more logical than previous versions though - something that came with my own learning of the PHP language.

I can say that much of the power in TP is ported out to the user though, meaning most things have a admin interface. It may not be easy to track down inside the code, but that really depends on how you need to change TP itself for your needs. There's among other things, an option to not show any HTML from the theme in a article(except the SMF copyright) which makes a article a total blank to use your own code and markup on. You can also simply duplicate TP templates and change the behavior of blocks, article layouts and frontpage layouts. And if you rather not , theres an easier option to build your own article or category layout with HTMl + keywords like {title} , {author} etc. These custom layouts are saved with each article or article category.

Articles can be set to publish in a limited time, and theres a lot of options for where and how to show it. Blocks have the same, although they are simpler.
Title: Re: TinyPortal
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 07:25:49 PM
Quote from: IdanC on September 24, 2010, 05:22:58 PM
thanks, let me try to be more specific -

even if this mod or the other has more features, i really care about flexibility - is TP's code readable? even if SimplePortal didn't use the smartest code, it was preety straight forward and easy to manipulate. can you say the same about TP?

(i'm asking because unlike features exploration, diving into the code is quite a commitment...
It's the best portal mod before and after simple portal. Don't you know all portal that are here today is based on TP?
Title: Re: TinyPortal
Post by: MoreBloodWine on September 24, 2010, 07:27:48 PM
Quote from: zarprime on September 24, 2010, 06:49:03 PM

MoreBloodWine,


I have no idea what version of TinyPortal you are using.  I don't think you have ever said.  If you are using the latest version, when you click to add a block in the TPAdmin Blocks area, you have 3 choices ...


1.  Choose type of block:
2.  .. or use existing blockcode:
3.  .. or copy from existing block:


If you look under ".. or use existing blockcode:" you will see "Classic Recent Topics Written by Bloc" as one of the selections.  This is "The older classic recent topics news from TP v0.9.8.".  If you choose this one, you will be presented with the edit screen for a php block containing the appropriate code.


You can then make any changes to that code that you want to do to get the look that you want.  The following topic on the TP support Site will show you some information about changing the particular code in this block to get the look that you want --> http://www.tinyportal.co.uk/index.php?topic=33209.0


If you can't figure out what to change to get the look that you want, feel free to start a new support topic over there and someone will help you.


ZarPrime
Thx for that, I really love the fact you can make it scrollable to control height. I really love the classic look of recent compared to that of the new look.

Also, i don't believe I did ever say which version, so to answer, the latest one on my test site.

That aside I guess all thats left is the coloring issue I also mentioned.
Title: Re: TinyPortal
Post by: ZarPrime on September 24, 2010, 08:01:19 PM
Quote from: MoreBloodWine on September 24, 2010, 07:27:48 PM
Thx for that, I really love the fact you can make it scrollable to control height. I really love the classic look of recent compared to that of the new look.

That aside I guess all thats left is the coloring issue I also mentioned.

Well, you can force scrolling with the current version, but to do that, you have to use "Force this heigth on each block(use 00px or 00%):" for the panel that the block is in but then all of the blocks in that panel would be the same height.  Using this for the left or right panel certainly takes a little more planning than most people have patience for though.  If you want to do it for a specific block, Bloc or Ichbin may be able to shed some light on how to do that.  However, in a future version of TinyPortal, there may (I say may because I don't know yet how this new feature will manifest itself) be an easier way to do this.

As for the background color on a specific block, I think that Ichbin and/or Bloc has been talking to ou about that so I will leave that one alone.

ZarPrime
Title: Re: TinyPortal
Post by: IdanC on September 24, 2010, 08:05:14 PM
Thanks ZarPrime, the major change i applied at SimplePortal was to get rid of the "panels" and just put blocks wherever i wanted, and how i wanted. so i'll mostly be dealing with the block-creating pieces of code. btw, it's non-english, but you're welcome to take a look at my forum (http://mila.fm).

Bloc, applause for the fantastic mod. your answer actually covered all the information i needed, thanks allot!

ahrasis, is your determination based on any data, or your just an enthusiastic fan?
Title: Re: TinyPortal
Post by: MoreBloodWine on September 24, 2010, 08:23:46 PM
Quote from: zarprime on September 24, 2010, 08:01:19 PM
Quote from: MoreBloodWine on September 24, 2010, 07:27:48 PM
Thx for that, I really love the fact you can make it scrollable to control height. I really love the classic look of recent compared to that of the new look.

That aside I guess all thats left is the coloring issue I also mentioned.

Well, you can force scrolling with the current version, but to do that, you have to use "Force this heigth on each block(use 00px or 00%):" for the panel that the block is in but then all of the blocks in that panel would be the same height.  Using this for the left or right panel certainly takes a little more planning than most people have patience for though.  If you want to do it for a specific block, Bloc or Ichbin may be able to shed some light on how to do that.  However, in a future version of TinyPortal, there may (I say may because I don't know yet how this new feature will manifest itself) be an easier way to do this.

As for the background color on a specific block, I think that Ichbin and/or Bloc has been talking to ou about that so I will leave that one alone.

ZarPrime
As far as the scrolling goes, you don't have to force it on the current version because of this (look at the red). It applies to just the recent block.

As for the color thing, ya I think Ich was the one helpin mewith that, I don't recall.

global $context, $modSettings;
$context[&#039;TPortal&#039;][&#039;recentboxnum&#039;]=&#039;10&#039;;

if(isset($modSettings[&#039;recycle_board&#039;]))
   $bb=$modSettings[&#039;recycle_board&#039;];

$what=ssi_recentTopics($context[&#039;TPortal&#039;][&#039;recentboxnum&#039;], NULL, NULL, &#039;array&#039;);
$counter=1; $cmax=count($what);
echo &#039;
<div style=&quot;width: 100%; overflow: auto; height: 78ex;&quot;>&#039;;
foreach($what as $w)
{
   echo &#039;
   <div class=&quot;smalltext&quot;><a href=&quot;&#039;.$w[&#039;href&#039;].&#039;&quot;>&#039;.$w[&#039;short_subject&#039;].&#039;</a></div>
   <div class=&quot;smalltext&quot;>&#039;, $txt[&#039;by&#039;], &#039; <b>&#039;, $w[&#039;poster&#039;][&#039;link&#039;], &#039;</b></div>
   <div class=&quot;smalltext&quot;>&#039;;
   if(!$w[&#039;new&#039;])
      echo &#039;<a href=&quot;&#039;.$w[&#039;href&#039;].&#039;&quot;><img border=&quot;0&quot; src=&quot;&#039;.$settings[&#039;images_url&#039;].&#039;/&#039;.$context[&#039;user&#039;][&#039;language&#039;].&#039;/new.gif&quot; alt=&quot;new&quot; /></a> &#039;;

   echo &#039;[&#039;.$w[&#039;time&#039;].&#039;]
   </div>&#039;;

   if($counter != $cmax)
      echo &#039;<hr />&#039;;
   $counter++;
}
echo &#039;
</div>&#039;;
Title: Re: TinyPortal
Post by: bloc on September 24, 2010, 08:33:59 PM
Quote from: IdanC on September 24, 2010, 08:05:14 PM
Thanks ZarPrime, the major change i applied at SimplePortal was to get rid of the "panels" and just put blocks wherever i wanted, and how i wanted. so i'll mostly be dealing with the block-creating pieces of code. btw, it's non-english, but you're welcome to take a look at my forum (http://mila.fm).

Bloc, applause for the fantastic mod. your answer actually covered all the information i needed, thanks allot!

ahrasis, is your determination based on any data, or your just an enthusiastic fan?

Thanks, thats nice to hear. :)

I think ahrasis is referring to the age of TP, its been around for 5-6 years, and you might say some of the features in later portals are the same as in TP. But theres been innovations no doubt. I feel one should stay true to ones own vision though, and for me TP has been and still is, just that. I hate to see it just being a direct clone of something else.

Title: Re: TinyPortal
Post by: ZarPrime on September 24, 2010, 08:45:18 PM
Quote from: IdanC on September 24, 2010, 08:05:14 PM
Thanks ZarPrime, the major change i applied at SimplePortal was to get rid of the "panels" and just put blocks wherever i wanted, and how i wanted. so i'll mostly be dealing with the block-creating pieces of code. btw, it's non-english, but you're welcome to take a look at my forum (http://mila.fm).
Well, every block must be in a panel but there are lots of options that you can use to select where you want each block to actually be shown.  For instance, if you want a block to be shown just on the BoardIndex, you have that option.  Likewise, if you want it to be shown only when viewing the memberlist (or any other action, including custom actions), you have that option as well.  You want a block to be shown just when viewing a particular article or just an article category, no problem, just when viewing a particular language, still no problem.  If you want to show a block just on the FrontPage, or just on a particular Forum board, still no problem.  In other words, lots of options.  See the attached image to get an idea of the various options.  All of this can be done from the TPAdmin area without changing any core TP code.  If no blocks are selected to show in a particular action or in a particular area then the panel itself will not even be shown. 

In addition, you can choose to display your block in one of 7 panels (left, right, upper, lower, top, bottom, or just Front Panel only).  To get an idea of what can be done, take a look at the TP Support Site here --> http://www.tinyportal.co.uk/index.php
Or take a look at this link (one of my test sites though not yet upgraded to the latest version) ...
http://talesofthehavenexpanse.com/smf2test/index.php for FrontPage
http://talesofthehavenexpanse.com/smf2test/index.php?action=forum for Forum BoardIndex

The best way to find out if TinyPortal is for you is to setup a test Forum and install the latest version of TinyPortal.  Play with it, see what it can do for you.  I don't think you'll be disappointed.
ZarPrime
Title: Re: TinyPortal
Post by: ZarPrime on September 24, 2010, 08:52:39 PM
Quote from: MoreBloodWine on September 24, 2010, 08:23:46 PM
As far as the scrolling goes, you don't have to force it on the current version because of this (look at the red). It applies to just the recent block.

Well, yeah, I know about that.  I was actually talking about the new recent block built into the core TP code (not the old TP 0.98 code).  I haven't looked at that yet so I don't know what would need to be edited to enable scrolling for the new version.

ZarPrime
Title: Re: TinyPortal
Post by: MoreBloodWine on September 24, 2010, 08:53:55 PM
Quote from: zarprime on September 24, 2010, 08:52:39 PM
Quote from: MoreBloodWine on September 24, 2010, 08:23:46 PM
As far as the scrolling goes, you don't have to force it on the current version because of this (look at the red). It applies to just the recent block.

Well, yeah, I know about that.  I was actually talking about the new recent block built into the core TP code (not the old TP 0.98 code).  I haven't looked at that yet so I don't know what would need to be edited to enable scrolling for the new version.

ZarPrime
Ahh, I gotcha now... I just like the 098 version better. I feel it's formatted better.
Title: Re: TinyPortal
Post by: ZarPrime on September 24, 2010, 08:56:05 PM
<Ha Ha> OK, your choice. ;)


ZP
Title: Re: TinyPortal
Post by: MoreBloodWine on September 24, 2010, 09:59:04 PM
I still use 098 on my live site and I was curious about soemthing between it and the new 1.x version of TP. In the recent block for 098, regardless of wether or not you click the subject or the "new" image it always takes you to the newest and doesnt start with the newest since your last vist like if you clicked Show unread posts since last visit.


Was this by design or a bug and if so, a bug I mean, has it been patched in the 1x branch of TP and if not by design how can it be modified to work the way Show unread posts since last visit. does ?

Also, if I may ask Bloc... would you by chance release the block code for the 098 statsbox ?
Title: Re: TinyPortal
Post by: ZarPrime on September 25, 2010, 09:31:40 AM
Well, the Recent block uses the ssi_recentTopics function and the Unread posts uses the unread action (action=unread).  Those 2 functions work quite differently from each other.  the ssi_recentTopics function actually shows the most recent posted to topics so it makes sense that, when you click that, you should be taken to the last post of the recent topic.


However, I will leave this for you and Bloc to hash out because, IMHO, it's working the way it should be working.  Even though you can click the "new" icon, as far as I'm concerned, it should take you to the most recent post in the topic, and that's what it does.  The other consideration is that you can make the "new" icon show up again after you've read a topic just by marking a topic unread.  That doesn't necessarily mean that that topic is going to show up again if you go to action=unread, at least not until someone makes another post in the topic.


ZarPrime
Title: Re: TinyPortal
Post by: Sweetwater on September 25, 2010, 10:19:19 AM
I've recently upgraded my forum to SMF 2.0 RC3

Was running TP on the old 1.1.11 & it worked great.  8)

On RC3 I cannot get the right panel to work at all & the TPShout leaves an empty header with no shoutbox under it.
Also added SSI for Store & Gallery, these wont work either.

Can anyone offer any tips for sorting this out?

Kind Regards,

Sweetwater
Title: Re: TinyPortal
Post by: ZarPrime on September 25, 2010, 10:45:56 AM

Sweetwater,


Well, on the right panel not showing, a couple of things that you can check ...
1.  Go to YourSite.com/index.php?action=tpadmin;sa=panels and make sure that "Use right panel?" is "On"
2.  Make sure that you have at least one block in the right panel and that is set to show somewhere.  In other words, go to the edit screen for that block and make sure that "Choose where the block should appear" has something selected, like "Display on all pages and sections".


On the Shoutbox issue, go to YourSite.com/index.php?action=tpadmin;sa=modules and make sure that the "TP Simple Shout" is turned "On".


If this doesn't solve your issues, more help is available at the TP Support Site by posting in the Support Board there.  The link is here --> http://www.tinyportal.co.uk/index.php


ZarPrime
Title: Re: TinyPortal
Post by: Sweetwater on September 25, 2010, 10:58:07 AM
Thankyou ZarPrime for your helpful reply.

I've been through all of that numerous times & double checked. I just ran through the permissions & found a couple of files that didn't upload properly. This has fixed the shoutbox & hopefully may fix the right panel issues.

Fingers crossed I can come back & tick this as solved.

Thanks again.

Sweetwater
Title: Re: TinyPortal
Post by: Sweetwater on September 25, 2010, 01:47:10 PM
Unfortunately no luck on getting any panel other than the left one to work....

Am out of ideas. Any more tips out there?

Sweetwater
Title: Re: TinyPortal
Post by: agridoc on September 25, 2010, 02:47:09 PM
Sweetwater I had a look at your site, you have no SMF, neither TP copyright, also added main menu item. You probably have done quite some changes yourself.

I don't know what changes you have made but it's quite probable that your editing might have caused some problems, TP not properly functioning included. I will also remind that copyright removal of either SMF or TP is not legal. It may be a mistake but it has to be fixed too.
Title: Re: TinyPortal
Post by: ZarPrime on September 25, 2010, 07:14:47 PM


Yeah, I noticed the copyrights missing earlier but they were on there before he started working on it.  Sweetwater, I suspect that you might have some block enabled that is causing this.  Do you have any blocks enabled in the left panel that aren't showing up?


The copyrights aren't showing up on other pages as well.  The problem could be your Gallery Mod.  Can you turn off the Recent Pictures at the top and see if your copyrights come back on the bottom of the page.


If that doesn't do it, I might have to have Admin access to your site (I am a Support Team Member over at the TP Support Site) so that I can try to see what's going on.  It would be better if you registered over there and posted to the Support board.  I am probably going to be offline for the rest of the evening so I will check back tomorrow.  However any of the other Team Members over there can help you as well.


ZarPrime
Title: Re: TinyPortal
Post by: MoreBloodWine on September 25, 2010, 08:47:23 PM
Quote from: zarprime on September 25, 2010, 09:31:40 AM
Well, the Recent block uses the ssi_recentTopics function and the Unread posts uses the unread action (action=unread).  Those 2 functions work quite differently from each other.  the ssi_recentTopics function actually shows the most recent posted to topics so it makes sense that, when you click that, you should be taken to the last post of the recent topic.


However, I will leave this for you and Bloc to hash out because, IMHO, it's working the way it should be working.  Even though you can click the "new" icon, as far as I'm concerned, it should take you to the most recent post in the topic, and that's what it does.  The other consideration is that you can make the "new" icon show up again after you've read a topic just by marking a topic unread.  That doesn't necessarily mean that that topic is going to show up again if you go to action=unread, at least not until someone makes another post in the topic.


ZarPrime
I see what your saying but for my personal preference if possible, I'd like the "recent block" to work like the unread since last visit. Most people when replying don't generally modify the subject line so that should almost always remain / read the same i nthe recent block regardless of the latest reply. That saud I could even renamed the block to unread since last visit or just leave it as is name wise.

Anyway, the below code that  Igot from TP 1.0 seems to work on 098 as well so I can use it on my live site and my test site so I ask to anyone willing to help.

How can the below code be modified so that when links or the "new" image is clicked in the recent block it takes you to the first unread reply in a given topic and not the last ?

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

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>';
foreach($what as $w)
{
echo '
<div class="smalltext"><a href="'.$w['href'].'">'.$w['short_subject'].'</a></div>
<div class="smalltext">By: <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>';
Title: Re: TinyPortal
Post by: Rafferty on September 26, 2010, 08:40:52 AM
On recent upgrade to TP 1.0 RC1 on smf 2.0 RC3, articles/download function - selection= Articles: Recently Written,  does not work. on turning on block, I have the title, a blank block and no other blocks displaying after this one.
Title: Re: TinyPortal
Post by: bloc on September 26, 2010, 08:51:28 AM
Quote from: Rafferty on September 26, 2010, 08:40:52 AM
On recent upgrade to TP 1.0 RC1 on smf 2.0 RC3, articles/download function - selection= Articles: Recently Written,  does not work. on turning on block, I have the title, a blank block and no other blocks displaying after this one.
Thanks for the heads-up, I will check that.
Title: Re: TinyPortal
Post by: bloc on September 26, 2010, 09:01:05 AM
Quote from: Bloc on September 26, 2010, 08:51:28 AM
Quote from: Rafferty on September 26, 2010, 08:40:52 AM
On recent upgrade to TP 1.0 RC1 on smf 2.0 RC3, articles/download function - selection= Articles: Recently Written,  does not work. on turning on block, I have the title, a blank block and no other blocks displaying after this one.
Thanks for the heads-up, I will check that.

Indeed, there is a missing line in TPSubs.php. You need to find function art_recentitems($max='5' , $type='date' ){

    global $context, $settings, $db_prefix, $txt, $settings;

    $tp_prefix = $db_prefix.'tp_';


and add the line below after it:

$now= time();

Title: Re: TinyPortal
Post by: Crip on September 26, 2010, 09:04:36 AM
thanks Bloc!
Title: Re: TinyPortal
Post by: Rafferty on September 26, 2010, 09:13:29 AM
That works, cool!
Title: Re: TinyPortal
Post by: SN on September 26, 2010, 09:51:17 AM
Bloc is what i said before about blocks not showing for admin a bug or am i doing something wrong?
Title: Re: TinyPortal
Post by: bloc on September 26, 2010, 10:02:40 AM
Quote from: SN on September 26, 2010, 09:51:17 AM
Bloc is what i said before about blocks not showing for admin a bug or am i doing something wrong?
So far I haven't found anything wrong - but I need to test more.
Title: Re: TinyPortal
Post by: Nyls on September 28, 2010, 07:08:44 AM
hello all

if i uninstall tinyportal on a smf 2.0 RC3, all content in data base will be safe or not, if i réinstall tinyportal in the futur ?

thx for response  ;)
Title: Re: TinyPortal
Post by: IchBin™ on September 28, 2010, 10:29:38 AM
No tables are removed. Data should still be there.
Title: Re: TinyPortal
Post by: ormuz on September 28, 2010, 10:55:35 AM
Is the "themegallery" included by default in tinyportal?

If not, is it possible to have it, bloc?
Title: Re: TinyPortal
Post by: Ken. on September 28, 2010, 11:54:24 AM
ormuz, when you say "themegallery" to what are you referring?

The latest releases of TinyPortal do not include actual themes, but are able to use most any theme that will work with SMF and you can find many of them here on SMF plus various other sites that make themes for SMF, including Blocs site 'BlocWeb'.
http://www.blocweb.net/index.php
Title: Re: TinyPortal
Post by: ormuz on September 28, 2010, 11:59:56 AM
Quote from: Ken. on September 28, 2010, 11:54:24 AM
ormuz, when you say "themegallery" to what are you referring?

The latest releases of TinyPortal do not include actual themes, but are able to use most any theme that will work with SMF and you can find many of them here on SMF plus various other sites that make themes for SMF, including Blocs site 'BlocWeb'.
http://www.blocweb.net/index.php

I'm talking about the custom mod to have a theme gallery, that blocweb.net have and smfdegsign,net have too... Bloc's know what I'm talking about ;)
Title: Re: TinyPortal
Post by: Ken. on September 28, 2010, 12:39:05 PM
That gallery was designed just for displaying themes on BlocWeb and is not currently available for use elsewhere. If Bloc dose release a public version it is likely to be some time before that happens.
Title: Re: TinyPortal
Post by: bloc on September 28, 2010, 05:12:48 PM
The gallery script used on smfdesign was a previous TP module, not developed anymore.

The one at Blocweb is a brand new one and isn't a TP module at all - its a custom action that integrates tightly with subscriptions, and can both show the themes as well as provide downloads for them. Its not for sale, though I plan to re-use the code in TP modules in the future. It will be free modules then.
Title: Re: TinyPortal
Post by: ormuz on September 29, 2010, 08:31:03 AM
Quote from: Bloc on September 28, 2010, 05:12:48 PM
The gallery script used on smfdesign was a previous TP module, not developed anymore.

Can u provide the download link?

thanks,
Title: Re: TinyPortal
Post by: bloc on September 29, 2010, 11:52:38 AM
No, it isn't available anywhere.
Title: Re: TinyPortal
Post by: FBy on October 01, 2010, 05:38:07 AM
Hi, at first thanks for TP...

my Setup:
smf 2.0 rc3
tp 1.0rc1
ajax chat
Theme: Curve

but now some questions:
1. Since i changed my Version from TP 1 Beta 5 to the 1Rc1 the Usernames are no longer shown in the "online" Box / Panel
only the User Avatars are visible, no matter if i switch to Avatar yes or no...
2. Also referring to the online box:
The user Info center also gives information about users that are in the chat but i haven't found any solution to show it in a TP panel.
3. I recieve an error in the ajax chat window
Undefined index: show_download in /home/www/web221/html/forum/Sources/TPSubs.php on line 201


Best regards and thanks for the help...
Frank
p.s.: i'm not a programmer  :-X so please be patient with me..
Urgent help needed (as usual  ;) )
Title: Re: TinyPortal
Post by: FBy on October 01, 2010, 08:32:25 AM
After removing TP1.0RC1 and going back to TP 1.5beta
The Ajax chat is running again
and also the Usernames are displayed instead of Avatar Pictures..
Title: Re: TinyPortal
Post by: bloc on October 01, 2010, 11:49:06 AM
Quote from: FBy on October 01, 2010, 05:38:07 AM
Hi, at first thanks for TP...

my Setup:
smf 2.0 rc3
tp 1.0rc1
ajax chat
Theme: Curve

but now some questions:
1. Since i changed my Version from TP 1 Beta 5 to the 1Rc1 the Usernames are no longer shown in the "online" Box / Panel
only the User Avatars are visible, no matter if i switch to Avatar yes or no...
2. Also referring to the online box:
The user Info center also gives information about users that are in the chat but i haven't found any solution to show it in a TP panel.
3. I recieve an error in the ajax chat window
Undefined index: show_download in /home/www/web221/html/forum/Sources/TPSubs.php on line 201


Best regards and thanks for the help...
Frank
p.s.: i'm not a programmer  :-X so please be patient with me..
Urgent help needed (as usual  ;) )

1.) I will check if it is changing - it should really.

2.) It should be matter of copying the info center code from BoardIndex.template but it will prob. only show on boardindex, not anywhere else.

3) Ajax chat? Not sure what that can be, but if it worked on beta5 then it relies on something not present in RC1 perhaps. I will need more debug info though.
Title: Re: TinyPortal
Post by: FBy on October 04, 2010, 02:34:26 AM
Hi Bjoern
What kind of debug infos do you need?
i'll try to genearte it...

Greetings Frank
Title: Re: TinyPortal
Post by: bloc on October 04, 2010, 04:41:41 AM
Quote from: FBy on October 04, 2010, 02:34:26 AM
Hi Bjoern
What kind of debug infos do you need?
i'll try to genearte it...

Greetings Frank

Just exactly what the errors contain and what link it came from.
Title: Re: TinyPortal
Post by: FBy on October 04, 2010, 05:58:41 AM
Ok...
1.) The link: http://www.url.de/forum/chat/index.php (thats what's behind the button)
2.) The Error: it appears inside the chat windows first line..
      Undefined index: show_download in /home/www/web221/html/forum/Sources/TPSubs.php on line 201



Title: Re: TinyPortal
Post by: bloc on October 04, 2010, 11:47:14 AM
It sounds like an error that have been fixed for RC2, really.

Not sure why it comes up in the chat window, but since it uses AJAX it will prob. also fetch *some* TP routines in the process. We have to see if its better when RC2 comes out, which isn't so far away.
Title: Re: TinyPortal
Post by: FBy on October 04, 2010, 11:52:47 AM
So I'll be patient...  8)
and next time i won't try it in a live system  O:)

But anyway could you reconstruct my trouble with the Username/Avatar Problem?
it was a little bit weird to me .. because as i wrote already by down grading the "trouble disappeared...

and.. i have a wish...  :-*  ist it possible to show  the "users in chat" like in the Info Center also in the Users Online Block?

Thanks Frank
Title: Re: TinyPortal
Post by: bloc on October 04, 2010, 12:09:13 PM
To show users from the chat you should be able to add the same code..but if its getting its data ONLY when you are on the boardindex, it will not work elsewhere. TP use SSI functions to fetch its online users everywhere, it isn't dependent upon being only on boardidnex. If the AJAX chat have a SSI routine, you could use that inside the TP online block.

The avatars error I have yet to look at, but I will check asap.
Title: Re: TinyPortal
Post by: agent47 on October 08, 2010, 06:24:20 AM
Any significant changes (features-wise) in this version compared to your previous version which is "TinyPortal 1.0 beta 5.2" ??
Title: Re: TinyPortal
Post by: IchBin™ on October 08, 2010, 09:49:38 AM
No additional features, just bug fixes.
Title: Re: TinyPortal
Post by: Goss on October 13, 2010, 11:37:08 AM
I set up tinyportal on a test forum and everything seems to be working great so far.  I'm just having an issue with the article system.  BBC articles written using the WYSIWYG editor don't seem to save any of the actual content.

Also, I went and had 3 article submissions to look over.  I deleted them all but the box on the left still says there are 3 articles in the submissions queue. 

Here's a link to my test forum: http://markedtest.elementfx.com/forum (http://markedtest.elementfx.com/forum)

I'm brand new to SMF so this might just be something I'm overlooking...but any help would be wonderful.
Title: Re: TinyPortal
Post by: Deaks on October 15, 2010, 06:30:51 PM
Execute Modification     SMF2RC3/tinyportal200rc3.mod     Modification parse error

any ideas bloc, any possibility you make a .xml install and not a .mod install  :P
Title: Re: TinyPortal
Post by: agridoc on October 15, 2010, 11:32:40 PM
Quote from: Goss on October 13, 2010, 11:37:08 AMI'm just having an issue with the article system.  BBC articles written using the WYSIWYG editor don't seem to save any of the actual content.

http://www.tinyportal.co.uk/index.php?topic=33274.msg266868#msg266868
QuoteThere is a bug. To the moment, until it's fixed, copy the content then save. If not saved, paste the saved content, toggle the WYSIWYG editor, then save. To be able to save again you have to toggle again the WYSIWYG editor. WYSIWYG state doesn't affect save, only toggle before saving.
Title: Re: TinyPortal
Post by: Roger Rabbit on October 17, 2010, 06:48:48 AM
Hi..Can anyone please help me with this installation problem:

Installing TinyPortal V1.0 RC1 for SMF 2.0 RC3..

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

1. Extract Tree ./Themes 
2. Extract Tree ./Themes 
3. Extract Tree ./Sources 
4. Extract Tree ./tp-downloads 
5. Extract Tree ./tp-images 
6. Extract Tree ./tp-files 
7. Execute Modification SMF2RC3/tinyportal200rc3.mod Modification parse error
8. Adapt Database SMF2RC3/tp_upgrade.php

I tried everything but i'm still receiving the same error...
Title: Re: TinyPortal
Post by: flutter on October 18, 2010, 01:32:29 AM
Just a couple of things I'm hoping you can help me with.  I'm more interested in the download function of this mod. 

Does it support more than one .rar.  That is can we add more then one .rar to a download?

Does is accept html in the download post?

and lastly, do I need to download all three files?  I'm setting up a test forum with 2.0 and want to give this a shot
Title: Re: TinyPortal
Post by: welshdog on October 18, 2010, 05:43:51 AM
Brilliant update as usual. The Modules look fabulous and perform spectacularly well as usual.

One small quibble. I now see Avatars in the Shoutbox which makes it a little cramped. Is there any way to switch them off (just in the Shoutbox) please??

Otherwise... gobsmacked as usual!!  ;D
Title: Re: TinyPortal
Post by: IchBin™ on October 18, 2010, 10:37:04 AM
Typically the modification parse error is tied to a server permission. Hard to say what it is, but make sure all your files are writable by the web server.

@flutter,
I'm not quite sure what you mean by some of your questions, so I'll answer as best I can.
1. You can add as many .rar files as you want. You can assign any files to be a part of another download.
2. Are you talking about the description? You can put text/html in the editor for downloads if that is what you are asking.
3. All 3 files for what? Install? No, you only need the latest one.

@Welsh,
The avatars will need to be removed from the shoutbox code.
http://www.tinyportal.co.uk/index.php?topic=32252.msg259097#msg259097
Title: Re: TinyPortal
Post by: flutter on October 18, 2010, 12:10:28 PM
Thanks for the first two, that's exactly what I wanted to know and it's what we're looking for.  I had downloads system pro and we could only have one .rar or .zip attachment but could choose the amount of images.  This suits our needs better .  Also we couldn't use html in the download post, so this is great news

When I say 3 files, I mean.  When you look at the download page there are three files at the top right of the page, I'm not sure what I need.  One of them is a sql file so wasn't sure if I need it. 
Title: Re: TinyPortal
Post by: !RFAN on October 18, 2010, 12:25:20 PM
theme changer is not working properly

link to my site is in signature... whats wrong here??
Title: Re: TinyPortal
Post by: agridoc on October 18, 2010, 01:42:47 PM
Did you select in Settings some themes for theme changer?
Title: Re: TinyPortal
Post by: !RFAN on October 18, 2010, 02:22:53 PM
from my smf theme settings??? yes i did... i have selected all the available themes... is there any option in tiny portal settings?
Title: Re: TinyPortal
Post by: agridoc on October 18, 2010, 02:32:59 PM
Go to block edit for theme changer and select THERE the themes that you want.
Title: Re: TinyPortal
Post by: !RFAN on October 18, 2010, 02:39:32 PM
thanks :)
its working now...
Title: Re: TinyPortal
Post by: IchBin™ on October 18, 2010, 02:56:49 PM
@flutter,

You only need the latest version for TP 1 RC1. The sql file is only for a manual install if necessary.
Title: Re: TinyPortal
Post by: flutter on October 19, 2010, 09:24:15 AM
Ok, I've installed this and so far so good.  What I am wondering is if there's a way to move the downloads button from floating around down the side, to being in the actual menu tree.  I am willing to do the actual work myself if someone can tell me how to do it, e.g. which file and what to change.  I can even make the button myself.  I just need to be able to place it.

The downloads are an integral part of the site and we need them to be a bit more prominent and easy to find
Title: Re: TinyPortal
Post by: IchBin™ on October 19, 2010, 10:08:12 AM
If you open the index.template.php and go towards the bottom you'll find the function template_menu() section where the buttons are all created. Assuming you're using SMF1.x you can just copy one of the other buttons and change the link and text to work for the downloads button.
Title: Re: TinyPortal
Post by: flutter on October 19, 2010, 10:13:57 AM
Thanks for that.  I can do that no problem.

So I just make the image and create a  to the download area.

Have you any idea how I get the other downloads button to disappear without closing down the download area?  I mean the button that is there in the middle of the page, can I turn that off somehow?  Where would the code be for that and I can remove it if I have to?

appreciate the help

Here's what I have so far

// Show the [downloads] button.
echo ($current_action=='downloads' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'downloads' ? 'active_back' : 'back' , '">
<a href=href="http://www.name of site.co.uk/index.php?action=tpmod;dl">', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';




Do I have to put the text in somewhere for the button or will this work?  It just goes on to maintab and that's blank so can't add any text.   
Title: Re: TinyPortal
Post by: IchBin™ on October 19, 2010, 12:08:38 PM
Replace $txt[103] with $txt['tp-downloads']

The other button? I'm assuming you're talking about the one in the block you talked about above? You just turn off the sitemap block.
Title: Re: TinyPortal
Post by: flutter on October 19, 2010, 12:59:50 PM
I thought it would be the txt bit where it says 103.  I'll do that now.

I didn't know there was sitemap block, I'll need to look for that.

Basically I could just add another button for articles too then and just put tp-articles in. 

I'll have a go, this is a nice mod but just needs tweaked for our purposes

Thanks again for the help, you're a star

It didn't work, I replaced the index.template and the button doesn't show.  I'd have preferred it to be in that main nav but it's looking like I'll have to do a new navbar somewhere in an html block or something.  :(

Here's the block I used

        // Show the [downloads] button.
    echo ($current_action=='downloads' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'downloads' ? 'active_back' : 'back' , '">
                    <a href=href="http://www.prettysims.co.uk/index.php?action=tpmod;dl"></a>', $scripturl, '">' , $txt['tp-downloads'] , '
                </td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';           


Do I maybe have to put it somewhere else too?  Maybe it's because I haven't found the site map block yet
Title: Re: TinyPortal
Post by: IchBin™ on October 19, 2010, 01:21:37 PM
I'm guessing you're using a custom theme? Do the other buttons have the same type of code? Post some code from the other buttons around your code so I can compare.

The sitemap is setup up as a default block. To edit blocks you just go into the manage blocks section and toggle on/off the block if you don't want it on.
Title: Re: TinyPortal
Post by: flutter on October 19, 2010, 01:32:00 PM
 I don't have that block on so it can't be that, I don't think it's a default one.  Or is it maybe the search box?  I did view the sourse code and it mentions the sitemap under the block I have for ads, the only thing under there is the seach box.  I'll try putting that off.

I'm only on the default theme right now as it's a test site, so it isn't that

This is what's all around it

    // Show the [home] button.
    echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '">' , $txt[103] , '</a>
                </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

        // Show the [downloads] button.
    echo ($current_action=='downloads' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'downloads' ? 'active_back' : 'back' , '">
                    <a href=href="http://www.prettysims.co.uk/index.php?action=tpmod;dl"></a>', $scripturl, '">' , $txt['tp-downloads'] , '
                </td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';           
   
    // Show the [help] button.
    echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
                </td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // How about the [search] button?
    if ($context['allow_search'])
        echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
                </td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // Is the user allowed to administrate at all? ([admin])
    if ($context['allow_admin'])
        echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
                </td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // Edit Profile... [profile]
    if ($context['allow_edit_profile'])
        echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
                </td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


I'd see the point if it was showing but not working
Title: Re: TinyPortal
Post by: IchBin™ on October 19, 2010, 01:38:16 PM
bah, sorry I didn't see your problem. Now that I look a little closer I see it. Change this line:
<a href=href="http://www.prettysims.co.uk/index.php?action=tpmod;dl"></a>', $scripturl, '">' , $txt['tp-downloads'] , '

To this:
<a href=href="http://www.prettysims.co.uk/index.php?action=tpmod;dl">' , $txt['tp-downloads'] , '</a>

If you can't figure out the sitemap problem I'll probably have to look at your site to see what you're talking about then. PM me a link and a login if you need to.
Title: Re: TinyPortal
Post by: flutter on October 19, 2010, 01:52:49 PM
I'd appreciate your input, it's not a working site, it's in maintenance mode so I'll send you a pm.

I just noticed this mod doesn't allow for comments in the downloads and we need that as people sometimes have issues.  I tried a test download. :(

Made the changes you suggested and still nothing, must be the sitemap thing
Title: Re: TinyPortal
Post by: IchBin™ on October 19, 2010, 03:57:35 PM
You're right there are no comments for downloads. There is however a feature to create a topic for a download in which the download will have a link to the topic so it can be commented on.
Title: Re: TinyPortal
Post by: flutter on October 19, 2010, 04:50:48 PM
That would be too much for our members.  I wonder if it can be added.

The buttons still didn't work even after you removing the site map
Title: Re: TinyPortal
Post by: Masterd on October 20, 2010, 02:52:25 PM
I have problem with the userbox block. It don't shows my avatar correctly.
Title: Re: TinyPortal
Post by: IchBin™ on October 20, 2010, 03:01:28 PM
It would really help if you tell us what it means to you when you say that you're avatar doesn't show correctly.  How can we help if you can't show us or anything? Avatars look fine on my setup. How about telling us what versions of software you're using? Maybe even a link or screenshot to see the problem?
Title: Re: TinyPortal
Post by: dutchbastard on October 20, 2010, 11:02:19 PM
Hey great mod
I did run into a problem.
I had to do a manual install due to host problems and came across an issue when importing the SQL file

It was easily solved once I found out what caused it but I figured I'd post it in case it went unnoticed.

The file starts with:
-
-- Table structure for table `smf_tp_articles`
--


But those 2 dashes (--) at the start were required and not both there.

So it should be
--
-- Table structure for table `smf_tp_articles`
--


Like I said, simple solution but hard to see for those that don't know where to look (myself included :P )
Title: Re: TinyPortal
Post by: Nodaz on October 21, 2010, 07:07:25 PM
I have been tasked with developing a site for out HOA.  It doesn't have to be over complicated and i have used and smf install for a while, but never with TP.
I want to know what the best process is for installing SMF with tiny portal, which do i install first...
should i install the forum in a subfolder  i.e /forum from the root and TP in the root?
is there a specific support site for TP anymore?  what happened to the old site?
Title: Re: TinyPortal
Post by: WillyP on October 21, 2010, 07:24:23 PM
Quote from: UbinTook on October 21, 2010, 07:07:25 PM
I want to know what the best process is for installing SMF with tiny portal, which do i install first...
should i install the forum in a subfolder  i.e /forum from the root and TP in the root?

No, just install SMF as normal, then install TP as you would any mod package. Easy.  ;)
Title: Re: TinyPortal
Post by: IchBin™ on October 21, 2010, 08:36:39 PM
TP is a mod for SMF. You cannot install the portal in a different folder other than the same one SMF is in.
Title: Re: TinyPortal
Post by: !RFAN on October 23, 2010, 11:53:59 PM
i installed tiny portal
then i tried Arcade Blocks but not working. Tell me What to do :S
Title: Re: TinyPortal
Post by: lurkalot on October 24, 2010, 05:32:21 AM
Quote from: !RFAN on October 23, 2010, 11:53:59 PM
i installed tiny portal
then i tried Arcade Blocks but not working. Tell me What to do :S

Can you give a bit more info, what versions of SMF / Tinyportal / Arcade, are you using, and what Arcade blocks??
Title: Re: TinyPortal
Post by: preed on October 24, 2010, 11:30:35 AM
is anybody else having "Reported attack site" errors? this is the third time this week! are these from TP? this time i even had TP uninstalled but i still see TP in the code.


http://xxx/smfforum/tp-files/tp-plugins/config.php?news=best-buy-coupons-10%-off

/smfforum/tp-files/tp-plugins/config.php?news=paris-hilton-tease

im so frustrated...
:(
Title: Re: TinyPortal
Post by: WillyP on October 24, 2010, 06:28:44 PM
If it looks like this, it is because your site has been reported as delivering some type of malicious code.  This could be because you have included third party code, or your site has been hacked. It is not from Tiny Portal or SMF.
Title: Re: TinyPortal
Post by: preed on October 25, 2010, 12:10:31 PM
the only malicios code found is what i have pasted above in the TP files - 3 times in a week.
twice when TP was installed (same code found)...
cleaned it - reinstalled and given the google green light
this last time when TP was uninstalled, they got in the TP files that werent being used (same code found)
completely removed TP files from the server, given the google green light, no problems

im just sayin...???
Title: Re: TinyPortal
Post by: IchBin™ on October 25, 2010, 02:52:20 PM
What version of TP are you using? If you have the FCKEditor folder on your site you should remove it, as there were security problems with that editor a long time ago and it was removed from TP. If the folder is still on your site, you could be getting hacked through that. If not, you need to talk with your host and find out how it is happening.
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 03:17:18 AM
Hi there, i have a problem. My site has some wrong permissions. The first pic is how the site looks to registered members.
The second one is how it looks for me. What could be the problem
Title: Re: TinyPortal
Post by: agridoc on October 26, 2010, 04:16:33 AM
Go to TPAdmin Block access and check permisssions.
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 04:35:09 AM
Here is how it looks now.
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 04:38:47 AM
Even the guests can view most of the forum
Title: Re: TinyPortal
Post by: agridoc on October 26, 2010, 05:04:41 AM
That is a new setting?
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 05:14:58 AM
No. that is how it looks. and it still doesnt display nornal to registered users.
Title: Re: TinyPortal
Post by: agridoc on October 26, 2010, 06:22:49 AM
I saw your URL from screenshots file, http://www.bosveldboerbokklub.com/

As a guest I saw that left and right panels display OK as well as center blocks. However there are not visible buttons for expanding/collapsing left/right panels.
Registered member may had collapsed panels in the past and has no visible option to expand them. I also get error from Adobe.

I don't know if you have disabled panel collapse in TP Admin -> Settings & Frontpage: Settings -> Allow the panels to be collapsed? or it's a result of heavy theme editing.

I don't see a TP permission problem.
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 08:11:49 AM
Let me try that quick. I did no theme editing.
Title: Re: TinyPortal
Post by: RoflGuy on October 26, 2010, 08:14:01 AM
on my block at bottom of the page i got chatango box which is 400 x 500 but the block blank size is more than chatango need..

pls help me  !!!


http://neon-community.co.cc/smf/index.php
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 08:16:25 AM
"Allow the panels to be collapsed?" was set to off. The adobe error could be the PDF tag thats on there. it works on Firefox,
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 08:17:28 AM
I set it to on and still the same thing happens.
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 09:34:29 AM
Ok there is something wrong. i registered with a new account and all looks fine. Now what could this be.
What option in the member database can i reset or permissions so that it all works again?
Title: Re: TinyPortal
Post by: IchBin™ on October 26, 2010, 09:46:17 AM
It is likely on the account that you are having problems with, that the upshrink buttons have been clicked. Have you checked that? Especially considering a new account does not have the same problem.

Quote from: killerftw on October 26, 2010, 08:14:01 AM
on my block at bottom of the page i got chatango box which is 400 x 500 but the block blank size is more than chatango need..

pls help me  !!!


http://neon-community.co.cc/smf/index.php

Did you go into the panel settings and change the width? You can only change the width for all blocks in that panel, not a single block though.
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 26, 2010, 10:42:41 AM
Ok but how do i clear it in profile of database? becuase i dont see the buttons.
Title: Re: TinyPortal
Post by: IchBin™ on October 26, 2010, 11:19:52 AM
Quote from: NoFeaR / NFSMW on October 26, 2010, 10:42:41 AM
Ok but how do i clear it in profile of database? becuase i dont see the buttons.

It's actually a cookie that is set. I think it's labeled tp_panel or something like that. You should just be able to delete the cookie when logged in as that user to reset it.

@mikerothery
It's hard to understand what you're talking about. Are you saying you can't get different blocks to display on the login page versus the frontpage? What types of blocks are you using frontpage/upper/lower/right/left? What are the display options that you have set in each block?
Title: Re: TinyPortal
Post by: RoflGuy on October 26, 2010, 12:19:34 PM
Quote from: IchBin™ on October 26, 2010, 09:46:17 AM
It is likely on the account that you are having problems with, that the upshrink buttons have been clicked. Have you checked that? Especially considering a new account does not have the same problem.

Quote from: killerftw on October 26, 2010, 08:14:01 AM
on my block at bottom of the page i got chatango box which is 400 x 500 but the block blank size is more than chatango need..

pls help me  !!!


http://neon-community.co.cc/smf/index.php

Did you go into the panel settings and change the width? You can only change the width for all blocks in that panel, not a single block though.
please more details
Title: Re: TinyPortal
Post by: IchBin™ on October 26, 2010, 01:05:41 PM
TinyPortal Admin > Panels > Change width of blocks for your panel of choice.
Title: Re: TinyPortal
Post by: agridoc on October 26, 2010, 01:10:21 PM
@NoFeaR / NFSMW, it's quite probable that code in some or your blocks interferes with panel collapse buttons, especially the top block with the menu. I thought it was theme editing.
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 27, 2010, 05:56:59 AM
Ok i found something, or atleast i think so. All the members that was registered hare having problems. The new members that register arent having any problems
Title: Re: TinyPortal
Post by: IchBin™ on October 27, 2010, 10:21:59 AM
So are they able to fix it if they delete the cookie? Do they have the problem even after deleting the cookie? Are they unable to upshrink/unshrink by clicking the icons?
Title: Re: TinyPortal
Post by: NoFeaR / NFSMW on October 27, 2010, 10:34:01 AM
I found the error. The member groups that i first had in my forum didn't backup or didn't completely backup to the new one. So the users were in the old group that didn't exist and didn't have permissions. Also the blocks were not set up for the non excising member-groups.
Title: Re: TinyPortal
Post by: MoreBloodWine on October 28, 2010, 10:43:43 PM
Anyone, Bloc ?

Edit: Aside from the below quote which is part of my original post, what needs to be coded in to have it ignore certain boards... namely the boards I use for RSS importing.
Quote from: MoreBloodWine on September 25, 2010, 08:47:23 PM
Quote from: zarprime on September 25, 2010, 09:31:40 AM
Well, the Recent block uses the ssi_recentTopics function and the Unread posts uses the unread action (action=unread).  Those 2 functions work quite differently from each other.  the ssi_recentTopics function actually shows the most recent posted to topics so it makes sense that, when you click that, you should be taken to the last post of the recent topic.


However, I will leave this for you and Bloc to hash out because, IMHO, it's working the way it should be working.  Even though you can click the "new" icon, as far as I'm concerned, it should take you to the most recent post in the topic, and that's what it does.  The other consideration is that you can make the "new" icon show up again after you've read a topic just by marking a topic unread.  That doesn't necessarily mean that that topic is going to show up again if you go to action=unread, at least not until someone makes another post in the topic.


ZarPrime
I see what your saying but for my personal preference if possible, I'd like the "recent block" to work like the unread since last visit. Most people when replying don't generally modify the subject line so that should almost always remain / read the same i nthe recent block regardless of the latest reply. That saud I could even renamed the block to unread since last visit or just leave it as is name wise.

Anyway, the below code that  Igot from TP 1.0 seems to work on 098 as well so I can use it on my live site and my test site so I ask to anyone willing to help.

How can the below code be modified so that when links or the "new" image is clicked in the recent block it takes you to the first unread reply in a given topic and not the last ?

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

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>';
foreach($what as $w)
{
echo '
<div class="smalltext"><a href="'.$w['href'].'">'.$w['short_subject'].'</a></div>
<div class="smalltext">By: <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>';

Title: Re: TinyPortal
Post by: IchBin™ on October 29, 2010, 10:11:43 AM
I'd suggest you use a block code from the support site that already does what you're asking. The code you posted cannot exclude boards without totally rewriting the way it works. No sense in reinventing the wheel when there are codes that already do this.
Title: Re: TinyPortal
Post by: MoreBloodWine on October 29, 2010, 12:07:48 PM
Quote from: IchBin™ on October 29, 2010, 10:11:43 AM
I'd suggest you use a block code from the support site that already does what you're asking.
Link please ?

Quote from: IchBin™ on October 29, 2010, 10:11:43 AM
The code you posted cannot exclude boards without totally rewriting the way it works.
Does the code on the support site have the ability to exclude boards like the recycle board, pretty much the above posted code by me excludes the recycle board ?

Quote from: IchBin™ on October 29, 2010, 10:11:43 AM
No sense in reinventing the wheel when there are codes that already do this.
Just to joke around a bit, sure theres sense it it sometime... who's to say a better wheel can't be invented ;-p
Title: Re: TinyPortal
Post by: IchBin™ on October 29, 2010, 12:26:25 PM
Quote from: MoreBloodWine on October 29, 2010, 12:07:48 PM

Link please ?
http://www.tinyportal.co.uk/index.php?board=46.0

Quote
Does the code on the support site have the ability to exclude boards like the recycle board, pretty much the above posted code by me excludes the recycle board ?

There are a couple of them that I can remember. ssi_recentTopics() actually doesn't include the recycle board by default. In SMF2 you can actually exclude boards in the ssi_recentTopics() function now. But since I don't know which version of SMF you're using, I can't tell if you could use some tips on that or not.

Quote
Just to joke around a bit, sure theres sense it it sometime... who's to say a better wheel can't be invented ;-p

Easy to say when it's someone else's free time. :P

Actually, it looks like you might be using SMF2 based on the code. Hard to tell because I don't have things memorized. In the recentTopics() call in your code, put an array of boards that you want to exclude in place of the first NULL and see if that works.

array(4,6,9)
Title: Re: TinyPortal
Post by: MoreBloodWine on October 29, 2010, 12:42:33 PM
Quote from: IchBin™ on October 29, 2010, 12:26:25 PM
http://www.tinyportal.co.uk/index.php?board=46.0

Thx...

Quote from: IchBin™ on October 29, 2010, 12:26:25 PM
There are a couple of them that I can remember. ssi_recentTopics() actually doesn't include the recycle board by default. In SMF2 you can actually exclude boards in the ssi_recentTopics() function now. But since I don't know which version of SMF you're using, I can't tell if you could use some tips on that or not.
I'm using 1.1 and a 2.0 test site, the code I posted is from TP 1.0, I just found that it also works on 0.9.8 which is what I'm using on my live 1.1.11 site.

Mainly what I'm after is sort of like what I said, getting a block that acts just like Show unread posts since last visit that takes you to the first unread reply when you click the link or the "new" image thing.

Quote from: IchBin™ on October 29, 2010, 12:26:25 PMEasy to say when it's someone else's free time. :P
True but even then someone elses work or not I would still say that, just maybe not appreciate it as much if it were my work lol

Quote from: IchBin™ on October 29, 2010, 12:26:25 PM
Actually, it looks like you might be using SMF2 based on the code. Hard to tell because I don't have things memorized. In the recentTopics() call in your code, put an array of boards that you want to exclude in place of the first NULL and see if that works.

array(4,6,9)
SMF version answered above...

Edit: I looked over the site and maybe I'm just being blind, stupid or both but I cannot seem to find any code blocks that act just like Show unread posts since last visit. where when you click on the topic link or the "new" image thing it takes you to the first unread reply and not the lastest one like what recent topics / posts does.
Title: Re: TinyPortal
Post by: ZarPrime on October 29, 2010, 08:31:23 PM
Quote from: MoreBloodWine on October 29, 2010, 12:42:33 PM
Edit: I looked over the site and maybe I'm just being blind, stupid or both but I cannot seem to find any code blocks that act just like Show unread posts since last visit. where when you click on the topic link or the "new" image thing it takes you to the first unread reply and not the lastest one like what recent topics / posts does.

Well then, if you can't find a particular block code snippet that does what you want it to, then you will have to join the site, if you aren't already a member, and make a request for one of our coders to make it for you in the Requests Board.  The link is here --> http://www.tinyportal.co.uk/index.php?board=133.0 (http://www.tinyportal.co.uk/index.php?board=133.0)

ZarPrime
Title: Re: TinyPortal
Post by: king kratos on October 30, 2010, 10:18:07 AM
I have searched both this forum and the TP forum and cannot find anything more up to date about this issue. The last thing mentioned was for TP Beta 5.

I am running SMF 2.0 RC3 with TP version 1.101. None of my mobile versions work properly. If I simply go to ?imode, ?wap, or ?wap2 the only thing that shows up is "go to full version". If I go to any of those and add &action=forum, then all my boards show up. However, if I click on any board it automatically gets rid of the &action=forum and only displays "go to full version".

The last I read was that this would be fixed after TP beta 5, but it is not fixed yet. I have looked through everything I can think of to try to fix this, but cannot find the edits I need to make to make these changes to fix this.

What do I need to do to get this working properly? Please help.

Kratos
Title: Re: TinyPortal
Post by: IchBin™ on October 30, 2010, 07:21:20 PM
It must be something with your forum or install. I do not have your problem when viewing my forum with the same versions you are running.
Title: Re: TinyPortal
Post by: king kratos on October 31, 2010, 02:46:42 PM
Quote from: IchBin™ on October 30, 2010, 07:21:20 PM
It must be something with your forum or install. I do not have your problem when viewing my forum with the same versions you are running.

Oh, Ok... Thanks for the info. I'll check some other code and see if it's that then.

Kratos
Title: Re: TinyPortal
Post by: MoreBloodWine on October 31, 2010, 07:36:20 PM
Maybe I'm missing something but I wanted to look into something in regards to the TP blocks for 0.9.8 and last time I was told to look in a fiel called tp-style.css and I remember fixing the issue but I cant find the CSS file. Maybe I'm thinking of something wrong but I want to look into the padding for the blocks to see if I can lessen the dead space / padding around the text of a block. Like right now I have just Hello... written in a block but it looks as if it has about 10px or so of padding around the sides and I want to try to squeeze it down a bit to get a tad more space in the blocks... Thx.

Now for the actual question, can anyone help me because this is really bothering me about the CSS thing and I dont know if I'm going nuts or remembering soemthin wrong... Thx.
Title: Re: TinyPortal
Post by: Ken. on October 31, 2010, 08:16:42 PM
MoreBloodWine, if you're asking where the tp-style.css is located, you'll find it in the ../themes/default folder.
Title: Re: TinyPortal
Post by: MoreBloodWine on October 31, 2010, 08:31:49 PM
Quote from: Ken. on October 31, 2010, 08:16:42 PM
MoreBloodWine, if you're asking where the tp-style.css is located, you'll find it in the ../themes/default folder.
Thats just the thing, I'm not... but I know I edited it once before... I even did a generalized find ./ -iname *.css on my entire account and didnt find a tp-styles anywhere.

Edit: Did TP 0.9.8 even have a tp-style.css ?

For all I know when I was playing around with CSS beflre it might have been on a test site with Tp 1x

If that is the case where is the blockbody css handled for TP 0.9.8 ?
Title: Re: TinyPortal
Post by: agridoc on November 01, 2010, 12:48:21 AM
No, tp-style.css was added in 1.0, TP 0.9.8 didn't have it, you will find TP add-ons in style.css of the theme.

Check also the TPortalBlocks.template.php and TPortal.template.php for block layout.
Title: Re: TinyPortal
Post by: MoreBloodWine on November 01, 2010, 11:17:58 AM
Quote from: agridoc on November 01, 2010, 12:48:21 AM
No, tp-style.css was added in 1.0, TP 0.9.8 didn't have it, you will find TP add-ons in style.css of the theme.

Check also the TPortalBlocks.template.php and TPortal.template.php for block layout.
Thx, I was playing around with TPortalBlocks.template.php last night  but didnt quite find what I was after. I'll check it ut again later along with the other file. Specifically what I'm after is getting rid of the style="padding: 4px;" on the blocks.
Title: Re: TinyPortal
Post by: IchBin™ on November 01, 2010, 11:27:07 AM
That could be the padding that is set in the tinyportal panel settings too, so don't forget to check that.
Title: Re: TinyPortal
Post by: MoreBloodWine on November 01, 2010, 03:30:38 PM
Quote from: IchBin™ on November 01, 2010, 11:27:07 AM
That could be the padding that is set in the tinyportal panel settings too, so don't forget to check that.
I'll look again but I dont recall any padding settings in 098 but I'll look again.

I just hope I can find it heh...

Edit: I found what you were talkin about Itch and while it is a 4px padding it's a left padding to set how far the blocks should be fro mthe sides of the forum.
Title: Re: TinyPortal
Post by: MoreBloodWine on November 01, 2010, 10:16:45 PM
Quote from: agridoc on November 01, 2010, 12:48:21 AM
No, tp-style.css was added in 1.0, TP 0.9.8 didn't have it, you will find TP add-ons in style.css of the theme.

Check also the TPortalBlocks.template.php and TPortal.template.php for block layout.

Ok, so after checking the style.css in both my custom theme and the default theme and even checking the TPortalBlocks.template.php and TPortal.template.php files I wasnt able to find the blockbody 4px padding. Hopefully Bloc can come in here and lend a hand with where the blockbody css is for 0.9.8

Edit: NM, I figured it out...
Title: Re: TinyPortal
Post by: Rafferty on November 02, 2010, 05:55:33 PM
smf 2.0 RC4 fresh install and reinstall TP 1.0 RC1

On installing TP on upgrade smf 2.0 RC4 frontpage has left side of title blocks missing as in the attached screenshot. other smf pages are ok this only effects the home page. ???
Title: Re: TinyPortal
Post by: Jason kiDD on November 02, 2010, 07:05:31 PM
How did you get it to work for RC4?

Forget it I figured it was just a simple change in the xml file for now until there is a approved update...   O:)
Title: Re: TinyPortal
Post by: Rafferty on November 02, 2010, 11:07:24 PM
I didnt do anything it just worked apart from this problem and a few blocks that no longer work
Title: Re: TinyPortal
Post by: agridoc on November 03, 2010, 04:06:44 AM
Strange, it shouldn't work as it is.

If someone wants to try TP 1.0 RC1 with SMF 2.0 RC4 but

NOTICE: that's not official and not tested well, nor Bloc has approved it, so use it only in a test site.


Quote
With quick little modifications of package-info.xml (replacing RC3 with RC4, I should have added but...) and /SMF2RC3/tinyportal200rc3.mod replacing
// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context;

with
// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context, $scripturl;


TP 1.0 RC1 installed successfully in a new SMF 2.0 RC4 test installation.  8)

Of course more tests must be done but, at first glance, it seems that not much has to be done for 2.0 RC4 compatibility  :)
Title: Re: TinyPortal
Post by: Rafferty on November 03, 2010, 04:19:26 AM
a bit of a trap, i just went to uninstall tp from rc4 and got

QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
Title: Re: TinyPortal
Post by: agridoc on November 03, 2010, 04:53:17 AM
ADD ON: Go to advanced options and choose Emulate version: SMF 2.0 RC3. It probably is the way you got it installed. Otherwise look below.

You probably edited package-info.xml of TP 1.0 RC1 for RC4 in "<install for=", otherwise it shoudn't go on with installation, but you didn't edit accordingly "<uninstall for=". Even so installation must have given errors for Security.php, if no other edit was made.

If so download the TP file /Packages, unzip it, edit the "<uninstall for=" section for RC4, rezip with the same zip file name and reupload in/Packages replacing existing files.

Other wise, delete existing TP file from SMF, do a large 2.0 RC4 upgrade and you may try the editing I have suggested, reading the NOTICE first.
Title: Re: TinyPortal
Post by: Rafferty on November 03, 2010, 05:46:35 AM
emulating rc3 did the trick, at least i have the uninstall now although there are some tests failed but thats no biggy, thx a lot
Title: Re: TinyPortal
Post by: Rafferty on November 03, 2010, 05:48:26 AM
IT may be quicker for me to just add this line change in the page, which file does it update?

Quote from: agridoc on November 03, 2010, 04:06:44 AM
Strange, it shouldn't work as it is.

If someone wants to try TP 1.0 RC1 with SMF 2.0 RC4 but

NOTICE: that's not official and not tested well, nor Bloc has approved it, so use it only in a test site.


Quote

With quick little modifications of package-info.xml (replacing RC3 with RC4, I should have added but...) and /SMF2RC3/tinyportal200rc3.mod replacing
// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context;

with
// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context, $scripturl;


TP 1.0 RC1 installed successfully in a new SMF 2.0 RC4 test installation.  8)

Of course more tests must be done but, at first glance, it seems that not much has to be done for 2.0 RC4 compatibility  :)
Title: Re: TinyPortal
Post by: Jason kiDD on November 03, 2010, 01:34:54 PM
Was using TP 1.52b before and this installed without a problem and all blocks work for now for TP RC1 and SMF RC4..
Just edited the xml file and so far so good...
Title: Re: TinyPortal
Post by: L'AltroWeb on November 04, 2010, 09:11:46 PM
Hi!
I remember that "Bloc" had abandoned this project but now i see this new release :P
What happening?  ;D
Bloc: you turn back to work with TinyPortal? :)
Anyway, thank you very much, tp is still the best portal for SMF  ;)
---
Can i make a large upgrade to latest SMF 2.0 RC4 and last TP 1.0 RC1 without data loss?  ::)
Title: Re: TinyPortal
Post by: ZarPrime on November 04, 2010, 09:43:29 PM
Dark-Wolf,

At this time, TinyPortal 1.0 RC1 works on either SMF 1.1.11 or SMF 2.0 RC3.  Bloc has not yet finished checking the code to determine whether any edits will be required for SMF 2.0 RC4 (and 1.1.12).  However, even though the upgrade to RC4 isn't recommended yet, several people have done it and it seems to work fine with just a few small glitches.  You may have to manually install some of the code.  This link on the TP Support Site may be of interest to you --> http://www.tinyportal.co.uk/index.php?topic=33343.0 (http://www.tinyportal.co.uk/index.php?topic=33343.0)

Lesmond and I setup a site to do some testing.  Hold on, let me go and disable registration.  OK, the link is here --> http://tp98.forums-4-free.info/smfrc4/index.php (http://tp98.forums-4-free.info/smfrc4/index.php)

I'd say only do it on a test site for now unless you're satisfied.

ZarPrime
Title: Re: TinyPortal
Post by: Jason kiDD on November 04, 2010, 11:04:58 PM
RC1 works fine on my site without major issues.. Using Headline theme...

http://lifeofthecity.com/loc if you want to see it in action...
Title: Re: TinyPortal
Post by: agridoc on November 04, 2010, 11:59:49 PM
Very well done Jason kiDD  8).

No problem also from my test site tests, since November 2, but yours is a working forum, altough I posted my quick fix (http://www.simplemachines.org/community/index.php?topic=27642.msg2837880#msg2837880) for test sites only  ;D
Title: Re: TinyPortal
Post by: kirk1h on November 07, 2010, 11:08:31 AM
my home/forum buttons are screwed... home-botton gets highlighted when i'm in the forum. happens on jason's forum too.

online-box is messed up too. damn, why did i go the 2.x route :(

will bloc ever come back? i read somewhere that tp will not be continued.
Title: Re: TinyPortal
Post by: FataMorgana on November 07, 2010, 02:01:48 PM
Hi all.
During several years I have a few forums running SMF 1.1.x and TP 0.98. At the moment I'm on SMF level 1.1.12
This weekend I tried to install another theme but it is not fit for the older version of TP.
So after long searching I found the latest version of TP: 1.0 RC1.
I tried to install it like an update but message says it can't be done and I should uninstall or delete the older version.
Uninstall of 0.98 also can't be done!

Can anyone tell me how to upgrade TP from 0.98 to 1.0 RC1 without too much handwork (coding)?
Title: Re: TinyPortal
Post by: ZarPrime on November 08, 2010, 06:55:44 PM
FataMorgana,

First of all, backup your site and database, in case you need to revert.  Then ...
Link -->  http://www.docs.tinyportal.co.uk/index.php?topic=147 (http://www.docs.tinyportal.co.uk/index.php?topic=147)
Stop where you see the following ...
QuoteNow we need to remove the Database tables for TP.
This step is ONLY if you want to completely remove your tinyportal install. This step WILL remove ALL content you have inside the TinyPortal.
Expanation for above:  If you want to install the latest TP, the database tables should NOT be removed.
ZarPrime
Title: Re: TinyPortal
Post by: rngrdanny22 on November 08, 2010, 07:26:35 PM
Is this going to be updated to 2.0RC4?

It's by far the best portal and I'd love to add it to my new site!
Title: Re: TinyPortal
Post by: FataMorgana on November 09, 2010, 11:07:14 AM
Thanks Zarprime and Rngrdanny22 for reactions.
I knew allready the method changing the code but was searching for a more easy way.
And I've found it:
http://www.tinyportal.co.uk/index.php?topic=27943.0 (http://www.tinyportal.co.uk/index.php?topic=27943.0)
On this way I've succeeded in my wish installing the new theme I wanted.

At the moment I stay on SMF 1.1.12, but while the new theme on the forum I've changed (not the links in my sig!) is also fit for 2.x I maybe can change some day.
Title: Re: TinyPortal
Post by: evulness on November 10, 2010, 09:12:11 PM
Right now i'm using SMF 2.0 RC3, and i had a question regarding files downloaded from the TP file manager.

Does anyone have a suggestion or know where i can find a mod to log more data to the database about who has downloaded a file, when they've downloaded it, and how many times they've downloaded the file, possibly more?
Title: Re: TinyPortal
Post by: bigcedar on November 11, 2010, 07:39:38 PM
I installed the mod..  said everything went successfully.  However when I go to the Admin Panel for it..  a lot of text is missing and all i see is a bunch of radio buttons and check boxes.. no text at all describing what each one is.  I figured it was the theme I was using so I switched to the default themes and I got the same results.

Its kind of hard to change anything when I can read what each option is.   Any help would be appreciated.  Thanks in advance.

Title: Re: TinyPortal
Post by: Kindred on November 11, 2010, 09:30:01 PM
change your forum to English (english utf-8 is not the same as english)
Title: Re: TinyPortal
Post by: Tupsi on November 15, 2010, 11:57:21 AM
My shoutbox shows all ' escaped as \'  after upgrading TP from beta 5-2 to RC1 (with a 1.1.12 SMF release). I faintly remember already having this issue back after upgrading from a different version, but I cant remember the fix to it. Or maybe I already reported that in beta 5 and it still isnt fixed, and my old brain just mixes that up. Either way, whenever my user enter a ', the shoutbox makes a \' out of it.
Title: Re: TinyPortal
Post by: agridoc on November 15, 2010, 02:57:54 PM
It's fixed for 2.0, unfortunately not for 1.1x.
Title: Re: TinyPortal
Post by: IchBin™ on November 15, 2010, 05:36:10 PM
I'm not sure what the cause is for this. I'm guessing it's the difference between the way SMF1 and 2 handle the queries. As a temp fix you can try this. Open Themes/default/TPShout.template.php file and go to the bottom of the file and find this line:
' . (parse_bbc(censorText(strip_tags(html_entity_decode($row['value1']))),true)) . '


Replace with this:

' . (parse_bbc(censorText(strip_tags(html_entity_decode(stripslashes($row['value1'])))),true)) . '
Title: Re: TinyPortal
Post by: Tupsi on November 16, 2010, 07:30:30 AM
Quote from: agridoc on November 15, 2010, 02:57:54 PM
It's fixed for 2.0, unfortunately not for 1.1x.

good enough for me, thanks for the info!

(That verification thing is annyoing btw)
Title: Re: TinyPortal
Post by: IchBin™ on November 16, 2010, 10:07:04 AM
Quote from: Tupsi on November 16, 2010, 07:30:30 AM
Quote from: agridoc on November 15, 2010, 02:57:54 PM
It's fixed for 2.0, unfortunately not for 1.1x.

good enough for me, thanks for the info!

(That verification thing is annyoing btw)


I just gave you the fix above your last post. The "verification thing" is for people with less then 10 posts I believe.
Title: Re: TinyPortal
Post by: Tupsi on November 16, 2010, 10:27:46 AM
Quote from: IchBin™ on November 16, 2010, 10:07:04 AM
Quote from: Tupsi on November 16, 2010, 07:30:30 AM
Quote from: agridoc on November 15, 2010, 02:57:54 PM
It's fixed for 2.0, unfortunately not for 1.1x.

good enough for me, thanks for the info!

(That verification thing is annyoing btw)


I just gave you the fix above your last post. The "verification thing" is for people with less then 10 posts I believe.

thanks for the extra effort, but I really ment it with the fact that I can wait till that board is running on 2.0. In fact the whole thing let me reevaluate the "sit it out till 2.0 final" and I am testing the upgrade atm on a copy. The install is ancient, so I expect tons of errors :-)

Title: Re: TinyPortal
Post by: Tupsi on November 16, 2010, 10:39:22 AM
lol, that break hit me faster then I was hoping... Seems I was to slow with my upgrade thoughts. Now I have a RC4 but TP only supports RC3? Any ETA on a new TP release or what I have to change to convince RC4 to install TPRC1?
Title: Re: TinyPortal
Post by: IchBin™ on November 16, 2010, 10:46:37 AM
If you read back on the last 2 or 3 pages of this topic you'll see how people have done it.
Title: Re: TinyPortal
Post by: Tupsi on November 17, 2010, 05:22:49 AM
Quote from: IchBin™ on November 16, 2010, 10:46:37 AM
If you read back on the last 2 or 3 pages of this topic you'll see how people have done it.

thanks, that worked like a charm, although finding that Advanced link was the hardest part, its well hidden :-)
Title: Re: TinyPortal
Post by: MaXiForum.cz on November 19, 2010, 11:11:35 AM
Nice, TinyPortal continues... :)
Good luck IchBin™ ;)
Title: Re: TinyPortal
Post by: Adrek on November 20, 2010, 05:10:20 AM
Hi, i got a question... there is any way to have transparent background in "Alternative listing icon" ?
Because now when i add this icon, background is black...
Title: Re: TinyPortal
Post by: IchBin™ on November 20, 2010, 01:56:43 PM
Not sure what you're talking about adi1166. Could you show a screen shot or something?
Title: Re: TinyPortal
Post by: Adrek on November 20, 2010, 02:55:15 PM
Icon with transparent backgroung (saved as PNG):
(http://img404.imageshack.us/img404/8929/aaaaozx.jpg)

Here screen shows how it suposed to look:
(http://img408.imageshack.us/img408/9914/sxsslzb.jpg)
Title: Re: TinyPortal
Post by: IchBin™ on November 20, 2010, 03:20:40 PM
Can you show me a page where you are viewing this so I can see what is causing it?
Title: Re: TinyPortal
Post by: Adrek on November 20, 2010, 03:58:51 PM
I sent to PM
Title: Re: TinyPortal
Post by: IchBin™ on November 20, 2010, 04:14:39 PM
looking at your page, it looks just fine to me. I don't see a dark background behind the icon. Am I missing something?
Title: Re: TinyPortal
Post by: Adrek on November 20, 2010, 04:19:49 PM
check out the last two articles on first page
Before the latter has a transparent background (and you see black)
The last has a background in color style forum

(translated by google...)
Title: Re: TinyPortal
Post by: IchBin™ on November 20, 2010, 04:32:18 PM
It has something to do with your images. Those are two different images. The one has a black background while the other doesn't.
Title: Re: TinyPortal
Post by: Adrek on November 20, 2010, 04:42:10 PM
this with black background had transparent bg before i sent it using option "Upload a new icon :"

I think I'll leave it as it is now...
Title: Re: TinyPortal
Post by: IchBin™ on November 20, 2010, 04:45:20 PM
Well I suppose something could happen during the upload. Was it resized? Or did you upload that current size it is?
Title: Re: TinyPortal
Post by: Adrek on November 20, 2010, 04:50:27 PM
Maybe you try to upload this picture

Here you can see that it has a transparent background:
(http://img219.imageshack.us/img219/8853/aaazio.png)

http://img219.imageshack.us/img219/8853/aaazio.pn

(translated by google...)
Title: Re: TinyPortal
Post by: IchBin™ on November 20, 2010, 05:17:35 PM
Yes, that is the problem. When the image is resized to 128x128 it looses it's alpha transparency. If I were you for now I would resize the image with an editor so you don't lose the transparency, then upload the file. Sorry, but at this point I don't know much about this upload routine, and to know if I can fix this problem or not.
Title: Re: TinyPortal
Post by: Bugo on November 26, 2010, 03:56:54 AM
IchBin™, u have updated mod tonight. What's new?
Title: Re: TinyPortal
Post by: ZarPrime on November 26, 2010, 08:34:28 AM
Bugo,

Nothing changed in the Mod yet, only the description on the download page.  Working on it.

ZarPrime
Title: Re: TinyPortal
Post by: IchBin™ on November 26, 2010, 11:05:25 AM
Yes, I have only updated the mod page because the description was blank after the mod was turned over to me. I am working on an update for RC4.
Title: Re: TinyPortal
Post by: Adrek on November 27, 2010, 05:23:30 AM
Hello again..
where can i modify social bookmarks ?
(http://img525.imageshack.us/img525/7291/capturennt.png)
Title: Re: TinyPortal
Post by: lesmond on November 27, 2010, 03:29:57 PM
Quote from: adi1166 on November 27, 2010, 05:23:30 AM
Hello again..
where can i modify social bookmarks ?

Look in TPsubs.template.php starting around line 1627
Title: Re: TinyPortal
Post by: Adrek on November 27, 2010, 04:05:25 PM
hmm.. for me code of social bookmarks begins in 3467 line
anyway, thanks for tip ;)
Title: Re: TinyPortal
Post by: .Vapor on November 29, 2010, 09:52:55 AM
How long for RC4 ?
Title: Re: TinyPortal
Post by: WillyP on November 29, 2010, 10:50:25 AM
IchBin is working on it and as soon as he is done he will post here, and let everyone know.  There is really know way for him to make an accurate prediction on when that will be, as there is no way to know what bugs will surface, or how long it will take to correct them.  I would say soon, though, but that is just a guess.

In the meantime, several members have posted solutions to get it working for RC4 in this thread.
Title: Re: TinyPortal
Post by: FragaCampos on November 29, 2010, 10:51:32 AM
Hello.
I'm still using TinyPortal v1.0 beta 4 with SMF 1.1.12 and i'm having two errors that are filling my log:
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: public_html/Themes/default/languages/TPShout.portuguese.php (main sub template - eval?)
Line: 414


and

2: Invalid argument supplied for foreach()
File: public_html/Themes/default/languages/TPShout.portuguese.php (main sub template - eval?)
Line: 15


Any idea about what might be causing this?
Title: Re: TinyPortal
Post by: IchBin™ on November 29, 2010, 07:56:44 PM
Can you use this mod to enable/disable eval() to see if you get a more specific error?
http://custom.simplemachines.org/mods/index.php?mod=2054
Title: Re: TinyPortal
Post by: FragaCampos on November 30, 2010, 07:15:17 PM
Hi IchBin™ and thanks a lot for answering.
I did what you told and it seems the problem stems from a hack i did sometime ago.
It doens't have nothing to do with TinyPortal, but you can find it here (http://www.simplemachines.org/community/index.php?topic=241459.msg2867276#msg2867276).

Cheers.
Title: Re: TinyPortal
Post by: IchBin™ on November 30, 2010, 07:45:29 PM
Cool. Thanks for letting me know the problem.
Title: Re: TinyPortal
Post by: anto74 on December 01, 2010, 05:52:07 AM
I'm sorry for this stupid question and for my poor english: now i have TP 5beta-1, for upgrade to TP RC1 i must only install the RC1 package? I don't uninstall TP 1beta5-1?
In installaton test i have only two file modified...it's possible?

Thanks
Antonio
Title: Re: TinyPortal
Post by: DarioBros on December 01, 2010, 01:42:46 PM
There's a small bug in the search function ( yoursite.com/index.php?action=search ) with smf 1.1.11 (now 1.1.12) and TPRC1:
Even if "Downloads Manager" is disabled, in that page there is a link to search inside downloads.

I've modified TPsubs.template.php to hide it, searching
<span class="topslice"><span></span></span>
<p style="margin: 0; padding: 0 1em;">
<a href="' . $scripturl. '?action=tpmod;sa=searcharticle">' . $txt['tp-searcharticles2'] . '</a> |
<a href="' . $scripturl. '?action=tpmod;dl=search">' . $txt['tp-searchdownloads'] . '</a>';


and replacing with:
<span class="topslice"><span></span></span>
<p style="margin: 0; padding: 0 1em;">';
if (allowedTo('tp_dlmanager'))
echo '
<a href="' . $scripturl. '?action=tpmod;sa=searcharticle">' . $txt['tp-searcharticles2'] . '</a> |';
                        if (allowedTo('tp_articles'))
echo ' <a href="' . $scripturl. '?action=tpmod;dl=search">' . $txt['tp-searchdownloads'] . '</a>';
     


Is this the right way to fix it?
Title: Re: TinyPortal
Post by: IchBin™ on December 01, 2010, 03:02:50 PM
Well, there's no permission for just using search. The permission you use in your code there is for a user who has TP download manager permissions. It would probably be better to just check if the downloads manager is turned on or not.

if($context['TPortal']['show_download']==0)
Title: Re: TinyPortal
Post by: latch on December 01, 2010, 05:37:04 PM
Hi, attempt to apply TinyPortal is failing.

List of all installs:
SMF v1.1.12
SMF Gallery Lite v3.0.2
Default Avatar v1.3
- End List

Version of TinyPortal attempting to apply: v1.101

Errors encountered:
9.    Execute Modification    ./Themes/default/index.template.php    Test failed
10.    Execute Modification    ./Themes/babylon/index.template.php    File not found

I was initially using the Full Down theme when trying to install Tiny Portal which caused errors 9 and 10 so switched to Default theme.
Errors 9 and 10 persist.
Is there a way to overcome these two errors so I can apply this Mod?
-Latch
Title: Re: TinyPortal
Post by: IchBin™ on December 01, 2010, 06:47:38 PM
TinyPortal is searching for code in those files that has either been modified by a previous mod, or modified by you. If I were you, I would do this:

1. Backup files and database
2. Install the mod and proceed even with those 2 errors reported.
3. Click the parse link on the mod page, and follow the manual instructions for modifying those files.
Title: Re: TinyPortal
Post by: FragaCampos on December 03, 2010, 12:41:36 PM
Hello again.
Now that i've cleaned the error log, i'm left with two very old errors that i've never been able to solve.
Here they are:
2: Invalid argument supplied for foreach()
File: /home/docspt/public_html/Themes/default/TPortal.template.php
Line: 15


and

8: Undefined index: boardnews
File: public_html/Themes/default/TPortal.template.php
Line: 15


It's nothing serious nor urgent, since the forum has no problems, but i would like to get rid of these.
Thanks once more.
Title: Re: TinyPortal
Post by: IchBin™ on December 03, 2010, 05:56:31 PM
Can you do what I posted in this message and let me know what the errors say after that?
http://www.simplemachines.org/community/index.php?topic=27642.msg2866238#msg2866238
Title: Re: TinyPortal
Post by: FragaCampos on December 04, 2010, 10:21:24 AM
I still have that mod installed and the messages don't change  :-\

Don't know if this helps, but these errors are only made by guests and always in pairs, when one happens, the other also happens.
Title: Re: TinyPortal
Post by: IchBin™ on December 04, 2010, 11:31:54 AM
Is it the link in your signature? You are 2 versions of TP behind. There has been a beta4 and an RC1 version of TP since then. A lot of bugs were fixed by Bloc since then. I'd update and see if the same errors exist.
Title: Re: TinyPortal
Post by: FragaCampos on December 04, 2010, 02:37:56 PM
Yes it is. But no problem, it's nothing serious. I'll update to RC1 when i update my SMF to 2.0. That way i can make all the needed changes at the same time.

Thanks anyway.
Title: Re: TinyPortal
Post by: IchBin™ on December 06, 2010, 04:52:57 PM
Updated for SMF 2 RC4. Post if there's any problems.
Title: Re: TinyPortal
Post by: Sabre™ on December 07, 2010, 02:19:33 AM
Good work IchBin 8)

Found a very small error. Nothing serious, but thought I'd bring it to light.
You're not in the TP credits
Developer
Bjoern "Bloc" Kristiansen

TP Team
JPDeni, Ianedres, Freddy888, Ken, Lesmond, ZTN, ZarPrime, Renegd98, Crip, Agridoc and lurkalot.

TP Friends
Xarcell, Fussilet,nokonium, StormLrd, RebelRose, Ray, Max, Thurnok, Dragooon, eld^kar, PhilH, Maya, Moocat, Rasyr, gerrymo, BorgBOB, redone, Aku, Anunlike, Tuxie, deniz, feline, and eeek.
Title: Re: TinyPortal
Post by: IchBin™ on December 07, 2010, 10:03:53 AM
Strange... wonder how my name got removed. I haven't even touched the credits. Oh well, I'll fix it up for the next release. Thanks for the heads up!
Title: Re: TinyPortal
Post by: crustybum on December 07, 2010, 10:21:46 AM
Hi, i am having problems getting an RSS feed in one of the blocks...can anyone guide me through..?  i am on 1.1.12

Thanks
Title: Re: TinyPortal
Post by: IchBin™ on December 07, 2010, 10:41:44 AM
Have you tried other feeds? Some times feeds have errors in them and will not display. You can try a feed from the TP chat board on the support site to see if it works. This link worked for me.

http://www.tinyportal.co.uk/index.php?action=.xml;board=9;type=rss
Title: Re: TinyPortal
Post by: crustybum on December 07, 2010, 11:09:53 AM
No good....just getting nothing...stumped
Title: Re: TinyPortal
Post by: IchBin™ on December 07, 2010, 12:13:40 PM
Sounds like your host has turned off the PHP settings for this. Can you post a What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479.0) page so I can take a look?

Also, check your SMF log for errors to see if you're getting anything related to this problem.
Title: Re: TinyPortal
Post by: RoarinRow on December 07, 2010, 12:41:38 PM
Excellent, thanks for the upgrade IchBin™!  You da man!
Title: Re: TinyPortal
Post by: Apllicmz on December 07, 2010, 04:50:42 PM
yes
Nice good work
Title: Re: TinyPortal
Post by: Aiko on December 07, 2010, 06:56:02 PM
I just upgraded from RC3 to RC4 and have installed Tinyportal. However I have gotten over 300 errors in my log due to it, all stating "almost the same thing"

QuoteApply Filter: Only show the error messages of this URL
http://site/index.php?action=admin;area=packages;sa=install2;package=TinyPortal10rc1.zip;pid=0
Apply Filter: Only show the errors with the same message
2: copy(/home/sitetp-files/tp-blockcodes/minicalendar.blockcode) [<a href='function.copy'>function.copy</a>]: failed to open stream: Not a directory
Apply Filter: Only show the errors from this file
File: /home/site/Sources/Subs-Package.php
Line: 1689

Quote
   Reverse chronological order of list Today at 05:53:49 PM
Apply Filter: Only show the error messages of this session 2952567e00df577fcfd298aa60dd8370
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://site/index.php?action=admin;area=packages;sa=install2;package=TinyPortal10rc1.zip;pid=0
Apply Filter: Only show the errors with the same message
2: copy(/home/username/public_html/forum/tp-files/tp-blockcodes/hello.blockcode) [<a href='function.copy'>function.copy</a>]: failed to open stream: Not a directory
Apply Filter: Only show the errors from this file
File: /home/username/public_html/forum/Sources/Subs-Package.php
Line: 1689 

The rest are pretty much like this as well. Any resolution?
Title: Re: TinyPortal
Post by: IchBin™ on December 07, 2010, 07:48:56 PM
Any information what you are doing when you get that error? Does it appear on every page? What SMF version are you using?
Title: Re: TinyPortal
Post by: Aiko on December 07, 2010, 08:00:19 PM
I just upgraded to SMF 2.0 RC4, and that showed in the log right after installation.
Title: Re: TinyPortal
Post by: IchBin™ on December 07, 2010, 09:32:18 PM
I need to know as much information as you can provide as I don't have that error. Does the error still continue? Does it happen on any certain page or when you do any certain action? Have you looked down the path to see if the files that it is trying to find in the errors are there?

Like this one:
/home/username/public_html/forum/tp-files/tp-blockcodes/minicalendar.blockcode
Title: Re: TinyPortal
Post by: Aiko on December 08, 2010, 12:29:11 AM
It seems as though the permissions were not correct when I did the upgrade, this seems to have prevented the mod from installing Directories, as such I was getting empty files and missing most of the information - like I didn't have tp-files for instance and all that it contains. Its fixed now as someone took care of it for me.

Thanks alot of responding and trying to help me out. I appreciate it :)
Title: Re: TinyPortal
Post by: Masterd on December 09, 2010, 11:30:07 AM
How can I make avatars bigger in User CP block?
Title: Re: TinyPortal
Post by: WillyP on December 09, 2010, 12:14:06 PM
Try changing the height of the the element in the css:

Line 1569 in Themes/default/tp_style.css, change height:32px; to something like height:40px;

Edit:  Above is for users online, I think you meant the block which has the links to show unread, pm, etc... that would be line 1750, change the width:45.
Title: Re: TinyPortal
Post by: badger413 on December 14, 2010, 02:17:17 PM
I have the latest smf version 1.1.12 want to install tiny portal to my smf forums but when I go to install it I get a error message...

"!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF
."

and

"10.    Execute Modification    ./Themes/babylon/index.template.php    File not found"

How do I fix this?
Title: Re: TinyPortal
Post by: WillyP on December 14, 2010, 03:02:01 PM
Continue with the installation. This error is because the theme 'Babylon'  was removed from SMF,  so the script cannot find it.  It will install fine without it.
Title: Re: TinyPortal
Post by: bud01100 on December 14, 2010, 09:58:49 PM
Installed TP V1.0 Rc1 on SMF 1.1.12.

I was able to display the recent posts via TP on the main forum page, but now its only showing up within each board page.

Cant figure out if there is a setting to turn it on/off the main page.
Title: Re: TinyPortal
Post by: WillyP on December 15, 2010, 07:35:58 AM
The settings that would affect this are in the block.  Got to 'Tiny Portal >> Manage Blocks >> (Recent articles block) Edit'.
Title: Re: TinyPortal
Post by: bud01100 on December 15, 2010, 09:08:08 PM
Quote from: WillyP on December 15, 2010, 07:35:58 AM
The settings that would affect this are in the block.  Got to 'Tiny Portal >> Manage Blocks >> (Recent articles block) Edit'.

Thankyou much!!

I think I'm getting the 'Home' and 'Forum' tabs mixed up as to what is displayed.
Title: Re: TinyPortal
Post by: Andrei Cantey on December 24, 2010, 02:24:22 AM
Greetings all,

Would anyone know the file that I would use to
edit the article template? I would like to remove the
posted in [Category] on each Article as I do not find
any need when i only use one Category.
Thank you for whoever can help.

Kind regards,
Andrei C.
Title: Re: TinyPortal
Post by: IchBin™ on December 24, 2010, 10:48:14 AM
Quote from: Andrei Cantey on December 24, 2010, 02:24:22 AM
Greetings all,

Would anyone know the file that I would use to
edit the article template? I would like to remove the
posted in [Category] on each Article as I do not find
any need when i only use one Category.
Thank you for whoever can help.

Kind regards,
Andrei C.

In your frontpage settings you can select the "use custom template" option. There will be a textbox below that has the html that controls what and how the articles display on the frontpage. All you need to do is remove what you don't want.
Title: Re: TinyPortal
Post by: ffingers on December 31, 2010, 03:09:43 AM
quick question...

smf4iphone theme use checks for the tp_hidebars() function in order to "disable" tinyportal for the theme....it does not appear to be working...is that function not used anymore or is there a better way to hide tinyportal for a specific them...

the actual code is // TinyPortal
if (function_exists('tp_hidebars'))
tp_hidebars();
Title: Re: TinyPortal
Post by: IchBin™ on December 31, 2010, 11:15:52 AM
The function still exists. I don't know if or how much it has changed over the last while but try calling the function using all instead.
// TinyPortal
if (function_exists('tp_hidebars'))
tp_hidebars('all');

Title: Re: TinyPortal
Post by: ffingers on December 31, 2010, 12:11:56 PM
no dice....hmmm...this is really mind boggling to me...is there an include or something that needs to be added...here is the index.template.php file with the template init...see anything to do to "disable" blocks aka...disabling tinyportal for the theme?

Title: Re: TinyPortal
Post by: IchBin™ on December 31, 2010, 12:43:23 PM
You can't put it in the template_init() function because that loads everything before TP has had a chance to load it's own stuff. Put it in the template_html_above() function.
Title: Re: TinyPortal
Post by: bloc on December 31, 2010, 12:47:21 PM
Another way is to simply copy over TPBlockLayout.template.php from default theme to your theme, and within the 2 functions in it, simply add "return;" So it would like this on the first function:

function template_tp_above()
{
global $context , $scripturl, $settings, $language , $txt, $options;
       
        return;
       
       .....



That way the panels will never be rendered just for that theme.
Title: Re: TinyPortal
Post by: ffingers on January 05, 2011, 05:09:49 PM
Bloc...thank you so much...this is the BEST solution as i found that just hiding the blocks was creating some css conflicts that i couldn't resolve....empty out the functions put everything back to normal...

no i have one more question....the mobile theme i have does not work well tiny portal's home page... rather than modify it for the tp...i would like to just redirect people landing on my root domain to http://domain/index.php?action=iphone which is the main forum in the mobile theme....

i understand i could do a browser check...but i think even easier would be to check what theme is being used and if it's the mobile theme...redirect to the forum page....i haven't done a lot of research into how to do it...sorry been busy with other stuff on the site....but any ideas on how to do a redirect to another page based on theme id to avoid tp's main index page?

thanks again!
Title: Re: TinyPortal
Post by: bloc on January 05, 2011, 05:45:09 PM
Well, again lol, using a TP template could do the trick: copy over TPortal.template.php into your mobile theme and find the function "template_frontpage()" and empty that - but also add redirectexit('action=iphone'); inside it.

It could go into a loop though, so check on a slow time of the day first, so you can erase the template if it goes haywire.

Another but maybe better solution could simply be to empty that function still, but add the same code you would execute in the action=iphone page, maybe even just calling the function directly, if you have set it up that way.
Title: Re: TinyPortal
Post by: ffingers on January 05, 2011, 05:53:01 PM
Bloc...you are WONDERFUL!!

worked like a charm....

i wish i knew all the php and smf functions and really had time to delve into how it calls things...i have been programming for quite some time, but have never taken the time to really figure out all the smf calls and how pages are actually built and whatnot....i know enough to be dangerous, but not enough to do things elegantly...thanks so much bloc...you rock!

tony
Title: Re: TinyPortal
Post by: TheDel on January 06, 2011, 08:47:10 AM
I have a question about the blocks. Im trying to put my wordpress posts in there (like a last 3 or 5 posts). Ive found 2(both versions using a blog query.php file and iframe in the block) and both times I get a syntax error. Then I found one on Feed2JS that actually works but if I go back in the block to modify it, the code duplicates itself and I start getting double the output.

Come to think of it, Ive the same issue when I tried putting the facebook fan box on my page too.

I love TP(so sad to see the actual site go) so hopefully theres something out there that can help.

Thanks
Title: Re: TinyPortal
Post by: IchBin™ on January 06, 2011, 09:57:01 AM
The site still exists, only Bloc is not heading the project up anymore. TP.net forwards to TP.co.uk for now.

It might help if you tell us what versions you are using of SMF and TP. If you aren't using the latest TP 1 rc1 version that was released I'd suggest upgrading. If you are using the latest, please post one of the codes you are having a problem with, and the steps to confirm your problem if there are any things different than what you posted above.
Title: Re: TinyPortal
Post by: TeaTephi on January 07, 2011, 02:50:08 PM
I'm currently running SMF 1.1.10 and TinyPortal v1.0 beta 4 © Bloc but I would like to update my forum to SMF 2.0 and the new TinyPortal.  My current theme is Manuscript, and I have so many mods....woah I 'm scared to update.

I have downloaded my back up file, but can someone send me a link to step by step instructions to upgrade my forum?  Please!

It's been awhile since I've done any of this and I'm a little scared I'm going to mess up my forum.
Title: Re: TinyPortal
Post by: IchBin™ on January 07, 2011, 03:06:48 PM
The single best thing you can do is to do a test install. Copy your site files and database and create an exact duplicate of it. This way, you can run the upgrade and not worry about a thing. And in the process you learn how to do it, and will also catch any problems that you may run into before actually attempting to do it on your live site. Although, this isn't really the topic you should post to when needing help upgrading SMF :) Just remember when you upgrade from one major version to another you lose all your mods that you installed. So make sure your mods are compatible with the version of SMF that you're moving to. TP is compatible with the latest version of SMF so no worries there. Take a gander through the Docs and post in the support boards if you get stuck.

Upgrading SMF (http://docs.simplemachines.org/index.php?board=3.0;sort=subject)
Title: Re: TinyPortal
Post by: TeaTephi on January 07, 2011, 05:59:53 PM
Thanks so much IchBin!  so I do a test install on a subdomain like  www.mysitename/testinstallforum ?  Just copy everything over using an FTP client software?   Do I have to worry about using the database too? 

If there is a link to these directions then I'm ok going there.  I've been searching but everyone has a little different situation than me (meaning they know more haha).    Thanks again!
Title: Re: TinyPortal
Post by: Arantor on January 07, 2011, 07:37:06 PM
Just as a random thought, how come TPortal.english.php declares the $txt['visual_verification_description'] string as 'Not Defined Yet'? It's loaded later in runtime than index.english.php is so it overwrites that string.
Title: Re: TinyPortal
Post by: IchBin™ on January 07, 2011, 09:13:02 PM
Quote from: TeaTephi on January 07, 2011, 05:59:53 PM
Thanks so much IchBin!  so I do a test install on a subdomain like  www.mysitename/testinstallforum ?  Just copy everything over using an FTP client software?   Do I have to worry about using the database too? 

If there is a link to these directions then I'm ok going there.  I've been searching but everyone has a little different situation than me (meaning they know more haha).    Thanks again!

Yep, just copy the files into another folder like you showed. Yes, duplicate your database and then in your Settings.php file all you have to do is tell it to use the new database by changing the database name. Usually your host has a control panel like CPanel that will allow you to copy files/folders. Which is generally much easier than using FTP.
Title: Re: TinyPortal
Post by: IchBin™ on January 07, 2011, 09:13:39 PM
Quote from: IncognitoMuse on January 07, 2011, 07:37:06 PM
Just as a random thought, how come TPortal.english.php declares the $txt['visual_verification_description'] string as 'Not Defined Yet'? It's loaded later in runtime than index.english.php is so it overwrites that string.

Don't know, I didn't write the code and haven't noticed that yet.
Title: Re: TinyPortal
Post by: bloc on January 08, 2011, 02:35:41 PM
Quote from: IncognitoMuse on January 07, 2011, 07:37:06 PM
Just as a random thought, how come TPortal.english.php declares the $txt['visual_verification_description'] string as 'Not Defined Yet'? It's loaded later in runtime than index.english.php is so it overwrites that string.
Its a very old string - I don't remember the exact reason but it was to correct an error message occuring when it wasn't set when TP needed to use the captcha. It might be obsolete now(and might do some harm even).

QuoteDon't know, I didn't write the code and haven't noticed that yet.
Ichbin, thats one of the unfortunate things about taking anything over.. :)
Title: Re: TinyPortal
Post by: Arantor on January 08, 2011, 06:40:30 PM
QuoteIt might be obsolete now(and might do some harm even).

That's why I'm reporting it, a user installed TP and was getting 'Not Defined Yet' in their CAPTCHA...
Title: Re: TinyPortal
Post by: !RFAN on January 08, 2011, 09:37:27 PM
how can i turn off right panel in portal page and on in forum??
Thanks :)
Title: Re: TinyPortal
Post by: BartB on January 09, 2011, 08:19:20 AM
Call me stupid, but I can't find Dutch language files for TP 1.102
I tried to register on the TP support site, but their activation e-mails never reached me so I can't log in there.
Title: Re: TinyPortal
Post by: lurkalot on January 09, 2011, 09:23:24 AM
Quote from: !RFAN on January 08, 2011, 09:37:27 PM
how can i turn off right panel in portal page and on in forum??
Thanks :)

To stop it showing on front page.  Tp Admin/ settings / Front page.  scroll down and un-check the display right panel box.  Click save at bottom.

To stop it showing in forum, TP Admin / panels,  Scroll down to right panel, and change the setting, "Hide right panel when in forum?"   to Yes.  Click save at bottom.
Title: Re: TinyPortal
Post by: IchBin™ on January 09, 2011, 10:48:13 PM
Quote from: BartB on January 09, 2011, 08:19:20 AM
Call me stupid, but I can't find Dutch language files for TP 1.102
I tried to register on the TP support site, but their activation e-mails never reached me so I can't log in there.

I activated your account that uses the keyboard address.

Quote from: Bloc on January 08, 2011, 02:35:41 PM

QuoteDon't know, I didn't write the code and haven't noticed that yet.
Ichbin, thats one of the unfortunate things about taking anything over.. :)

Yeah, I realized that. Considering I don't think I'm a good coder yet, it's going to take me a very long time before I feel I grasp the whole TP concept. :( Anyway, I think there's a problem that I need your help with so you may get another message from me some time this week. :)
Title: Re: TinyPortal
Post by: Average Mom on January 11, 2011, 01:56:39 PM
I hope I'm posting in the right spot

SMF 2.0 RC4

with TP 1.102

I'm using the Outline by Dziner theme

my mods:
1.    Sitemap    2.2.0
2.    Member Awards    2.2.3
3.    Referrals System    3.0.1
4.    TinyPortal    1.102
5.    More Spiders    1.2
6.    Users Online Today    1.5.6
7.    Contact Page    2.1.1

/index.php?action=tpmod;sa=comment
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't wait to try it!','1','article_comment','1294689693',19)' at line 2
File: /....../forum/Sources/TPmodules.php
Line: 155

Basically, when a member tries to comment on an article, they can't post apostrophes,  they need to escape it, or else they get the error posted above.  I'm not sure how to correct this and I'm not sure my members would understand that they need to escape their ' every time they post a comment.  ::)  So for the time being, until I can correct this, I've disabled comments.

Any suggestions on what I need to do?
Title: Re: TinyPortal
Post by: IchBin™ on January 11, 2011, 02:17:27 PM
Thanks for reporting the bug.

In Sources/TPmodules.php find:

            // insert the comment
            tp_query("INSERT INTO " . $tp_prefix . "variables (value1,value2,value3,type,value4,value5)
                            VALUES('". $title. "','". $comment. "','$ID_MEMBER','article_comment','$time',$article)", __FILE__, __LINE__);


Replace with this:

            // insert the comment
            tp_query("INSERT INTO " . $tp_prefix . "variables (value1,value2,value3,type,value4,value5)
                            VALUES('". mysql_real_escape_string($title). "','". mysql_real_escape_string($comment). "','$ID_MEMBER','article_comment','$time',$article)", __FILE__, __LINE__);
Title: Re: TinyPortal
Post by: Average Mom on January 11, 2011, 05:27:12 PM
That fixed it! Thank you very much! :)
Title: Re: TinyPortal
Post by: Average Mom on January 11, 2011, 10:03:43 PM
Got another one for ya LOL

...forum/index.php?/page,12.html
8: Undefined variable: avatar_height
File: /..../forum/Sources/TPortal.php
Line: 742

I get it only when someone views an article, though I'm not sure if it's the article itself or viewing it on the frontpage or both, I get the same error for avatar width also. I didn't realize I was getting that error also because there were so many errors from the other bug.
Title: Re: TinyPortal
Post by: IchBin™ on January 12, 2011, 11:20:27 AM
What are your frontpage settings and what are your category settings? I need to try the same setup as you so I can figure it out.
Title: Re: TinyPortal
Post by: Average Mom on January 12, 2011, 11:43:40 AM
This is what you are asking to see right?
Title: Re: TinyPortal
Post by: IchBin™ on January 12, 2011, 12:11:49 PM
Ah thank you. That helps. It would appear it only errors like this if someone is using an external avatar and it tries to load that avatar as the author of an article. Let me take a look and see what the proper fix would be here in a bit.
Title: Re: TinyPortal
Post by: Average Mom on January 12, 2011, 12:41:09 PM
Thanks, I appreciate it :)
Title: Re: TinyPortal
Post by: IchBin™ on January 12, 2011, 01:10:35 PM
In TPortal.php find this code about line #725
$ccount=0; $newcount=0;
if(tpdb_num_rows($request)>0)
{


Add this code before it.
// setup the avatar code
if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}
Title: Re: TinyPortal
Post by: Average Mom on January 12, 2011, 01:17:43 PM
Thanks so much! That fixed it!  I appreciate the help and all the work you put into this.  :-*
Title: Re: TinyPortal
Post by: anomaly on January 14, 2011, 12:54:44 AM
FYI I found the bug with the online box only showing avatars instead of names.  On line 2407 of Sources/TPortal.php, change

                               if($block['var1']=='')
                                        $context['TPortal']['useavataronline'] = 0;
                                else
                                        $context['TPortal']['useavataronline'] = 1;

To:


                               if($block['var1']=='0')
                                        $context['TPortal']['useavataronline'] = 0;
                                else
                                        $context['TPortal']['useavataronline'] = 1;


(note, only the first line is changed, I provided the rest for context)

Cheers,

Anomaly
Title: Re: TinyPortal
Post by: IchBin™ on January 14, 2011, 10:44:46 AM
Thank you! I'll add this in for the next release.
Title: Re: TinyPortal
Post by: TeaTephi on January 14, 2011, 02:05:01 PM
I upgraded successfully to smf 2.0 and tp 1.0.    However my shoutbox and other panels are visible to guests,  I don't have them checked off for access.  What am I missing?   


The screen shot shows that guests are unchecked yet they still see the shoutbox
Title: Re: TinyPortal
Post by: Touti on January 14, 2011, 02:07:35 PM
Is there a known issue that would prevent the Rhino theme to work properly with TP RC1 ?  I just upgraded to RC1 from 1.0 Beta4 and now my site is all messed up.

The Front Page and Forum

(http://www.totalexpedition.com/MGalleryItem.php?id=2799)
(http://www.totalexpedition.com/MGalleryItem.php?id=2800)

Strangely, if I disable support for TP in the theme the front page looks better, although the line spacing in the top blocks are wrong, and the forum looks ok but I loose the "Forum" button in my menu.


(http://www.totalexpedition.com/MGalleryItem.php?id=2801)



Title: Re: TinyPortal
Post by: IchBin™ on January 14, 2011, 02:35:46 PM
Quote from: TeaTephi on January 14, 2011, 02:05:01 PM
I upgraded successfully to smf 2.0 and tp 1.0.    However my shoutbox and other panels are visible to guests,  I don't have them checked off for access.  What am I missing?   


The screen shot shows that guests are unchecked yet they still see the shoutbox

Yep that is a bug in TP1rc1. It's fixed in the next version of TP yet to be released.
http://www.tinyportal.co.uk/index.php?issue=42.0
Title: Re: TinyPortal
Post by: IchBin™ on January 14, 2011, 02:37:17 PM
Touti,

I don't remember which version it happened in, but Bloc made changes to TP quite some time ago so that it didn't require custom template options for TP to work. There should be no reason to turn the option on for TP to work properly. Make sure TP works in the default theme properly. If it does, then you know it's a theme issue.
Title: Re: TinyPortal
Post by: Touti on January 14, 2011, 02:54:01 PM
Thanks Ichbin.  I do have the small "line spacing" issue in the default theme as well but that's something I can fix easily in the style sheets.

Besides that, the only problem I can see so far when disabling TP support in the theme is that I lose the "Forum" button that's no big deal either, I'll just edit the code and fix that.

Thanks again.
Title: Re: TinyPortal
Post by: IchBin™ on January 14, 2011, 02:54:49 PM
Yes, that is pretty much the only template edit that has to be done in SMF1.x.
Title: Re: TinyPortal
Post by: Touti on January 14, 2011, 07:02:07 PM
I'm afraid I'm gonna help with this.  I've spent the last few hours looking at code and stylesheets but I just can find where the styles for this are.  What I'm trying to do is reduce the spacing between the lines in the Recent Topics block.  I know it's currently at 1.5em but I just can't find where that is in the code and change it to a lower value.

Any help would be appreciated.

(http://www.totalexpedition.com/MGalleryItem.php?id=2801)

Title: Re: TinyPortal
Post by: IchBin™ on January 14, 2011, 07:12:06 PM
Need to see a link to your site. If you don't want it public feel free to PM it to me.
Title: Re: TinyPortal
Post by: Touti on January 14, 2011, 07:19:09 PM
I should have thought of that.

http://www.totalexpedition.com

Title: Re: TinyPortal
Post by: IchBin™ on January 14, 2011, 07:25:15 PM
In Themes/default/TPsubs.template.php. Search for "function TPortal_recentbox()"

Inside that function you'll see where it adds the style's to the <li> tags. You can remove the padding there to consolidate the space a little. Let me know if that works.
<li style="margin: 0; list-style: none; line-height: 1.5em; padding: 4px 0;"><a href="'.$w['href'].'">'.$w['short_subject'].'</a> ', $txt['by'], ' ', $w['poster']['link'];
Title: Re: TinyPortal
Post by: Touti on January 14, 2011, 07:36:23 PM
Many thanks Ichbin, you just salvaged half of my weekend  ;D

I had no idea there was some TP code in the default theme folder
Title: Re: TinyPortal
Post by: TeaTephi on January 14, 2011, 08:21:44 PM
Ok this morning I succesfully installed SMF 2.0 RC4 large upgrade and TP 1.0.

Everything was working fine, and then i noticed the avatars stopped showing for only the members in admin groups.

It doesn't show their avatars in the main forum posts, or the shoutbox (which initially worked).  (Regular members are working)

I don't know it's weird.

May have I ticked some permissions somewhere by accident?
Title: Re: TinyPortal
Post by: IchBin™ on January 14, 2011, 09:03:23 PM
Well that is more than just a TP problem. Is it showing a missing image? Or is it not showing at all?
Title: Re: TinyPortal
Post by: TeaTephi on January 14, 2011, 09:15:33 PM
You can see how it is on the profile edit, but not in the shoutbox or the profile summary.

In the shoutbox you can see a whitebox where the avatar should go.
Title: Re: TinyPortal
Post by: TeaTephi on January 15, 2011, 09:24:56 AM
Is there a place to adjust SIZE limits for avatars?  When I first installed they were shown in the shout box huge, now i uploaded the pictures for EACH person, and they are all small now!
Title: Re: TinyPortal
Post by: IchBin™ on January 15, 2011, 11:28:31 AM
Looks like you're using Opera? Try a different browser to see if the avatars show up. I think it's probably opera, but I don't have that installed. To change the size you need to change it in the Themes/default/TPshout.css file.
Title: Re: TinyPortal
Post by: lesmond on January 17, 2011, 03:51:45 PM
Information Only

If you have not noticed the TinyPortal Support site has been down for 24hrs, I am attempting to move the backup to a new server as soon as I can, but its a rather large file so will take time to move, also the name servers will have to be changed, and most of you may know this can take some time to propagate!

Sorry for any inconvenience this may cause to our member, I will get the site back and running asap.

So please bare with us whilst we get the site back for you.

Thank you for your understanding.

The Team at Tinyportal Support.

www.tinyportal.co.uk
Title: Re: TinyPortal
Post by: LiroyvH on January 17, 2011, 05:00:21 PM
Goodluck ;D
Title: Re: TinyPortal
Post by: TeaTephi on January 17, 2011, 11:46:25 PM
Quote from: IchBin™ on January 15, 2011, 11:28:31 AM
Looks like you're using Opera? Try a different browser to see if the avatars show up. I think it's probably opera, but I don't have that installed. To change the size you need to change it in the Themes/default/TPshout.css file.

I think you are right.....it works in IE (slowly loads), but it's odd because it worked in Opera when I first loaded everything.  Also I think the shoutbox looks different, has captions for each shout.  Is there a way to choose another layout?

Also, is there a way to check guests to view my frontpage article?  I checked the tickbox for them to view it, but didn't work.  Was wondering if that was another gliche to be fixec in the next release.

Thanks so much for your help.

I LOVE MY FORUM!  IT ROCKS!
Title: Re: TinyPortal
Post by: cellax on January 18, 2011, 07:36:33 AM
Quote from: lesmond on January 17, 2011, 03:51:45 PM
Information Only

If you have not noticed the TinyPortal Support site has been down for 24hrs, I am attempting to move the backup to a new server as soon as I can, but its a rather large file so will take time to move, also the name servers will have to be changed, and most of you may know this can take some time to propagate!

www.tinyportal.co.uk

I hope you will be back soon, good luck
Title: Re: TinyPortal
Post by: lesmond on January 18, 2011, 09:56:23 AM
Were up and running again, although we lost a few posts in the process, and a few members will have to re-register again, but alls good so far. 
Title: Re: TinyPortal
Post by: damouse on January 18, 2011, 02:34:50 PM
hi there

I apologise if this was already answered, I did look for it but haven't seen anything.

I would like to change the links from the recent block so that they link to the last read post rather than the very last on the thread. effectively combining "recent" and the function of unread.

My guess is a small edit in the Tportal_recent function, around here:
echo ' <a href="'.$w['href'].'"><img src="'. $settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> '; (line 347 of TPBlocks.template.php)

but I don't know enough to know what to do with it  :-[



Title: Re: TinyPortal
Post by: IchBin™ on January 18, 2011, 03:41:44 PM
TP doesn't use the TPBlocks.template.php file anymore. Are you using TP 0.9.8 ?
Title: Re: TinyPortal
Post by: damouse on January 18, 2011, 03:47:00 PM
TinyPortal v1.0 beta 4 I thought, where do I see it?

also I'm pretty certain it's using it on the basis of I tried editing it borrowing a link from the MessageIndex before posting here, it broke the link on site.

and if not there, how do I cahnge that link in any case?
Title: Re: TinyPortal
Post by: IchBin™ on January 18, 2011, 03:55:18 PM
Ah, that could have been when Bloc stopped using that file. I thought it was earlier. Either way I'm a little confused on your request. Isn't that what the new icon does? It takes you to the newest post in the recent post. Are you wanting to link the subject line instead?
Title: Re: TinyPortal
Post by: damouse on January 18, 2011, 04:01:34 PM
it does now, but I want to change it to link to the last unread in that topic rather than the very last post.

On a board page, we have the very same "new" but it behaves differently there, linking to the last unread.

I would prefer to have that same behaviour from the recent block. both unifying what the "new" does accross the forum and making it more useful for the members.

should I move this query to TinyPortalSupport?
Title: Re: TinyPortal
Post by: IchBin™ on January 18, 2011, 04:41:29 PM
That would be better. I haven't had a chance to look, but hopefully someone can look into it. It might have already been requested at TP before.
Title: Re: TinyPortal
Post by: damouse on January 18, 2011, 05:28:24 PM
I didn't find a topic for it. For others reading here looking for that follow on here : http://www.tinyportal.co.uk/index.php?topic=33559.0

Title: Re: TinyPortal
Post by: Wh1teLeopard on January 19, 2011, 08:52:51 AM
Something really strange has happened to my articles  :-\

Link to forum: http://keikarsinthepark.co.uk
Running: SMF2.0 RC3

I've been using tiny portal in varies forms of the forum for years, and never had any major problems with it that I couldn't eventually figure out myself but this one's got me stumped.

When I edit and article, click save, it reverts back to the previous version. It won't save changes, and it won't save new articles. It only started happening this week, I've not changed anything. So do I need to enquire about something with my provider?
Title: Re: TinyPortal
Post by: IchBin™ on January 19, 2011, 10:48:52 AM
I don't know what would keep your article from updating. Especially if it just happened out of the blue without any changes. I supposed you could ask your host if there's anything they can see.

At this point my only suggestion would be to update TP to the latest version if you can't find anything.
Title: Re: TinyPortal
Post by: TeaTephi on January 22, 2011, 10:09:28 AM
Quote from: TeaTephi on January 17, 2011, 11:46:25 PM


Also, is there a way to check guests to view my frontpage article?  I checked the tickbox for them to view it, but didn't work.  Was wondering if that was another gliche to be fixed in the next release.

Thanks so much for your help.

I LOVE MY FORUM!  IT ROCKS!

I still can't get my frontpage article (welcome page) viewable to my guests. 
Title: Re: TinyPortal
Post by: Wh1teLeopard on January 22, 2011, 11:52:12 AM
Quote from: IchBin™ on January 19, 2011, 10:48:52 AM
I don't know what would keep your article from updating. Especially if it just happened out of the blue without any changes. I supposed you could ask your host if there's anything they can see.

At this point my only suggestion would be to update TP to the latest version if you can't find anything.

Thank you for the suggestion I'll get on to that :)
Title: Re: TinyPortal
Post by: origamikitsune on January 23, 2011, 04:31:26 AM
Not sure how much of this is a bug report, v. not understanding how TP/SMF work, so I'll just lay it out. I have tried searching for answers on both this site and the TP site already. These issues appear in all themes.

Running SMF 2.0 RC4, TP 1.0 RC1 at www.sanctusrefero.com
Viewing with Firefox 3.6.13

Using a menu widget called "Sand Box" to link to all my article categories. This works. Here are links:

www.sanctusrefero.com/forum/index.php?cat=21
www.sanctusrefero.com/forum/index.php?cat=23
www.sanctusrefero.com/forum/index.php?cat=22
www.sanctusrefero.com/forum/index.php?cat=24
www.sanctusrefero.com/forum/index.php?cat=20
www.sanctusrefero.com/forum/index.php?cat=9

While viewing these, buttons only show for three of the categories, regardless of which category you are in. Cat=24 has no articles in it, but the button for the category shows up. Cat=21 and cat=9 have articles in them and buttons for them show up. All other categories are empty, and have no buttons showing up.

Since until right before I wrote this post seeking help cat=21 was also empty, I am now assuming there must be content in a category for a button linking to that category to appear (but the button remains if content is removed, explaining why cat=24 is empty - it once had content in it but no longer does.)

The question is: Is my assumption right, or is this a bug?

Moving along, I do not want to use a widget to link to my article categories. I would like to use the main navigation menu. I have edited Subs.php to the following:

'tpadmin' => array(
'title' => 'Articles',
'href' => $scripturl . '?action=tpadmin',
'show' =>  TPcheckAdminAreas(),
'sub_buttons' => array(
'cat_battleguides' => array(
'title' => 'Battle Guides',
'href' => $scripturl . '?cat=21',
'show' => true,
),
'cat_craftingguides' => array(
'title' => 'Crafting Guides',
'href' => $scripturl . '?cat=23',
'show' => true,
),
'cat_gatheringguids' => array(
'title' => 'Gathering Guides',
'href' => $scripturl . '?cat=22',
'show' => true,
),
'cat_roleplayguides' => array(
'title' => 'Role-Play Guides',
'href' => $scripturl . '?cat=24',
'show' => true,
),
'cat_sanctusreferolore' => array(
'title' => 'Sanctus Refero Lore',
'href' => $scripturl . '?cat=20',
'show' => true,
),
'cat_thesaintsweekly' => array(
'title' => 'The Saints Weekly',
'href' => $scripturl . '?cat=9',
'show' => true,
),
),
),


The article categories are viewable by guests and all member groups, as are all articles. The idea is that I want the standard TP menu options dependent on permissions (this works fine) but I also want all categories to be listed. I did not see a feature in TP to allow automatic listing of categories in this menu (forthcoming feature maybe?), so I added them manually just as a quick and dirty fix... and got nada. The code above is live on the site, but not showing up in the menu.

Hopefully I have not made an embarrassing newbie mistake in my PHP or understanding of SMF! If I have, apologies for taking your time! Either way, any insight to get me going in the right direction?
Title: Re: TinyPortal
Post by: expertsgalaxy on January 23, 2011, 06:14:02 AM
I installed Tiny Portal on my forum version SMF 1.1.12 TinyPortal 1.0 RC1 now how can i add blocks to the left side of the forum and after installing TinyPortal I got an added tab of forum so how to remove it as opening my site first gives a blank page of Home and then clicking on forum shows the site I want

Also here are few screenshots of my tiny portal CP are they fine?properly installed or not as it seems all functions are not there cant see how to add,where to add blocks and other settings

(http://i432.photobucket.com/albums/qq44/neerajrawat/MenuManager.png)

(http://i432.photobucket.com/albums/qq44/neerajrawat/Modules.png)

(http://i432.photobucket.com/albums/qq44/neerajrawat/SettingsFrontpage.png)

also give me a link to download the compatible version for SMF 1.1.12 as the one I downloaded was also showing compatible but dont know what went wrong and where?
Title: Re: TinyPortal
Post by: IchBin™ on January 23, 2011, 09:22:20 AM
@origamikitsune, I don't know if the category link problem is a bug in TP just yet. I'll have to look into that.

But the reason you aren't seeing your custom buttons is because at the bottom of that function in Subs.php it is clearing out your code by reassigning the variable for the TPAdmin sub buttons.

// tinyportal //
        $buttons['tpadmin']['sub_buttons'] = tp_getbuttons();


You can comment out this line if you don't want those other buttons to show. Otherwise, add your sub_buttons in the tp_getbuttons() function inside the TPsubs.php file.

@expertsgalaxy,

It looks like either you are using a different language or english-utf8. In which case you need to grab the english-utf8 files from the TP.co.uk site. That should fix the missing text.
Title: Re: TinyPortal
Post by: TeaTephi on January 23, 2011, 11:06:07 AM
OH man I don't know what I did,  NONE of my blocks show anymore.  I uninstalled and re-installed Tinyportal, they still don't work....

All that shows is articles, nothing else

UPDATE: it's fixed, the language visibility settings were tripped, we've changed it back works now.
Title: Re: TinyPortal
Post by: expertsgalaxy on January 23, 2011, 12:17:06 PM
@IchBin™

thanks will contact tiny portal support site now
Title: Re: TinyPortal
Post by: origamikitsune on January 24, 2011, 04:12:01 AM
Quote from: IchBin™ on January 23, 2011, 09:22:20 AM
@origamikitsune, I don't know if the category link problem is a bug in TP just yet. I'll have to look into that.

But the reason you aren't seeing your custom buttons is because at the bottom of that function in Subs.php it is clearing out your code by reassigning the variable for the TPAdmin sub buttons.

// tinyportal //
        $buttons['tpadmin']['sub_buttons'] = tp_getbuttons();


You can comment out this line if you don't want those other buttons to show. Otherwise, add your sub_buttons in the tp_getbuttons() function inside the TPsubs.php file.

Awesome! Got everything working beautifully now. Thanks for the direction!
Title: Re: TinyPortal
Post by: Wh1teLeopard on January 24, 2011, 07:30:11 AM
Quote from: IchBin™ on January 19, 2011, 10:48:52 AM
I don't know what would keep your article from updating. Especially if it just happened out of the blue without any changes. I supposed you could ask your host if there's anything they can see.

At this point my only suggestion would be to update TP to the latest version if you can't find anything.

They've asked for a file path to the file I'm using when updating articles. Could you possible advise me which one that would be? (sorry)
Title: Re: TinyPortal
Post by: IchBin™ on January 24, 2011, 11:39:25 AM
Articles are stored in the database. The only place the host may see something is in the error_log on the server. If some type of error happens while you are submitting or updating an article it should hopefully show up in that log.
Title: Re: TinyPortal
Post by: RoflGuy on January 24, 2011, 02:54:55 PM
OMG THANKS FOR THIS GREAT STUFF xDD
Title: Re: TinyPortal
Post by: Wh1teLeopard on January 24, 2011, 07:02:36 PM
Quote from: IchBin™ on January 24, 2011, 11:39:25 AM
Articles are stored in the database. The only place the host may see something is in the error_log on the server. If some type of error happens while you are submitting or updating an article it should hopefully show up in that log.

Much appreciated, thank you
Title: Re: TinyPortal
Post by: IchBin™ on January 24, 2011, 07:49:26 PM
Quote from: Wh1teLeopard on January 24, 2011, 07:02:36 PM
Quote from: IchBin™ on January 24, 2011, 11:39:25 AM
Articles are stored in the database. The only place the host may see something is in the error_log on the server. If some type of error happens while you are submitting or updating an article it should hopefully show up in that log.

Much appreciated, thank you

Sorry, I forgot to mention. Don't forget to check the SMF error log in the admin panel to see if anything of importance is in there when the error happens too.
Title: Re: TinyPortal
Post by: DarkAngel612 on January 27, 2011, 02:51:36 AM
OK, I have just run through all pages...basically skimming until the newest version--I think.

I got things back to normal for my Attic forum [you would not believe the issues that happened -- and with a clean install of everything]

I uninstalled--not delete--all mods and the portal. Then I uploaded fresh files for both SMF to make certain all refs to the B4 version were outta there. Installed TP and my site rebelled---it was ugly but I finally got things beat into sorta submission.

The older themes that some were updated to work with TP were the hardest but now they are all regular sized and functional again. My blocks would not show and neither did the front page article but playing with the controls they are now seen by all again.

All menu blocks however still did not behave-- seems with the uninstalling/installing new TP the links all lost their order number-- so reordered them, turned them back on, made sure the settingwere right then checked forum page---blocks were there but 2 had only 2 of the links showing out of quite a few listed prior and the rest were totally not showing. So after taking two Tylenol I just made the blocks into bbc and hand entered the links. As far as I know the menu section is not workinig for display purposes but will mess with that at a later date..no big deal.

Now after this newsletter I was wondering...after giving each of the themes their own .css file from TP so that they could have their own shout box input boxes matching themes (white hurts my eyes) and resiaing the avatar size a bit...I NEED smilies...rather the rest of the asylum does too.

Is there a way to get the shoutbox to acknowledge the smilies that we have in default smilies folder instead of the original SMF ones. We have long since gotten rid of those and just have custom ones in the default folder.

The last version of TP used the forums smilies but this one does not. What can I do? I hope this image works tis the mods, versions and themes we have installed. Sorry for misspelled words...spell check did not want to work.

(http://thefantasiesattic.net/DA/installed.jpg)
Title: Re: TinyPortal
Post by: !RFAN on January 28, 2011, 08:34:10 AM
Hey i need some help :(
I am admin of forum which is having TP installed. I have almost 35 blocks on different postions for different membergroups. I managed it. But the problem is that all the blocks are visible to admin. I dont want to see all the blocks because they are not related to me. Is there any way that i can hide some blocks from admin/me??

Please :(
Title: Re: TinyPortal
Post by: IchBin™ on January 28, 2011, 10:37:17 AM
DarkAngel, I swear you asked me this before. Bloc didn't write it to use the SMF smilies setup for some reason. It creates it's own list of smilies in the code. If you'd like to change them, you can alter the code. Otherwise that is the only option for now.

!RFAN,

In the TPAdmin > Settings area, there is an option labeled, "Admin can see all blocks?" Just select no and save.
Title: Re: TinyPortal
Post by: DarkAngel612 on January 28, 2011, 03:00:55 PM
I am not crazier than before then...I thought I asked too but couldn't find it anywhere. I looked so I could see what I was told...but tis well hidden or never got moved to new site.

tis ok though, found where the code is hidden and was able to not only give the masses a few smilies to play with but also a dropdown menu for the colors and size changing.

this shout box also places  a "\" before an apostrophe -- like in everyone's...how can it be made to just write it normally?
Title: Re: TinyPortal
Post by: DarkAngel612 on January 28, 2011, 03:06:10 PM
Quote from: !RFAN on January 28, 2011, 08:34:10 AM
Hey i need some help :(
I am admin of forum which is having TP installed. I have almost 35 blocks on different postions for different membergroups. I managed it. But the problem is that all the blocks are visible to admin. I dont want to see all the blocks because they are not related to me. Is there any way that i can hide some blocks from admin/me??

Please :(

I just click the + and close the block that way it is not showing, just the title shows for editing it should I need to change something
Title: Re: TinyPortal
Post by: IchBin™ on January 28, 2011, 03:57:34 PM
That "\" issue is fixed for the next release. I've posted a fix at the TP site if you care to search for it.
Title: Re: TinyPortal
Post by: DarkAngel612 on January 28, 2011, 04:08:52 PM
will do thanks for all you do sugar...very appreciated
Title: Re: TinyPortal
Post by: An0nymousHelper on February 07, 2011, 12:25:16 AM
This should not matter because i am using a custom theme on smf 1.1.11 should it? Yeah i no ill have to manually edit some stuff to get it to work on my theme, but if i install this will everything be ok?

Look at #9.

Type Action Description
1. Extract Tree ./Themes
2. Extract Tree ./Themes
3. Extract Tree ./Sources
4. Extract Tree ./tp-downloads
5. Extract Tree ./tp-images
6. Extract Tree ./tp-files
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
22. Execute Modification ./Sources/Post.php Test successful
23. Execute Code SMF1/tp_install.php
Title: Re: TinyPortal
Post by: DarkAngel612 on February 07, 2011, 12:32:35 AM
even if you are using a custome theme it should be looked at...do you have edits in the default index.template file?

that is sometimes why mine will give that error

check the readme or the installer file for manual edits to see what is needed in that file then add it in manually
Title: Re: TinyPortal
Post by: An0nymousHelper on February 07, 2011, 12:45:37 AM
Quote from: DarkAngel612 on February 07, 2011, 12:32:35 AM
even if you are using a custome theme it should be looked at...do you have edits in the default index.template file?

that is sometimes why mine will give that error

check the readme or the installer file for manual edits to see what is needed in that file then add it in manually
Alright, thanks very much! Yes I checked it out and it all comes up when I look at the file manually, so i guess if I install the mod then go and manually do that 1 step I should be good?
Title: Re: TinyPortal
Post by: DarkAngel612 on February 07, 2011, 12:53:36 AM
should be, unless the forum has other ideas
Title: Re: TinyPortal
Post by: An0nymousHelper on February 07, 2011, 03:47:23 PM
Hi I have installed this and it works great! Thanks very much for this wonderful mod. I only have 1 more small problem. So no how you can go into Admin CP>TinyPortal>Menus then i add a new menu but it doesn't show up in my theme. I switched themes to Default and it works so i was just wondering how i can get it to work? Because as of now there is no was for members to actually view the forums they come to http://www.MYSITE.com/forums and they are greeted by the tiny portal main page were there are only certain posts and a shoutbox and stuff. And to view the forums they would need to go to http://www.MYSITE.com/forums/index.php?action=forum So this is a fairly big issue for me as i need to have my site in maintenance mode until i fix this. I just wan't a new tab in the menu called Forums right next to Home. Thanks very much in advance if anyone could help me it would be well appreciated!
Title: Re: TinyPortal
Post by: Kindred on February 07, 2011, 03:54:25 PM
if you are running smf 1.1.x, you will have to MANUALLY apply changes to your custom theme(s)
(this is answered in almost every single mod thread on this board)
Title: Re: TinyPortal
Post by: An0nymousHelper on February 07, 2011, 04:27:37 PM
I did that, well i did this

./Themes/default/index.template.php
Find:
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

Replace With:
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))

Find:
$current_action = 'search';

Add After:

if (isset($_GET['dl']))
$current_action = 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']) || $context['current_action']=='forum')
$current_action = 'forum';

if ($context['current_action']=='tpadmin')
$current_action = 'admin';

Find:
// Show the [help] button.

dd Before:
if($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['tp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last">&nbsp;</td>' : '';


And now i get a Forum tab in my menu but it's at the end and looks very different, heres a screenshot:

(http://i976.photobucket.com/albums/ae241/An0nymousHelper/Screenshot2011-02-07at11522PM.png)

Is this the only code i have to do? I am using SMF 1.1.11
If anyone could further assist me it would be very helpful!


Title: Re: TinyPortal
Post by: Kindred on February 07, 2011, 04:32:03 PM
custom themes often use custom menus....   You need to duplicate your existing menu designs with the new url/text
Title: Re: TinyPortal
Post by: An0nymousHelper on February 07, 2011, 04:40:18 PM
Quote from: Kindred on February 07, 2011, 04:32:03 PM
custom themes often use custom menus....   You need to duplicate your existing menu designs with the new url/text
Oh ok, you don't by any chance no a tutorial or anything on this do you lol sorry but i am fairly new to this kind of stuff, but i really have to get this up and running so if you do no one please let me no! Thanks a lot!
Title: Re: TinyPortal
Post by: IchBin™ on February 07, 2011, 04:42:48 PM
The easiest thing to do is to look at the way the buttons are coded in the template_menu() function towards the bottom of the index.template.php file. You'll likely notice that they are using different code to create the buttons. You just need to change the code to be the same as the other buttons with the exception of the bits for what the action is, and what text is shown for the button. If you still need help, post the code for your home button from the custom theme, and we can provide the changes for you.
Title: Re: TinyPortal
Post by: An0nymousHelper on February 07, 2011, 04:50:04 PM
Ok thanks, um here is my code for my home button. If you can change it to say forums and then i guess i would just take the code that you modify and paste it below the Home one since i wan't it right beside the home button. Please correct me if i am wrong.

// Show the [home] button.
echo '<li', $current_action == 'home' ? ' class="chosen"' : '', '><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
if($settings['TPortal_front_type']!='boardindex')


Thanks again!
Title: Re: TinyPortal
Post by: IchBin™ on February 07, 2011, 04:53:09 PM
Quote from: An0nymousHelper on February 07, 2011, 04:50:04 PM
Ok thanks, um here is my code for my home button. If you can change it to say forums and then i guess i would just take the code that you modify and paste it below the Home one since i wan't it right beside the home button. Please correct me if i am wrong.

// Show the [home] button.
echo '<li', $current_action == 'forum' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=forum">' , $txt['tp-forum'] , '</a></li>';


Thanks again!

Edited your code in my quote. Removed the if statement as it's not needed.
Title: Re: TinyPortal
Post by: An0nymousHelper on February 07, 2011, 06:35:30 PM
Thanks, I now have just about everything working great! Is there anyway to make it so guests can not see the shoutbox and recent topics that i have on my home page? Because I did go to the Admin CP and then went to Panels and Blocks and went to the shoutbox and recent posts and made sure that Guests were un checked where it says "Choose your membergroups that will able to see this block." But when i logout and go to http://www.MYSITE.com/forums I still see the shoutbox and recent posts, i am unable to post in the shoutbox but it is still visible. If you could let me no if there is a way i can make it them invisible unless they are logged in it would be very much appreciated! Thanks a lot!
Title: Re: TinyPortal
Post by: IchBin™ on February 07, 2011, 07:15:09 PM
That is a bug I fixed for the next release. The bug was that it shows to guests if the ungroups members was checked. If you uncheck the ungrouped members it should not show to either group.
Title: Re: TinyPortal
Post by: An0nymousHelper on February 08, 2011, 07:07:16 PM
Quote from: IchBin™ on February 07, 2011, 07:15:09 PM
That is a bug I fixed for the next release. The bug was that it shows to guests if the ungroups members was checked. If you uncheck the ungrouped members it should not show to either group.
Oh ok, well i look forward to that update :) . This may be a bug that you don't no about or maybe i am just doing something wrong, so i figure i would let you no. When i go into my forum and look at a post that i wan't on the main page i click "Promote To Frontpage " It says it's been promoted and gives me the option to "Remove from frontpage" But it never actually shows up on the main page.. The only way i can get posts on there is to go to ACP>Settings and Frontpage>Frontpage> then scroll down to "Display forum-posts on frontpage from:" and then select a board. This is an issue because i don't wan't to show every post in that board, i would rather choose certain posts to be on the frontpage. If i am doing something wrong please let me no as i've been trying to figure this out for some time now.

Thanks a lot!
Title: Re: TinyPortal
Post by: IchBin™ on February 08, 2011, 08:19:15 PM
When using the selected topics feature you must have "Selected topics only" or "Selected topics + articles" as your "What to display on front page" option in the front page settings.
Title: Re: TinyPortal
Post by: An0nymousHelper on February 10, 2011, 10:57:44 PM
I was just on another SMF site which has TinyPortal but on that one they somehow have it so guests can't see it... You were saying this is a bug. How did this person do it, like is it an easy fix i could do? This is kind of a big thing i need on my site so if anyone here knows how they did this please let me no! Thanks very much! :)
Title: Re: TinyPortal
Post by: DarkAngel612 on February 10, 2011, 11:21:54 PM
are you sure that site has the same version of smf/tp that you do? i just tried it on my site and the only way for a guest to not see a block is to uncheck both guest and ungrouped...whether or not it would affect my member I have no clue since they are in one group or another, I have no ungrouped members.
Title: Re: TinyPortal
Post by: An0nymousHelper on February 10, 2011, 11:36:45 PM
Quote from: DarkAngel612 on February 10, 2011, 11:21:54 PM
are you sure that site has the same version of smf/tp that you do? i just tried it on my site and the only way for a guest to not see a block is to uncheck both guest and ungrouped...whether or not it would affect my member I have no clue since they are in one group or another, I have no ungrouped members.
Yeah they are running smf 1.1.12... I PMed you BTW.
Title: Re: TinyPortal
Post by: DarkAngel612 on February 11, 2011, 12:03:32 AM
got it and answered -- twice cause i forgot to tell you something about that site in particular
Title: Re: TinyPortal
Post by: IchBin™ on February 11, 2011, 12:17:19 AM
Please make a backup before you do these changes. This should fix the block access problem.

In Sources/TPortal.php find this code on about line #1638
if($context['user']['is_logged'])
$mygroups[] = 0;


Comment it out like this:
//if($context['user']['is_logged'])
//$mygroups[] = 0;


Then find this line right below the above code:
$access = '(FIND_IN_SET(' . implode(', access) OR FIND_IN_SET(', $mygroups) . ', access))';

Add after that line this:

    if(allowedTo('tp_blocks') && (!empty($context['TPortal']['admin_showblocks']) || !isset($context['TPortal']['admin_showblocks'])))
$access = '1';


-----EDIT-----

Find about line #1937:
if(!$context['user']['is_logged'])
      $mygroups[] = 0;


Comment it out like this:
//if(!$context['user']['is_logged'])
    //  $mygroups[] = 0;


If that doesn't fix it, revert to the backup and let me know what the problem is.
Title: Re: TinyPortal
Post by: An0nymousHelper on February 11, 2011, 12:36:25 AM
Ok thanks ill give that a try!
Title: Re: TinyPortal
Post by: DarkAngel612 on February 11, 2011, 12:52:03 AM
I tried it...got no error message at all but looking in a different browser---not logged in i could still see the block that i had set to no guest viewing.
Title: Re: TinyPortal
Post by: An0nymousHelper on February 11, 2011, 12:57:39 AM
Hmm i tried it and got this error when i tried to go to the site...

(http://i976.photobucket.com/albums/ae241/An0nymousHelper/Screenshot2011-02-10at94542PM.jpg)

Title: Re: TinyPortal
Post by: IchBin™ on February 11, 2011, 10:48:32 AM
An0nymousHelper,

You've either removed the file or it has become corrupted. Index.php is trying to load the TPortal.php file that you just edited but cannot find it. Replace the file and try the edits again.

I have updated the above post with one more edit that needs to be done. That should fix it as I tested it myself.
Title: Re: TinyPortal
Post by: An0nymousHelper on February 11, 2011, 06:41:27 PM
ok Thanks very much it's all working great now :)
Title: Re: TinyPortal
Post by: DarkAngel612 on February 12, 2011, 04:27:31 PM
thanks this worked beautifully
Title: Re: TinyPortal
Post by: j_jindal1 on February 12, 2011, 08:00:14 PM
Need some suggestions..

I had a fresh install of SMF 1.1.13 and TinyPortal10RC1, Everything messed up as shown in the pic below..

(http://i52.tinypic.com/2ykxohg.jpg)

When I checked from admin panel I didn't find many of Menu items in TP.
(http://i52.tinypic.com/2i74s3p.jpg)

Please suggest what might be wrong here.... I tried to install it on SMF 1.1.12 as well but results were same....
Title: Re: TinyPortal
Post by: DarkAngel612 on February 12, 2011, 08:07:25 PM
i would suggest you open the zip and then upload all the fiels all over again...to the server to make sure you got them all uploaded to begin with...being a fresh install you should not have any mods installed, right?
Title: Re: TinyPortal
Post by: j_jindal1 on February 12, 2011, 08:12:02 PM
Yes it is a fresh install. Surprisingly even with TP1.05 I'm getting the same issue. I guess it has to do something with the server because I was getting errors like..

Database Error: MySQL server has gone away
File: *************/Sources/Subs-Package.php
Line: 2025

Please suggest a direct way to install the script.
Title: Re: TinyPortal
Post by: IchBin™ on February 12, 2011, 08:16:50 PM
Put these language files in your Themes/default/languages folder.
Title: Re: TinyPortal
Post by: j_jindal1 on February 12, 2011, 08:24:49 PM
I just uploaded the files as you suggested, but still the same..

I'm uploading all the files manually and trying to install TP using install script. I'll be back with the update..
Title: Re: TinyPortal
Post by: IchBin™ on February 12, 2011, 11:40:30 PM
The missing text is from missing language strings, that's why I gave you utf8 English files. What language are you using? English? English-utf8? Another langauge?
Title: Re: TinyPortal
Post by: j_jindal1 on February 13, 2011, 12:08:38 AM
I'm using English-UTF8
Title: Re: TinyPortal
Post by: IchBin™ on February 13, 2011, 12:37:37 AM
And you're still not getting any text showing up for the TP admin? If not, you should be seeing a bunch of errors in your error log. The files I posted should work, they just worked for me on a UTF8 installation.
Title: Re: TinyPortal
Post by: bigjoe11a on February 15, 2011, 04:53:02 PM
After updating from SMF 1.1.12 to 1.1.13 I see that in the TP Settings for downloads. doesn't seem to want to display right.

This is for the text header for the TP downloads section.
When I save it, This is what happens

<p>Downloads: <br></p><p><br></p>

This is what the users sees. any one have an idea on how to fix this. I wasn't doing this before the SMF update. It seems to add some html tags and it shouldn't...



Title: Re: TinyPortal
Post by: DarkAngel612 on February 15, 2011, 06:19:52 PM
here are a couple of fixes that we all needed...one for the html peeking out:

Sources/TPortalAdmin.php

Find this line:(about line #337)

global $context,$txt,$settings,$boardurl,$scripturl,$boarddir,$user_info,$db_prefix;

Change to:

global $context,$txt,$settings,$boardurl,$scripturl,$boarddir,$user_info,$db_prefix, $modSettings;


Find this line:(about line #469)

Code:
$context['TPortal']['blockedit']['body'] = html_entity_decode($row['body'], ENT_NOQUOTES);

Change to:

$context['TPortal']['blockedit']['body'] = html_entity_decode($row['body'], ENT_NOQUOTES, $modSettings['global_character_set']);



and then some of us had the \' when using the apostrophe throughout the forum and shoutbox...lol

In Sources/TPdlmanager.php on about line #2068 look for this line:

Find:
            tp_query("UPDATE " . $tp_prefix . "dlmanager SET description = '" . mysql_real_escape_string($value) . "' WHERE id=". $id, __FILE__, __LINE__);


Replace it with:
            tp_query("UPDATE " . $tp_prefix . "dlmanager SET description = '" . mysql_real_escape_string(stripslashes($value)) . "' WHERE id=". $id, __FILE__, __LINE__);





In tp-files/tp-modules/TPShout/Sources/TPShout.phpFind:
      while($row = tpdb_fetch_assoc($request))
      {

                        $row['avatar'] = $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="&nbsp;"  />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="&nbsp;" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="&nbsp;" />');
         $ns[] = template_singleshout($row);
      }


Replace with this:

      while($row = tpdb_fetch_assoc($request))
      {
            $row['value1'] = stripslashes($row['value1']);
         $row['avatar'] = $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="&nbsp;"  />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="&nbsp;" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="&nbsp;" />');
         $ns[] = template_singleshout($row);
      }

I keep a copy of fixes that IchBin and others have given me in the past for if I ever need to reup a file and lose the fix.
Title: Re: TinyPortal
Post by: bigjoe11a on February 15, 2011, 07:36:31 PM
Thanks. It's just that it didn't work. I uploaded the file to replace the old one. I log in and changed the downloads text header and I still have the same problem.

This below is how the text header for the downloads looks
<p>Downloads :</p><p>You can find just about any download here from Novalogic games. If you can't find what your looking for, Then all you have to do is ask.</p><p><br></p>

It's just not doing any thing about the html tags.
Title: Re: TinyPortal
Post by: DarkAngel612 on February 15, 2011, 09:04:45 PM
if you did both edits to that file then uploaded and overwrote the one on the server then...it should work...Try typing it again--delete the wording...save then rewrite it to see if it behaves...that is the instructions we were given and it worked for us
Title: Re: TinyPortal
Post by: bigjoe11a on February 15, 2011, 09:21:36 PM
Ok, I edited the file Sources/TPortalAdmin.php and I change the 1st one and added this on the end
, $modSettings; and then I added the this line $modSettings['global_character_set']);

to this line. I just added to the end.
$context['TPortal']['blockedit']['body'] = html_entity_decode($row['body'], ENT_NOQUOTES, $modSettings['global_character_set']);

Then I saved them and then I uploaded the file replacing the Sources/TPortalAdmin.php

And it still doesn't work. Here you can look for your self. You won't have to register.
http://www.df-barracks.com/index.php?action=tpmod;dl (http://www.df-barracks.com/index.php?action=tpmod;dl)


Title: Re: TinyPortal
Post by: DarkAngel612 on February 15, 2011, 09:40:25 PM
well not sure what is happening, but here is my file i just downloaded from the server to let you try it.
Title: Re: TinyPortal
Post by: bigjoe11a on February 15, 2011, 10:07:03 PM
Thanks. I uploaded it and replace the one I had on the server. refresh my page and I still have the same problem. There has to be a reason why it's not working.

Title: Re: TinyPortal
Post by: DarkAngel612 on February 15, 2011, 10:17:34 PM
yup  i guess we wait for the experts...I a post like yours and they pointed me in the right direction but no idea why yours doesn't want to behave.

writing down what other mods you have installed might help them to help you. I will admit on my site in the shout box it behave immediately, the other spots I had to retype the words to get it to go away, I had it in downloads...not just like yours but in the actual download descriptions, shoutbox and forums
Title: Re: TinyPortal
Post by: bigjoe11a on February 15, 2011, 10:51:04 PM
Well I haven't had any other reports my moderators yet. Thats the only thing they fount they wanted me to fix. Any way here's a list of all the mods i have installed.

   Award Mod    1.11   
   SMF 1.0.21 / 1.1.13 Update
   TinyPortal    1.102    
   PayPal BBCode    0.2    
   SMF Gallery Lite    3.0.2    
   RSS Feed Icon    1.1    
   Contact Page    2.1.1

I hope that list helps.
Title: Re: TinyPortal
Post by: IchBin™ on February 16, 2011, 11:37:38 AM
I'm not seeing your problem bigjoe11a. Is it fixed? I'm not seeing anything that you've posted. You said it was the text for the header. Are you talking about the introduction text? Please explain more if you can. Thanks.
Title: Re: TinyPortal
Post by: bigjoe11a on February 16, 2011, 12:04:23 PM
Yes I can, I removed it so that it didn't look so dumb, How ever if you look at this.

http://www.df-barracks.com/index.php?action=tpmod;dl (http://www.df-barracks.com/index.php?action=tpmod;dl)

As you can see the html tags seem to show up. Let me know if this can be fixed and if so, I hope a simple fix.

Joe

Title: Re: TinyPortal
Post by: IchBin™ on February 16, 2011, 12:13:47 PM
Yeah those issues are fixed in the next release. They are not happening on my latest test install with the fixes I've applied. Try replacing your files with these. Make a backup of your files before you do though.

Sources/TPdlmanager.php
Themes/default/TPdlmanager.template.php

Title: Re: TinyPortal
Post by: bigjoe11a on February 16, 2011, 12:42:43 PM
Thanks, How ever that still doesn't work. If you look at the link I gave above. The problem is still there.

Title: Re: TinyPortal
Post by: IchBin™ on February 16, 2011, 02:19:08 PM
Ah yes, I didn't take into account that the editor choice changes whether it is HTML or BBC. I only sorta fixed BBC last time. Here's some files to try and should work with either choice on the editor now. As usual, make a backup before replacing your files just to be safe.

Title: Re: TinyPortal
Post by: Crip on February 16, 2011, 02:27:42 PM
Got'er done B0ss. :)
Title: Re: TinyPortal
Post by: bigjoe11a on February 16, 2011, 02:35:37 PM
Cool, Thanks. That works and looks a lot better. Thank you.

Title: Re: TinyPortal
Post by: DarkAngel612 on February 16, 2011, 02:42:16 PM
I knew they could get you fixed up...the guys are super.
Title: Re: TinyPortal
Post by: bigjoe11a on February 16, 2011, 02:50:25 PM
That's why I love SMF to PHPBB. PHPBB just sucks compared to SMF.
Title: Re: TinyPortal
Post by: GerardWassink on February 17, 2011, 05:55:18 AM
Hey guys,

I just downloaded TinyPortal 1.0 RC1 as a mod and installed it over my already present SMF 1.1.13. Installed like a breeze, and I would like to tailor it now.

In my SMF I also installed the Dutch language package before I got TinyPortal.

No I go to "Settings and Frontpage" in the menu on the left and I get a screen with fields and radio buttons, but no text to the left, only white space.

This has something to do with the language package beacause when I switch my profile back to English, everything's there.

Is there a solution for this? (couldnt find a dutch language package myself).

Gerard
Title: Re: TinyPortal
Post by: agridoc on February 17, 2011, 06:57:40 AM
In SMF 2.0x English strings would be used in case  there is no translation in the selected language.

There is a Dutch TP 1.0 translation http://www.tinyportal.co.uk/index.php?action=tpmod;dl=item25  but it must be from an older version.
What you can do is copy English TP language files in a dir in your PC, rename them to TP*.dutch.php or TP*.dutch-utf8.php, in a UTF-8 installation, then copy them in /Themes/default/languages. This way you will have at least english language and not empty strings when switching to dutch.

You may compare the strings in the older version dutch translation and check if it has many differences.
Title: Re: TinyPortal
Post by: GerardWassink on February 17, 2011, 07:48:45 AM
This worked! Thanks! It's still English but hey, my users will never see this, right?

Gerard
Title: Re: TinyPortal
Post by: agridoc on February 17, 2011, 03:01:24 PM
Users interface TP features added to SMF, some strings will only be viewed by admins but many are used in user interface.
Title: Re: TinyPortal
Post by: morais17 on February 19, 2011, 08:25:48 AM
Can i use this portal on my root folder and my forum on the /forum/ folder?
Title: Re: TinyPortal
Post by: IchBin™ on February 19, 2011, 12:20:36 PM
Nope. As far as I'm aware only Simple Portal does that.
Title: Re: TinyPortal
Post by: Swifty550 on February 19, 2011, 04:22:06 PM
I'm trying to install this on a fresh SMF2.0RC5 install but when I install TinyPortal all I get is; Table 'smf.smf_tp_settings' doesn't exist


Help is appreciated please.
Title: Re: TinyPortal
Post by: siath on February 23, 2011, 01:17:54 PM
I seem to be having a problem.

My blocks are visible to guests no matter if I choose them to be visible or not.

I try to hide a block but nothing I do hides them fom guests, they can see all blocks I have.

Any ideas?

EDIT: Seems, ungrouped members Includes Guests, is that correct? There is no selection for regular members in the member group list. Mine has Guests and ungrouped members and then a list of other groups I created. Seems like Ungrouped members should be Members. Is there a way to fix this?
Title: Re: TinyPortal
Post by: bigjoe11a on February 23, 2011, 02:12:25 PM
Make sure that the groups is setup not to view and see blocks. That you want. I think theres a option for that. I don't know if that works both ways.

create a new block and take view for all members including guest. and then log out.
Go to the portal and look to see if you can see the block. If yes. You mite have to ask some one else. Then again. Let me test this and I'll let you know.

Title: Re: TinyPortal
Post by: siath on February 23, 2011, 02:20:14 PM
I'm narrowed the problem to this.

I have one post based group called Members (this is the default group members are added into.) I can't remove it.

All the rest are non post based groups.

However, when looking at blocks or anything with permissions (articles). the members group doesn't show. The ungrouped members does with is the non past based member group. I think they're conflicting or something as members (post based) is a child of regular members.

I don't know of any way to make SMF no use posted based groups at all or even to remove the members group itself.

I checked and it's the same thing on a buddies forum too guests can see all blocks.

function get_grps seems like the culprit.
Title: Re: TinyPortal
Post by: bigjoe11a on February 23, 2011, 02:34:14 PM
Quote from: siath on February 23, 2011, 02:20:14 PM
I'm narrowed the problem to this.

I have one post based group called Members (this is the default group members are added into.) I can't remove it.

All the rest are non post based groups.

However, when looking at blocks or anything with permissions (articles). the members group doesn't show. The ungrouped members does with is the non past based member group. I think they're conflicting or something as members (post based) is a child of regular members.

I don't know of any way to make SMF no use posted based groups at all or even to remove the members group itself.

I checked and it's the same thing on a buddies forum too guests can see all blocks.

function get_grps seems like the culprit.

More then likely. Yes. Your right. See I created a new block, and I set it up so no one can view it and that works. So the problem is Ungrouped members. If you uncheck that and log out. The block you don't want guests to see is gone. When I log in as a Ungrouped member I can see it.

So the problem is telling who is a guest and who is log in and if they are not assigned to a group.
See guest are all so in that same group call Ungrouped members. so this may be a bug in the Portal. You may want to ask about this mod is Mod support.


Title: Re: TinyPortal
Post by: siath on February 23, 2011, 03:04:20 PM
Sorry, I thought this was the help thread for this mod, where do I need to post about this problem? Since this seems to be broken pretty badly as you can't hide blocks from guests and still have members see them.
Title: Re: TinyPortal
Post by: Spoogs on February 23, 2011, 03:18:49 PM
I havent used TP but isnt there an option when you create or edit a block to determine if guests can see it or not.

And no guests are not a part of the ungrouped
Guests =  anyone not logged into the forum
Ungrouped = anyone not assigned to a primary membergroup.
Title: Re: TinyPortal
Post by: IchBin™ on February 23, 2011, 03:22:10 PM
If you read back a within the last few pages, this issue has already been dealt with.
Title: Re: TinyPortal
Post by: bigjoe11a on February 23, 2011, 03:26:15 PM
In Mods Support
Title: Re: TinyPortal
Post by: IchBin™ on February 23, 2011, 03:36:24 PM
http://www.simplemachines.org/community/index.php?topic=27642.msg2947765#msg2947765
Title: Re: TinyPortal
Post by: siath on February 23, 2011, 03:58:06 PM
Sorry about that, I found your fix. I did a search but didn't find anything on it. I'ts a bit hard to follo 50 plus pages of stuff. :P
Title: Re: TinyPortal
Post by: bigjoe11a on February 23, 2011, 06:49:58 PM
Quote from: Spoogs on February 23, 2011, 03:18:49 PM
I havent used TP but isnt there an option when you create or edit a block to determine if guests can see it or not.

And no guests are not a part of the ungrouped
Guests =  anyone not logged into the forum
Ungrouped = anyone not assigned to a primary membergroup.

Sorry. Spoogs. I just tried that my self. If I create a new block and give access to guest and Ungrouped Members and then log out. I should be able to see the block. So I log in again and uncheck the box for Guests and went back to the portal and log out again. That block is still viewable by guest. I will try it it again to make sure and let you know.

Title: Re: TinyPortal
Post by: bigjoe11a on February 23, 2011, 06:57:30 PM
Quote from: siath on February 23, 2011, 03:58:06 PM
Sorry about that, I found your fix. I did a search but didn't find anything on it. I'ts a bit hard to follo 50 plus pages of stuff. :P

Siath, If you don't want guests viewing the block you want to hide. You must uncheck both of them. Uncheck guests and Ungrouped Members

I just tested that again and that's how it works on my portal.
Title: Re: TinyPortal
Post by: Spoogs on February 23, 2011, 07:11:16 PM
Apparently this is a bug in the mod, Ichbin posted a link to a fix a few posts up ;)
Title: Re: TinyPortal
Post by: bigjoe11a on February 23, 2011, 07:44:53 PM
Quote from: IchBin™ on February 16, 2011, 02:19:08 PM
Ah yes, I didn't take into account that the editor choice changes whether it is HTML or BBC. I only sorta fixed BBC last time. Here's some files to try and should work with either choice on the editor now. As usual, make a backup before replacing your files just to be safe.


Hey IchBin..
I forgot to tell you that I upgaded my version to 2.0 RC5 and I tried the updated parts for the portal. and they didn't work this time.

The Download header is all messed up like before and as you know the guest access problem that I didn't know about. Lucky thing I had a back up. LOL

Any way sorry I will need a new fix and that other guy will need it too.

Before I forget I'm using TinyPortal    1.102
Title: Re: TinyPortal
Post by: IchBin™ on February 23, 2011, 08:27:45 PM
I don't know what you are talking about when you say your download header is messed up. Guest access fix has already been provided.
Title: Re: TinyPortal
Post by: bigjoe11a on February 23, 2011, 08:52:59 PM
Quote from: IchBin™ on February 23, 2011, 08:27:45 PM
I don't know what you are talking about when you say your download header is messed up. Guest access fix has already been provided.

Sorry I should have given more details. the download header part. Look below

<p>Downloads:</p><p>If you don't see a file, sample or tool you need. Please ask us. I'm sure my staff will help you in some way. <br></p><p><br></p><p><br></p>

This is how it looks. You did give me a fix for this. How ever I tried to apply that fix in the portal that I have now. The only thing that I changed was I updated my SMF to RC5. and I tried to apply your updates. and I got errors. Like tables missing and not able to read the mysql database.

and as for the fix you added the guest access. The options I was to comment out or add. Don't exist.
any ideas.



Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 12:55:43 PM
Well, when upgrading between RC's you'll lose all your changes once you install the mod again. If you can't figure out how to do the modifications, post your file and I'll do them for you.
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 02:06:20 PM
Ok, here one. are there any others you need. Let me know. witch ones..



Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 02:13:48 PM
Need TPdlmanager.php as well.

ETA: Added fixed TPortal.php to my post.
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 02:37:12 PM
Ok, here you go
Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 03:02:09 PM
One thing you need to do is use a good editor. Whatever editor you are using is adding extra lines and stuff all over the place. That is probably the reason you can't find the code. Use the search feature to search for lines instead of just going to the line numbers I specified. File attached, and removed all the extra lines your editor added.
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 03:27:31 PM
Quote from: IchBin™ on February 24, 2011, 03:02:09 PM
One thing you need to do is use a good editor. Whatever editor you are using is adding extra lines and stuff all over the place. That is probably the reason you can't find the code. Use the search feature to search for lines instead of just going to the line numbers I specified. File attached, and removed all the extra lines your editor added.

Thanks it's just that I got one error on your update.

Parse error: syntax error, unexpected T_IF in /home/dfbarrac/public_html/Sources/TPdlmanager.php on line 1

I had to upload a back up for it
Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 04:26:55 PM
Updated the post above. Try the file again. I think there was something screwy with the line formatting. Are you opening your files on a Mac?
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 04:41:25 PM
Quote from: IchBin™ on February 24, 2011, 04:26:55 PM
Updated the post above. Try the file again. I think there was something screwy with the line formatting. Are you opening your files on a Mac?

I'm still getting an error of

Unknown column 'dlm.authorID' in 'field list'
File: /home/dfbarrac/public_html/Sources/TPdlmanager.php
Line: 408

and No I'm not using MAC, I windows notepad. Are you telling me I have to edit the file that your sending me or ?...

Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 04:51:58 PM
Your install must of not worked then. The file you attached is the file from the TP install for SMF1.1.x. You need to upload all the files for the RC4 install. Follow the manual instructions from the mod page when clicking parse for your verison of SMF. You'll likely then need to make the edits to the new files that have been uploaded as well.
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 05:04:01 PM
Then I'm lost now. I did upload all the files in the RC4 in the root folder. Just like it says to do.

Let me try uploading all the file for TP in the RC4 folder again and see what happens.

Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 05:07:22 PM
Well some how or another it didn't overwrite the files. You can see the SMF version at the very top of the file you attached.

--edit--

I would highly suggest you don't use windows notepad. It does nothing but screw stuff up. If you would like to try out a free version of a nice text editor, give Notepad++ a try. It's 100x better than windows notepad.
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 05:33:46 PM
Quote from: IchBin™ on February 24, 2011, 04:26:55 PM
Updated the post above. Try the file again. I think there was something screwy with the line formatting. Are you opening your files on a Mac?

I'm still getting an error of

Unknown column 'dlm.authorID' in 'field list'
File: /home/dfbarrac/public_html/Sources/TPdlmanager.php
Line: 408

and No I'm not using MAC, I windows notepad. Are you telling me I have to edit the file that your sending me or ?...

Quote from: IchBin™ on February 24, 2011, 05:07:22 PM
Well some how or another it didn't overwrite the files. You can see the SMF version at the very top of the file you attached.

--edit--

I would highly suggest you don't use windows notepad. It does nothing but screw stuff up. If you would like to try out a free version of a nice text editor, give Notepad++ a try. It's 100x better than windows notepad.

Ok I check that and I tried to update each one at a time.

I started with RC1 and updated all the way to RC4. and nothing I tried seems to want to update my version of TP. It's stuck on RC1

If I try and uninstall TP will that remove all the tables and what I all ready have setup. For some reason. the updates are not working.

UPDATE:

Modification Packages
TinyPortal    1.102  <<-- I don't think that's right. Wrong version.


Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 05:47:36 PM
1.102 is the internal version. It's the correct one for the latest TP install.

No I'm not telling you to edit the files that I attached.

RC1 is the latest version of TP, there's no need to do anything else. If you still have the same error, it is because your file is not updating or not getting overwritten when you upload it. authorID only works in SMF1.x. As you can see if you compare the lines that your error is on in both the SMF1 and SMF2 install, you can see they are totally different.

SMF1
$request = tp_query("SELECT dlm.id, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.authorID, dlm.created, dlm.screenshot, dlm.filesize,

SMF2
$request = tp_query("SELECT dlm.id, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.author_id as authorID, dlm.created, dlm.screenshot, dlm.filesize,

See the differences between the authorID parts? You need to upload the files again and then verify that those files have all been overwritten.
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 05:59:32 PM
I just check. all the files in all the folders say the same thing at he top.

So RC1, RC2, RC3 and RC4 all have the label at the top. So I'm confused

/******************************************************************************
* TPortal.php                                                                   *
*******************************************************************************
* TP version: 1.0 RC1                                                                                                      *
* Software Version:           SMF 2.0                                                                                      *
* Software by:                Bloc (http://www.tinyportal.net)                                                      *
* Copyright 2005-2010 by:     Bloc ([email protected])                                                         *
* Support, News, Updates at:  http://www.tinyportal.net                   *
*******************************************************************************/
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 06:01:00 PM
Quote from: IchBin™ on February 24, 2011, 05:47:36 PM
1.102 is the internal version. It's the correct one for the latest TP install.

No I'm not telling you to edit the files that I attached.

RC1 is the latest version of TP, there's no need to do anything else. If you still have the same error, it is because your file is not updating or not getting overwritten when you upload it. authorID only works in SMF1.x. As you can see if you compare the lines that your error is on in both the SMF1 and SMF2 install, you can see they are totally different.

SMF1
$request = tp_query("SELECT dlm.id, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.authorID, dlm.created, dlm.screenshot, dlm.filesize,

SMF2
$request = tp_query("SELECT dlm.id, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.author_id as authorID, dlm.created, dlm.screenshot, dlm.filesize,

See the differences between the authorID parts? You need to upload the files again and then verify that those files have all been overwritten.

Ok, I'll try again.
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 06:29:10 PM
well I tried to upload all the files in the RC4 folder and it said it over wrote every thing. and it still says TP RC1. So I don't know what to do.

Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 07:23:00 PM
It SHOULD say TP1RC1. What it should NOT say at the top of your files is SMF1.x if you are using SMF2.x. If you are still having the error, please post the error again so that I can make sure it didn't change, and also post the file.
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 07:41:59 PM
Quote from: IchBin™ on February 24, 2011, 07:23:00 PM
It SHOULD say TP1RC1. What it should NOT say at the top of your files is SMF1.x if you are using SMF2.x. If you are still having the error, please post the error again so that I can make sure it didn't change, and also post the file.

This is a tpdlmanager.php file. The one I have in the RC4 folder in the you sent me. ok, It says SMF 2.0 and TP version: 1.0 RC1. I got theses files from TinyPortal10rc1.zip from the download from the main mod downloads section.

/******************************************************************************
* TPdlmanager.php                                                                   *
*******************************************************************************
* TP version: 1.0 RC1                                                                                                      *
* Software Version:           SMF 2.0                                                                                      *
* Software by:                Bloc (http://www.tinyportal.net)                                                      *
* Copyright 2005-2010 by:     Bloc ([email protected])                                                         *
* Support, News, Updates at:  http://www.tinyportal.net                   *
*******************************************************************************/

Ok, This is what the problem is
1)
<p>Downloads:</p><p>If you don't see a file, sample or tool you need. Please ask us. I'm sure my staff will help you in some way. <br></p><p><br></p><p><br></p>

The one above is the same problem I had before. This is what all users see when they click on downloads. This is the header for the downloads section,

2)
The 2nd problem is the guests. that can still see blocks. If I log in and create a new block. and then I display the portal index. You should be able to see the block. How ever when the premissions for the guests is removed. The guests can still see the block. If you remove the premissions for Ungroup Groups. then guests can not see the block

I hope a some more details to give you an idea of what the problem is. There's only 2.

Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2011, 08:31:14 PM
Ok, so you are not experiencing the error that you posted, now you are back to the problems that I have already posted. To fix the guest access you make these changes to your files:
http://www.simplemachines.org/community/index.php?topic=27642.msg2947765#msg2947765

To fix the download manager description you open Sources/TPdlmanager.php file.

Find this code:
    // load the dlmanager frontpage
    if($context['TPortal']['dlaction']=='')
    {


Add this after that code:
        if($context['TPortal']['dl_wysiwyg'] == 'bbc')
            $context['TPortal']['dl_introtext'] = parse_bbc($context['TPortal']['dl_introtext']);
        else
            $context['TPortal']['dl_introtext'] = html_entity_decode($context['TPortal']['dl_introtext']);
Title: Re: TinyPortal
Post by: bigjoe11a on February 24, 2011, 09:19:35 PM
That's why I was having so many problems. I fount out why and fix it and I changed the options you wanted me to change. and it all works.

Thanks IchBin.

See this is what I fount out. The files that I had on the server were not being updated or could I over write them when I uploaded them. and I have no idea why. So what I had to do was delete all my backups and download the root folder again. Then I made a copy of that and fount that the files I was using were for SMF 1.1.x. So then I copied the newer files over and edited them. Then I reuploaded the changed files and well it works.

Thank you very much. That's one I owe you.

Joe
Title: Re: TinyPortal
Post by: reinner on February 25, 2011, 08:45:45 AM
Hi,

I installed this mod. Icons does not display anymore in my theme and in the default them.
I need help Please. What should I do? I can give test admin account if needed.

Good day to all
Title: Re: TinyPortal
Post by: IchBin™ on February 25, 2011, 09:58:42 AM
Right click on the icon and look at the location of where the icon is supposed to be. Go to that location in your FTP client. If the icon is not there, and it is a TP icon, then pull it out of the zip and put it where it needs to be.
Title: Re: TinyPortal
Post by: serlokjolms on February 25, 2011, 08:14:43 PM
excellent portal, but i have a problem

i can't enter to portal from www.mysite.com, only can enter from www.mysite.com/forum (smf 2 rc5)

what can i do?
Title: Re: TinyPortal
Post by: DarkAngel612 on February 25, 2011, 08:17:11 PM
Quote from: serlokjolms on February 25, 2011, 08:14:43 PM
excellent portal, but i have a problem

i can't enter to portal from www.mysite.com (http://www.mysite.com), only can enter from www.mysite.com/forum (http://www.mysite.com/forum) (smf 2 rc5)

what can i do?

for you to get better answers it is best to add your real link so that they may check things out...even if you place spaces in the name
Title: Re: TinyPortal
Post by: serlokjolms on February 25, 2011, 08:26:27 PM
Quote from: DarkAngel612 on February 25, 2011, 08:17:11 PM
Quote from: serlokjolms on February 25, 2011, 08:14:43 PM
excellent portal, but i have a problem

i can't enter to portal from www.mysite.com (http://www.mysite.com), only can enter from www.mysite.com/forum (http://www.mysite.com/forum) (smf 2 rc5)

what can i do?

for you to get better answers it is best to add your real link so that they may check things out...even if you place spaces in the name

Sorry, is a pre-alpha site, from www.reparandopc.com can't enter, but www.reparandopc.com/foro yes
Title: Re: TinyPortal
Post by: DarkAngel612 on February 25, 2011, 10:21:03 PM
Quote from: serlokjolms

Sorry, is a pre-alpha site, from www.reparandopc.com (http://www.reparandopc.com) can't enter, but www.reparandopc.com/foro (http://www.reparandopc.com/foro) yes

well let me try this again since the page refreshed taking away my entire answer

the first link will lead you to your server files---that is why forbidden--this is good

the second link is surely where your forum is located--that one is right but

to get to your portal only the link should be www.reparandopc.com (http://www.reparandopc.com/)/foro  -- the reason is that your forum is in the foro folder like mine is http://thefantasiesattic.net/attic that will take you to my portal and adding /forum will take you to the forum entry page.

I hope I did not confuse you too much.
Title: Re: TinyPortal
Post by: IchBin™ on February 25, 2011, 10:32:41 PM
TinyPortal is not a stand alone portal. It is a mod that works only in the forum. So it will put a frontpage on your forum. If you want you can move your forum to the root of your site. This would make http:www.reparandopc.com your tinyportal frontpage, then you would accesss your forum like this:  hxxp:www.reparandopc.com/index.php?action=forum.

If you want your portal in a different directory than your forum, you'll have to use Simple Portal. It is the only stand alone portal that I know for SMF. It's a good portal too. Up to you really.
Title: Re: TinyPortal
Post by: !RFAN on February 26, 2011, 04:01:41 AM
I cant access my website on cell phone? Is this because of TP?
Title: Re: TinyPortal
Post by: IchBin™ on February 26, 2011, 10:48:15 AM
Nope it shouldn't be a problem with TP.
Title: Re: TinyPortal
Post by: Masterd on February 26, 2011, 01:00:57 PM
Why the integrated calendar is not working on both SMF 1.1.x and SMF 2.0?
Title: Re: TinyPortal
Post by: IchBin™ on February 26, 2011, 02:55:26 PM
Integrated calendar? There is no integrated Calendar in TP. Are you talking about the block code snippet? There is a bug with conversion when it imports that code currently. You can go through and fix the code by replacing all the HTML entities with the real characters if you need to.
Title: Re: TinyPortal
Post by: j_jindal1 on February 26, 2011, 11:12:14 PM
Hi Bloc/IchBin,

can you please help me in installing tinyportal. I'm trying to install Tinyportal on SMF1.1.13, and everytime I get this error.

Database Error: MySQL server has gone away
File: /home/****/public_html/****/Sources/Subs-Package.php
Line: 2025

Moreover after this issue, the folders created by tinyportal needs to be reset for their ownership. I need to contact the host for deleting those folders. Is it a server side issue.. ?? I tries installing many other scripts like joomla, coppermine etc, but didn't get this issue anywhere else.. Can you please tell me why it happened.. :)

Thanks
Title: Re: TinyPortal
Post by: IchBin™ on February 27, 2011, 12:46:59 PM
The both errors are caused by the server. The mysql server has gone away and the file permissions problem both need to be taken to your host as there is nothing I can do about them.

The owner ship problem generally stems from the server using the apache user instead of your user to create and install.

The mysql gone away can be caused if the server has the value for max_allowed_packet set to low in mysql. The server admin should be able to tell you what the problem is better though.
Title: Re: TinyPortal
Post by: James Main on February 27, 2011, 12:58:54 PM
I need help picking a portal I am somewhat lost with the options so far. I am running 2.0 rc5 and currently have the forum as a add on to my fishing website I am thinking at some time I may want to drop the front website and just use the SMF with a portal to be the entire site. site is www.mscst.com  forum is www.mscst.com/SMF/index.php any ideas or suggestions?
Title: Re: TinyPortal
Post by: IchBin™ on February 27, 2011, 01:00:36 PM
I'd suggest you setup a test install of SMF and install the portals that you would like to try out. You can then play with each portal and see which one suits you best.
Title: Re: TinyPortal
Post by: Masterd on February 27, 2011, 01:54:12 PM
Quote from: IchBin™ on February 26, 2011, 02:55:26 PM
Integrated calendar? There is no integrated Calendar in TP. Are you talking about the block code snippet? There is a bug with conversion when it imports that code currently. You can go through and fix the code by replacing all the HTML entities with the real characters if you need to.

Yes, I was talking about the Bloc's calendar. Thank you, I will try to do that.
Title: Re: TinyPortal
Post by: reinner on February 27, 2011, 03:32:01 PM
Hi,

I am getting this error
/index.php?pretty;action=profile
Undefined index: label
public_html/Themes/default/languages/TPShout.english.php (generic_menu_dropdown_above sub template - eval?)
Line: 171 "

What should I do?

Regards to all.
Title: Re: TinyPortal
Post by: Masterd on February 28, 2011, 08:13:22 AM
That's an evaluation error.

How to Enable / Disable eval() (http://www.simplemachines.org/community/index.php?topic=290186.0)
Title: Re: TinyPortal
Post by: Arantor on February 28, 2011, 08:27:03 AM
Quote from: Masterd on February 28, 2011, 08:13:22 AM
That's an evaluation error.

How to Enable / Disable eval() (http://www.simplemachines.org/community/index.php?topic=290186.0)

Which doesn't seem to explain how to turn it off in 2.0 RCs when it's actually an admin panel option...
Title: Re: TinyPortal
Post by: PetruZ on February 28, 2011, 11:54:20 AM
I have installed Tinyportal and have added the "Shoutbox" box, the thing is that the text that you type is light-gray and the background of the text is white so it's hard to see what you've written. I'm wondering if there's a way to change the text color.

Thank you.
-PetruZ
Title: Re: TinyPortal
Post by: IchBin™ on February 28, 2011, 12:11:24 PM
There sure is. It depends on the theme what colors are called. If you use something like firebug (link in my sig), you can find where you need to change those colors very easily. If you can't figure it out, post a link so we can see.
Title: Re: TinyPortal
Post by: PetruZ on February 28, 2011, 01:18:33 PM
I'm using the theme called BlackWood. And I want to make so everyone sees another color, not just me. Please help!
-PetruZ
Title: Re: TinyPortal
Post by: IchBin™ on February 28, 2011, 01:29:44 PM
Quote from: IchBin™ on February 28, 2011, 12:11:24 PM
There sure is. It depends on the theme what colors are called. If you use something like firebug (link in my sig), you can find where you need to change those colors very easily. If you can't figure it out, post a link so we can see.

If you want some help, you have to do what we ask in order for us to help you.
Title: Re: TinyPortal
Post by: PetruZ on February 28, 2011, 01:33:52 PM
But using firebug finding the code and replace the color of the text in the code, won't that just change that text that I'm changing? I want so when you type a new message, the same color pops up and I don't have to go into the code and change it. Or will this do it?
Title: Re: TinyPortal
Post by: IchBin™ on February 28, 2011, 01:38:04 PM
So when you see where you need to change the text, you look in the right panel of firebug and it tells you what line in the css file that you need to look for to alter it. Once you make the change in the css file, it is permanent for everyone else including you.
Title: Re: TinyPortal
Post by: PetruZ on March 01, 2011, 01:31:32 AM
I tried but didn't find any color code, could you check yourself and post the code?
http://borealisrp.totalh.com/
Title: Re: TinyPortal
Post by: eyo on March 01, 2011, 06:28:16 AM
please make tp reviews easy to use and install. :) its what ive been trying to use all this time
Title: Re: TinyPortal
Post by: IchBin™ on March 01, 2011, 10:19:12 AM
Quote from: PetruZ on March 01, 2011, 01:31:32 AM
I tried but didn't find any color code, could you check yourself and post the code?
http://borealisrp.totalh.com/

In the TPShout.css file look for this line:
.tp_shoutbody {

Add the color to that section.
Quote from: eyo on March 01, 2011, 06:28:16 AM
please make tp reviews easy to use and install. :) its what ive been trying to use all this time

That module hasn't been touched for a long time. It's unsupported at this time.
Title: Re: TinyPortal
Post by: woodsters on March 01, 2011, 07:25:13 PM
Quote from: IchBin™ on March 01, 2011, 10:19:12 AMIn the TPShout.css file look for this line:
.tp_shoutbody {

Add the color to that section.

How would that be written?

Here's what it says. I want the text to be red.

Quote.tp_shoutbody
{
   background: #fff;
   border: solid 1px #888;
   border-top: none;
          line-height: 1.3em;
   margin: 0 5px 8px 0;
   padding: 8px;
   font-size: 0.9em;
          overflow: auto;
}
Title: Re: TinyPortal
Post by: IchBin™ on March 01, 2011, 07:39:12 PM
Google is your friend mate.
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=css+font+color

color: #000000;
Title: Re: TinyPortal
Post by: woodsters on March 01, 2011, 07:49:27 PM
Thanks...I had done that exact thing before, but it didn't work....now it does...hmmm oh well...like I said, thanks!
Title: Re: TinyPortal
Post by: !RFAN on March 02, 2011, 03:50:12 AM
when i enabled Mini Calender in a block i'm getting this error in place of calender.
Parse error: syntax error, unexpected T_STRING in /home/xxxx/public_html/Sources/Load.php(2645) : eval()'d code(112) : eval()'d code on line 41
Title: Re: TinyPortal
Post by: Masterd on March 02, 2011, 05:03:16 AM
Quote from: !RFAN on March 02, 2011, 03:50:12 AM
when i enabled Mini Calender in a block i'm getting this error in place of calender.
Parse error: syntax error, unexpected T_STRING in /home/xxxx/public_html/Sources/Load.php(2645) : eval()'d code(112) : eval()'d code on line 41

http://www.simplemachines.org/community/index.php?topic=27642.msg2969513#msg2969513 (http://www.simplemachines.org/community/index.php?topic=27642.msg2969513#msg2969513)
Title: Re: TinyPortal
Post by: bigjoe11a on March 04, 2011, 06:34:59 PM
I installed the mod called


AjaxChat Integration    3.2.1 (modified for SMF 2 RC3)

and when I load the chat page up. I get this error. Can any one tell me how to fix this

Notice: Undefined index: show_download in /home/dfbarrac/public_html/Sources/TPSubs.php on line 201



Title: Re: TinyPortal
Post by: IchBin™ on March 04, 2011, 07:30:35 PM
I've fixed this in the next version of TP.

A fix has been posted here.
http://www.simplemachines.org/community/index.php?topic=137508.msg2813098#msg2813098
Title: Re: TinyPortal
Post by: bigjoe11a on March 04, 2011, 08:11:58 PM
Cool, That fixed one thing and the other problem why it won't work. Now. The other problem is. Is it required for the users to log in to chat. when I log out. It returned me to the Chat log in. Theres no link to take me back to the Portal or Index.

Title: Re: TinyPortal
Post by: IchBin™ on March 04, 2011, 10:46:28 PM
I have no idea how the chat works. You'll have to ask the mod author of your chat that question.
Title: Re: TinyPortal
Post by: gvalfer on March 06, 2011, 08:33:38 PM
How to install just the database?
I did the manual install, but lacks the database
Title: Re: TinyPortal
Post by: IchBin™ on March 07, 2011, 10:48:20 AM
You should be able to run the tp_upgrade.php file from the package. If you're using SMF2 use the file that is in the SMF2RC3 folder.
Title: Re: TinyPortal
Post by: bigjoe11a on March 07, 2011, 05:53:48 PM
I wanted to do is add a block that will display the most 5 resent downloads. With any image that has been uploaded and then the description and last the link for the file. I was looking threw it and I didn't see that option. Any one have any ideas on how to add some thing like that.

Joe
Title: Re: TinyPortal
Post by: IchBin™ on March 08, 2011, 10:45:52 AM
If there is anything already made, it will be at the TP site.
Title: Re: TinyPortal
Post by: bigjoe11a on March 10, 2011, 09:25:56 PM
Quote from: IchBin™ on March 08, 2011, 10:45:52 AM
If there is anything already made, it will be at the TP site.

Do you know the web site url. I can't seem to find it.
Title: Re: TinyPortal
Post by: IchBin™ on March 10, 2011, 09:30:55 PM
www.tinyportal.co.uk
Title: Re: TinyPortal
Post by: bigjoe11a on March 10, 2011, 09:37:05 PM
Cool, Thank You
Title: Re: TinyPortal
Post by: IchBin™ on March 12, 2011, 03:58:43 PM
Sorry but I don't understand your issue. Can you explain what the problem is? Please post any code using the [code][/code] tags.
Title: Re: TinyPortal
Post by: Arantor on March 12, 2011, 04:16:20 PM
-sigh- When I told you to go see TinyPortal, I meant the link right there in the code you posted... the one that indicates where it came from...
Title: Re: TinyPortal
Post by: reinner on March 13, 2011, 04:58:03 AM
Hi,

How can I revert this to it's default settings?

Cheers to all

I am using 2.0 RC5
Title: Re: TinyPortal
Post by: IchBin™ on March 14, 2011, 10:45:22 AM
You can backup your tp_ tables, remove them and then run the upgrade.php script to insert the tables again.
Title: Re: TinyPortal
Post by: briggz5d on March 15, 2011, 02:04:42 PM
Tiny portal options in admin panel Don't show ENglish Or any other language. Just blank making it impossible for me to CHOOSE options.

Help!
Title: Re: TinyPortal
Post by: IchBin™ on March 15, 2011, 02:17:48 PM
That is probably because you are running a language without the language files. You haven't specified anything that you're using though, so I wouldn't know exactly what version of TP/SMF you are using. Nor what language you are using. Try changing your forum language to English (NOT English-utf8) and see if it works for you. If it does, then you need to get the utf8 files from the TinyPortal site if you want to use a utf8 language set.
Title: Re: TinyPortal
Post by: reinner on March 16, 2011, 04:27:45 PM
Quote from: IchBin™ on March 14, 2011, 10:45:22 AM
You can backup your tp_ tables, remove them and then run the upgrade.php script to insert the tables again.

Thank you for your reply!

Another question how could I put images from my gallery?
Please see the attached image.
Title: Re: TinyPortal
Post by: IchBin™ on March 17, 2011, 12:02:10 PM
Put them? Do what with them? Where do you want them?
Title: Re: TinyPortal
Post by: DarkAngel612 on March 17, 2011, 04:50:08 PM
and tell them what gallery you be using too so they can help you even better...tis some things I always forget to tell them too so you are not the only one.
Title: Re: TinyPortal
Post by: ironhide1 on March 18, 2011, 09:01:53 PM
Quote from: Bloc on August 28, 2010, 09:03:34 PM
Thats because the TP admin stuff are in its own menu on top. Try finding that and you will get inside TP admin. Or...just go to "/index.php?action=tpadmin".

Running RC5 and just installed TP 1.102
I'm having the same issue where the TP admin stuff is not showing up even @ the top. Not creating the nav link..
When I try to access the URL  "/index.php?action=tpadmin" I get a message that I'm not allowed to access that article. I've installed twice both clean with no MODS and still can not get this to work.
I can't leave it installed until I can get to the ADMIN section where I can adjust the content areas.
Any help or suggestion would be greatly appreciated.
Thanks
Title: Re: TinyPortal
Post by: DarkAngel612 on March 18, 2011, 10:13:40 PM

Quote from: Bloc on August 28, 2010, 09:03:34 PM
Thats because the TP admin stuff are in its own menu on top. Try finding that and you will get inside TP admin. Or...just go to "/index.php?action=tpadmin".


no help from me but just curious, is this the way smf 2 sees admin section? unlike 1.1.13 that sees it as ?action=admin with no added tp?
Title: Re: TinyPortal
Post by: Arantor on March 18, 2011, 10:15:31 PM
Quoteno help from me but just curious, is this the way smf 2 sees admin section?

Not normally. In 1.1.x, each area of the admin panel was its own action, in 2.0, everything was pulled under action=admin. But I guess where the mod has 1.1.x roots, it still uses action=tpadmin for its own administration just because it's easier to keep the two branches in sync with each other.
Title: Re: TinyPortal
Post by: DarkAngel612 on March 18, 2011, 10:53:35 PM
thanks for explaining
Title: Re: TinyPortal
Post by: bloc on March 19, 2011, 05:40:09 AM
Quote from: Arantor on March 18, 2011, 10:15:31 PM
Quoteno help from me but just curious, is this the way smf 2 sees admin section?

Not normally. In 1.1.x, each area of the admin panel was its own action, in 2.0, everything was pulled under action=admin. But I guess where the mod has 1.1.x roots, it still uses action=tpadmin for its own administration just because it's easier to keep the two branches in sync with each other.

Yes, that was the reason. If TP was only for SMF 2.0 it would prob. been added into the normal admin area. Of course, another reason is the sheer size - I had so many sections for TP admin that it seemed the best way was to simply add a new "action" instead.
Title: Re: TinyPortal
Post by: DarkAngel612 on March 19, 2011, 02:40:06 PM
thanks for explaining...curiosity you know gets the better of one at times...but that is how we learn or at least try to understand some why's and wherefore's

you all do great thanks for a wonderful product
Title: Re: TinyPortal
Post by: ccleanerfan on March 22, 2011, 10:05:41 PM
The package installer doesnt seem to be supporting RC5 at all..
Title: Re: TinyPortal
Post by: redone on March 22, 2011, 10:12:12 PM
Quote from: ccleanerfan on March 22, 2011, 10:05:41 PM
The package installer doesnt seem to be supporting RC5 at all..
Installs for me just fine, what error messages are you getting?

~RedOne
Title: Re: TinyPortal
Post by: ccleanerfan on March 22, 2011, 10:15:19 PM
Quote from: RedOne on March 22, 2011, 10:12:12 PM
Quote from: ccleanerfan on March 22, 2011, 10:05:41 PM
The package installer doesnt seem to be supporting RC5 at all..
Installs for me just fine, what error messages are you getting?

~RedOne

Execute Modification   SMF2RC4/tinyportal200rc4.mod   Modification parse error
8.   Adapt Database   SMF2RC3/tp_upgrade.php
Title: Re: TinyPortal
Post by: IchBin™ on March 23, 2011, 10:06:43 AM
Modification parse errors are usually caused by a permission problem on the server. Check to make sure all your files and folders are writable by the web server user. If you don't know how to figure that out you'll need to ask your host.
Title: Re: TinyPortal
Post by: ccleanerfan on March 23, 2011, 10:28:43 PM
Quote from: IchBin™ on March 23, 2011, 10:06:43 AM
Modification parse errors are usually caused by a permission problem on the server. Check to make sure all your files and folders are writable by the web server user. If you don't know how to figure that out you'll need to ask your host.

i chmoded all files AND folders to 777 and I still can't install it. I might as well go to smf1...

Fatal error: require() [function.require]: Failed opening required '/home/u435574674/public_html/Packages/temp/SMF2RC3/tp_upgrade.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/u435574674/public_html/Sources/Packages.php on line 958
Title: Re: TinyPortal
Post by: IchBin™ on March 23, 2011, 11:27:43 PM
It's a server configuration issue. I don't know exactly what causes it though. Try and remove any package you have uploaded for the install. Then create a folder in your Packages folder called TP, then upload all the files from the package to that folder. Go back into the package manager and see if it will install. By clicking on the link that should have been created by uploading the files to the packages folder.
Title: Re: TinyPortal
Post by: xrunner on April 01, 2011, 11:19:18 AM
I have installed Tiny Portal but the users have noticed that the Shout Box doesn't update automatically. It will update with your own shout but until the page refreshes it does not show other shouts at all. Is this by design?
Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2011, 11:22:13 AM
It's not an ajax shoutbox. It only updates when you refresh the page. I have plans to add a button to update it with ajax without refreshing the page, but I'm not going to make it a chat box so that it updates automatically.
Title: Re: TinyPortal
Post by: xrunner on April 01, 2011, 11:24:48 AM
Quote from: Greg Brady on April 01, 2011, 11:22:13 AM
It's not an ajax shoutbox. It only updates when you refresh the page. I have plans to add a button to update it with ajax without refreshing the page, but I'm not going to make it a chat box so that it updates automatically.

Ugh. Sorry, but it's the main reason I got the Tiny Portal. If the shout box doesn't update automatically, it's not going to work for us. I can't imagine why you would have a shout box that doesn't update automatically, but so be it. I'll try other mods.

Thanks anyway.
Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2011, 11:32:26 AM
It's because I think there is a difference in shouting compared to chatting. Having something like a shoutbox auto update can cause a serious load on servers. Good luck in your search, I'm sure you'll find something that suits your needs.
Title: Re: TinyPortal
Post by: bloc on April 01, 2011, 05:47:55 PM
Quote from: xrunner on April 01, 2011, 11:24:48 AM
Quote from: Greg Brady on April 01, 2011, 11:22:13 AM
It's not an ajax shoutbox. It only updates when you refresh the page. I have plans to add a button to update it with ajax without refreshing the page, but I'm not going to make it a chat box so that it updates automatically.

Ugh. Sorry, but it's the main reason I got the Tiny Portal. If the shout box doesn't update automatically, it's not going to work for us. I can't imagine why you would have a shout box that doesn't update automatically, but so be it. I'll try other mods.

Thanks anyway.

You added a portal mod just to have a shoutbox..? I suggest you start with a pure Shoutbox MOD instead, that would make more sense.
Title: Re: TinyPortal
Post by: xrunner on April 01, 2011, 07:09:50 PM
Quote from: Bloc on April 01, 2011, 05:47:55 PM
You added a portal mod just to have a shoutbox..? I suggest you start with a pure Shoutbox MOD instead, that would make more sense.

I've tried all of them Bloc - they either are not supported any longer or don't work properly. The best of the bunch was SMFPacks shout box but it had flaws and the author stopped supporting it. If you know of one that works with SMF 2.0 RC5 and is supported then I'd be happy to look at it.

Meanwhile I am trying Simple Portal which at the moment seems to have a functioning Shout Box that has selectable auto-update intervals ...
Title: Re: TinyPortal
Post by: Matthew-me on April 03, 2011, 07:28:53 AM
Running SMF 2.0 RC5 and TinyPortal 1.102 - and very appreciative of the work done by all. Have hit one snag which I can't work out.

When writing articles and adding images from the TP quicklist in the editor the images are

1) visible in the editor,
2) visible when published on the frontpage

BUT ...

3) not visible in "preview" or when looking at the published article (the TP name of the file sometimes appears instead).

Apologies if this has come up before but I have been searching for two hours and found nothing - any help greatly appreciated.

Warm regards,

Matthew

ps Here is an example: This article (http://www.vipassanaforum.net/forum/index.php/page,5.html) has no images in it? But if you click on the homepage you will see the article slug with images third down left column. The same is true if I use the full article or a slug on the frontpage.
Title: Re: TinyPortal
Post by: IchBin™ on April 03, 2011, 10:23:03 AM
I've just tested what you have reported, and I cannot reproduce the problem. I can view the quicklist images in preview and normal view without issue. Are you saving it before you preview it? In preview mode it only displays what is saved into the database.
Title: Re: TinyPortal
Post by: Matthew-me on April 03, 2011, 01:17:39 PM
Thanks for trying to recreate the situation IchBin - much appreciated. If you look at the linked article above (published) and then the homepage you will see the problem. I am saving before publishing. On the frontpage and in the wysiwyg editor all is fine. As a standalone published article or in preview no images appear.

Cheers,

Matthew
Title: Re: TinyPortal
Post by: IchBin™ on April 03, 2011, 06:59:18 PM
The link you posted does not show any articles.
Title: Re: TinyPortal
Post by: Matthew-me on April 04, 2011, 01:58:12 PM
Oops - apologies - it does now. But no photo's. On the homepage the same article is showing photo's. ??
Title: Re: TinyPortal
Post by: IchBin™ on April 04, 2011, 03:45:35 PM
hmm... strange. I cannot reproduce this... I see what the problem is but don't know what is causing it. It seems to be dropping the URL from the path on the image. Would you mind giving me access to look at things on your site?
Title: Re: TinyPortal
Post by: Matthew-me on April 04, 2011, 04:50:01 PM
Thanks for your offer of help. May I PM you about it?
Title: Re: TinyPortal
Post by: IchBin™ on April 04, 2011, 05:59:36 PM
Yes, by all means feel free to PM me the details.
Title: Re: TinyPortal
Post by: desibees on April 04, 2011, 06:45:27 PM
Please help. How to remove the time from the sidebar? so it doesn't show the time.

(http://img217.imageshack.us/img217/9387/50923674.png)
Title: Re: TinyPortal
Post by: IchBin™ on April 05, 2011, 11:06:14 AM
I have no idea what that picture is or where you are talking about.
Title: Re: TinyPortal
Post by: Kindred on April 05, 2011, 11:49:25 AM
looks like a recent posts box...
Title: Re: TinyPortal
Post by: IchBin™ on April 05, 2011, 01:22:47 PM
Ahh that makes sense.

There are two instances of this code. One shows if you don't have the option to show avatars selected. You can remove both instances if you want. Open Themes/default/TPsubs.template.php and find this code and remove it:
<br /><span class="smalltext">['.$w['time'].']</span>
Title: Re: TinyPortal
Post by: Antechinus on April 05, 2011, 06:04:47 PM
Hey quick question: if I wanted to mess around with the expand/collapse icons for the blocks where would I be looking?

The default bunch of icons is a bit messy IMO as they usually overlap other elements of themes. Shouldn't be hard to clean them up a bit. )
Title: Re: TinyPortal
Post by: desibees on April 05, 2011, 06:37:59 PM
how to put facebook fan page in SIDEBAR??
Please help. something like this

(http://img217.imageshack.us/img217/290/91842879.png)

*this picture is from some random website,

please help??
Title: Re: TinyPortal
Post by: Spoogs on April 05, 2011, 06:52:54 PM
http://developers.facebook.com/docs/plugins/
Title: Re: TinyPortal
Post by: desibees on April 05, 2011, 07:15:31 PM
Quote from: Spoogs on April 05, 2011, 06:52:54 PM
http://developers.facebook.com/docs/plugins/

k i have the code, where do i add it?
Title: Re: TinyPortal
Post by: IchBin™ on April 06, 2011, 10:16:22 AM
Quote from: desibees on April 05, 2011, 07:15:31 PM
Quote from: Spoogs on April 05, 2011, 06:52:54 PM
http://developers.facebook.com/docs/plugins/

k i have the code, where do i add it?

Did you try adding it to a block?

Quote from: Antechinus on April 05, 2011, 06:04:47 PM
Hey quick question: if I wanted to mess around with the expand/collapse icons for the blocks where would I be looking?

The default bunch of icons is a bit messy IMO as they usually overlap other elements of themes. Shouldn't be hard to clean them up a bit. )

Themes/default/TPBlockLayout.template.php right at the top of the file is the template_tp_above() layer that has the upshrink code I believe. Just checked, so here's the code:
if(!empty($context['TPortal']['upshrinkpanel']))
echo '
<div style="float: right; margin-right: 0.5em; margin-top: -1.5em;">', $context['TPortal']['upshrinkpanel'] , '</div>';
Title: Re: TinyPortal
Post by: desibees on April 06, 2011, 11:21:51 AM
Quote from: IchBin™ on April 06, 2011, 10:16:22 AM
Quote from: desibees on April 05, 2011, 07:15:31 PM
Quote from: Spoogs on April 05, 2011, 06:52:54 PM
http://developers.facebook.com/docs/plugins/

k i have the code, where do i add it?

Did you try adding it to a block?

I know u have to add it to a block, but as what... like HTML? or.. like.. how do u make your own custom block, than selecting the premade ones.
Title: Re: TinyPortal
Post by: IchBin™ on April 06, 2011, 11:25:05 AM
If you are putting HTML or javascript, then yes you add it to a "HTML and Javascript code" block. If you are adding PHP you put the code into a "php code" block. Pretty self explanatory I think. If you don't know what kind of code you are putting in, then you'll need to post a link to show me what code they are asking you to use so I can help.
Title: Re: TinyPortal
Post by: Antechinus on April 06, 2011, 07:32:29 PM
Quote from: IchBin™ on April 06, 2011, 10:16:22 AM
Quote from: Antechinus on April 05, 2011, 06:04:47 PM
Hey quick question: if I wanted to mess around with the expand/collapse icons for the blocks where would I be looking?

The default bunch of icons is a bit messy IMO as they usually overlap other elements of themes. Shouldn't be hard to clean them up a bit. )

Themes/default/TPBlockLayout.template.php right at the top of the file is the template_tp_above() layer that has the upshrink code I believe. Just checked, so here's the code:
if(!empty($context['TPortal']['upshrinkpanel']))
echo '
<div style="float: right; margin-right: 0.5em; margin-top: -1.5em;">', $context['TPortal']['upshrinkpanel'] , '</div>';

Cool. Thanks. I was running a search for image names and id's and couldn't find the right bit. :)
Title: Re: TinyPortal
Post by: desibees on April 07, 2011, 04:35:41 PM
hi, do you have copyright removal 1 time purchase?
i know like 50 people who are using tiny portal but they removed the copyright.
Are you aloud to do that or they bought "copyright removal 1 time purchase" ?
Title: Re: TinyPortal
Post by: IchBin™ on April 07, 2011, 04:52:35 PM
Quote from: desibees on April 06, 2011, 11:21:51 AM
Quote from: IchBin™ on April 06, 2011, 10:16:22 AM
Quote from: desibees on April 05, 2011, 07:15:31 PM
Quote from: Spoogs on April 05, 2011, 06:52:54 PM
http://developers.facebook.com/docs/plugins/

k i have the code, where do i add it?

Did you try adding it to a block?

I know u have to add it to a block, but as what... like HTML? or.. like.. how do u make your own custom block, than selecting the premade ones.

Like I said, if it's html or javascript then you add it to a HTML and Javascript block. That is the name of the actual block type. Once you select the block type, (not one of the pre-made blocks) you can input the code into the textbox to create your own block with HTML or PHP depending on the blocktype you select.


As for removing the copyright if they have removed it they are doing it illegally without permission.
Title: Re: TinyPortal
Post by: desibees on April 07, 2011, 05:11:10 PM
yes but some mods allow you to "pay" for removal rights, could I do that?
Title: Re: TinyPortal
Post by: mariusfv on April 09, 2011, 10:32:23 AM
Hi,
IchBin I can't access tinyportal.co.uk for over 1 week, I access him via proxy to read some useful documentation, now via 5 proxy server I get : server not found, I have posted on tinyportal.co.uk few time ago a post: Europe some ISP can't access tinyportal(something like that)...I contact again my ISP and they tell me: host/or IP didn't respond at ping. I think tinyportal should change the host, sorry is my opinion!(My ISP have over 1-2 million customers, I download with 10-14 MB/s, upload 5-7 MB/s)

I will ask here for support:
How can I rewrite an tinyportal article?
I have a external html page called products.html, now I want to include inside smf/tinyportal that page via article feature, but I want to keep my desire url: domain.com/products.html. I use pretty url mod made it by vbgamer, the mod work good but didn't rewrite tinyportal article, my article is: /index.php?page=5.
Example: www.smfhacks.com/products.html (is that an TP article feature no?) and have the desired url: domain.com/products.html, how this is possible ?
Is important for me to keep my desire url(the page is good indexed for search engine).
And if this is possible, I want to know how I will add to that html article the: description and meta keywords?... because I add actual for test the title(of article) and when i look at page source code I see: the <title> and <meta name="description" content=" are the same(let say is ok) but at <meta name="keywords" content=" - the article take the first 2 words from title and repeat it for 3 times.
Title: Re: TinyPortal
Post by: IchBin™ on April 09, 2011, 12:35:20 PM
It doesn't look to me like he's using TinyPortal on those custom pages that end in .html. I think he is just putting the file on his site and linking to that page. There's no way currently to have URL's like that within TP.

Sorry about the site being down. We have been having a lot of problems since yesterday. It has crashed twice for some reason. However, the problem hasn't been going on for a week. Lesmond is in the middle of talking with the host about this. If you can't reach the site later by going to tinyportal.co.uk, please try www.tinyportal.net as it should work as well.
Title: Re: TinyPortal
Post by: mariusfv on April 09, 2011, 01:01:10 PM
Tinyportal.co.uk, tinyportal.net are down for me.

Please tell me, I have a html page, how I do to linking to that page, so that page to be inside TP  like vbgamer45 do in his website ?, so to show blocks, etc and that page to be loaded inside tinyportal/smf(to not be an external page?).
10x
Title: Re: TinyPortal
Post by: IchBin™ on April 09, 2011, 01:28:04 PM
I don't know how he did those pages while keeping the URL. You should probably ask him.
Title: Re: TinyPortal
Post by: Arantor on April 09, 2011, 01:30:46 PM
I'd suggest it was standalone pages using SSI but I don't know how TP interacts with SSI...
Title: Re: TinyPortal
Post by: IchBin™ on April 09, 2011, 01:44:53 PM
It's possible to create a stand alone page outside of TP using SSI, but the html page through me off. I guess that could be done using some rewrite rules or something.
Title: Re: TinyPortal
Post by: Matthew-me on April 10, 2011, 07:55:57 AM
IchBin,

Thanks for your help. Very generous.

Matthew
Title: Re: TinyPortal
Post by: DesuChan on April 10, 2011, 11:43:41 PM
I just have a single query:

Is it at all possible to perhaps change the code in the Download Manager to, instead of linking to a file stored where the forum itself is hosted, but instead link off to an external file sharing website (eg Mediafire, Megaupload, etc.)? I mean, this would be temporary for myself as the only reason this is an issue for me is because my webhost is... evil, for lack of a better word and I'm currently uploading text files with links to my files on Mediafire
Title: Re: TinyPortal
Post by: IchBin™ on April 11, 2011, 11:17:17 AM
There's no way to currently do this in TP. I'd suggest you just post a link in the download description until the feature can be added.
Title: Re: TinyPortal
Post by: desibees on April 11, 2011, 04:18:59 PM
Hey, im using Tinyportal sidebar. When I expand/collapse, the thing... just blinks and expands or collapses. How can I make it so When I collapse or expand, the thing slides... If you know what i mean..
Title: Re: TinyPortal
Post by: IchBin™ on April 11, 2011, 05:02:05 PM
You'd have to go in and change the javascript routines to use those effects. Not something I have time to do.
Title: Re: TinyPortal
Post by: desibees on April 11, 2011, 05:41:09 PM
Quote from: IchBin™ on April 11, 2011, 05:02:05 PM
Not something I have time to do.

aw... Can you atleast tell me how to do it so I can give the solution to someone expert to do it for me?
Title: Re: TinyPortal
Post by: DesuChan on April 11, 2011, 11:10:26 PM
Quote from: IchBin™ on April 11, 2011, 11:17:17 AM
There's no way to currently do this in TP. I'd suggest you just post a link in the download description until the feature can be added.
...So it's going to be added?

Best news I've heard all day. And it's been a pretty good day today! Thank you!!!
Title: Re: TinyPortal
Post by: desibees on April 11, 2011, 11:15:44 PM
will you please gimme the solution for my problem above ^^^ even if u dont have time to do it yourself
Title: Re: TinyPortal
Post by: mashby on April 11, 2011, 11:20:32 PM
Quote from: desibees on April 11, 2011, 11:15:44 PM
will you please gimme the solution for my problem above ^^^ even if u dont have time to do it yourself
Do you realize the conflict that mere question has? If he doesn't have time, I doubt he will give you a solution to something. Maybe it's time to open up a manual on JavaScript.
Title: Re: TinyPortal
Post by: desibees on April 12, 2011, 07:43:00 AM
Well if he doesn't have time to do it, he could gimme a short solution because it is his mod and only he would know. Looks luke no one tried to do this before so I don't want the solution to remain secret.

** I might  sound like I'm arguing but I'm not. Just giving my point of view
Title: Re: TinyPortal
Post by: Ken. on April 12, 2011, 09:01:32 AM
Sometimes there is no 'simple' answer to a coding question and this is one of those times... had there been a simple answer or fix you can be sure that IchBin™ would have given you that answer when the question was first posted.

Sometimes patience is needed, especially when the issue is of a minor nature.  ;)
Title: Re: TinyPortal
Post by: Kindred on April 12, 2011, 09:32:11 AM
desibees,

google is your friend...
here's a code that does what you are asking.
http://www.dhtmlgoodies.com/index.html?whichScript=show_hide_content_slide
and another
http://docs.jquery.com/UI/Effects/Slide
Title: Re: TinyPortal
Post by: IchBin™ on April 12, 2011, 12:17:11 PM
Quote from: Kindred on April 12, 2011, 09:32:11 AM
desibees,

google is your friend...
here's a code that does what you are asking.
http://www.dhtmlgoodies.com/index.html?whichScript=show_hide_content_slide
and another
http://docs.jquery.com/UI/Effects/Slide


After you figure out how to use any of the effects that Kindred posted, you can then implement them into the "function tp_setupUpshrinks()" function inside the Sources/TPortal.php file. That's where the javascript is created for togging the panels. You just need to figure out how to merge your script into TP. That's the part I don't have time for.
Title: Re: TinyPortal
Post by: Wh1teLeopard on April 12, 2011, 03:07:21 PM
Hi! Really sorry if this has been addressed or if I'm just being a moron but when I try to upload files to the download manager module it fails claiming 'hacking attempt' @ ?action=tpmod;dl=upload

SMF - 2.0 RC3
TP - 1.0 RC1
Title: Re: TinyPortal
Post by: desibees on April 12, 2011, 03:13:42 PM
Quote from: Kindred on April 12, 2011, 09:32:11 AM
desibees,

google is your friend...
here's a code that does what you are asking.
http://www.dhtmlgoodies.com/index.html?whichScript=show_hide_content_slide
and another
http://docs.jquery.com/UI/Effects/Slide

QuoteYou just need to figure out how to merge your script into TP. That's the part I don't have time for.

Anyone else has time for this?
Title: Re: TinyPortal
Post by: IchBin™ on April 12, 2011, 04:04:33 PM
Quote from: Wh1teLeopard on April 12, 2011, 03:07:21 PM
Hi! Really sorry if this has been addressed or if I'm just being a moron but when I try to upload files to the download manager module it fails claiming 'hacking attempt' @ ?action=tpmod;dl=upload

SMF - 2.0 RC3
TP - 1.0 RC1
Do you mean that you get hacking attempt when you go to the upload page? Or do you get it after you hit submit to make an upload?
Title: Re: TinyPortal
Post by: Wh1teLeopard on April 14, 2011, 01:01:46 PM
After hitting submit
:(

(Happens both through the downloads page and through admin)
Title: Re: TinyPortal
Post by: IchBin™ on April 15, 2011, 10:52:24 AM
Do you get any errors in your SMF log or the server log at the time of getting the error?
Title: Re: TinyPortal
Post by: Wh1teLeopard on April 15, 2011, 11:29:02 AM
No, but something weird happened. I enabled the shout box to, well, shout at other admins... and suddenly the downloads icon appeared in the TinyPotal admin front page (I'd never seen it before), and now it's working fine... weird!

Thank you for trying to help me anyway though  ;D

*edit- NOOOO!!!! As soon as I deleted my 'test' and tried a proper upload with a title...

QuoteToday at 16:40
session 5e12a023d508ac692f09adfb63811c9c
Type of error: Critical
URL http://keikarsinthepark.co.uk/index.php?action=tpmod;dl=upload
Apply Filter: Only show the errors with the same message
Hacking attempt...
INSERT INTO smf_tp_dlmanager
(name, description, icon, category, type, downloads, views, file, created, last_access, filesize, parent, access, link, author_id,screenshot,rating,voters,subitem )
VALUES ('Caz's Cappuccino 1280x960', '<br>

', 'http://keikarsinthepark.co.uk/tp-downloads/icons/blank.gif' , 2, 'dlitem', 0, 1, '13028820241280x960BridgeCappo.JPG', 1302882024, 1302882024, 631229, 0, '', '', 1, '','','',0)
Function: TPortalDLManager
Apply Filter: Only show the errors from this file
File: /home/muxdxnr/public_html/keikarsinthepark.co.uk/Sources/TPdlmanager.php
Line: 221
Title: Re: TinyPortal
Post by: Arantor on April 15, 2011, 11:46:53 AM
I call that a TP bug for not sanitising the ' in the title.
Title: Re: TinyPortal
Post by: IchBin™ on April 15, 2011, 01:36:33 PM
Wh1teLeopard, which version of TP are you running? I recall this was a bug fixed some time ago. I'll go do some testing ASAP on this. Also, thanks for reporting the downloads icon bug. I do recall seeing that issue, but can't remember if I've fixed it ATM.
Title: Re: TinyPortal
Post by: Wh1teLeopard on April 16, 2011, 03:14:54 AM
I thought I was using the most up to date one, but I wouldn't be surprised if I got mixed up and am using the oldest one (1.0 RC1)

Sorry for causing you trouble
Title: Re: TinyPortal
Post by: Rafferty on April 16, 2011, 05:35:16 AM
Re: Recent Articles and Most Read Article blocks in an article download function block. Could you indicate where I could change the default list of 5 items and change to 10 thanks?
Title: Re: TinyPortal
Post by: Biology Forums on April 17, 2011, 10:00:25 PM
Why is my topic display messed up when using internet explorer? :( It looks fine on Chrome and Firefox. I know its not the modifications I've done because I tested it using an unmodified display.template.php file.

http://biology-forums.com

http://biology-forums.com/index.php?topic=2718.0
Title: Re: TinyPortal
Post by: IchBin™ on April 18, 2011, 10:52:25 AM
Quote from: Rafferty on April 16, 2011, 05:35:16 AM
Re: Recent Articles and Most Read Article blocks in an article download function block. Could you indicate where I could change the default list of 5 items and change to 10 thanks?

Assuming SMF2? In Themes/default/TPsubs.template.php find this code and change the number 5 in the art_recentitems() function. There is 3 spots for 3 different options.
case 'dl-stats7':
$it = array();
$it = art_recentitems('5','date');
if(sizeof($it) > 0)
{
foreach($it as $item)
{
echo '<span class="smalltext"><a title="'.$item['date'].'" href="'.$scripturl.'?page='.$item['id'].'">'.$item['subject'].'</a>
</span><br />';
}
}
break;
case 'dl-stats8':
$it = array();
$it = art_recentitems('5', 'views');
if(sizeof($it) > 0)
{
foreach($it as $item)
{
echo '<span class="smalltext"><a title="'.$item['views'].' '.$txt['tp-views'].'" href="'.$scripturl.'?page='.$item['id'].'">'.$item['subject'].'</a>
</span><br />';
}
}
break;
case 'dl-stats9':
$it = array();
$it = art_recentitems('5', 'comments');
if(sizeof($it) > 0)
{
foreach($it as $item)
{
echo '<span class="smalltext"><a title="'.$item['comments'].'" href="'.$scripturl.'?page='.$item['id'].'">'.$item['subject'].'</a>
('.$item['comments'].')<br /></span>';
}
}
break;
Title: Re: TinyPortal
Post by: IchBin™ on April 18, 2011, 10:57:51 AM
Quote from: shuban on April 17, 2011, 10:00:25 PM
Why is my topic display messed up when using internet explorer? :( It looks fine on Chrome and Firefox. I know its not the modifications I've done because I tested it using an unmodified display.template.php file.

http://biology-forums.com

http://biology-forums.com/index.php?topic=2718.0

Topic display looks fine to me in IE8.
Title: Re: TinyPortal
Post by: Biology Forums on April 18, 2011, 12:22:58 PM
Quote from: IchBin™ on April 18, 2011, 10:57:51 AM
Quote from: shuban on April 17, 2011, 10:00:25 PM
Why is my topic display messed up when using internet explorer? :( It looks fine on Chrome and Firefox. I know its not the modifications I've done because I tested it using an unmodified display.template.php file.

http://biology-forums.com

http://biology-forums.com/index.php?topic=2718.0

Topic display looks fine to me in IE8.

No, I am using SMF 1.1.13, sorry for the confusion. Do I still make the changes?
Title: Re: TinyPortal
Post by: IchBin™ on April 18, 2011, 12:29:39 PM
That response was for rafferty shuban. There are no changes you need to make. Perhaps you can show me a screenshot of what you are seeing in your problem. I do not see a problem when looking at your site in IE. Do you see the same problem when looking at your topic in the SMF default core theme?
Title: Re: TinyPortal
Post by: Rafferty on April 23, 2011, 07:17:02 PM
Many Thanks Ich
Title: Re: TinyPortal
Post by: IchBin™ on May 09, 2011, 12:55:12 PM
Mandatory update today folks. Please read the first post as I have added a few sentences in that post at the top for an explanation.
Title: Re: TinyPortal
Post by: dcorc on May 10, 2011, 09:34:50 PM
I'm running smf 1.1.13 and have just installed the mandatory update - I'm finding that in the Admin section of my site, the TP control pages are only showing the headings - the rest of the page flashes up momentarily and then disappears again?

Advice please?


Dave
Title: Re: TinyPortal
Post by: IchBin™ on May 11, 2011, 10:47:46 AM
Are you running any ad blocking software?
Title: Re: TinyPortal
Post by: dcorc on May 12, 2011, 10:24:24 AM
QuoteAre you running any ad blocking software?

Yes, I'm running adblock on Chrome - and as soon as I turned it off for my domain, everything shows again!

Thank you!!!

(I hadn't noticed any comment that this can be the case - or perhaps I just missed it?)


Dave
Title: Re: TinyPortal
Post by: IchBin™ on May 12, 2011, 01:35:30 PM
Nope, but it's something I noticed using the same ad blocker in chrome. That's why I asked.  :)
Title: Re: TinyPortal
Post by: corvy on May 14, 2011, 03:52:33 PM
Hello, I cannot get it to work on RC5.

   1.    Extract Tree    ./Themes    
   2.    Extract Tree    ./Themes    
   3.    Extract Tree    ./Sources    
   4.    Extract Tree    ./tp-downloads    
   5.    Extract Tree    ./tp-images    
   6.    Extract Tree    ./tp-files    
   7.    Execute Modification    SMF2/tinyportal200rc4.mod    Modification parse error
   8.    Adapt Database    SMF2/tp_upgrade.php    
Title: Re: TinyPortal
Post by: IchBin™ on May 15, 2011, 02:43:21 AM
That's usually a server error from what I can tell. Try uploading the files into a folder inside the Packages/ directory instead of uploading the zip. Then try to install again.
Title: Re: TinyPortal
Post by: corvy on May 15, 2011, 08:23:26 AM
Thanks, I managed to get it installed in the end but I had to hack a bit to get it running. I basically unzipped it and copied it to the temp folder during the install and it worked. Very strange I must say ...

Now my new problem is that I cannot get the panels to show in IE 8. Look at http://demo.saforeningen.no/ (http://demo.saforeningen.no/), the panels show nice in FF and Opera, nothing in IE. Not sure why ...
Title: Re: TinyPortal
Post by: IchBin™ on May 16, 2011, 11:37:52 AM
Your panels are showing fine for me in IE8 here. Are you sure you didn't upshrink them in that browser?
Title: Re: TinyPortal
Post by: darkoro on May 16, 2011, 08:16:28 PM
i am having this error after the install

//leicanomaru.co.cc/index.php ://leicanomaru.co.cc/index.php

i dont why why it try to load the doble directory
i guess i wrote somthing wrong when installing but i dont know where, any ideas?
Title: Re: TinyPortal
Post by: IchBin™ on May 16, 2011, 09:12:53 PM
Sorry I don't understand what your error is. Would also be nice to know what version of SMF you are using? Link to the site so I can see the error?
Title: Re: TinyPortal
Post by: darkoro on May 16, 2011, 09:46:34 PM
ttp://leicanomaru.co.cc/

i think is an error on the index file, caus its trying to reload the same directory

i am using the lastest one
Title: Re: TinyPortal
Post by: IchBin™ on May 16, 2011, 10:06:30 PM
All I can see is a blank page in firefox. In Chrome is says there's a server error.
Title: Re: TinyPortal
Post by: darkoro on May 16, 2011, 11:35:17 PM
ok i see whats the error, it seems that when i run tp_upgrade even if it says that the tables are created they are not..

how can i create them manually?
Title: Re: TinyPortal
Post by: IchBin™ on May 16, 2011, 11:40:50 PM
did you run the upgrade.php file to install the tables?
Title: Re: TinyPortal
Post by: darkoro on May 17, 2011, 12:12:32 AM
yes and it say that it succefully installed the tables, but when i check the database they are not there...
Title: Re: TinyPortal
Post by: IchBin™ on May 17, 2011, 12:55:10 PM
I can't tell what version you are running for SMF because your site has been inaccessible for me. If you can't run the db installer, try running this file instead if you are running SMF2.
Title: Re: TinyPortal
Post by: darkoro on May 17, 2011, 06:56:30 PM
thanks it worked the tables are now installed and now is running fine, ttp://www.leicanomaru.co.cc btw the gif are with the install cause i cant find them
Title: Re: TinyPortal
Post by: Biology Forums on May 18, 2011, 12:16:21 AM
In the search, how do I get rid of the bar on top that says:

Extended search
Search Articles | Search Downloads Manager


I'm using 1.1.13

http://biology-forums.com/index.php?action=search
Title: Re: TinyPortal
Post by: Lum-chan on May 18, 2011, 06:37:37 AM
Odd... after installing the latest version of TP, 1.0 RC1.1, the backslash problem just returned. It shows up in download manager, shoutbox ans such. If I remove the backslash in the download-manager, it returns after saving the description.

Software: SMF 1.1.12 with TP 1.0 RC1.1
Site location: http://forum.lum-chan.com/
Theme: Green (only colors are changed. Theme is using default template)

As I couldn't update via the Package-manager I uploaded each file for TP manually by FTP. Correct version is showing at the bottom of each page and after installing/uploading the TPShout plug-in, these problems appear. Luckily I have made a full backup so I can return to the previous version of those files (which were edited to prevent this backslash problem from appearing).

Anyone else has this problem after installing the latest update of TP?

TIA

[edit]
Just tested it again to make sure it doesn't happen in articles: No problems found so far \(^_^)/
[/edit]
Title: Re: TinyPortal
Post by: DarkAngel612 on May 18, 2011, 09:37:17 AM
yes it is back again but you just have to do the little edit to get rid of them again:

in smf 1.1.13 that is:

In Sources/TPdlmanager.php on about line #2068 look for this line:

Find:
            tp_query("UPDATE " . $tp_prefix . "dlmanager SET description = '" . mysql_real_escape_string($value) . "' WHERE id=". $id, __FILE__, __LINE__);


Replace it with:
            tp_query("UPDATE " . $tp_prefix . "dlmanager SET description = '" . mysql_real_escape_string(stripslashes($value)) . "' WHERE id=". $id, __FILE__, __LINE__);


and for the html peeking out---may be the \ too

Sources/TPortalAdmin.php

Find this line:(about line #337)

global $context,$txt,$settings,$boardurl,$scripturl,$boarddir,$user_info,$db_prefix;

Change to:

global $context,$txt,$settings,$boardurl,$scripturl,$boarddir,$user_info,$db_prefix, $modSettings;


Find this line:(about line #469)


$context['TPortal']['blockedit']['body'] = html_entity_decode($row['body'], ENT_NOQUOTES);

Change to:

$context['TPortal']['blockedit']['body'] = html_entity_decode($row['body'], ENT_NOQUOTES, $modSettings['global_character_set']);


-------------------------------------------------------------------------

In Sources/TPdlmanager.php on about line #2068 look for this line:


                tp_query("UPDATE " . $tp_prefix . "dlmanager SET description = '" . mysql_real_escape_string($value) . "' WHERE id=". $id, __FILE__, __LINE__);


Replace it with this line:


                tp_query("UPDATE " . $tp_prefix . "dlmanager SET description = '" . mysql_real_escape_string(stripslashes($value)) . "' WHERE id=". $id, __FILE__, __LINE__);



hope this helps and hope it is the right bunch of codes
Title: Re: TinyPortal
Post by: IchBin™ on May 18, 2011, 10:36:58 AM
Quote from: shuban on May 18, 2011, 12:16:21 AM
In the search, how do I get rid of the bar on top that says:

Extended search
Search Articles | Search Downloads Manager


I'm using 1.1.13

http://biology-forums.com/index.php?action=search

Code (fine in Sources/TPortal.php) Select
// are we on search page? then add TP search options as well!
if($context['TPortal']['action']=='search')
$context['template_layers'][] = 'TPsearch';


Comment it out if you don't want the search links there.
Title: Re: TinyPortal
Post by: Biology Forums on May 18, 2011, 01:11:45 PM
Quote from: IchBin™ on May 18, 2011, 10:36:58 AM
Quote from: shuban on May 18, 2011, 12:16:21 AM
In the search, how do I get rid of the bar on top that says:

Extended search
Search Articles | Search Downloads Manager


I'm using 1.1.13

http://biology-forums.com/index.php?action=search

Code (fine in Sources/TPortal.php) Select
// are we on search page? then add TP search options as well!
if($context['TPortal']['action']=='search')
$context['template_layers'][] = 'TPsearch';


Comment it out if you don't want the search links there.

Worked, thanks
Title: Re: TinyPortal
Post by: Groovy™ on May 18, 2011, 04:08:40 PM
To me this mod very much, but I noticed that a lot more complicated to use because 90% beginner will not know that he wants to set the portal, because the majority decides for the little easier portals (etc with a bit "simpler" commands / schedule) .. .
To me the only thing I do not like in this portal is that no mini-icon next to the menu (as in simple, ADK portal) ... so the same font of the letters is kinda bad ...
I wrote this sincerely, and I think there should be only slightly due to the design of the portal ... because I know plenty of people who use this portal and I would agree with me

Greeting
Title: Re: TinyPortal
Post by: Lum-chan on May 19, 2011, 03:10:49 AM
@DarkAngel612:
Thank you very much, the backslash problems are gone \(^_^)/

The only place where they (the backslashes, that is) still occur is in the normal Shoutbox. I remember some small edits in the files for the shoutbox, I'll see if I can find them again so this is fixed too.

Then I'll try to make a kind of mod for these small edits to flow around here. I guess more people are fiddling with these backslashes just like me.
Title: Re: TinyPortal
Post by: King N on May 19, 2011, 12:59:44 PM
Is there any way so that the news posted here make their own threads in a board in smf?
Title: Re: TinyPortal
Post by: IchBin™ on May 19, 2011, 01:35:25 PM
News posted on this site to get posted in a board on your site? That's really completely unrelated to TinyPortal isn't it?
Title: Re: TinyPortal
Post by: King N on May 20, 2011, 12:09:16 AM
Not this site ,on tinyportal.
Title: Re: TinyPortal
Post by: IchBin™ on May 20, 2011, 10:44:47 AM
Sorry, I'm not following what you're trying to say King N.
Title: Re: TinyPortal
Post by: King N on May 20, 2011, 10:51:26 AM
Tiny Portal has an option to post news or articles I suppose
I want to configure it such that whenever such an article is posted it makes a new thread.
Title: Re: TinyPortal
Post by: IchBin™ on May 20, 2011, 11:00:45 AM
I see what you are saying now. It's not possible to do such a thing with the current features in TP. I don't have the time to figure out such a thing though sorry. I'm trying to get TP to a stable release first. Then will consider moving forward with new features.
Title: Re: TinyPortal
Post by: King N on May 20, 2011, 11:09:36 AM
Can we reply to the news or articles as in comments
Title: Re: TinyPortal
Post by: Groovy™ on May 20, 2011, 11:26:39 AM
Ichbin,can you answer my question just above?
Title: Re: TinyPortal
Post by: IchBin™ on May 20, 2011, 11:54:29 AM
Quote from: King N on May 20, 2011, 11:09:36 AM
Can we reply to the news or articles as in comments

Yes articles have the option to allow comments.

Quote from: Groovy™ on May 18, 2011, 04:08:40 PM
To me this mod very much, but I noticed that a lot more complicated to use because 90% beginner will not know that he wants to set the portal, because the majority decides for the little easier portals (etc with a bit "simpler" commands / schedule) .. .
To me the only thing I do not like in this portal is that no mini-icon next to the menu (as in simple, ADK portal) ... so the same font of the letters is kinda bad ...
I wrote this sincerely, and I think there should be only slightly due to the design of the portal ... because I know plenty of people who use this portal and I would agree with me

Greeting

Is this what you are referring to that you want me to reply? TP has a little learning curve as far as how many options it has. But I don't plan to change TP any time in the future. Right now I'm am completely focused on making TinyPortal as bug free as I can possibly get, so that I can release a TP 1.0 final.
If you want icons next to your menu, why not just create a custom html block and make what you want? I'd have to look at the other portals to see exactly what you are talking about, but I don't see that being a deal breaker IMO. Fonts/letters are personal preference. I change it for you, then someone else will want a different font. That's why there is style sheets. :)
Title: Re: TinyPortal
Post by: King N on May 21, 2011, 11:28:01 AM
 see that there is a way for having a custom registration page using this mod
any help on achieving it
Title: Re: TinyPortal
Post by: IchBin™ on May 21, 2011, 03:05:27 PM
TinyPortal does not have anything to do with the Registration for SMF. You should ask in the code help boards for what you are trying to achieve.
Title: Re: TinyPortal
Post by: jackregan on May 25, 2011, 08:02:39 AM
Apologies if this has already been covered, however...

Does anybody know how to make articles show up alongside posts in the sites rss feed. This is really important for my site.

Loving TinyPortal, by the way. Our site is due a major overhaul in the next few months and TP is going to be a big part of it, so thanks ;)
Title: Re: TinyPortal
Post by: IchBin™ on May 25, 2011, 11:40:40 AM
Which RSS feed? TP does not add itself to any SMF feed. It is however possible to create an article RSS feed? Or are you referring to adding articles to a recent articles type of block? Sorry just a little unclear here.
Title: Re: TinyPortal
Post by: jackregan on May 25, 2011, 04:00:28 PM
Basically, I would like one feed for the entire site, which has both posts and articles. Is this possible?
Title: Re: TinyPortal
Post by: IchBin™ on May 25, 2011, 04:09:12 PM
Not without writing some custom code to do this. I unfortunately don't have the time to do it for you. Sorry.
Title: Re: TinyPortal
Post by: Groovy™ on May 27, 2011, 12:12:08 PM
Is it possible to somehow increase the width of the left menu

Thank you
Title: Re: TinyPortal
Post by: lurkalot on May 27, 2011, 12:38:54 PM
Quote from: Groovy™ on May 27, 2011, 12:12:08 PM
Is it possible to somehow increase the width of the left menu

Thank you


You mean the width of the left panels?  Go to tp admin / panels, and ajust to the width you want.
Title: Re: TinyPortal
Post by: Groovy™ on May 27, 2011, 01:04:10 PM
Quote from: lurkalot on May 27, 2011, 12:38:54 PM
You mean the width of the left panels?  Go to tp admin / panels, and ajust to the width you want.

the fact that I thought ... thanks a lot
Title: Re: TinyPortal
Post by: Tedi on May 31, 2011, 03:47:24 PM
Hi,

is there a German language pack available for this mod ?
Title: Re: TinyPortal
Post by: IchBin™ on May 31, 2011, 04:26:35 PM
Quote from: Tedi on May 31, 2011, 03:47:24 PM
Hi,

is there a German language pack available for this mod ?

Sorry, it looks like it's only been translated to Greek, Hungarian, and Italian for the latest versions.
Title: Re: TinyPortal
Post by: Tedi on May 31, 2011, 04:27:02 PM
Next question:

How do I manage that only members who are logged into the forum can view any block ?

Any user who isn't logged in, shall not see a block at all.


I tried to set the permissions in the "Edit block" section .. that didn't work, or I did s.th. wrong, because
whenever I set at least ONE or more permissions, the block is allready shown, even if the user is not logged in.

Any idea ?
Title: Re: TinyPortal
Post by: IchBin™ on May 31, 2011, 04:29:11 PM
There was a bug that I've fixed for the next release that confused the guest permissions with ungrouped permissions. I posted the fix back several pages if you'd like to try it.
http://www.simplemachines.org/community/index.php?topic=27642.msg2947765#msg2947765
Title: Re: TinyPortal
Post by: Tedi on May 31, 2011, 04:37:52 PM
Ok, I will try it later.

Thx a lot.

Bye and Good Night
Title: Re: TinyPortal
Post by: Tedi on June 01, 2011, 03:09:28 PM
It works.

Thx for your support indeed.


Another question: where can I get help on the TPShoutbox-Module ?

The problem:   When ever I have done a shout, the browser changes to the index-page of the forum, instead of returning to the TinyPortal  frontpage.

I guess,  I did some settings wrong ... but which one ?

Title: Re: TinyPortal
Post by: IchBin™ on June 01, 2011, 03:34:02 PM
You can see the fix for that here:
http://www.tinyportal.net/index.php?topic=33996.msg271987#msg271987
Title: Re: TinyPortal
Post by: Tedi on June 01, 2011, 03:48:55 PM
Quote from: IchBin™ on June 01, 2011, 03:34:02 PM
You can see the fix for that here:
http://www.tinyportal.net/index.php?topic=33996.msg271987#msg271987

Works fine now!

Many thanks !

Title: Re: TinyPortal
Post by: Chair on June 02, 2011, 08:55:55 PM
I installed it... I've never had any problems with TP before but I'm getting a really strange error... Latest SMF (RC5) on a local server using XAMPP and now my site is broken... :(

Apparently, "Table 'testsmf.smf_tp_settings' doesn't exist" - but the installer said everything would work successfully. I don't get it :/
Title: Re: TinyPortal
Post by: IchBin™ on June 02, 2011, 11:36:05 PM
Xamp has had a problem installing in their latest version. I haven't bothered to figure it out because I re-factored the code in my latest stuff. You should be able to run the file I posted here to fix your missing tables. http://www.simplemachines.org/community/index.php?topic=27642.msg3047284#msg3047284
Title: Re: TinyPortal
Post by: Bolt™ on June 03, 2011, 12:03:09 AM
Am just going to copy from my topic (http://www.simplemachines.org/community/index.php?topic=436306.0) what I said

Quote from: FurryHuskyBolt™ on June 02, 2011, 10:36:37 PM
Hello, sorry to bug you busy people with my problems but I installed Tinyportal and now my forum is coming up saying "Unable to load the 'tp_above' template."

So I can't do anything with my forum now...

Can some help this Husky, if so I would be forever grateful...

Thanks for your time and have a nice day...

~Bolt
Title: Re: TinyPortal
Post by: jackregan on June 03, 2011, 06:19:55 AM
When I try to edit articles I get 'Error Code 400: Bad Request' after hitting save.

Any ideas??
Title: Re: TinyPortal
Post by: IchBin™ on June 03, 2011, 10:18:00 AM
Quote from: FurryHuskyBolt™ on June 03, 2011, 12:03:09 AM
Am just going to copy from my topic (http://www.simplemachines.org/community/index.php?topic=436306.0) what I said

Quote from: FurryHuskyBolt™ on June 02, 2011, 10:36:37 PM
Hello, sorry to bug you busy people with my problems but I installed Tinyportal and now my forum is coming up saying "Unable to load the 'tp_above' template."

So I can't do anything with my forum now...

Can some help this Husky, if so I would be forever grateful...

Thanks for your time and have a nice day...

~Bolt

Sounds like your files didn't get uploaded properly. I would open up the TP zip file, then manually upload all the files again for your version of SMF.


Quote from: jackregan on June 03, 2011, 06:19:55 AM
When I try to edit articles I get 'Error Code 400: Bad Request' after hitting save.

Any ideas??

Does your host have mod_security enabled? If so, that could be the problem.
Title: Re: TinyPortal
Post by: K33NY on June 03, 2011, 06:54:19 PM
Hello


When trying to install this mode I get an error message saying:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


What do I do now? we have RC5 and mod says its compitable with it :S
Title: Re: TinyPortal
Post by: jackregan on June 03, 2011, 07:46:56 PM
Hi folks...

I solved the last problem. Sorry to keep asking stupid questions, but I really love this mod and I think when I relaunch my site (waiting on SMF 2.0 Gold) it's going to be an important part of things :)


Okay, one more question...

I have the frontpage set to display articles and selected topics. I also have it set to display 10 items maximum on the front page. Problem is that when there are more than ten and it goes on to a second page all of the forum topics get automatically bumped to the second page.

How can I solve this?

Thanks :)
Title: Re: TinyPortal
Post by: smtek on June 04, 2011, 09:46:30 AM
I installed tiny portal but i cant find it in Admin panel. Generally where is it ?
Title: Re: TinyPortal
Post by: WillyP on June 04, 2011, 09:47:42 AM
Quote from: K33NY on June 03, 2011, 06:54:19 PM
Hello


When trying to install this mode I get an error message saying:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


What do I do now? we have RC5 and mod says its compitable with it :S

Most likely another mod has modified a file that TP also needs to modify. Try removing your mods and installing tp again. If this is a live site you might want to create a test site from a back up so you can do a bit of trial and error to get all your mods working again. That way your live site can stay up while you learn what works and what doesn't.
Title: Re: TinyPortal
Post by: IchBin™ on June 04, 2011, 10:36:26 AM
Quote from: jackregan on June 03, 2011, 07:46:56 PM
Hi folks...

I solved the last problem. Sorry to keep asking stupid questions, but I really love this mod and I think when I relaunch my site (waiting on SMF 2.0 Gold) it's going to be an important part of things :)


Okay, one more question...

I have the frontpage set to display articles and selected topics. I also have it set to display 10 items maximum on the front page. Problem is that when there are more than ten and it goes on to a second page all of the forum topics get automatically bumped to the second page.

How can I solve this?

Thanks :)

This has been fixed in my latest code I believe. I'm going to be releasing it in the next couple of days hopefully.

Quote from: smtek on June 04, 2011, 09:46:30 AM
I installed tiny portal but i cant find it in Admin panel. Generally where is it ?

If you're using SMF1.x it's in the admin panel of SMF. If you're using SMF2, there should be a link in the main menu for it where it will take you to TP's admin. It's a separate admin from SMF's admin.
Title: Re: TinyPortal
Post by: K33NY on June 04, 2011, 11:38:31 AM
Quote from: WillyP on June 04, 2011, 09:47:42 AM
Quote from: K33NY on June 03, 2011, 06:54:19 PM
Hello


When trying to install this mode I get an error message saying:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


What do I do now? we have RC5 and mod says its compitable with it :S

Most likely another mod has modified a file that TP also needs to modify. Try removing your mods and installing tp again. If this is a live site you might want to create a test site from a back up so you can do a bit of trial and error to get all your mods working again. That way your live site can stay up while you learn what works and what doesn't.


The thing is, all my mods are actually uninstalled :S and when trying to install that error occurs :S

But even though I will have an attachement it will show that even when uninstalled mmods you will see theire sources file in the /Sources directory, shouldnt they be gone as well?
Title: Re: TinyPortal
Post by: IchBin™ on June 04, 2011, 12:21:24 PM
What does the install fail on? If you have no mods installed, there should be no failures. If you have failures with no mods installed, try uploading a fresh set of SMF files from the large upgrade package for RC5. Then try the mod install again.
Title: Re: TinyPortal
Post by: K33NY on June 04, 2011, 12:33:25 PM
I will attach a screenie of the error
Title: Re: TinyPortal
Post by: K33NY on June 04, 2011, 12:34:38 PM
allso I tried to use the large upgrade package to clear all mods, but still the mods files re in the sources directory :S
Title: Re: TinyPortal
Post by: IchBin™ on June 04, 2011, 12:42:36 PM
The mod files dont really matter as they won't interfere unless code in the SMF files makes a call to them. You can remove them if you want. The error you are getting is likely because of a permissions issue on your server. Try chmod`ing files to see if it works. If not it might be worth it to see if your host is willing to help you troubleshoot.
Title: Re: TinyPortal
Post by: K33NY on June 04, 2011, 12:48:47 PM
ok so if i go to /sources folder and simply delete the mods files in there it is ok?

allso we used TP before :S but when some other mods caused errors I decided to use large upgrade again.

chmod? u mean adjust the writable executable thing on the files?
Title: Re: TinyPortal
Post by: IchBin™ on June 04, 2011, 08:47:54 PM
Quote from: K33NY on June 04, 2011, 12:48:47 PM
ok so if i go to /sources folder and simply delete the mods files in there it is ok?

Yes, as long as you don't have the mods installed, deleting the mod files should be ok. Just don't delete an SMF file.

Quote
chmod? u mean adjust the writable executable thing on the files?

Yes.
Title: Re: TinyPortal
Post by: K33NY on June 05, 2011, 02:51:34 AM
I got an error when installing it, site crashed, I will attach photo, and no matter what mod I try to install I get a similar error
Title: Re: TinyPortal
Post by: lurkalot on June 05, 2011, 06:01:51 AM
Try renaming your sources folder, just put a ~ at the end of it.

Then from the large upgrade package sitting on your desktop upload the whole sources folder complete with its contents up to your server.   Looks like you deleted something from it that you shouldn't have.
Title: Re: TinyPortal
Post by: K33NY on June 05, 2011, 01:46:18 PM
when renamin the folder and doing as u said, site crashed again, this time a similar error i will show in attachement, and this is after I renamed the sources folder to /sources~ when removing the ~ the site was up again
Title: Re: TinyPortal
Post by: DarkAngel612 on June 05, 2011, 05:08:49 PM
Quote from: K33NY on June 05, 2011, 01:46:18 PM
when renamin the folder and doing as u said, site crashed again, this time a similar error i will show in attachement, and this is after I renamed the sources folder to /sources~ when removing the ~ the site was up again

putting the ~ at the end of files or folders essentially turns them off -- that is why the site would not work, it could not access your files.

what you were supposed to do is add the ~ to the Sources folder then upload ONLY the Sources folder from the unzipped package for the software.

Try uploading the new one after renaming the one on the server again.
Title: Re: TinyPortal
Post by: K33NY on June 05, 2011, 11:20:05 PM
that didnt seem to help either I got a new error then, shown in attachement :S
Title: Re: TinyPortal
Post by: DarkAngel612 on June 06, 2011, 12:18:12 AM
and this is done after:

1. rename Sources to Sources~
2. upload brand new Sources folder fromm opened zip to your sites main folder for the forum
3. try to access site from your sites link?
Title: Re: TinyPortal
Post by: K33NY on June 06, 2011, 12:24:38 AM
yepp excactly as you said there :S and then I got that error when trying to refresh the page,
Title: Re: TinyPortal
Post by: DarkAngel612 on June 06, 2011, 12:33:27 AM
and here I thought my sites were the only ones with weirdness happening...lol

it seems you have totally disabled the TP

Was it working until the upgrade to TP?

have you tried removing ALL tp related files from the server then just uploading the TP files from the full install package -- manually?
Title: Re: TinyPortal
Post by: K33NY on June 06, 2011, 12:55:52 AM
I saw you loged out? shall I just wait? :)
Title: Re: TinyPortal
Post by: DarkAngel612 on June 06, 2011, 01:06:08 AM
nope still there guess it thought I wasn't
Title: Re: TinyPortal
Post by: jackregan on June 12, 2011, 06:25:51 AM
When I try to put a calendar box on the front page, I just get this in the box...



Parse error: syntax error, unexpected T_STRING in /home/pcvgphhq/public_html/Sources/Load.php(2173) : eval()'d code(112) : eval()'d code on line 41



Any ideas?
Title: Re: TinyPortal
Post by: lurkalot on June 12, 2011, 06:56:54 AM
Quote from: jackregan on June 12, 2011, 06:25:51 AM
When I try to put a calendar box on the front page, I just get this in the box...



Parse error: syntax error, unexpected T_STRING in /home/pcvgphhq/public_html/Sources/Load.php(2173) : eval()'d code(112) : eval()'d code on line 41



Any ideas?

Can you please try this, and report back if it works please. And with what versions of SMF and TP are you using?

If you then go back and edit that block, Leave the existing code where it is.  and look below the box containing that code, you'll see "Insert Block code snippet", then Once again select the Mini calender, tick the overwrite box, and save.  The calender works.
Title: Re: TinyPortal
Post by: jackregan on June 12, 2011, 07:27:03 AM
Okay, that works now I did that. Thanks :)

I am running SMF 2.0 and TP 1.0 RC 1.1
Title: Re: TinyPortal
Post by: jackregan on June 12, 2011, 07:30:18 AM
One more question...

How do I get a calendar block that looks like this one on the TP front page:

http://www.tinyportal.net/imgs/block1.png
Title: Re: TinyPortal
Post by: lurkalot on June 12, 2011, 07:51:54 AM
Quote from: jackregan on June 12, 2011, 07:30:18 AM
One more question...

How do I get a calendar block that looks like this one on the TP front page:

http://www.tinyportal.net/imgs/block1.png

Take a look here, http://www.tinyportal.net/index.php?topic=33767.0
Title: Re: TinyPortal
Post by: Farmacija on June 12, 2011, 02:23:02 PM
When  will be relase tp final version which suits to smf 2.0 gold?
Title: Re: TinyPortal
Post by: IchBin™ on June 12, 2011, 07:21:25 PM
TP 1.0 RC2 will be released shortly. If there are no major bugs in it, final will be shortly there after.
Title: Re: TinyPortal
Post by: Biology Forums on June 13, 2011, 04:11:20 PM
I would like to report a bug. If I create panel and display it to all boards, it displays it in all boards but it also displays it in the posting page of that board as well. How do I make it so that the panel only displays in the display.template of that chosen board and not its respective post page.
Title: Re: TinyPortal
Post by: lurkalot on June 13, 2011, 04:15:47 PM
shuban, Thanks.

What versions of SMF and Tinyportal are you using?  Although this thread is for 1.0 RC1, the current version is tp 1.0 RC1.1
Title: Re: TinyPortal
Post by: IchBin™ on June 13, 2011, 04:21:17 PM
All you have to do is add post to the custom actions to not show panels for.
Title: Re: TinyPortal
Post by: Apllicmz on June 13, 2011, 06:46:32 PM
Thank you
Good work

Title: Re: TinyPortal
Post by: IchBin™ on June 13, 2011, 06:48:24 PM
TP1.0 RC2 released. See first post for details.
Title: Re: TinyPortal
Post by: Biology Forums on June 13, 2011, 11:28:01 PM
Quote from: lurkalot on June 13, 2011, 04:15:47 PM
shuban, Thanks.

What versions of SMF and Tinyportal are you using?  Although this thread is for 1.0 RC1, the current version is tp 1.0 RC1.1

I'm using: TinyPortal 1.0 RC1

Quote from: IchBin™ on June 13, 2011, 04:21:17 PM
All you have to do is add post to the custom actions to not show panels for.

Post is already in the list of actions, suggestion doesn't work :-\
Title: Re: TinyPortal
Post by: IchBin™ on June 14, 2011, 02:36:19 AM
Maybe you should clarify things then. You said you have set the panel to show on all boards. There is no board setting. Only specific places like PM, profile etc. Are you meaning you have set the blocks to display on boards? Also, please notice I released RC2 today for TP. It has many bug fixes in it. It may help to upgrade being that I fixed many block settings.

Did you put "post" in the action that you don't want to show? It works fine for me here.
Title: Re: TinyPortal
Post by: DeadSpider on June 14, 2011, 04:17:40 PM
Hi there,
I have been using TP for years it seems and I do not ever recall running into any issues until now :(

I just updated my forum to SMF 2.0 and just installed TP1 RC2.zip and it is giving me the following error
Unknown column 'value9' in 'smf_tp_variables'
File:
...<DOMAIN PATH REMOVED>..../Packages/temp/SMF2/tp_upgrade.php
Line: 347
Title: Re: TinyPortal
Post by: IchBin™ on June 14, 2011, 09:04:40 PM
Did you install through the package manager? Are you getting this error after the install completed, or during the install? Please give as many details as possible.
Title: Re: TinyPortal
Post by: jackregan on June 15, 2011, 02:26:44 PM
Can anybody tell me how to access the RSS feed from each article category? Or all the articles? (Or however it works?)


Thanks :)
Title: Re: TinyPortal
Post by: IchBin™ on June 15, 2011, 02:29:20 PM
There's no RSS feed built in for articles currently. Someone posted some code for an article or block or something quite some time ago at the TP.net site for it if you want that.
Title: Re: TinyPortal
Post by: Robert. on June 15, 2011, 02:30:19 PM
Quote from: IchBin™ on June 13, 2011, 06:48:24 PM
TP1.0 RC2 released. See first post for details.
Congratulations and thankyou :)
Title: Re: TinyPortal
Post by: jackregan on June 15, 2011, 03:42:12 PM
Okay... one more stupid question.

I removed the shoutbox when I first installed TP. How on earth do I get it back?

:)
Title: Re: TinyPortal
Post by: ZarPrime on June 15, 2011, 04:05:33 PM
What do you mean when you say "I removed the shoutbox"?  Do you mean you removed the block?  Or did you turn off the module?  Or What?

ZarPrime
Title: Re: TinyPortal
Post by: jackregan on June 15, 2011, 04:09:09 PM
Er... I think I removed the block.

I know how to add a new block, but there doesn't seem to be a shout option there...
Title: Re: TinyPortal
Post by: ZarPrime on June 15, 2011, 04:10:58 PM
OK, see if this information helps you ...

Quote from: bloc on April 05, 2008, 02:17:25 PM
Where is my old Shoutbox?

Due to the transformation of Shoutbox to an external module, there are also a few steps to take if you want to re-use the shoutbox again.

  • Go to "modules" section and to the tab "uploaded modules". Install the shoutbox module, either one of them or both
  • Go back to the blocks, either modify the older "shoutbox" block(now as a "blank" block) or create a new. In both cases choose the type as "TP module"..the last of the list there. Save and then edit again, this time a list of installed modules should appear for you too choose
  • Choose the shout module you like and save
  • Check that the block render the shoutbox

LMK,
ZarPrime
Title: Re: TinyPortal
Post by: jackregan on June 15, 2011, 04:16:27 PM
Works fine.

Thanks for your help :)
Title: Re: TinyPortal
Post by: ZarPrime on June 15, 2011, 04:18:28 PM
NP.  Glad you got it solved.

ZarPrime
Title: Re: TinyPortal
Post by: DeadSpider on June 15, 2011, 05:47:37 PM
Quote from: IchBin™ on June 14, 2011, 09:04:40 PM
Did you install through the package manager? Are you getting this error after the install completed, or during the install? Please give as many details as possible.
Yes, I am trying to install through Package Manager. It uploads fine "The package has been uploaded successfully."

I press [Install Mod] and all test show
1. Extract Tree ./Themes
2. Extract Tree ./Themes
3. Extract Tree ./Sources
4. Extract Tree ./tp-downloads
5. Extract Tree ./tp-images
6. Extract Tree ./tp-files
7. Execute Modification ./index.php Test successful
8. Execute Modification ./Sources/Load.php Test successful
9. Execute Modification ./Sources/Subs.php Test successful
10. Execute Modification ./Sources/Security.php Test successful
11. Execute Modification ./Sources/Errors.php Test successful
12. Execute Modification ./SSI.php Test successful
13. Execute Modification ./Sources/QueryString.php Test successful
14. Execute Modification ./Sources/Subs-Editor.php Test successful
15. Execute Modification ./Sources/Profile.php Test successful
16. Adapt Database SMF2/tp_upgrade.php


Then I press [Install] and get this error

Database Error
Unknown column 'value9' in 'smf_tp_variables'
File: /home/dead/public_html/blightedtouch/Packages/temp/SMF2/tp_upgrade.php
Line: 347
Title: Re: TinyPortal
Post by: IchBin™ on June 15, 2011, 05:59:41 PM
Did you previously have TP installed or is this a brand new installation? Did you check to see if the column "value9" exists in your smf_tp_variables table?

If you extract the tp_upgrade.php file from the SMF2 folder and put it in your root folder of SMF, then run it in your browser (http://yourdomain.com/smf/tp_upgrade.php), do you still get the error?
Title: Re: TinyPortal
Post by: DeadSpider on June 15, 2011, 09:30:55 PM
Quote from: IchBin™ on June 15, 2011, 05:59:41 PM
Did you previously have TP installed or is this a brand new installation? Did you check to see if the column "value9" exists in your smf_tp_variables table?

If you extract the tp_upgrade.php file from the SMF2 folder and put it in your root folder of SMF, then run it in your browser (http://yourdomain.com/smf/tp_upgrade.php), do you still get the error?
Here is what I get when I put the  tp_upgrade.php in my SMF  root folder and go to it  (http://yourdomain.com/smf/tp_upgrade.php) ....
Database Error

Duplicate column name 'id_member'
File: /home/dead/public_html/blightedtouch/tp_upgrade.php
Line: 316
Back




Forgot to add... I had TP already in my site prior
Title: Re: TinyPortal
Post by: IchBin™ on June 16, 2011, 10:56:38 AM
What TP version were you on before you tried to install TP1 RC2 ?

From what I can tell, it shouldn't worry if the column names are duplicates, as it should update them even if they already exist.
Title: Re: TinyPortal
Post by: DeadSpider on June 16, 2011, 12:29:28 PM
Quote from: IchBin™ on June 16, 2011, 10:56:38 AM
What TP version were you on before you tried to install TP1 RC2 ?

From what I can tell, it shouldn't worry if the column names are duplicates, as it should update them even if they already exist.

I hate to say this, but I can't recall :( The same version was on my site for years it seems. I remember when SMF first started the release candidates for 2.0, I never tried them because TP did not support them at that time. I think I was current with TP to that point.
Title: Re: TinyPortal
Post by: Ray916MN on June 16, 2011, 12:37:53 PM
Quote from: DeadSpider on June 16, 2011, 12:29:28 PM
Quote from: IchBin™ on June 16, 2011, 10:56:38 AM
What TP version were you on before you tried to install TP1 RC2 ?

From what I can tell, it shouldn't worry if the column names are duplicates, as it should update them even if they already exist.

I hate to say this, but I can't recall :( The same version was on my site for years it seems. I remember when SMF first started the release candidates for 2.0, I never tried them because TP did not support them at that time. I think I was current with TP to that point.

I've got the same problem and was using TinyPortal 1.104. If you browse in Package Manager you may be able see what you had installed.
Title: Re: TinyPortal
Post by: IchBin™ on June 16, 2011, 09:05:01 PM
The current internal version is 1.104 for RC2. I need to know the copyright version as I don't know what Bloc had for all the other beta's and stuff. If I can get the version that you guys were using, I can try and run a test to see if I can get the same problem to show up.
Title: Re: TinyPortal
Post by: Ray916MN on June 16, 2011, 09:25:49 PM
Quote from: IchBin™ on June 16, 2011, 09:05:01 PM
The current internal version is 1.104 for RC2. I need to know the copyright version as I don't know what Bloc had for all the other beta's and stuff. If I can get the version that you guys were using, I can try and run a test to see if I can get the same problem to show up.

I've got the latest version "TinyPortal v1.0 RC2 for SMF 2.0 Final, RC4, or RC5" 1.104 according to Package Manager. Downloaded it last night before starting the upgrade to SMF 2.0 RC5.
Title: Re: TinyPortal
Post by: Biology Forums on June 17, 2011, 03:00:53 PM
I need help with this. If I want a portal to display ONLY in the message board index, how do I configure it (what do I check)? I'm using 1.1.14 and TinyPortal 1.0 RC1.

Just to be clear, I don't want it anywhere else, ONLY in the message board index of all boards.

The code is a PHP code, by the way...




Title: Re: TinyPortal
Post by: Biology Forums on June 17, 2011, 03:09:28 PM
I also noticed that certain portals display in certain browsers while others don't show at all.

For instance, firefox will not display any lower panel blocks even if its life depended on it.
Title: Re: TinyPortal
Post by: DarkAngel612 on June 17, 2011, 05:13:18 PM
Quote
Posted by: shuban « on: Today at 02:00:53 PM » 
I need help with this. If I want a portal to display ONLY in the message board index, how do I configure it (what do I check)? I'm using 1.1.14 and TinyPortal 1.0 RC1.

Just to be clear, I don't want it anywhere else, ONLY in the message board index of all boards.


by portal do you mean a block? Those are set in each blocks individual edit area. The same place you set it to be seen by which membergroups/guests. scroll down to "choose where the block should appear" . If you want it to be seen only where the board index is then only click that little square in front of "board index".

I use firefox all the time on both an old mac and the vista pc and what I find is a step I usually forget to set up.

you need to go to area where you choose to make/edit a block...only click the Panels link. Here you will find all the block panel names and go to each one you will be using and select to have it show...set it to ON or it won't appear even if you have set it to active.

Title: Re: TinyPortal
Post by: Biology Forums on June 17, 2011, 05:37:39 PM
Here's the issue. I don't want the block to appear in the board index, or anywhere else. I only want it to appear when the user is viewing the list of topics inside a board (the message index). However, when they click a topic, and go into a single thread, that block no longer appears.

EDIT: I Think I got it to work: Click Board Index and Display on all boards
Title: Re: TinyPortal
Post by: DarkAngel612 on June 17, 2011, 08:33:17 PM
yes check board index and it is seen ONLY on the main board page that lists all boards on your forum

Display on all boards will show it on each individual board they visit I think

I have mine set for some left blocks to be seen even in some areas like profile or certain threads like our market threads

play around with the controls using a window for the actual settings and another tab or window for the page you are trying to get it to show on. Then you will be able to set it up just the way you hope to do
Title: Re: TinyPortal
Post by: Biology Forums on June 18, 2011, 03:45:55 AM
Quote from: shuban on June 17, 2011, 05:37:39 PM
Here's the issue. I don't want the block to appear in the board index, or anywhere else. I only want it to appear when the user is viewing the list of topics inside a board (the message index). However, when they click a topic, and go into a single thread, that block no longer appears.

EDIT: I Think I got it to work: Click Board Index and Display on all boards

I take it back, it didn't work! Please help, honestly, if this feature isn't available, I'd like to know from the developer. I only want a block display in the message index of every board, not in topic display, or in post display.
Title: Re: TinyPortal
Post by: lurkalot on June 18, 2011, 10:05:40 AM
Try. 

TP admin / Panels.  on each panel for example   Hide left panel when in forum? Yes / No. 

Do this for each panel as required.
Title: Re: TinyPortal
Post by: Biology Forums on June 19, 2011, 03:00:55 AM
Quote from: lurkalot on June 18, 2011, 10:05:40 AM
Try. 

TP admin / Panels.  on each panel for example   Hide left panel when in forum? Yes / No. 

Do this for each panel as required.

Didn't work... For some strange reason, it works on an older version of Firefox, but not the newer one. However, I still need assistance with this question:

I only want a block display in the message index of every board, not in topic display, or in post display.

I really need this to work :-\ I'm starting to lose faith in this awesome mod :'(
Title: Re: TinyPortal
Post by: bloc on June 19, 2011, 09:49:01 AM
That would be more difficult, as (if its not changed in later TP versions) the options were only on boards specified(only the message-index or insidethe board(s)). I don't recall an option for messageindex of every board.

You could semi-do it though, by adding a PHP block that check that and exit if doesn't. That means it will show the blocktitle and an empty content(depending on whether you add something else in case its not the correct spot)

That would be something like:

if(isset($_GET['board']) && !isset($_GET['action']) && !isset($_GET['topic']))
{
    // place your code here
}
else
{
   echo 'test'; // A dummy message for every other place, possibly another content
}
Title: Re: TinyPortal
Post by: Biology Forums on June 19, 2011, 11:26:51 AM
Quote from: Bloc on June 19, 2011, 09:49:01 AM
That would be more difficult, as (if its not changed in later TP versions) the options were only on boards specified(only the message-index or insidethe board(s)). I don't recall an option for messageindex of every board.

You could semi-do it though, by adding a PHP block that check that and exit if doesn't. That means it will show the blocktitle and an empty content(depending on whether you add something else in case its not the correct spot)

That would be something like:

if(isset($_GET['board']) && !isset($_GET['action']) && !isset($_GET['topic']))
{
    // place your code here
}
else
{
   echo 'test'; // A dummy message for every other place, possibly another content
}


Thank you, Bloc, I will test it and let you know.

Golden, it worked!
Title: Re: TinyPortal
Post by: Biology Forums on June 19, 2011, 03:57:18 PM
I know I may be asking for too much, but is it possible to program this mod so that if an embedded image (in a post) exceeds 500 px (width), the right panel automatically collapses when the topic is loaded?
Title: Re: TinyPortal
Post by: bloc on June 19, 2011, 04:09:39 PM
That would be hard, as it then must actually test if any image in the post are over a certain width - it would drive the resouce usage up high with all the the file-checking(since it would need to do it on every post every time.)

I would say a better way is to set the CSS so that the image is scaled down when its over 500px, or just when the space is lower than that. "max-width: 500px;" on the ".post img" tag should solve that, at least on modern browsers.
Title: Re: TinyPortal
Post by: Biology Forums on June 19, 2011, 04:58:50 PM
Quote from: Bloc on June 19, 2011, 04:09:39 PM
That would be hard, as it then must actually test if any image in the post are over a certain width - it would drive the resouce usage up high with all the the file-checking(since it would need to do it on every post every time.)

I would say a better way is to set the CSS so that the image is scaled down when its over 500px, or just when the space is lower than that. "max-width: 500px;" on the ".post img" tag should solve that, at least on modern browsers.

I will probably end up doing that then, thanks.
Title: Re: TinyPortal
Post by: Farmacija on June 19, 2011, 07:34:17 PM
I have  to ask in here too for faster response:

Trouble with installation of tp 1 rc2 -> http://www.tinyportal.net/index.php?topic=34113.0
Title: Re: TinyPortal
Post by: Alex' Manson on June 21, 2011, 05:37:24 PM
errors in the error log, everything works fine.. but this.. idk.


http://xrevolution.helali.tk/index.php?action=admin;area=logs;sa=errorlog;desc2: strpos() [<a href='function.strpos'>function.strpos</a>]: Empty delimiterFile: /home/vol1/xtreemhost.com/xth_7770219/xrevolution.helali.tk/htdocs/Sources/TPSubs.php
Line: 3077
Title: Re: TinyPortal
Post by: Kindred on June 21, 2011, 09:14:23 PM
hmmm....

go to profile - select tinyportal and then select articles
Fatal error: Function name must be a string in /....../Sources/TPmodules.php on line 1120

it's this bit....

          if(isset($wysid))
            $smcFunc['db_query']('', '
              UPDATE {db_prefix}tp_data
              SET value = {int:val}
              WHERE id = {int:dataid}',
              array('val' => $value, 'dataid' => $wysid)
            );
Title: Re: TinyPortal
Post by: Alex' Manson on June 21, 2011, 10:07:15 PM
didn't understand you, it has something to do with strpos.
because it shows two lines (3097 and 3077)
and they both contain strpos.

help?
Title: Re: TinyPortal
Post by: Alex' Manson on June 21, 2011, 10:09:36 PM

Fixed it myself.
Title: Re: TinyPortal
Post by: IchBin™ on June 22, 2011, 11:01:51 AM
Quote from: Sisko Punk on June 21, 2011, 10:09:36 PM

Fixed it myself.
What was the fix? In case I need to put one in for the problem...


Quote from: Kindred on June 21, 2011, 09:14:23 PM
hmmm....

go to profile - select tinyportal and then select articles
Fatal error: Function name must be a string in /....../Sources/TPmodules.php on line 1120

it's this bit....

          if(isset($wysid))
            $smcFunc['db_query']('', '
              UPDATE {db_prefix}tp_data
              SET value = {int:val}
              WHERE id = {int:dataid}',
              array('val' => $value, 'dataid' => $wysid)
            );


It looks like you posted the wrong code from lines 1020 instead of 1120? I've had some bugs come through from all the database conversion queries I changed. IIRC, for that error I left out the $smcFunc global at the top of that function.

Quotefunction tp_profile_articles($memID)
{
   global $txt, $user_profile, $context, $db_prefix, $settings, $scripturl, $smcFunc;
Title: Re: TinyPortal
Post by: Alex' Manson on June 22, 2011, 11:23:39 AM
Quote from: IchBin™ on June 22, 2011, 11:01:51 AM
Quote from: Sisko Punk on June 21, 2011, 10:09:36 PM

Fixed it myself.
What was the fix? In case I need to put one in for the problem...


Quote from: Kindred on June 21, 2011, 09:14:23 PM
hmmm....

go to profile - select tinyportal and then select articles
Fatal error: Function name must be a string in /....../Sources/TPmodules.php on line 1120

it's this bit....

          if(isset($wysid))
            $smcFunc['db_query']('', '
              UPDATE {db_prefix}tp_data
              SET value = {int:val}
              WHERE id = {int:dataid}',
              array('val' => $value, 'dataid' => $wysid)
            );


It looks like you posted the wrong code from lines 1020 instead of 1120? I've had some bugs come through from all the database conversion queries I changed. IIRC, for that error I left out the $smcFunc global at the top of that function.

Quotefunction tp_profile_articles($memID)
{
   global $txt, $user_profile, $context, $db_prefix, $settings, $scripturl, $smcFunc;

i removed the original copyright and reposted it in index.template.php
because the original one gets on top of the smf's copyright.
so there was an error in the code know after i altered the copyright.
after all, i removed the whole copyright checks etc, and reputted it manually in index.template.php.

so, it's an issue in My part.
Title: Re: TinyPortal
Post by: Kindred on June 22, 2011, 12:07:57 PM
ichBin, again, you are correct (that's what I get for trying to debug after 8 hours of rel work and another 4 of code-tweaking.)

Ok, fixed that error, now this one
go to profile - select tinyportal and then select articles

The database value you're trying to insert does not exist: sorting
Title: Re: TinyPortal
Post by: IchBin™ on June 22, 2011, 01:10:11 PM
Yeah I think I've fixed that one too. I think I put sorting instead of sort. Since you didn't give me a line number, I'll have to sort through the code to find the problem again...

Sources/TPmodules.php
Code (find) Select
ORDER BY art.{raw:sorting} DESC LIMIT {int:start}, 10',

Code (replace) Select
ORDER BY art.{raw:sort} DESC LIMIT {int:start}, 10',



Title: Re: TinyPortal
Post by: Kindred on June 22, 2011, 02:05:36 PM
yup, that was it!   YAY!

now to figure out how to get all this crap into a useable set of menus and dropdowns.
Title: Re: TinyPortal
Post by: Kindred on June 24, 2011, 02:13:47 PM
ok.... some more odd issues, working with articles.

1- upload a PNG image as Alternative listing icon (128x128 px):
a- transparent BG is now black
b- the system prepends and appends some odd numbers and letters...
c- where is this icon used? I have one selected, but it does not appear any where

2- articles link?  How do I get a list of categories for the users?

3- in the category, it displays all articles in that category, but lists a button link to category 1 and no other.

4- in the category list, the "read more" article link is broken unless I use the article ID in the article setup, Query title:
   if I use ANYTHING else, the link is broken. (i.e. article #2 must have Query title: "2", although I want it to be "July-Aug Newsletter")

5- in articles settings, Assign global tags: -> Create new tag:  -- I added the tag "Newsletter"   it shows as (checkbox []) $value   (yes, exactly that... $value)



in the profile "tinyPortal" link...
it shows "Shouts" even though I have the shoutbox turned off.

side note: This should not be titled TinyPortal in the profile settings, IMO...    most people won't know what that is.
I'd suggest "Content Submissions" (and add a link to the standard post list as well)

There should also be a link in this profile/article section to ADD NEW ARTICLE.
Title: Re: TinyPortal
Post by: miosha on June 25, 2011, 09:38:07 AM
good day :)
sorry to bring this up again but did u manage to resolve this?

Unknown column 'value9' in 'smf_tp_variables'
File: /var/www/html/Packages/temp/SMF2/tp_upgrade.php
Line: 347


I have this error when trying to install tinyPortal 1 RC2 via Package manager. Previously I had SMF 1.1.14 with TinyPortal 0.98.
Then I upgraded SMF to 2.0 without uninstalling old tinyPortal. SMF seem upgraded successfully and shows now that no other packages installed.
Title: Re: TinyPortal
Post by: miosha on June 25, 2011, 10:11:31 AM
Well solved it by wiping all previous tp tables :) so don't mind my previous question and thankies anyways =)
Title: Re: TinyPortal
Post by: IchBin™ on June 25, 2011, 01:36:42 PM
Quote from: Kindred on June 24, 2011, 02:13:47 PM
ok.... some more odd issues, working with articles.

1- upload a PNG image as Alternative listing icon (128x128 px):
a- transparent BG is now black
b- the system prepends and appends some odd numbers and letters...
c- where is this icon used? I have one selected, but it does not appear any where
That icon is used for when you select a different layout option. Like if you were to change the layout option in the front page settings to be "Picture + Article".  I think Bloc had put the hash of numbers/letters on it for security reasons or something. I'm not sure exactly why yet. As for the image losing it's transparency, I don't know. I would assume at this point it loses the transparency when it has to resize the image if it's over 128x128. I really don't know anything about the image functions, so I'll have to test that out when I get a chance. Try testing with an image under 128x128 to see if you get the same problem.

Quote
2- articles link?  How do I get a list of categories for the users?

There is a catlist block that will list all the categories that you select in the admin interface for this. Or if you select the option in the articles to show the categories. It should show the categories as tabs at the top of the page IIRC.

Quote
3- in the category, it displays all articles in that category, but lists a button link to category 1 and no other.

In the categories admin you need to select which categories are allowed to be displayed there in the catlist option.

Quote
4- in the category list, the "read more" article link is broken unless I use the article ID in the article setup, Query title:
   if I use ANYTHING else, the link is broken. (i.e. article #2 must have Query title: "2", although I want it to be "July-Aug Newsletter")

5- in articles settings, Assign global tags: -> Create new tag:  -- I added the tag "Newsletter"   it shows as (checkbox []) $value   (yes, exactly that... $value)
I'll have to look into these.

Quote
in the profile "tinyPortal" link...
it shows "Shouts" even though I have the shoutbox turned off.

Awesome... I'll have to fix that too. lol

Quote
side note: This should not be titled TinyPortal in the profile settings, IMO...    most people won't know what that is.
I'd suggest "Content Submissions" (and add a link to the standard post list as well)

There should also be a link in this profile/article section to ADD NEW ARTICLE.


Thanks for the reports and suggestions. I'll take a look as I get time and see what I can do.
Title: Re: TinyPortal
Post by: IchBin™ on June 25, 2011, 01:37:38 PM
Quote from: miosha on June 25, 2011, 10:11:31 AM
Well solved it by wiping all previous tp tables :) so don't mind my previous question and thankies anyways =)

Sorry miosha I didn't get here sooner. Yes there are problems for people who upgrade from SMF1 to SMF2 using TP. I've posted a fixed database upgrade file at the TP site. But since you removed your tables, you really don't have to worry about that. :)
Title: Re: TinyPortal
Post by: DarkAngel612 on June 25, 2011, 06:25:09 PM
well I am glad you did that cause if we should decide to --- oneday--- upgrade to 2.0 then we won't have to delete all tables cause would that also take out all site/member info from before?
Title: Re: TinyPortal
Post by: IchBin™ on June 25, 2011, 10:50:01 PM
Well, he only said he had to delete the TP tables. Not all tables. Deleting SMF tables would not be necessary. But still, it's nice to not have to lose articles and blocks etc. :)
Title: Re: TinyPortal
Post by: DarkAngel612 on June 25, 2011, 11:08:48 PM
that is good to know...it is so hot here in kansas that I totally only swa the words tables and that was it...lol

thanks for pointing that out and yes don't want to lose tables, menus aor articles especially now that they are working again.
Title: Re: TinyPortal
Post by: Kindred on June 26, 2011, 08:54:55 AM
Ok....   For 1....   The png background is lost, no matter what. If the png is resized up or down or event if it is 128x128 already.

For the cat list... I found the admin part that handles it.
However, when attempting to add my category to that list, I get an error

The database value you're trying to insert does not exist: val



Tiny portal has come a long way since I first used it, years ago....    Is all of this admin functionality documented anywhere?   Because it seems that several of my questions are "how do I do this" an
D the answer is merely, find the correct admin section. (which is not always specifically, clearly obvious, on first glance) ;)

Also, things like what the various panel layout descriptions mean would be helpful, since the red and grey boxes are somewhat arcane to me. :)

eit- specific error logs for the category issue


http://...../index.php?action=tpadmin
The database value you're trying to insert does not exist: val
Function: do_postchecks
File: /...../Sources/TPortalAdmin.php
Line: 2794

http://...../index.php?action=tpadmin
8: Undefined variable: catname
File: /...../Sources/TPortalAdmin.php
Line: 2791


logs for the queryname / article name

http://...../index.php?page=July_August_Newsletter
Wrong value type sent to the database. Integer expected. (page)
Function: TP_loadTheme
File: /...../Sources/TPortal.php
Line: 252


logs for the "value" bug

http://..../index.php?action=tpadmin
8: Undefined variable: value
File: /...../Sources/TPortalAdmin.php
Line: 3461

Title: Re: TinyPortal
Post by: IchBin™ on June 27, 2011, 09:04:57 PM
For the first error:

TPortalAdmin.php
Code (find) Select
$smcFunc['db_query']('',
'UPDATE {db_prefix}tp_settings
SET value = {string:val}
WHERE name = {string:name} LIMIT 1',
array(
'val' => $catname,
'name' => 'cat_list',
)
);


Code (replace) Select
$smcFunc['db_query']('',
'UPDATE {db_prefix}tp_settings
SET value = {string:val}
WHERE name = {string:name} LIMIT 1',
array(
'val' => $catnames,
'name' => 'cat_list',
)
);


For the second error (page wrong type): Sources/TPortal.php
Code (find) Select
else
$request =  $smcFunc['db_query']('', '
SELECT id_theme FROM {db_prefix}tp_articles
WHERE shortname = {int:page}',
array('page' => $pag)
);


Code (replace) Select
else
$request =  $smcFunc['db_query']('', '
SELECT id_theme FROM {db_prefix}tp_articles
WHERE shortname = {string:page}',
array('page' => $pag)
);


For the $value error, goto that line number in TPortalAdmin.php and change the $value in the query to $name. I think that is what it should be. Thanks for reporting all the errors. They are the result of changing all the database queries to be the same as SMF2's... And me learning them in the process. :D
Title: Re: TinyPortal
Post by: Kindred on June 28, 2011, 08:18:06 AM
Quote from: IchBin™ on June 27, 2011, 09:04:57 PM
For the second error (page wrong type):
Code (find) Select
else
$request =  $smcFunc['db_query']('', '
SELECT id_theme FROM {db_prefix}tp_articles
WHERE shortname = {int:short}',
array('short' => $pag)
);


Code (replace) Select
else
$request =  $smcFunc['db_query']('', '
SELECT id_theme FROM {db_prefix}tp_articles
WHERE shortname = {string:short}',
array('short' => $pag)
);


hmmm....

in TPortal, I do not have that code...

The closest that I can fine looks like looks like


    else
      $request =  $smcFunc['db_query']('', '
        SELECT id_theme FROM {db_prefix}tp_articles
        WHERE shortname = {int:page}',
        array('page' => $pag)
      );


so, should it be {string:page}?


--edit - that seems to have worked.
and fixed the catlist bug...

However, the value bug does noo seem to have been corrected.



edit 2- After doing these 3 edits, I am now getting the following error when I (as admin) got to view an article
http://...../index.php?action=tpadmin;sa=clist
Sorry, you are not allowed to view this article


Since there are only two articles in the system at the moment and both are approved and visible to everyone, this is an odd error.
Title: Re: TinyPortal
Post by: Dramber on June 28, 2011, 12:54:19 PM
I had the same problem:
Quotein TPortal, I do not have that code...

The closest that I can fine looks like looks like

Code: [Select]
    else
      $request =  $smcFunc['db_query']('', '
        SELECT id_theme FROM {db_prefix}tp_articles
        WHERE shortname = {int:page}',
        array('page' => $pag)
      );

so, should it be {string:page}?
changing it from {int:page} to {string:page} got rid of the errors and allowed me access to the list.
Thanks for continuing to work on this great portal mod. :)


*Removed stuff. Nub mistake, Thanks Kindred for pointing that out. ;)*
Title: Re: TinyPortal
Post by: Kindred on June 28, 2011, 01:11:41 PM
you probably don't want to change anything except for the ONE spot that IchBin mentions...  All of the other int:page seem to be appropriate, since they are looking for the page ID, not the page shortname.
Title: Re: TinyPortal
Post by: Dramber on June 28, 2011, 01:30:34 PM
That's strange. I was still getting errors and couldn't see my cat list page until I changed it in all 3 places.
Title: Re: TinyPortal
Post by: Kindred on June 28, 2011, 01:33:45 PM
I changed the one place and it works for me....
Title: Re: TinyPortal
Post by: Dramber on June 28, 2011, 01:45:59 PM
You are correct sir. I uploaded the wrong changed file to my webserver. Silly nub mistake. Edited my original post to reflect that.
Title: Re: TinyPortal
Post by: IchBin™ on June 29, 2011, 11:33:30 AM
Sorry about that, yes Kindred you found the right code. lol Glad you figured that out.

Yes all instances of int:page should be kept. It checks for the ID (int) number in those instances, instead of the query name (string).

So kindred, are you saying after making just those changes you now can access the catlist page in categories?
Title: Re: TinyPortal
Post by: Kindred on June 29, 2011, 12:00:42 PM
yes, after making those changed, the catlist is working correctly.

The Queryname seems to be working correctly as well.

The article global tags is still broken though.  It saves the field as "$value" in the db, regardless of what I enter. I was able to work around it by adding three and then going into the database and changing them directly.
Title: Re: TinyPortal
Post by: IchBin™ on June 29, 2011, 03:32:28 PM
Aha. In Sources/TPortalAdmin.php

                    if(!empty($value))
                        $smcFunc['db_query']('REPLACE',
                            '{db_prefix}tp_variables',
                            array('value1' => 'string', 'type' => 'string'),
                            array($value,'globaltag'),
                            array('id')
                        );


Change db_query to db_insert. :)

That fixes entering tags from tags admin. Will check out adding tags from articles.
Title: Re: TinyPortal
Post by: Dramber on June 30, 2011, 12:10:48 AM
Made the change but for a tag I get $value instead of the word I entered for a tag, from the article page. It works just fine on /index.php?action=tpadmin;sa=modules;tags page. :)

I do have one last error, when I go to /index.php?cat=docs or /index.php?cat=1 I get this error in my log:
/index.php?cat=18
Undefined index: page
File: /public_html/Sources/TPSubs.php(1744) : eval()'d code
Line: 286
Title: Re: TinyPortal
Post by: Dramber on June 30, 2011, 01:50:44 AM
Couple more little things I noticed.

When I post a forum post to the front page and it gets cut off due to char limits there is not a Read More link at the bottom. I honestly can't remember if that was working prior to upgrading or not.

This one is a little stranger and may just be my sites theme. When I go to edit an article the text area stretches way over off the screen. This only happens with the WYSIWYG editor turned off in my profile. And only with BBC articles.

On the /index.php?action=tpadmin;sa=permissions page after submitting this error pops up, everything seems to save though...
/index.php?action=tpadmin;sa=permissions
2: mysql_real_escape_string() expects parameter 1 to be string, array given
File: /hermes/bosweb/web122/b1220/ipw.orderoft/public_html/smf/Sources/Subs-Db-mysql.php
Line: 163


And in case I forgot to tell you earlier, Thanks for continuing to maintain this great mod!
Title: Re: TinyPortal
Post by: IchBin™ on June 30, 2011, 10:19:15 AM
The eval error for 'page' is probably from a block that you have which code needs to be updated.

Still working on the tags problem. The textbox issue, I think is something to do with SMF but I'm not sure. Does the textbox correct itself if you refresh the page? Does it only happen in a certain browser?

I'll see about the permissions error you posted last. Thanks for reporting!

Title: Re: TinyPortal
Post by: Dramber on June 30, 2011, 12:54:04 PM
Quote from: IchBin™ on June 30, 2011, 10:19:15 AM
The eval error for 'page' is probably from a block that you have which code needs to be updated.
Hmmm, that's weird. It only happens on /index.php?cat=docs or /index.php?cat=x pages. I have yet to see that error show up when using any other portion of the site. I'll go over all my block codes though.

Quote from: IchBin™ on June 30, 2011, 10:19:15 AM
Still working on the tags problem. The textbox issue, I think is something to do with SMF but I'm not sure. Does the textbox correct itself if you refresh the page? Does it only happen in a certain browser?
I tested in IE, Firefox, and Chrome and it happens in all of them. Refreshing does not fix the layout. It only seems to happen on BBC pages. My PHP and HTML edit pages render just fine.

Quote from: IchBin™ on June 30, 2011, 10:19:15 AM
I'll see about the permissions error you posted last. Thanks for reporting!
No problem and thank you! Just let me know if you need any other information from my site or access. I'm glad to help. ;)
Title: Re: TinyPortal
Post by: IchBin™ on July 01, 2011, 02:56:17 PM
For the tag $value problem.

Sources/TPortalAdmin.php
Code (find) Select
$tag = $value;
$smcFunc['db_insert']('REPLACE',
'{db_prefix}tp_variables',
array('value1' => 'string', 'type' => 'string'),
array('$value', 'globaltag'),
array('id')
);


Change array('$value', 'globaltag') to remove quotes from $value.
Should be array($value, 'globaltag')
Title: Re: TinyPortal
Post by: Dramber on July 01, 2011, 05:39:18 PM
Yup, that fixed that error.
Thanks!
Title: Re: TinyPortal
Post by: ShepHeard on July 03, 2011, 09:13:28 PM
Hi Bloc,

Great mod, I like the look of it, and will try and get my head around it soon.

Just one question, is it possible to change the location of the front page? I.e. my forum is hosted @ forum.url.com, is it possible for the front page to be @ the url e.g. www.url.com?

Probably a very basic question...

many thanks,


S
Title: Re: TinyPortal
Post by: IchBin™ on July 03, 2011, 10:30:40 PM
Hi ShepHeard,

Sorry to say that TP is not capable of doing that. TP is just an extension of SMF. The only portal that I know of that could possibly do what you are asking is Simple Portal. If that's what you are looking for, I'd give that mod a try.
Title: Re: TinyPortal
Post by: ShepHeard on July 03, 2011, 10:39:18 PM
Thanks a lot for the quick reply. I'll have a look, but it's no great deal.

Thanks again,

S
Title: Re: TinyPortal
Post by: ShepHeard on July 04, 2011, 04:08:29 AM
Another question/problem...

I'm trying to manage the files, and when I try to delete the folders I've created, I get "The database value you're trying to insert does not exist: cat"...

Kind of weird... what should I do?

[EDIT] And I may be being stupid, but how do I delete individual files?
Title: Re: TinyPortal
Post by: IchBin™ on July 04, 2011, 02:36:45 PM
Sorry, but I don't understand what you talking about when you say you try to "delete the folders I've created".  Are you talking about in the downloads where you've created categories or something?

To delete a file you need to edit the file. Check the box to delete it and click submit. There's no other way at the moment. It needs a mass delete option with check boxes or something I know.... lol

It would help if you also posted what versions of SMF and TP you are running.
Title: Re: TinyPortal
Post by: ShepHeard on July 04, 2011, 08:16:02 PM
Hi IchBin,

Sorry - it was a busy day yesterday, I should have been more clear..! :)

I'm using SMF 2.0 and TP 1.104.

There are two issues I guess:

1) I went to TP|Manage Files and added a category. However, when I try to delete the category I get "An Error Has Occurred!" && "The database value you're trying to insert does not exist: cat". And I can't remove it.

2) I uploaded a file, TP|Manage Files|Upload. However, all I can see is what's in the screen dump below...

There is no option to delete...


I hope this makes more sense...! ;)

Cheers,

S
Title: Re: TinyPortal
Post by: Hardcase on July 05, 2011, 03:36:34 AM
Excellent mod, have used it for many years but i have a little problem which has shown up since i upgraded both the forum and TP.

I have seached this and the TP forum but cannot find a solution, under 1.1.4 and tp 0.978 ( think those were the ones) i had a block which i used to show charity donations using a widget from "justgiving" now this worked fine, automatically updated and used the html code block.
Now when i choose this option and place the code in the block it blanks out and reduces the code down:

start:
<object type="application/x-shockwave-flash" allowScriptAccess="always" height="230" width="160" align="middle" data="http://www.justgiving.com/widgets/jgwidget.swf" flashvars="EggId=2127129&IsMS=0"><param name="movie" value="http://www.justgiving.com/widgets/jgwidget.swf" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="flashvars" value="EggId=2127129&IsMS=0" /></object>

After adding to block and saving:

<object data="http://www.justgiving.com/widgets/jgwidget.swf" width="160" align="middle" height="230" type="application/x-shockwave-flash" flashvars="EggId=2127129&amp;IsMS=0" allowScriptAccess="always"></object>

Now when saved and activated all i get is a blank box see image.

I've tried all i can think of as a user, i'm not a coder although i can and will edit whats necessary to get it working again.
Title: Re: TinyPortal
Post by: WillyP on July 05, 2011, 10:36:33 AM
In the bottom row of buttons, in the block editor, there is one for html. Hit that button before you paste your code. Also, make sure you are not blocking the flash with a blocker in your browser. Now that you updated, your blocker may see it as a new page and you will have to add it to your list of unblocked items.
Title: Re: TinyPortal
Post by: Hardcase on July 05, 2011, 10:41:41 AM
Thanks but i have already done that, switching the block to code instead of WYSIWYG, but this still happens it also happened with another block i tried today for the twitter widget, shortens the code and leaves the block blank. Obviously just doesnt like the coding from widgets...lol

With twitter its written for Javascript so it should work, but alas it does not.
Title: Re: TinyPortal
Post by: WillyP on July 05, 2011, 10:45:15 AM
Strange, I tested your code on my test site, it works fine.
Title: Re: TinyPortal
Post by: Xarkurai on July 05, 2011, 11:37:03 AM
Hello!
I noticed that when using this mod and checking the admin section (admin for blocks) that it bugs (not really a bug, but it might be interesting to know).
Not everything is shown in the admin tab and the page isn't stretching.
This appears to happen on all themes smaller then 940-950px in width. Meaning, themes set to 50% (or around it) will also not show the admin blocks with all options for a lot of admins.

I found this issue while I was working at one of my themes.
Also, not sure if this already said.

Attached an image for example. You can see that it is cut off.
Edit: SMF 2.0 ;) .
Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 12:08:31 PM
Quote from: ShepHeard on July 04, 2011, 08:16:02 PM
There are two issues I guess:

1) I went to TP|Manage Files and added a category. However, when I try to delete the category I get "An Error Has Occurred!" && "The database value you're trying to insert does not exist: cat". And I can't remove it.

2) I uploaded a file, TP|Manage Files|Upload. However, all I can see is what's in the screen dump below...

There is no option to delete...

For #1:
Code (find) Select
$request = $smcFunc['db_query']('', '
DELETE FROM {db_prefix}tp_dlmanager
WHERE id = {int:cat} LIMIT 1',
array('item' => $cat)
);


Change array('item' => $cat) to array('cat' => $cat)

For #2, you actually have to click on the download item as if you are going to edit the information of that item. There will be a checkbox to delete on that page.
Title: Re: TinyPortal
Post by: Hardcase on July 05, 2011, 12:15:58 PM
WillyP thanks but i cannot get it to display on two forums so its not just local to the one, both forums are setup the same though, ie both the same theme, ajaxchat, tp and even when switched to curve neither will display the block, the code is still being shortened.

Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 12:21:01 PM
Strange, I'm not having the problem either. I've pasted your code into a block just fine. Do you mind letting me have a look at your forum with a temp admin account? Feel free to PM me if you'd like me to take a look.
Title: Re: TinyPortal
Post by: Hardcase on July 05, 2011, 12:22:55 PM
no problem at all... pm on way!  ;D
Title: Re: TinyPortal
Post by: Dramber on July 05, 2011, 01:29:11 PM
I've found with html and bbc blocks to modify them I have to do 2 things to make them work.

1. Turn off the WYSIWYG editor from my profile on the site.
2. When editing a block; delete everything, then paste in the changed code, and then save the block.

I've had to do that for several different revisions of TP and still do in the newest RC.
It's not a deal-breaker by any means but it is a bit of an annoyance.
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 03:38:08 PM
Hey,

first of all thanks for this great mod! if i get rich one day i will throw some cash your way! -

I have a small question about articles and pretty urls. The problem I see here is, when creating an article for the frontpage - its not very search engine friendly because of the URL the article gets given - ie =page1, =page2 etc . Is it possible to give the articles a better URL or one that is generated by pretty urls to correspond to the title of the article, rather than =page1

thanks, and looking forward to your response.
Title: Re: TinyPortal
Post by: Kindred on July 05, 2011, 04:00:33 PM
before you go any further, URLS have little to NO effect on SEO these days.

HUMAN "friendly" is one thing, but the search engines only care about the content.
Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 04:02:12 PM
I don't know anything about the pretty URL's mod. Articles have a query title option where you can name the article (which will show in the url), but to make them look like pretty URL's is not something I'm going to do.

If you read up on SEO, pretty URL's is not needed for any other reason that to satisfy human readability. Most search engines don't care about them anymore.

-edit-

Kindred beat me to it...
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 04:10:27 PM
Quote from: Kindred on July 05, 2011, 04:00:33 PM
before you go any further, URLS have little to NO effect on SEO these days.

HUMAN "friendly" is one thing, but the search engines only care about the content.

As you probably are fully aware, there are two schools of thought on that subject! and 'little' effect is good enough for me!

Quote from: IchBin™ on July 05, 2011, 04:02:12 PM
I don't know anything about the pretty URL's mod. Articles have a query title option where you can name the article (which will show in the url), but to make them look like pretty URL's is not something I'm going to do.

Thats great, where is this query title option you are referring to?

p.s tiny portal's front page did not work before I installed pretty urls.
Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 04:14:55 PM
In each article when you create or edit it, there's an option at the top called "query title". Whatever you put in that box is what should show in the URL page=query_title
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 04:17:54 PM
thanks IchBin
Title: Re: TinyPortal
Post by: Kindred on July 05, 2011, 04:29:38 PM
lol... there may be two schools of thought, but one of them is just wrong. :P
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 04:31:04 PM
Entered the title query text, all seemed well until I tried to visit the actual url of the article and then I saw:

Wrong value type sent to the database. Integer expected. (page)

I take the title query away and everything is returned to normal and i can view the page by itself again.
Title: Re: TinyPortal
Post by: Kindred on July 05, 2011, 04:32:53 PM
see the code snippet that IchBin posted to me on the previous page
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 04:41:55 PM
thanks Kindred.

That's TPortalAdmin.template.php on my server which is all I can find and not TPortalAdmin.php as stated by IchBin?


Cannot find the following code in TPortalAdmin.template.php

$smcFunc['db_query']('',
            'UPDATE {db_prefix}tp_settings
            SET value = {string:val}
            WHERE name = {string:name} LIMIT 1',
            array(
               'val' => $catname,
               'name' => 'cat_list',
            )
         );
Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 04:45:32 PM
It's in the sources folder.

Sources/TPortalAdmin.php
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 04:51:54 PM
Thanks Kindred. But cannot find this code in TPortaladmin.php anywhere.

$smcFunc['db_query']('',
            'UPDATE {db_prefix}tp_settings
            SET value = {string:val}
            WHERE name = {string:name} LIMIT 1',
            array(
               'val' => $catname,
               'name' => 'cat_list',
            )
         );
Title: Re: TinyPortal
Post by: Kindred on July 05, 2011, 04:53:19 PM
i believe that is the FIXED code... you have to look for the broken code and change it to that.
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 05:00:05 PM
yes sorry, that was my mistake - I tried searching for the fixed code in TPadmin.php after I could'nt find the broken code. Just to verify that this is in fact the broken code that I cannot find, here it is.


else
         $request =  $smcFunc['db_query']('', '
            SELECT id_theme FROM {db_prefix}tp_articles
            WHERE shortname = {int:short}',
            array('short' => $pag)
         );
Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 05:06:45 PM
tabletsdroid, if you look at kindreds post right after mine you will see that he noticed I posted the wrong code. :)
http://www.simplemachines.org/community/index.php?topic=27642.msg3091543#msg3091543

Slightly different, but you should be able to find it.
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 05:15:42 PM
thanks for your help...but it would of been OOH SO MUCH EASIER if you have had of posted the code for me rather than sending me on wild goose chase....

now I have a headache.

haha thanks anyway.
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 05:25:10 PM
I cannot find this code either. Would the creator kindly consider updating the mod so articles functionality returns. thanks

else
      $request =  $smcFunc['db_query']('', '
        SELECT id_theme FROM {db_prefix}tp_articles
        WHERE shortname = {int:page}',
        array('page' => $pag)
      );

also, how to change text color in posts from grey?
Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 05:56:22 PM
I've taken over this mod for Bloc, so I guess you could call me the creator. Although, at this point I prefer developer as I didn't start the project.

Wild goose chase? I sent you to the post that showed the correct code change. Since I do this on my free time, I can only post so many fixes and releases. I'd rather not put out additional releases of the software when I'm currently fixing bugs. If I put out a release after fixing just a few bugs, it would be time for another release once others report more bugs. I'd rather fix as many bugs as possible before doing it again. Sorry, but this is how the beta/RC life of software goes.

If you can't find the code then attach your file please. The code is down about 250 lines from the top just past the "function TP_loadTheme()" line.
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 06:02:08 PM
The wild goose chase statement  was referring to Kindred when he said "the code is on the previous page" first of all it wasnt on the previous page, it was 2 pages back and the secondly he didnt tell me the first code given was wrong - did he expect me to read the WHOLE of the page or just scroll down to what he was referring to ?

you with me?
Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 06:03:24 PM
Ah yes. That makes much more sense. Let me know if you don't get it figured out. Post the file if you still have problems.
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 06:08:20 PM
thanks IchBin, here is the file
Title: Re: TinyPortal
Post by: Kindred on July 05, 2011, 06:38:01 PM
actually, yes... I kinda did expect you to READ. I post from a mobile device much of the time and don't have the capability of doing all people's searching for them...   as for the incorrect versus correct code - I forgot that his code was incorrect.
Title: Re: TinyPortal
Post by: tabletsdroid on July 05, 2011, 06:46:00 PM
thanks Kindred, may you be filled with loving kindess :)
Title: Re: TinyPortal
Post by: IchBin™ on July 05, 2011, 07:41:51 PM
tabletsdroid, my apologies. It is in the TPortal.php file. I said TPortalAdmin.php but was wrong again. I'll go back and correct my mistakes so others don't bang their heads like you have done.
Title: Re: TinyPortal
Post by: ShepHeard on July 05, 2011, 08:11:07 PM
Thanks for the help IchBin! :)
Title: Re: TinyPortal
Post by: Science3 on July 06, 2011, 08:18:37 PM
I've just downloaded Tinyportal and it looks amazing! i love it but when i clicked on "Forum" the tinyportals panels and all are on the same page as my gata; and stuff when i just want it to be on the HOME page. How do i fix this?
Title: Re: TinyPortal
Post by: IchBin™ on July 06, 2011, 08:30:44 PM
Explore the settings Science3. It's all there. The panel settings and the block settings can all be changed to display in different places.
Title: Re: TinyPortal
Post by: Science3 on July 06, 2011, 08:41:22 PM
I found it thank you! :D
Title: Re: TinyPortal
Post by: Farmacija on July 07, 2011, 07:19:19 AM
Problem with tpdb query, look here

http://www.simplemachines.org/community/index.php?topic=135761.msg3101832#msg3101832
Title: Re: TinyPortal
Post by: IchBin™ on July 07, 2011, 10:50:29 AM
Quote from: Farmacija on July 07, 2011, 07:19:19 AM
Problem with tpdb query, look here

http://www.simplemachines.org/community/index.php?topic=135761.msg3101832#msg3101832

The code you used for TP that bluedevil posted is out of date. If you are using SMF2, try the code that he posted for SimplePortal. It looks compatible with the latest TP + SMF2.
Title: Re: TinyPortal
Post by: Farmacija on July 07, 2011, 04:16:33 PM
Weird but code for simpleportal works.
Thanks. :)
Title: Re: TinyPortal
Post by: IchBin™ on July 07, 2011, 04:33:18 PM
Quote from: Farmacija on July 07, 2011, 04:16:33 PM
Weird but code for simpleportal works.
Thanks. :)

Yeah that's because SP is already using the native SMF functions to do everything. TP used to have it's own database functions. In the latest, I changed them to use the native SMF functions. So most codes should work between the two portals now.
Title: Re: TinyPortal
Post by: fmofmpls on July 08, 2011, 09:04:47 AM
How do I get rid of this "no illustration" article icon? I've tried every setting possible within TP and can't seem to find a way to eliminate this graphic sitting next to my articles? I've checked off the "no icon" box several times, but nothing has changed?

Thanks!
Title: Re: TinyPortal
Post by: IchBin™ on July 08, 2011, 10:42:35 AM
That is the alternative listing icon. In the settings of the article you should be able to select a different icon, or select un-assigned or something like that. That icon shows for certain front page layout options.
Title: Re: TinyPortal
Post by: Mick. on July 09, 2011, 10:57:15 AM
Upgraded to SMF 2.0. Sweet.

TP installs ok without warnings but after installed, This error appear on the front page.  :o

Fatal error: Call to undefined function tp_query() in /home/*******/public_html/Themes/default/TPsubs.template.php(114) : eval()'d code on line 172
Title: Re: TinyPortal
Post by: lurkalot on July 09, 2011, 01:01:42 PM
Quote from: bluedevil on July 09, 2011, 10:57:15 AM
Upgraded to SMF 2.0. Sweet.

TP installs ok without warnings but after installed, This error appear on the front page.  :o

Fatal error: Call to undefined function tp_query() in /home/*******/public_html/Themes/default/TPsubs.template.php(114) : eval()'d code on line 172

Bluedevil, I'm assuming this is a block on your front page causing this?  The latest version of TP uses the "$smcFunc['db_query'] for TP + SMF2"  so you will need to update your block, or blocks  to run it on this version.
Title: Re: TinyPortal
Post by: Mick. on July 09, 2011, 01:07:01 PM
Quote from: lurkalot on July 09, 2011, 01:01:42 PM
Quote from: bluedevil on July 09, 2011, 10:57:15 AM
Upgraded to SMF 2.0. Sweet.

TP installs ok without warnings but after installed, This error appear on the front page.  :o

Fatal error: Call to undefined function tp_query() in /home/*******/public_html/Themes/default/TPsubs.template.php(114) : eval()'d code on line 172

Bluedevil, I'm assuming this is a block on your front page causing this?  The latest version of TP uses the "$smcFunc['db_query'] for TP + SMF2"  so you will need to update your block, or blocks  to run it on this version.

When loading the mod it breaks the forum. Im assuming this can be done via phpadmin?
Title: Re: TinyPortal
Post by: IchBin™ on July 09, 2011, 02:50:37 PM
index.php?action=admin;noblocks

That should get you into the admin without blocks showing.
Title: Re: TinyPortal
Post by: Mick. on July 09, 2011, 03:09:12 PM
Quote from: IchBin™ on July 09, 2011, 02:50:37 PM
index.php?action=admin;noblocks

That should get you into the admin without blocks showing.

Ha! That did it. Also found the culprit.  Stupid 'latest gallery block'.
Hmm,...it worked fine on RC3 tho'.
Title: Re: TinyPortal
Post by: IchBin™ on July 09, 2011, 03:19:19 PM
Yeah, it's not the SMF version. I removed the tp_query() functions in TP that a lot of block codes used so that we could/should start using SMF's $smcFunc()'s. If you need help, feel free to post your code at TP.net and we'll try to update the code for you in those blocks that don't work.
Title: Re: TinyPortal
Post by: Mick. on July 09, 2011, 03:57:30 PM
Quote from: IchBin™ on July 09, 2011, 03:19:19 PM
Yeah, it's not the SMF version. I removed the tp_query() functions in TP that a lot of block codes used so that we could/should start using SMF's $smcFunc()'s. If you need help, feel free to post your code at TP.net and we'll try to update the code for you in those blocks that don't work.

Thanx itch. The only one that didnt work is the smf gallery block.

One more thing tho,   The articles i cant view anymore. Only preview it from admin.

http://www.chevyavalancheclub.com/index.php/page,Resources.html

Blank page. If i go to admin and preview it, it shows fine.
Title: Re: TinyPortal
Post by: IchBin™ on July 10, 2011, 02:52:04 AM
Any errors in your log when you view the articles?
Title: Re: TinyPortal
Post by: Mick. on July 10, 2011, 09:25:15 AM
Quote from: IchBin™ on July 10, 2011, 02:52:04 AM
Any errors in your log when you view the articles?


Oh wow, i got a hole bunch.

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
Wrong value type sent to the database. Integer expected. (page)
Function: TP_loadThemeFile: /home/**/public_html/Sources/TPortal.php
Line: 252

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
The database value you're trying to insert does not exist: id_mem
Function: doTPpageFile: /home/***/public_html/Sources/TPortal.php
Line: 704

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
8: Undefined index: idFile: /home/****/public_html/Sources/TPortal.php
Line: 703

Type of error: Undefined
http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
8: Undefined index: character_setFile: /home/****/public_html/Sources/TPortal.php
Line: 680
Title: Re: TinyPortal
Post by: Mick. on July 10, 2011, 09:35:01 AM
Itch. Im all sorted out. Found the culprit.

Again, tp_query() was in one of my 1,000 blocks. lol


So far the 'latest gallery' block and the 'smf tags' block where using tp_query().
Title: Re: TinyPortal
Post by: Mick. on July 10, 2011, 09:37:26 AM
Quote from: bluedevil on July 10, 2011, 09:25:15 AM
Quote from: IchBin™ on July 10, 2011, 02:52:04 AM
Any errors in your log when you view the articles?


Oh wow, i got a hole bunch.

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
Wrong value type sent to the database. Integer expected. (page)
Function: TP_loadThemeFile: /home/**/public_html/Sources/TPortal.php
Line: 252

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
The database value you're trying to insert does not exist: id_mem
Function: doTPpageFile: /home/***/public_html/Sources/TPortal.php
Line: 704

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
8: Undefined index: idFile: /home/****/public_html/Sources/TPortal.php
Line: 703

Type of error: Undefined
http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
8: Undefined index: character_setFile: /home/****/public_html/Sources/TPortal.php
Line: 680



I take that back, the errors quoted above are still seen in admin after trying to view any article page publicly.
Title: Re: TinyPortal
Post by: IchBin™ on July 10, 2011, 02:24:41 PM
The first error you posted (page) should be resolved back on page 72 or 73 of this topic IIRC. Make sure you read my post and kindreds post for that error. The other errors I'll have to look at.
Title: Re: TinyPortal
Post by: anicolac on July 12, 2011, 04:06:22 AM
Quote from: DeadSpider on June 15, 2011, 05:47:37 PM
Quote from: IchBin™ on June 14, 2011, 09:04:40 PM
Did you install through the package manager? Are you getting this error after the install completed, or during the install? Please give as many details as possible.
Yes, I am trying to install through Package Manager. It uploads fine "The package has been uploaded successfully."

I press [Install Mod] and all test show
1. Extract Tree ./Themes
2. Extract Tree ./Themes
3. Extract Tree ./Sources
4. Extract Tree ./tp-downloads
5. Extract Tree ./tp-images
6. Extract Tree ./tp-files
7. Execute Modification ./index.php Test successful
8. Execute Modification ./Sources/Load.php Test successful
9. Execute Modification ./Sources/Subs.php Test successful
10. Execute Modification ./Sources/Security.php Test successful
11. Execute Modification ./Sources/Errors.php Test successful
12. Execute Modification ./SSI.php Test successful
13. Execute Modification ./Sources/QueryString.php Test successful
14. Execute Modification ./Sources/Subs-Editor.php Test successful
15. Execute Modification ./Sources/Profile.php Test successful
16. Adapt Database SMF2/tp_upgrade.php


Then I press [Install] and get this error

Database Error
Unknown column 'value9' in 'smf_tp_variables'
File: /home/dead/public_html/blightedtouch/Packages/temp/SMF2/tp_upgrade.php
Line: 347

Hola, yo lo he solucionado de una forma sencilla.

- He emulado la versión 2.0 RC4
- He instalado la versión antigua TinyPortal10rc1.zip
- He revertido la emulación a la 2.0
- He actualizado la versión TinyPortal    1.104

todo correcto, Saludos

google translation

Hello, I've solved easily.

- I emulated version 2.0 RC4
- I installed the old version TinyPortal10rc1.zip
- I reverted to 2.0 emulation
- I updated the version TinyPortal 1104

all right, Greetings
Title: Re: TinyPortal
Post by: unitman on July 12, 2011, 08:31:50 AM
I am having a small problem with the view count on articles.  It doesn't seem to count and stays at zero.  Here is a link to show an example of what I am talking about

http://www.australianonlinepokerleague.com/page/2/

The code relating to the view count seems right in the TPortal.php , however I am no expert when it comes to these things.

// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' , is_numeric($page) ? '{int:page}' : '{string:page}' , ' LIMIT 1',
array('page' => $pag)
);


maybe there is something that I am missing or there is also somewhere else I should be looking.
Title: Re: TinyPortal
Post by: unitman on July 12, 2011, 08:34:52 AM
Quote from: unitman on July 12, 2011, 08:31:50 AM
http://www.australianonlinepokerleague.com/page/2/

weird that it would say inactive when the link indeed is active???
Title: Re: TinyPortal
Post by: IchBin™ on July 12, 2011, 12:48:40 PM
It shows the link as [nonactive] as part of the mod that keeps spammers from posting links here. That should go away after you reach a certain post count. Not sure what the count is though... maybe 10 or 20.

For the views problem, thanks for reporting! Give this a try:
// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' . (is_numeric($page) ? 'id = {int:page}' : 'shortname = {string:page}') . ' LIMIT 1',
array('page' => $page)
);
Title: Re: TinyPortal
Post by: Alderman on July 13, 2011, 04:09:47 AM
I looked through this thread and found the reports of BBC articles being stretched beyond the forum/theme templates limits or even the browser width. Has there been a resolution for this? I was able to fix a few other bugs along the way thanks to some other posts, just not this one which is a big deal since we do everything in BBC.
Title: Re: TinyPortal
Post by: unitman on July 13, 2011, 04:40:00 AM
Quote from: IchBin™ on July 12, 2011, 12:48:40 PM

For the views problem, thanks for reporting! Give this a try:
// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' , is_numeric($page) ? 'id = {int:page}' : 'shortname = {string:page}' , ' LIMIT 1',
array('page' => $page)
);


Thanks for the help.  I updated the code and it didn't seem to do anything.  I have another website and have just realised it is doing the same thing in regards to the views count
Title: Re: TinyPortal
Post by: agridoc on July 13, 2011, 06:00:36 AM
For Alderman, have a look at adminsettings textarea bug using bbcode editor (http://www.tinyportal.net/index.php?topic=34179.0).

This error seems to be present to some servers only.

   
Title: Re: TinyPortal
Post by: anicolac on July 13, 2011, 06:03:15 AM
Hello, one of my forums I have a problem.
when adding an article + BBC, the table is sized

anyone can help me? thank you very much
Title: Re: TinyPortal
Post by: agridoc on July 13, 2011, 06:30:05 AM
Use the link in the message just before yours.
Title: Re: TinyPortal
Post by: anicolac on July 13, 2011, 06:36:16 AM
solved, thanks
I resized the bottom corner.

edit

I can resize, but when I saved the article, the problem persists.
:-\
Title: Re: TinyPortal
Post by: anicolac on July 13, 2011, 07:59:10 AM
Quote from: agridoc on July 13, 2011, 06:30:05 AM
Use the link in the message just before yours.

thanks, I use google translator, very difficult to understand.

will study what you mention.
Title: Re: TinyPortal
Post by: IchBin™ on July 13, 2011, 10:38:36 AM
unitman, try this code instead. It should work now as I see the error. :)

// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' . (is_numeric($page) ? 'id = {int:page}' : 'shortname = {string:page}') . ' LIMIT 1',
array('page' => $page)
);
Title: Re: TinyPortal
Post by: unitman on July 14, 2011, 04:10:23 AM
Quote from: IchBin™ on July 13, 2011, 10:38:36 AM
unitman, try this code instead. It should work now as I see the error. :)

// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' . (is_numeric($page) ? '{int:page}' : '{string:page}') . ' LIMIT 1',
array('page' => $page)
);


Thanks again but the above did not work again.  Looking at the code, I have actually worked it out and it now works.  I changed {int:page} to  id = {int:page} on the above code you quoted in this very post.

I certainly would not have got it working without your help so very much appreciate that we got it working together.
Title: Re: TinyPortal
Post by: IchBin™ on July 14, 2011, 11:49:23 AM
Ah crap, sorry about that. I actually had done that in the first code and forgot to do it on the second one I posted. Glad you saw it. :) I'll fix my posts in case others try it. :)
Title: Re: TinyPortal
Post by: anicolac on July 16, 2011, 02:53:55 PM
Hello.
You could add the button '+1' (from google), next to the bookmark??

is easy to incorporate in TPsubs.template.php??

Thank you

http://code.google.com/intl/es/apis/+1button/#target-url
http://www.google.com/intl/en_uk/webmasters/+1/button/
Title: Re: TinyPortal
Post by: clashbot on July 17, 2011, 02:05:56 PM
I'm having an issue from when I updated TP, that my left panel is filling the entire screen. I've tried setting the width to both 150px and even 10% with nojoy..Is there a way of forcing tp back to defaults?
Title: Re: TinyPortal
Post by: Dramber on July 17, 2011, 02:37:19 PM
Sounds like you have a block that is using old code.
Try disabling all your custom blocks and see if that fixes the formatting issues. Then re-enable them one at a time to see which one is causing the problem.
Title: Re: TinyPortal
Post by: clashbot on July 17, 2011, 04:34:54 PM
thanks, that solved my problem, old 1.1x version of a block causing the issue.
Title: Re: TinyPortal
Post by: IchBin™ on July 17, 2011, 11:13:50 PM
Quote from: anicolac on July 16, 2011, 02:53:55 PM
Hello.
You could add the button '+1' (from google), next to the bookmark??

is easy to incorporate in TPsubs.template.php??

Thank you

http://code.google.com/intl/es/apis/+1button/#target-url
http://www.google.com/intl/en_uk/webmasters/+1/button/

Added this to my tracker to add in a future version.
Title: Re: TinyPortal
Post by: k12onos on July 18, 2011, 10:03:17 AM
Is there any way to put the portal in a different link? I tried to search around the forum but I have trouble in using the right keywords..

I installed my smf forum in domain.com/forum, I want the tinyportal to show at domain.com, then only when the user click a link to the forum they are directed to domain.com/forum.

Is this possible?

I didn't think I would use portal before, and I installed smf on the /forum directory.

Let say if this isn't possible, then is it possible to move the whole smf from domain.com/forum to domain.com?

Thank you in advance :) sorry if I ask a bunch of question at once :P
Title: Re: TinyPortal
Post by: IchBin™ on July 18, 2011, 10:24:51 AM
It's not possible with TP to run it outside of the forum directory. Yes you can move your forum easily. Just move the files into your root directory like you suggested. Then you need to run repair_settings.php.

What is repair_settings.php? (http://www.simplemachines.org/community/index.php?topic=18096.0)
Title: Re: TinyPortal
Post by: Matthew-me on July 18, 2011, 01:02:33 PM
I haven't got time to read a 77 page thread so apologies if this has come up before.

Was using RC5 with Tinyportal 1.102 and the Dino Light v2 theme ..... Upgraded to 2.0 Final . YAY all worked except the theme looked pretty mucked up and TP had completely disappeared ...

Have tried installing TP1.1.04 says it's installed but still everything has gone ...

Have not yet checked database tables to see if articles etc are missing but I backed that up in advance so should be fine.

Any quick answers for me? And thanks in advance if yes.

Matthew
Title: Re: TinyPortal
Post by: agridoc on July 18, 2011, 03:47:30 PM
You will probably see a selection TinyPortal in menubar. Click on it otherwise use [SMF_dir]/index.php?action=tpadmin. If it works it means that TP is installed.

If so, go to Settings & Frontpage: Settings and see if "Use language visibility option for blocks?" is selected. If so deselect it and the blocks will appear. If you want to use language visibility option for blocks you must check the languages for every block. If unchecked no block appears, looks like no TP is installed.
Title: Re: TinyPortal
Post by: Matthew-me on July 18, 2011, 04:24:51 PM
adridoc,

Thanks ...

Quote from: agridoc on July 18, 2011, 03:47:30 PM
You will probably see a selection TinyPortal in menubar.

No .. I've been using TP for a good while .. I wouldn't have missed that. In fact I did miss that which was my one of the first signs of real trouble!

Quote from: agridoc on July 18, 2011, 03:47:30 PM
Click on it otherwise use [SMF_dir]/index.php?action=tpadmin. If it works it means that TP is installed.

That doesn't work. I just get the forum.

What I did:

1. Installed the small upgrade package for SMF RC5 -> SMF Final. Upgrade finished "successfully", and deleted install files. (I had not disabled any mods prior to upgrading btw)

After this the TP frontpage and all blocks were missing and the Dino Light v2 theme looked very mucked up (e.g. misaligned post profiles).

so I ...

2. Installed TP1RC2 downloaded from tinyportal site by uploading the zipped package and using package manager.

Reported that the package installed correctly ... but still no frontpage and no blocks. .. and no TinyPortal in the menubar.

Packages and installation status now is showing as:

Mod Name    Version    
1.    TinyPortal    1.104    [ Uninstall ] [ List Files ] [ Delete ]
2.    Country Flags    1.1.2    [ List Files ] [ Delete ]
3.    Aeva ~ Auto-Embed Video & Audio    7.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    DeInCreasePostBox    1.5    [ Uninstall ] [ List Files ] [ Delete ]
5.    Customized Profile    2.0    [ List Files ] [ Delete ]
6.    Skype Profile Field    1.1    [ Install Mod ] [ List Files ] [ Delete ]
7.    AjaxChat Integration    3.0    [ List Files ] [ Delete ]
8.    Addthis widget in first post    1.0    [ Install Mod ] [ List Files ] [ Delete ]
9.    TinyPortal    1.102    [ List Files ] [ Delete ]

Thanks for your suggestion but no joy ... have had to resort to using the default curve theme to get basic functionality at the forum.

Matthew
Title: Re: TinyPortal
Post by: IchBin™ on July 18, 2011, 04:27:34 PM
Sounds like a server permission problem. It's not allowing the proper edits, or maybe even putting the files where they are supposed to be. Did you look to see if the mod installed properly, even though the package manager reported it that way?
Title: Re: TinyPortal
Post by: Matthew-me on July 18, 2011, 07:28:25 PM
Brad,

Thank you again for your support.

I'm not too sure where all the files should be (for TP) but the permissions on the small upgrade for RC5 to gold worked fine. At a brief glance things seem OK ... I have 3 folders::

tp-files, tp-downloads, tp-images - all with file permissions 755 and the files inside are all at 666.

Is there something I can look for in the SMF code that will definitively answer whether the install worked? Does the install clean up after itself? - There is no tp-upgrade or tp-install file lingering ... that I can see ...

If I uninstall and then reinstall will I lose all articles? (i.e will that delete the tables from the DB?) .. And if so can I pull the data from the pre-upgrade SQL dump (done from within SMF)?

Or do you have a better plan of action? (I suspect you do :) )

Matthew
Title: Re: TinyPortal
Post by: Matthew-me on July 18, 2011, 07:41:09 PM
OK .. I've looked at the manual parse install for TP on SMF 2.0 final ... and the code is not in there ....
Title: Re: TinyPortal
Post by: IchBin™ on July 18, 2011, 08:08:44 PM
Yeah, that's what I thought. Wish I knew what causes this issue on some servers. I've never seen anything that has fixed it for everyone. Seems to be different things for many. At this point, I can only suggest you manually make the edits to get things working.
Title: Re: TinyPortal
Post by: agridoc on July 19, 2011, 12:55:34 AM
I believe that, as it is now, a LARGE upgrade to 2.0 final is needed, it will clean all SMF files. TP and other mods must be installed again. TP tables in database are safe. You reported that you have backups, so give it a try. More work than a small update but clean results

As you describe. the problems started with small update. so it's quite probable that problems might exist in SMF installation.

I have never used a small update, either patches or large upgrade.
Title: Re: TinyPortal
Post by: fmofmpls on July 19, 2011, 06:37:52 PM
Hello. I'm looking for some help with the following error I receive when trying to comment on an article.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's!','great story max','1','article_comment','1311114886',14)' at line 2
File: /home/monster/public_html/forum/Sources/TPmodules.php
Line: 155

I'm using SMF 2RC3 and TP 1.101
Title: Re: TinyPortal
Post by: IchBin™ on July 19, 2011, 07:44:59 PM
You really should update your installs. Several security fixes have been put in SMF since RC3 (not to mention final is out). Also, TP has had a security fix since that version. If you don't want to update, please attach your TPmodules.php file, as well as show me an example of what you are trying to use for a comment. The reason I ask for this is to see if comma's or apostrophe's affect your problem.
Title: Re: TinyPortal
Post by: fmofmpls on July 19, 2011, 08:34:11 PM
Thanks IchBin for your quick reply. Yes, I know I should upgrade my installs, and I plan on doing so. Just not ready yet. I've got a fairly large forum with over 4,000 members and need more preparation before beginning the upgrade.

My problem with comments left at TP articles also happens at my test forum where I'm running 2.0 final and the latest version of TP. Another database error when trying to use the "delete option" with a comment. But that's not of primary concern right now. None of my database errors involve commas or apostrophes.

I have an established  blogger who is going to be joining my public forum in the next few days. I've invested a large amount of time in building the blog page just for his arrival. His posts will be delivered as articles. It's crucial that the comments feature is working properly.

Here is my attached TPModules.php file. Any assistance is greatly appreciated!



Title: Re: TinyPortal
Post by: Kindred on July 19, 2011, 08:37:23 PM
Instead of trying to fix and outdated and insecure version, you should spend your time getting the upgrade done,  I have a site with 32,000 members and it was worth the effort to upgrade ASAP....
Title: Re: TinyPortal
Post by: Matthew-me on July 19, 2011, 08:48:35 PM
I have 50 active members at any time, nearly 1 million page views per year ... have been listed at no 2 for the relevant search on google since three days after launch four years ago....

Always keep it up to date and check other security issues ... having your forum hacked is a PITA.

Ichbin - Large upgrade going to clear things up for me? The database is not optimising properly (7/41 tables) .. or manual install and manual clean up of DB? Your advices welcome as always.

Mattthew
Title: Re: TinyPortal
Post by: IchBin™ on July 19, 2011, 08:59:43 PM
Quote from: fmofmpls on July 19, 2011, 08:34:11 PM

Here is my attached TPModules.php file. Any assistance is greatly appreciated!


Try this file out and see if comments work.



@Matthew-me,

I'd highly suggest you do a test install to make sure everything works that you want. TP is in beta/RC stage right now with so many changes. There's been a lot of bugs squashed and introduced in the last version. Do a test install to make sure you get what you want.
Title: Re: TinyPortal
Post by: fmofmpls on July 19, 2011, 09:15:43 PM
It worked! Thanks IchBin for the great support! Much appreciated!
Title: Re: TinyPortal
Post by: Matthew-me on July 21, 2011, 02:47:54 AM
Brad - it was doing exactly what we wanted prior to upgrading to SMF final and was in use for months - so unless you have removed or radically altered core functions I'm sure I'll be happy. Thanks again,

Matthew
Title: Re: TinyPortal
Post by: bigjoe11a on July 23, 2011, 05:49:27 PM
I hope some one is still reading this portal section. I been trying to find a way to make some thing like this http://www.dfarena.com/mapzone/index_main.php (http://www.dfarena.com/mapzone/index_main.php). and well SMF and Portal have been getting so advanced I can't keep up. If you look at that link, you will see a page was added and then blocks were added to the page. PLEASE any one have any ideas.

Title: Re: TinyPortal
Post by: DarkAngel612 on July 23, 2011, 06:05:06 PM
not knowing exactly what you plan to put on your page but have you tried making an article the assigning whatever blocks to it that you want to show and where?
Title: Re: TinyPortal
Post by: bigjoe11a on July 23, 2011, 06:14:25 PM
Quote from: DarkAngel612 on July 23, 2011, 06:05:06 PM
not knowing exactly what you plan to put on your page but have you tried making an article the assigning whatever blocks to it that you want to show and where?

Ok, I'm lost here. Your telling me that I can create an articles and add what ever blocks to it I want. If that's what your saying can you tell me how to do that in the simplest way possible...
Title: Re: TinyPortal
Post by: DarkAngel612 on July 23, 2011, 07:35:54 PM
tiny portal admin menu/articles/category---create a category to assign your article to

then click articles and choose html or bbc from the choices it gives you

then write your article--including tables if you need to use any

make sure to click active

assign it to the category

choose who to see it

choose what blocks you want to be shown on that article page

make sure the icon for a document  and the little flag icon is not colored in so it can be linked to instead of showing on the front page

save

to link to it :
click articles -- right click on the magnifying glass to save link as -- paste it where you wish to link to it at...side block navigation or in a thread---I vote for side block so it will be there always

you have many things to tic off or on back there when you make your article too so take a look at it in a seperate window to edit for your final page...before inking to it
Title: Re: TinyPortal
Post by: fmofmpls on July 23, 2011, 09:20:16 PM
Hello. I'm having trouble in getting the global tags feature to work (or show anywhere in articles). I'm trying to set up a blog using TP and need the tags to help organize the content. After assigning several tags, and checking the "show global tags" checkbox, I'm still not seeing the tags anywhere within the articles? What am I missing here?

Thanks for the support!
Title: Re: TinyPortal
Post by: bigjoe11a on July 23, 2011, 11:15:04 PM
Quote from: DarkAngel612 on July 23, 2011, 07:35:54 PM
tiny portal admin menu/articles/category---create a category to assign your article to

then click articles and choose html or bbc from the choices it gives you

then write your article--including tables if you need to use any

make sure to click active

assign it to the category

choose who to see it

choose what blocks you want to be shown on that article page

make sure the icon for a document  and the little flag icon is not colored in so it can be linked to instead of showing on the front page

save

to link to it :
click articles -- right click on the magnifying glass to save link as -- paste it where you wish to link to it at...side block navigation or in a thread---I vote for side block so it will be there always

you have many things to tic off or on back there when you make your article too so take a look at it in a seperate window to edit for your final page...before inking to it

ok, the option for

choose what blocks you want to be shown on that article page
is missing or it's wrong or some thing. the only option I see are panels. and nothing at all about blocks.
Title: Re: TinyPortal
Post by: DarkAngel612 on July 23, 2011, 11:36:14 PM
this is what it looks like in smf 1.1.14 see image

then it is in 2.0

last image is if you choose to let the category rule....



or the other way to do the choosing is choose which panel to allow then go to panels and blocks and i the actual block click the tools icon for editing then choose it down near center or bottom. the article once active will show there and if you wish for a certain block to only show there then do not click for it to show anywhere but there.
Title: Re: TinyPortal
Post by: bigjoe11a on July 24, 2011, 12:32:07 AM
ok, Thanks. I never done it like this or even new what those were for. So I mite have to find some one that can log in to my web site with a user name and password that I use for admin access and have some one else do this. It has me all so lost. Just some of my members are asking for this and well I wanted to get it added. Thanks for your time


Title: Re: TinyPortal
Post by: IchBin™ on July 24, 2011, 12:50:09 AM
bigjoe11a,

After you have created the article and have verified that it displays properly. You can then go into the blocks section. Edit each block that you want to show with the article. At the bottom of the block edit page you will see options on where you can display the block. You can choose to only show the block for the article you created. There are many options for this.
Title: Re: TinyPortal
Post by: bigjoe11a on July 24, 2011, 01:41:47 AM
Quote from: IchBin™ on July 24, 2011, 12:50:09 AM
bigjoe11a,

After you have created the article and have verified that it displays properly. You can then go into the blocks section. Edit each block that you want to show with the article. At the bottom of the block edit page you will see options on where you can display the block. You can choose to only show the block for the article you created. There are many options for this.

Thank IchBin, It's just I wanted more then one block added in. See I'll have to post again and see if I can get some one to do this for me. I don't know if it's a bug in the new portal or I'm not doing it right.

See what I have is a block that reads as Menu, in that block I have an Menu link to a page or article. and I want like 5 or 6 blocks added to this article or page. It just shows up blank.

Do you know any admin that can do this for me to show me what to do.

If any ones is willing to help. Please send me a PM.

Title: Re: TinyPortal
Post by: fmofmpls on July 24, 2011, 10:22:38 AM
Quote from: fmofmpls on July 23, 2011, 09:20:16 PM
Hello. I'm having trouble in getting the global tags feature to work (or show anywhere in articles). I'm trying to set up a blog using TP and need the tags to help organize the content. After assigning several tags, and checking the "show global tags" checkbox, I'm still not seeing the tags anywhere within the articles? What am I missing here?

Thanks for the support!

Any help? Still confused with tags not showing up.

Also looking for articles to share multiple categories. Is this possible?

Thanks!
Title: Re: TinyPortal
Post by: Biology Forums on July 25, 2011, 10:24:16 PM
Can some tell me how to remove this... I don't want to see this at all.
Title: Re: TinyPortal
Post by: DarkAngel612 on July 25, 2011, 11:54:38 PM
do you mean the "promote to front page"?

good question cause there are some things that don't go there and not sure if just anyone can do it.
Title: Re: TinyPortal
Post by: IchBin™ on July 26, 2011, 12:24:10 PM
Quote from: shuban on July 25, 2011, 10:24:16 PM
Can some tell me how to remove this... I don't want to see this at all.

Here is the change for that.
http://www.tinyportal.net/index.php?topic=33393.msg268089#msg268089
Title: Re: TinyPortal
Post by: Chelle on July 31, 2011, 03:21:04 AM
Hi,

I recently upgraded to SMF 2.0 and then upgraded TP.  I keep getting this error and I would have searched TP.net, but the site hasn't loaded for me all day.  Even trying to look a cached pages won't work to see where I should start looking to fix this, so if anyone can point in the right direction, I'd REALLY appreciate it.

Error: Unknown column 'art.author_id' in 'field list'
File: /home/blahblah/Sources/TPortal.php
Line: 2319

Get that no matter what link I click on.
Title: Re: TinyPortal
Post by: Dramber on July 31, 2011, 04:06:55 AM
I took a look on the tp site and it looks like you can fix it fairly easily.
QuoteI updated the smf from 1.1.14 (with tp rc2) to 2.0 and installed once again tp rc2, and the table field "authorid" isn't converted to "author_id" on tp_article and tp_dlmanager. I did it by hand on phpmyadmin
QuoteYou can go in and change the column name in the tp_downloads and tp_articles table authorID to author_id.
http://www.tinyportal.net/index.php?topic=34113.0
Title: Re: TinyPortal
Post by: agridoc on July 31, 2011, 04:12:38 AM
Chelle try to download the file  tp_upgrade.php from this topic If you upgraded from SMF1 to SMF2 with TP. (http://www.tinyportal.net/index.php?topic=34150.0) upload it in your SMF dir and run it. Remember to delete it after.

BTW the last message of the topic that Dramber mentions suggests the above solution.
Title: Re: TinyPortal
Post by: Martine M on August 02, 2011, 06:03:54 AM
I get lots or errors in my logs from 2 members regarding TP

4 Database error sfrom one member:
Databasefout: Unknown column '$ID_MEMBER' in 'on clause'
Apply Filter: Only show the errors from this file
File: /home/unitedtu/public_html/Sources/TPmodules.php
Line: 237

All beneath are from one other member
14 General:
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
Apply Filter: Only show the errors from this file
File: /home/unitedtu/public_html/Themes/default/TPBlockLayout.template.php
Line: 69

19 Undifined:
8: Undefined index: tp_panels
Apply Filter: Only show the errors from this file
File: /home/unitedtu/public_html/Themes/default/TPBlockLayout.template.php
Line: 69

Do you know what the problem might be?
Title: Re: TinyPortal
Post by: IchBin™ on August 02, 2011, 10:41:21 AM
For the first error:
http://www.tinyportal.net/index.php?topic=34158.0

For the other 2 errors, it is likely because one of your article categories does not have a selected layout and layout type. This has been fixed for new categories that are created to have a default selection.
Title: Re: TinyPortal
Post by: Martine M on August 02, 2011, 12:49:30 PM
Thanks Ichbin fixed the first problem.

The other 2 problems I have to see what you mean tomorrow I guess, don't have the time anymore.
I will let you know if it is fixed.
Title: Re: TinyPortal
Post by: Chelle on August 02, 2011, 08:31:28 PM
Thanks Dramber and agridoc.  For some reason, I can't access TP.net unless I use a proxy.  Weird.  Site's all sorted, appreciate it!
Title: Re: TinyPortal
Post by: IchBin™ on August 02, 2011, 08:43:04 PM
Why can't you access it? What is the error you are getting?
Title: Re: TinyPortal
Post by: rollingrock on August 02, 2011, 10:14:05 PM
Hey there, I upgraded to the new TP version and lost my ShoutBox.   Any ideas on what I need to do to get it back?

In my blocks, I don't have an option to add a ShoutBox....yet when I go to settings, I see all my shouts.  800+ pages of them'....

thanks and glad to connect with you again,

Cheers
Title: Re: TinyPortal
Post by: lurkalot on August 03, 2011, 03:16:13 AM
Quote from: rollingrock on August 02, 2011, 10:14:05 PM
Hey there, I upgraded to the new TP version and lost my ShoutBox.   Any ideas on what I need to do to get it back?


rollingrock,

Add a new left or right block.  Choose TP module from the list "Choose type of block:" Save it.  Look at the block again and you'll see you now have a radio button to select, called TPshout.  Select it and save again.  Activate the block and you should be sorted.

Title: Re: TinyPortal
Post by: Martine M on August 03, 2011, 02:35:50 PM
Quote from: IchBin™ on August 02, 2011, 10:41:21 AM
For the first error:
http://www.tinyportal.net/index.php?topic=34158.0

For the other 2 errors, it is likely because one of your article categories does not have a selected layout and layout type. This has been fixed for new categories that are created to have a default selection.

I didn't have any articles, there were 2 article categories which are deleted this afternoon and for now the error list is still empty.
Title: Re: TinyPortal
Post by: redrancor on August 06, 2011, 12:17:52 AM
I'm having a particular problem after upgrading to TP 1.104.  I'm running SMF 2.0 RC4.

While trying to access index.php?action=tpadmin;sa=submission (the article submissions page) I receive this error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 8, 10, 12, 13, 14, 15, 16)' at line 5
File: /home/content/03/6267203/html/Sources/TPortalAdmin.php
Line: 3049

At first glance, this appeared to me to be the re-occurrence of the old apostrophe error that would break the DB.  After looking through the DB and removing apostrophes from the article titles (and articles themselves, just in case), I am still receiving the error and cannot access the submissions page.  As far as I can tell, everything else appears fine for me after going through most of this topic.

Any ideas?  Thanks!

Title: Re: TinyPortal
Post by: lurkalot on August 06, 2011, 03:05:31 AM
Quote from: redrancor on August 06, 2011, 12:17:52 AM
I'm having a particular problem after upgrading to TP 1.104.  I'm running SMF 2.0 RC4.

While trying to access index.php?action=tpadmin;sa=submission (the article submissions page) I receive this error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 8, 10, 12, 13, 14, 15, 16)' at line 5
File: /home/content/03/6267203/html/Sources/TPortalAdmin.php
Line: 3049

At first glance, this appeared to me to be the re-occurrence of the old apostrophe error that would break the DB.  After looking through the DB and removing apostrophes from the article titles (and articles themselves, just in case), I am still receiving the error and cannot access the submissions page.  As far as I can tell, everything else appears fine for me after going through most of this topic.

Any ideas?  Thanks!



redrancor,  Please check to see if you have any articles that are not approved. Approve them, and check to see if the "Submissions" page works after that please.
Title: Re: TinyPortal
Post by: fmofmpls on August 06, 2011, 06:34:45 PM
Can anybody please tell me whether or not the Global Tags function is working with TP? I can't seem to get an answer.
Title: Re: TinyPortal
Post by: redrancor on August 06, 2011, 08:17:24 PM
Quoteredrancor,  Please check to see if you have any articles that are not approved. Approve them, and check to see if the "Submissions" page works after that please.

Looks like that did the trick!  Thanks!
Title: Re: TinyPortal
Post by: Biology Forums on August 07, 2011, 04:44:25 PM
How do I remove this panel in profile view? See attachment
Title: Re: TinyPortal
Post by: IchBin™ on August 07, 2011, 06:13:21 PM
Quote from: redrancor on August 06, 2011, 08:17:24 PM
Quoteredrancor,  Please check to see if you have any articles that are not approved. Approve them, and check to see if the "Submissions" page works after that please.

Looks like that did the trick!  Thanks!

Yep, this is fixed in the next release. :)


Quote from: shuban on August 07, 2011, 04:44:25 PM
How do I remove this panel in profile view? See attachment

Code (find in TPmodules.php) Select

function tp_getprofileareas(&$data)
{
global $txt;


Code (add after) Select

        return;



Quote from: fmofmpls on August 06, 2011, 06:34:45 PM
Can anybody please tell me whether or not the Global Tags function is working with TP? I can't seem to get an answer.

I have no idea what Bloc's intentions were for the tags feature. It seems incomplete to me. So at this point, I'm going to say no it's not working.
Title: Re: TinyPortal
Post by: Biology Forums on August 07, 2011, 06:35:13 PM
Whoa, I didn't work :( I'm using 1.1.14
Title: Re: TinyPortal
Post by: IchBin™ on August 07, 2011, 08:59:49 PM
Ok, undo that since you're not using SMF2. Helps if you say that up front. :)

Code (find in TPSubs.php) Select
function TP_fetchprofile_areas()
{
global $db_prefix, $context, $scripturl, $txt, $settings, $smcFunc;


Code (add after) Select

return;
Title: Re: TinyPortal
Post by: Biology Forums on August 07, 2011, 09:09:08 PM
Quote from: IchBin™ on August 07, 2011, 08:59:49 PM
Ok, undo that since you're not using SMF2. Helps if you say that up front. :)

Code (find in TPSubs.php) Select
function TP_fetchprofile_areas()
{
global $db_prefix, $context, $scripturl, $txt, $settings, $smcFunc;


Code (add after) Select

return;


lol are you sure this is working for you, but it still doesn't work for me; it's still there :o
Title: Re: TinyPortal
Post by: IchBin™ on August 07, 2011, 09:52:50 PM
I can't remember the circumstance at which these two functions are called at the moment. Either way, there should be another function named TP_fetchprofile_areas2() right below that function. Put the return in that function and it should make the menu disappear for good.
Title: Re: TinyPortal
Post by: Biology Forums on August 09, 2011, 03:11:12 PM
Quote from: IchBin™ on August 07, 2011, 09:52:50 PM
I can't remember the circumstance at which these two functions are called at the moment. Either way, there should be another function named TP_fetchprofile_areas2() right below that function. Put the return in that function and it should make the menu disappear for good.

It worked, thank you.
Title: Re: TinyPortal
Post by: bloc on August 09, 2011, 03:49:32 PM
Quote from: IchBin™ on August 07, 2011, 06:13:21 PM
Quote from: fmofmpls on August 06, 2011, 06:34:45 PM
Can anybody please tell me whether or not the Global Tags function is working with TP? I can't seem to get an answer.

I have no idea what Bloc's intentions were for the tags feature. It seems incomplete to me. So at this point, I'm going to say no it's not working.

It was working at some point for TP 1.0... The reason for them was very simple: provide a way to link automatically downloads, articles and even forum topics that have those tags specified. So a tag of "biology" put onto a topic and an article, would make - when you was in that article or topic - links to the others tagged with it, appear under it. The "global" part was simply that it worked across all modules(it wasn't many of them lol)

Title: Re: TinyPortal
Post by: Matthew-me on August 12, 2011, 03:38:03 AM
Brad

... got everything working fine with a new install of SMF 2.0 instead of upgrading. Thanks for your advice. Have hit one snag that I also hit with the previous version:

One user is using iPhone and wanted the left panel to show in the forum .. I enabled it (un-hid)  .. then he complained that it chopped the images .. so I disabled it (hid it again in forum)  ...

Result is that the panels no longer remember if they were on or off on the homepage - left panel is always collapsed when you return there, right and upper always expanded ... even within a session.

Prior to doing this the panels would remember your settings and now it seems to forget. .. (or was I imagining that?) ... but in any case .. left panel is enabled but always hidden til you click the tit on the homepage to expand following this switching on and off of the panel in the forum ....

Any suggestions?

Thanks,

Matthew
Title: Re: TinyPortal
Post by: IchBin™ on August 12, 2011, 11:01:53 AM
Off the top of my head, I think that TP sets a cookie when upshrinking panels. Try clearing your cookies for your site and see if that helps.
Title: Re: TinyPortal
Post by: Matthew-me on August 14, 2011, 02:47:06 AM
Brad,

Quote from: IchBin™ on August 12, 2011, 11:01:53 AM
Off the top of my head, I think that TP sets a cookie when upshrinking panels. Try clearing your cookies for your site and see if that helps.

Removed the tp_upshrink cookie .... no joy

Removed the three (???) tp_panels cookies ... all back to normal.

Maybe there is an error in the code looking for the panels cookies?

Thanks for your help once again,

Matthew
Title: Re: TinyPortal
Post by: IchBin™ on August 14, 2011, 01:57:52 PM
Do you still have problems after resetting your cookies? Are you able to upshrink and expand them without problems?
Title: Re: TinyPortal
Post by: anicolac on August 15, 2011, 06:38:39 AM
Español
Hola, tengo un error crítico en el foro y no encuentro información.

Me ocurre, después de eliminar un comentario de un artículo.

smf 2.0
TinyPortal  1.104

http://www.asistenciaexperta.com/index.php?/page,22.html
The database value you're trying to insert does not exist: com
Function: doTPpage
Archivo: /homepages/24/**/htdocs/**/Sources/TPortal.php
Línea: 801


El código es:
794: // if the count differs, update it
795: if($ccount != $article['comments'])
796: $smcFunc['db_query']('', '
797: UPDATE {db_prefix}tp_articles
798: SET comments = {int:com}
799: WHERE i= {int:artid}',
800: array('com' => $count, 'artid' => $article['id'])
==>801: );


-------------------
English google translation
Hello, I have a critical error in the forum and can not find information.

It happens, after deleting a comment from an article.

smf 2.0
TinyPortal  1.104

http://www.asistenciaexperta.com/index.php?/page,22.html
The database value you're trying to insert does not exist: com
Function: doTPpage
Archivo: /homepages/24/**/htdocs/**/Sources/TPortal.php
Línea: 801


El código es:
794: // if the count differs, update it
795: if($ccount != $article['comments'])
796: $smcFunc['db_query']('', '
797: UPDATE {db_prefix}tp_articles
798: SET comments = {int:com}
799: WHERE i= {int:artid}',
800: array('com' => $count, 'artid' => $article['id'])
==>801: );


thank you very much
Title: Re: TinyPortal
Post by: IchBin™ on August 15, 2011, 10:30:40 AM
Replace your code with this:
// if the count differs, update it
if($ccount != $article['comments'])
$smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET comments = {int:com}
WHERE id = {int:artid}',
array('com' => $ccount, 'artid' => $article['id'])
);
Title: Re: TinyPortal
Post by: anicolac on August 15, 2011, 11:19:38 AM
Quote from: IchBin™ on August 15, 2011, 10:30:40 AM
Replace your code with this:
// if the count differs, update it
if($ccount != $article['comments'])
$smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET comments = {int:com}
WHERE id = {int:artid}',
array('com' => $ccount, 'artid' => $article['id'])
);


Thank you very much for the solution.  :D
Title: Re: TinyPortal
Post by: IchBin™ on August 15, 2011, 11:30:28 AM
Just bad type errors on my part. :) Thanks for reporting the bug!
Title: Re: TinyPortal
Post by: Biology Forums on August 17, 2011, 01:43:50 AM
Is there ways of changing the shoutbox style, I'm using 1.1.14.
Title: Re: TinyPortal
Post by: IchBin™ on August 17, 2011, 02:22:16 AM
Yep, the HTML is right at the bottom of the Themes/default/TPShout.template.php file in the last function. Feel free to edit to your hearts desire. :) There's also the TPShout.css you'll likely want to take a look at too.
Title: Re: TinyPortal
Post by: Biology Forums on August 17, 2011, 11:54:36 AM
Quote from: IchBin™ on August 17, 2011, 02:22:16 AM
Yep, the HTML is right at the bottom of the Themes/default/TPShout.template.php file in the last function. Feel free to edit to your hearts desire. :) There's also the TPShout.css you'll likely want to take a look at too.

Great thanks, anyone have any variants pre-made?
Title: Re: TinyPortal
Post by: IchBin™ on August 17, 2011, 12:04:49 PM
Nope. I've only seen people want to remove the time or something small like that. I haven't seen anyone post any major changes to the layout.
Title: Re: TinyPortal
Post by: Biology Forums on August 17, 2011, 12:39:58 PM
Quote from: IchBin™ on August 17, 2011, 12:04:49 PM
Nope. I've only seen people want to remove the time or something small like that. I haven't seen anyone post any major changes to the layout.

Cool, just one question, how do I remove Last 5 Shouts: from the template.
Title: Re: TinyPortal
Post by: IchBin™ on August 17, 2011, 01:23:28 PM
I don't know off the top of my head. Here's how you find out though.

Get yourself a good text editor that can search not only in the current file, but in a directory of files. Notepad++ does this. Search the TPShout.english.ph language file for that string "Last 5 Shouts". If it doesn't come up shorten your search to"Last". Once you find the $txt variable assigned to it, then do a search in the TPShout.template.php file for it. That's one way to find out where things are located.
Title: Re: TinyPortal
Post by: Biology Forums on August 24, 2011, 04:01:29 PM
Is there any way of hiding the scrolling overflow for 1.1.14?

Title: Re: TinyPortal
Post by: IchBin™ on August 24, 2011, 04:03:14 PM
Quote from: shuban on August 24, 2011, 04:01:29 PM
Is there any way of hiding the scrolling overflow for 1.1.14?

If I knew what scrolling overflow that you were talking about.... there might be a way.
Title: Re: TinyPortal
Post by: Biology Forums on August 24, 2011, 04:04:51 PM
Quote from: IchBin™ on August 24, 2011, 04:03:14 PM
Quote from: shuban on August 24, 2011, 04:01:29 PM
Is there any way of hiding the scrolling overflow for 1.1.14?

If I knew what scrolling overflow that you were talking about.... there might be a way.

Quick reply, got it though, all I had to do what put the object in a DIV and add overflow: hidden as its style ;)
Title: Re: TinyPortal
Post by: Mick. on August 31, 2011, 12:05:09 PM
Brad,
I updated my site with tp's latest version back in june. However, yesterday I decided to to redo the portal with a diff layout. I wanted to show forum posts in frontage with the 4 boards I selected with 6 posts.

The issue I found I is, it only shows 6 posts of the very first board I selected from the dropdown. The other 3 boards wont post.

I thought I'd let you know as it may be a bug?
Title: Re: TinyPortal
Post by: Zuća on August 31, 2011, 12:11:24 PM
Quote from: bluedevil on August 31, 2011, 12:05:09 PM
Brad,
I updated my site with tp's latest version back in june. However, yesterday I decided to to redo the portal with a diff layout. I wanted to show forum posts in frontage with the 4 boards I selected with 6 posts.

The issue I found I is, it only shows 6 posts of the very first board I selected from the dropdown. The other 3 boards wont post.

I thought I'd let you know as it may be a bug?

I have the same problem as you
Title: Re: TinyPortal
Post by: IchBin™ on August 31, 2011, 12:12:44 PM
Yes, it's the result of me screwing up the database query conversions I did when I moved TP to use $smcFunc. I posted a fix for that one, but I'm not sure where. Likely on the TP.net site. If you need me to search and find it, let me know.
Title: Re: TinyPortal
Post by: Mick. on August 31, 2011, 12:18:02 PM
Quote from: IchBin™ on August 31, 2011, 12:12:44 PM
Yes, it's the result of me screwing up the database query conversions I did when I moved TP to use $smcFunc. I posted a fix for that one, but I'm not sure where. Likely on the TP.net site. If you need me to search and find it, let me know.
excellent. I thought it was my setup on my Chevy site. It would be cool if you have a link to it. No rush. Im at work and posting via android.
Title: Re: TinyPortal
Post by: IchBin™ on August 31, 2011, 12:34:32 PM
http://www.tinyportal.net/index.php?topic=34145
Title: Re: TinyPortal
Post by: Mick. on August 31, 2011, 12:40:18 PM
Thanx you rock bro!
Title: Re: TinyPortal
Post by: jaxdestroyer on September 02, 2011, 05:29:14 PM
I was testing out the article functions. I Set up the permissions like so.
"Submissions are always approved" yes for everyone except guests.
"Can submit HTML articles" yes for everyone except guests.
"Can submit BBC articles" yes for everyone except guests.
"Can edit own articles" yes for everyone except guests.

When I actually make an article on my normal member account the editor doesn't have nearly as many options as the admin. It is missing almost all options except the body and intro text asking if I want to use the wysiwyg editor and the quicklist images functions. The problem is when i submit the tester one I get the following error

Wrong value type sent to the database. Integer expected. (category)

so i checked my error log and it shows this

Apply Filter: Only show the error messages of this URL
http://www.ournewoutlook.com/index.php?action=tpmod;sa=submitarticle2
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (category)
Function: TPmodules
Apply Filter: Only show the errors from this file
File:Sources/TPmodules.php
Line: 744
I then looked up the line which is in the following function labeled 744:

elseif(allowedTo('tp_articles'))
      {
         // did we get a picture as well?
   774      if(isset($_FILES['qup_tp_article_body']) && file_exists($_FILES['qup_tp_article_body']['tmp_name']))
         {
            $name = TPuploadpicture('qup_tp_article_body', $context['user']['id'].'uid');
            tp_createthumb('tp-images/'. $name, 50, 50, 'tp-images/thumbs/thumb_'. $name);
         }
         redirectexit('action=tpadmin;sa=editarticle'.$newitem);
      }
I would assume making the category option available would solve this problem since my admin submits fine, but I don't know.
Also when I clicked on the error link as the admin i got a different error sort of
Wrong value type sent to the database. Integer expected. date

when I checked the error log again it had the same error as above so they may be linked in some way.
Title: Re: TinyPortal
Post by: lurkalot on September 02, 2011, 05:49:26 PM
@ jaxdestroyer

There' should be a new release out any day now, TP1.0 RC3 with all those fixes.

But for now, this might be of help. http://www.tinyportal.net/index.php?topic=34184.0
Title: Re: TinyPortal
Post by: IchBin™ on September 02, 2011, 09:38:32 PM
The options that only appear for the user are for good reason. You are giving the user the ability to post articles, not the ability to admin them. If you want your users to have all the admin options you have to give them the ability to manage articles in the permissions. For any errors you get, you can likely search this topic or TP.net like Lurk showed you, to find the answers.

I realize that there are some options that a user could have, but for now I'm not adding any new features until I get to a stable TP 1.0 release.
Title: Re: TinyPortal
Post by: jaxdestroyer on September 02, 2011, 11:30:58 PM
Yeah the link fixed the problem. Thanks.
Title: Re: TinyPortal
Post by: vajled on September 04, 2011, 02:04:40 PM
I hope I reach right board and topic for little help...
How I understan must post here my question and problem description for my SMF and TinyPortal.

Well...

I have try into css, but nothing happening. I am not so good coder, trying and know something but this is out of my league



/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
   margin: 0 auto;
   min-width: 1024px;
   max-width: 2300px;
}



I also see that TP have own width settings, and I have put 1024px

(http://img707.imageshack.us/img707/1374/20110904170008.jpg)

and forum setting is 90%

(http://img842.imageshack.us/img842/3535/20110904171748.jpg)


but nothing happens... in the end all times setting is 90% of width on the FP and Forum and all other links

My question: How to make TP fixed width of: 1024px, and Forum of 90% width?

Any idea?

Thx

Roman
Title: Re: TinyPortal
Post by: IchBin™ on September 04, 2011, 02:28:33 PM
To be honest, I do not think that feature is working or even implemented anymore. AT least off the top of my head I don't remember the code that works for this. Fixed width theme is going to have to be set in your custom theme. I'll probably end up removing that setting in the next release.
Title: Re: TinyPortal
Post by: vajled on September 04, 2011, 02:39:39 PM
thx for answer...
pitty, it's great thing for forum and TP...
Hope you will not remove it and you will make it work again...

thx again

Cheers

Roman
Title: Re: TinyPortal
Post by: jdvarner on September 10, 2011, 10:51:37 PM
Just reloaded with SMF 2.0 clean install and a few mods. Should i be using Tiny Portal RC1_1 or RC2?

Title: Re: TinyPortal
Post by: jdvarner on September 11, 2011, 01:18:42 AM
 i went ahead and tried RC1_1 and it worked like a charm. You da man BLOC. Always will be. is their a snippet code to show calendar events on the front page? i tried the code block built in but got an error. might be from old tp portal or something, not sure. got the error when i said to display on all pages. otherwise it didnt show anything. just want to show calender events (recent or 7 days or what not) on the front page with the calender showing as well.
Title: Re: TinyPortal
Post by: damouse on September 11, 2011, 03:07:25 PM
I'm in the process of moving my forum to a new shiny smf 2.0 too.

thought I'd try RC2 first, and got this error:

Unknown column 'value9' in 'smf_tp_variables'
File:.../forum/Packages/temp/SMF2/tp_upgrade.php
Line: 347


so I downloaded and attempted to install 1.1 and got

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

redownloaded, same result.
Title: Re: TinyPortal
Post by: IchBin™ on September 12, 2011, 11:35:05 AM
Did you upgrade from SMF1.x ? Or is this a new install?
Title: Re: TinyPortal
Post by: damouse on September 12, 2011, 06:04:16 PM
an upgrade
Title: Re: TinyPortal
Post by: lurkalot on September 13, 2011, 04:08:53 AM
Quote from: damouse on September 12, 2011, 06:04:16 PM
an upgrade

If you upgraded from SMF1 to SMF2 then you'll need to run this script that IchBin posted in your forum root, see here,  http://www.tinyportal.net/index.php?topic=34150.0

Hopefully you'll be able to view my link, the sites playing up ATM.
Title: Re: TinyPortal
Post by: IchBin™ on September 13, 2011, 10:36:21 AM
Working on getting RC3 out so all these little problems will be fixed.
Title: Re: TinyPortal
Post by: Skivey on September 26, 2011, 10:06:19 AM
is there a way of putting panel positions in between forum topics so as to add a little more advertising space on my forum?

Ive managed to get it in the top, im going to get it on the left... but I wondered if there was a way of putting it inbetween Coaching and No Limit Strat Topics hxxp:www.eurodonks.com/forum [nonactive]

any help would be appreciated

Matt
Title: Re: TinyPortal
Post by: Kindred on September 26, 2011, 10:10:08 AM
no....   although there is the smfadmanager mod that can do that sort of thing
Title: Re: TinyPortal
Post by: Skivey on September 26, 2011, 11:22:39 AM
Quote from: Kindred on September 26, 2011, 10:10:08 AM
no....   although there is the smfadmanager mod that can do that sort of thing

is this mod compatible with SMF 2.0.1 and adsense?

Thanks

Matt
Title: Re: TinyPortal
Post by: Kindred on September 26, 2011, 11:22:57 AM
yes
Title: Re: TinyPortal
Post by: Skivey on September 26, 2011, 11:47:18 AM
Quote from: Kindred on September 26, 2011, 11:22:57 AM
yes

thankyou very much for your help :)
Title: Re: TinyPortal
Post by: Bazino on September 29, 2011, 02:25:03 PM
Hey there!

First off all this is a great mod!
A friend helped me install it on my first SMF which is still a 1.xx, there is works perfect!

Now I'm starting another forum using SMF 2.0.1 which I have installed.
I haven't installed anything else yet.

Then I installed the Tinyportal RC2... well I tried. It didn't work at first... I got a parse modification error on the like one person mentions here:
http://www.tinyportal.net/index.php?topic=34138.msg273785#msg273785

The workaround was to
a) create a temp-folder in packages
b) create a tinyportal-folder in packages and move all the tinyportal-files there
c) copy the tp_upgrarde.php into the root-folder

After that, it did say Tinyportal was installed successfully...

Only problem is... I have no menu for the TP anywhere? No way to access it's options? The forum does say TP is installed (it's under installed packages as well), but I can't use it... it didn't change my page to have a portal, it's just like nothing happened other than that the SMF now says it's installed...

Anyone got any ideas?
Title: Re: TinyPortal
Post by: IchBin™ on September 29, 2011, 02:43:11 PM
If I were you I'd look at the SMF files and see if the code has been altered with the TP edits it requires. Since you didn't post a link to your site, I can't tell if it actually did install or not. Sounds like it did not. Take a look at the parse instructions on the mod site and see if the edits are done in your files.
Title: Re: TinyPortal
Post by: Bazino on September 29, 2011, 02:49:20 PM
Quote from: IchBin™ on September 29, 2011, 02:43:11 PM
If I were you I'd look at the SMF files and see if the code has been altered with the TP edits it requires. Since you didn't post a link to your site, I can't tell if it actually did install or not. Sounds like it did not. Take a look at the parse instructions on the mod site and see if the edits are done in your files.

Actually I'm confused a bit by those pare-infos... there is a section "CODE" ... what do I have to do with that?
Title: Re: TinyPortal
Post by: IchBin™ on September 29, 2011, 03:04:25 PM
Sorry I'm not following you on what you are asking.

If you follow the file edits on this page (http://custom.simplemachines.org/mods/index.php?action=parse;mod=97;attach=178161;smf_version=2.0.1), you should be able to verify if the code has been edited properly.
Title: Re: TinyPortal
Post by: Bazino on September 29, 2011, 03:09:37 PM
Quote from: IchBin™ on September 29, 2011, 03:04:25 PM
Sorry I'm not following you on what you are asking.

If you follow the file edits on this page (http://custom.simplemachines.org/mods/index.php?action=parse;mod=97;attach=178161;smf_version=2.0.1), you should be able to verify if the code has been edited properly.

Yes the "file edits" I do understand.
But then there are two more headers below: "Code" and "File Operations".
The "File operations" are clear... to copy the directories SMF2 and common into /root.
But what about the "Code" part? Just execute the file in SMF2?
Title: Re: TinyPortal
Post by: IchBin™ on September 29, 2011, 03:18:32 PM
The code part tells you which file you are editing first, then it tells you which code to search for, then it tells you which code to edit,replace,remove.
Title: Re: TinyPortal
Post by: WillyP on September 29, 2011, 03:59:56 PM
Ich, you must be thinking of something else... under code there is a file listed, 'SMF2/tp_upgrade.php' and the instructions 'This file should be able to execute standalone.' To run standalone,  you just access it with your browser, after you upload it. It will update the db, and maybe some settings and stuff.
Title: Re: TinyPortal
Post by: IchBin™ on September 29, 2011, 04:02:11 PM
Sorry, by "code part" I mean that section that lists all the code edits which is under the "file edits" label.
Title: Re: TinyPortal
Post by: kablan on September 30, 2011, 03:38:49 PM
Hey all,

I'm getting the error:

7.   Execute Modification   SMF2/tinyportal200.mod   Modification parse error

When installing.

Any1 seen this?

Thanks!

Regards,
Kablan.

edit: This is the first mod I'm trying to install on my SMF btw, so no earlier versions conflicting and stuff like that.
Title: Re: TinyPortal
Post by: IchBin™ on September 30, 2011, 07:58:00 PM
Only thing I can suggest is trying what was posted a few posts above.
http://www.simplemachines.org/community/index.php?topic=27642.msg3173120#msg3173120
Title: Re: TinyPortal
Post by: Biology Forums on October 02, 2011, 01:13:36 PM
Hi everyone, I've been using this snippet for the longest while

http://www.tinyportal.net/index.php?topic=31670.0

However, how can I modify it so that it includes the top posters for this week only, rather than all time?

IchBin™, I believe you're the author of it, would you happen to know?

I really like the layout, i.e. the avatar, posts, and profile name.
Title: Re: TinyPortal
Post by: IchBin™ on October 02, 2011, 02:14:51 PM
Sorry Shuban I don't have the time to write out the code for you. It completely changes the query and stuff. I'd suggest posting at TP where one of the others on the team may be able to help.
Title: Re: TinyPortal
Post by: Biology Forums on October 02, 2011, 02:36:00 PM
Quote from: IchBin™ on October 02, 2011, 02:14:51 PM
Sorry Shuban I don't have the time to write out the code for you. It completely changes the query and stuff. I'd suggest posting at TP where one of the others on the team may be able to help.

:( That thread is locked.
Title: Re: TinyPortal
Post by: IchBin™ on October 02, 2011, 02:45:09 PM
Yes because it's a snippets board only. You can't create a topic in the requests board?
Title: Re: TinyPortal
Post by: Biology Forums on October 02, 2011, 03:01:05 PM
Quote from: IchBin™ on October 02, 2011, 02:45:09 PM
Yes because it's a snippets board only. You can't create a topic in the requests board?

I posted something in the support board. I just really wanted to complete this project today lol.
Title: Re: TinyPortal
Post by: Biology Forums on October 03, 2011, 06:13:04 PM
Okay, I got it to work to this point ;D However, it only displays avatars of users who don't have an avatar and of users who have an avatar stored elsewhere (i.e. some other website). It won't, however, show users that have uploaded an avatar to the actual server of my website or who have picked one already found on the website's server. What should I do in this case?

global $db_prefix, $scripturl, $context, $settings;

// Top 10 Posters so far this week  (starts sunday)
$starttime = mktime(0, 0, 0, date("n"), date("j"), date("Y")) - (date("N")*3600*24);
// Offset based on forum time
$starttime = forum_time(false, $starttime);



$request = db_query("
SELECT me.ID_MEMBER, me.avatar, me.money, me.realName, COUNT(*) as count_posts
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS me ON (me.ID_MEMBER = m.ID_MEMBER)
WHERE m.posterTime > " . $starttime . "
AND m.ID_MEMBER != 0
GROUP BY me.ID_MEMBER
ORDER BY count_posts DESC
LIMIT 7", __FILE__, __LINE__);

$context['top_posters_week'] = array();
$max_num_posts = 1;
while ($row_members = mysql_fetch_assoc($request))
{
$context['top_posters_week'][] = array(
'money' => $row_members['money'],
'name' => $row_members['realName'],
'id' => $row_members['ID_MEMBER'],
'num_posts' => $row_members['count_posts'],
'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],
'avatar' => $row_members['avatar'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
);

if ($max_num_posts < $row_members['count_posts'])
$max_num_posts = $row_members['count_posts'];
}
mysql_free_result($request);

foreach ($context['top_posters_week'] as $i => $j)
$context['top_posters_week'][$i]['post_percent'] = round(($j['num_posts'] * 100) / $max_num_posts);

// Tidy up
unset($max_num_posts, $row_members, $j, $i);

echo '
<table cellpadding="0" cellspacing="4">';

foreach ($context['top_posters_week'] as $poster) {
echo '
<tr>

<td style="overflow: hidden;">';

if(empty($poster['avatar']))

echo'
<a href="'.$poster['href'].'"><img src="'.$settings['images_url'].'/noavatar.gif" width="30" height="30" alt="" title="'.$poster['name'].'" /></a>';

if(!empty($poster['avatar']))

echo '<a href="'.$poster['href'].'"><img src="', $poster['avatar'], '" width="30" height="30"></a>';

echo'
</td>

<td style="overflow: hidden;"><h5 style="margin: 4px;">', $poster['link'], '</h5><h5 style="margin: 4px;">', $poster['num_posts'], '</h5></td>
</tr>'; }
echo '
</table>';
Title: Re: TinyPortal
Post by: IchBin™ on October 04, 2011, 02:12:52 AM
Take a look at the avatar code in the snippet you linked to in the firt place. There are several checks needed in order to determine what type of avatar the user is using.
Title: Re: TinyPortal
Post by: Biology Forums on October 04, 2011, 12:28:04 PM
Quote from: IchBin™ on October 04, 2011, 02:12:52 AM
Take a look at the avatar code in the snippet you linked to in the firt place. There are several checks needed in order to determine what type of avatar the user is using.

Thanks, I did, but whenever I add:

db_query("SELECT mem.ID_MEMBER, mem.showOnline, mem.realName, mem.posts, mem.avatar, a.ID_ATTACH, a.attachmentType, a.filename
FROM ({$db_prefix}members as mem)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)


I gives me an error! Saying 500. Could you please show me?
Title: Re: TinyPortal
Post by: MrMike on October 10, 2011, 05:00:01 PM
I'm trying out several different portals and I'm wondering it's possible to configure TP so that it doesn't change the overall look of the forum (i.e. no blocks, etc) and just use the CMS articles capability.

In other words, install TP and set it up so the only added functionality is that of the article system.

Is this possible?
Title: Re: TinyPortal
Post by: IchBin™ on October 10, 2011, 05:26:00 PM
That should be possible. In the TPAdmin > Panels section you can turn off all the panels which should not show any blocks. Then set your front page option to go directly to the forum, or just have articles show on your frontpage. It's up to you really.
Title: Re: TinyPortal
Post by: MrMike on October 10, 2011, 06:25:30 PM
Super- I turned off all of the panels and have the forum looking as it did. :)

But...how do people access the article system in this setup? I don't see any links or menu options to allow people to get to the test articles I've created. (??)


Quote from: IchBin™ on October 10, 2011, 05:26:00 PM
That should be possible. In the TPAdmin > Panels section you can turn off all the panels which should not show any blocks. Then set your front page option to go directly to the forum, or just have articles show on your frontpage. It's up to you really.
Title: Re: TinyPortal
Post by: IchBin™ on October 10, 2011, 06:47:56 PM
Well you have to figure out how you want them to access them. How are you going to link to them if you turn all the blocks off? You can put items in the main menu and link to the articles from those. But that requires a manual edit to the SMF files. If you want to use a block you'll have to leave one of the panels on and create a block with links to the articles you want, or create a menu type block and create links in the menu manager for TP. You decide. :)
Title: Re: TinyPortal
Post by: MrMike on October 10, 2011, 07:12:55 PM
Can I create a menu type block with a link that leads to the listing of categories, so people can drill down into the categories and find articles?

Or, I can manually place a link someplace and have that lead to the listing of categories and articles?



Quote from: IchBin™ on October 10, 2011, 06:47:56 PM
Well you have to figure out how you want them to access them. How are you going to link to them if you turn all the blocks off? You can put items in the main menu and link to the articles from those. But that requires a manual edit to the SMF files. If you want to use a block you'll have to leave one of the panels on and create a block with links to the articles you want, or create a menu type block and create links in the menu manager for TP. You decide. :)
Title: Re: TinyPortal
Post by: IchBin™ on October 10, 2011, 09:04:41 PM
You can create an block that has the listing of categories itself. There's no page that shows the categories by itself.
Title: Re: TinyPortal
Post by: MrMike on October 10, 2011, 11:39:31 PM
Ahh, okay. This may not work for me then. There's no available or generated list of the categories that I'd create?

Is there any kind of list or index into the articles?


Quote from: IchBin™ on October 10, 2011, 09:04:41 PM
You can create an block that has the listing of categories itself. There's no page that shows the categories by itself.
Title: Re: TinyPortal
Post by: IchBin™ on October 11, 2011, 10:59:13 AM
There is a block that displays the categories that you have created, or rather the categories you select to be displayed in the admin section for it. There is an articles block that can display all articles from a category, or other options like most commented etc. I'd suggest giving it a test drive in a test install of SMF to see if it does what you need.
Title: Re: TinyPortal
Post by: WillyP on October 12, 2011, 03:04:06 PM
MrMike, you might be interested in taking a look at what I did on my test site: Test 2: Planet Descent (http://pdtest2.shirlsworld.net/index.php).

The link 'Articles', and the drop-downs are hard-coded in subs.php. However, once you get the link to the categories, links to each article are there on the category page.
Title: Re: TinyPortal
Post by: MrMike on October 12, 2011, 03:38:39 PM
Thank you, Willy, this is a lot like what I want. I don't mind hardcoding links in as needed, so this may be a starting point for me.

I want to create a directory of categories with multiple but separate articles in each category, each as a single page.

The way you've got it set up would work for me as long as I can figure out a good way to list all the articles...a cascading menu would be overwhelmed with the number of pages I'll have. That's why I was trying to figure out if there was some page that served as a category & article index.



Quote from: WillyP on October 12, 2011, 03:04:06 PM
MrMike, you might be interested in taking a look at what I did on my test site: Test 2: Planet Descent (http://pdtest2.shirlsworld.net/index.php).

The link 'Articles', and the drop-downs are hard-coded in subs.php. However, once you get the link to the categories, links to each article are there on the category page.
Title: Re: TinyPortal
Post by: IchBin™ on October 12, 2011, 04:51:27 PM
Well it shouldn't be hard to put something together that would grab and list all the categories or articles you want. Just depends on how you want them listed.
Title: Re: TinyPortal
Post by: MoreBloodWine on December 08, 2011, 05:33:38 PM
The footer information over laps the SMF info, did it not only on an existing site but a new one as well so it's not user error.

eojmarket.com
Title: Re: TinyPortal
Post by: IchBin™ on December 09, 2011, 12:28:09 PM
It's because of your theme. It doesn't look that way in the default theme.
In your index.css file find this code:
#footerarea ul li.copyright {
display: block;
line-height: 0;
font-size: small;
padding: 1em;
}


Change the line-height to 1.
Title: Re: TinyPortal
Post by: MoreBloodWine on December 09, 2011, 12:36:34 PM
Quote from: IchBin™ on December 09, 2011, 12:28:09 PM
It doesn't look that way in the default theme.
I beg to differ, this is the newest site that's had nothing done to it but soem mod installs. FWIW, even with just TP installed which was the first mod it was like that.

http://www.eojmarket.com/juggas_site/index.php
Title: Re: TinyPortal
Post by: IchBin™ on December 09, 2011, 12:44:15 PM
Actually it is the theme. Each theme is different, I can only account of the curve theme. Take a look for yourself.
http://www.eojmarket.com/juggas_site/index.php?theme=1
Title: Re: TinyPortal
Post by: MoreBloodWine on December 09, 2011, 12:53:41 PM
Quote from: IchBin™ on December 09, 2011, 12:44:15 PM
Actually it is the theme. Each theme is different, I can only account of the curve theme. Take a look for yourself.
http://www.eojmarket.com/juggas_site/index.php?theme=1
Well, whatever Theme 2 is, it does it on that.

In any event, that link seems to have set some weird ass cookie bec no matter what I do in admin now I'm "stuck" on that theme. I'll give it some time and go back to see if this "cookie" or whatever it is has released it's grip.

In any event, I'll "plug" in that change later and post back with results.

Thx up to this point Ichy :-)

Edit 1:23pm EST: Still stuck with the efault theme, that link seems to have done something to the juggas_site and even the base site at eojmarket.com where I can't change the currently used theme via admin.
Title: Re: TinyPortal
Post by: IchBin™ on December 09, 2011, 02:01:40 PM
As admin you can change the theme by adding the theme=(theme id#) in your URL. If you want to change it back then use theme=2 on your site. If it's not theme #2 then just go into your profile and select the theme again. It only keeps the theme for the session. I think you may need to close your browser if not.
Title: Re: TinyPortal
Post by: MoreBloodWine on December 09, 2011, 02:17:34 PM
It was a sesion / browser thing so my bad, in any event the 0 to 1 thing worked for the footer info ;-)
Title: Re: TinyPortal
Post by: catchmeonline on December 13, 2011, 02:02:15 AM
s there a nightly for this portal? I love tp btw :) tp for bungghollliiiooo
Title: Re: TinyPortal
Post by: IchBin™ on December 13, 2011, 11:23:28 AM
No nightly sorry. Working on RC3 at the moment. Hopefully a couple of weeks and we'll have it out.
Title: Re: TinyPortal
Post by: w0lfman on December 31, 2011, 12:54:28 PM
I installed this MOD last night on 1.1.16 and now I'm unable to install it.  I can remove it from the Package Manager list, but all functions are still install and accessable in the admin control panel.  Bad for me. 
Title: Re: TinyPortal
Post by: w0lfman on January 01, 2012, 06:16:26 PM
ANy ideas why this MOD wont uninstall?
Title: Re: TinyPortal
Post by: agridoc on January 02, 2012, 01:02:34 AM
w0lfman, as your TinyPortal install is recent, you can use the files in [SMF_dir]/packages/backups/[DATE]_before_TinyPortal1_RC2.tar.gz to roll back to SMF as it was before TinyPortal installation.

I don't remember having problems with uninstall, unless other mods have been added after TinyPortal. I this case, changes made by added mods can interfere with proper TP uninstall. Examining the error messages and the file changes that can't be rolled back will reveal the conflict. If you use the mentioned backup, additions after TP install will have to be done again.
Title: Re: TinyPortal
Post by: w0lfman on January 02, 2012, 07:58:43 PM
agridoc I see the file you mention, but what is the step to restore it back? 
Title: Re: TinyPortal
Post by: w0lfman on January 02, 2012, 08:59:06 PM
I just did a restore from the backup and now I'm getting this error...

Parse error: syntax error, unexpected $end in /home/w0lfman/public_html/12thman/Sources/Subs.php on line 4628
Title: Re: TinyPortal
Post by: IchBin™ on January 02, 2012, 09:26:26 PM
Attach your file here so we can take a look. There's no possible way we can read your file without you posting it.
Title: Re: TinyPortal
Post by: w0lfman on January 02, 2012, 10:28:40 PM
I'm doing a complete restore.  That should fix my problem.  I should be back up in no time.   
Title: Re: TinyPortal
Post by: IchBin™ on January 06, 2012, 09:39:13 PM
TinyPortal 1.0 RC3 released today! Change log in first post of this topic.
Title: Re: TinyPortal
Post by: agridoc on January 06, 2012, 10:01:19 PM
Congratulations IchBin™, take a rest now  ;)

For TP translators or those who might be willing to contribute in TP translation. Please have a look at Upcoming additional language strings to translate (http://www.tinyportal.net/index.php?topic=34616.0)
Title: Re: TinyPortal
Post by: anicolac on January 07, 2012, 08:03:49 AM
Hello, thank you very much for the new version.

We must first uninstall the previous version and then install the new one?.
Title: Re: TinyPortal
Post by: agridoc on January 07, 2012, 08:36:13 AM
Yes the older version must  be uninstalled before proceeding with installation of new version.
Title: Re: TinyPortal
Post by: anicolac on January 07, 2012, 08:54:49 AM
thanks for responding so quickly.
Title: Re: TinyPortal
Post by: IchBin™ on January 07, 2012, 05:52:19 PM
Quote from: anicolac on January 07, 2012, 08:03:49 AM
Hello, thank you very much for the new version.

We must first uninstall the previous version and then install the new one?.

It's better to do that IMO, but it should work either way.
Title: Re: TinyPortal
Post by: TheDel on January 09, 2012, 09:42:55 AM
tried cleanup my board so I dropped all my mods-
reuploaded the latest and the greatest SMF (and mods) and when I start with TP
Im getting this message....

BLOB/TEXT column 'illustration' can't have a default value
File: /home/type1par/public_html/Packages/temp/SMF2/tp_upgrade.php
Line: 317

What can I fix?

Found it- deleted all defaults for illustration  and it worked fine

But now is there a way for TP to work w/the Google Member Map mod?
I know its TP because uploaded all new files, added GMM first and it worked once I added TP, it stopped.
Tried asking the GMM peeps but didnt get far. If I had to choose TP is the keeper but I really would like the GMM>
Title: Re: TinyPortal
Post by: IchBin™ on January 09, 2012, 12:18:51 PM
Never used the GGM mod. I don't know how it works or what it does sorry.
Title: Re: TinyPortal
Post by: gumboy on January 12, 2012, 10:18:23 AM
How i can add on frontpage in frontpannel the only recent post names..only post not including replies...??
get a example go to www.yoindia.com and see latest poetry... i want make like that...
plz help me...
Title: Re: TinyPortal
Post by: IchBin™ on January 12, 2012, 11:03:54 AM
You'll need a custom code made for a php block or article. It would help if you told us which version of SMF you are using. This should work for SMF2.



// First param is how many posts you want to show, second and third are for exclude boards and include boards.
// Example to exclude some boards.
// ssi_recentPosts(8, array(1,4,6), null, 'array') <-- this will pull 8 posts from all boards except 1,4, and 6.

// Format ssi_recentPosts($numberOfPosts, $excludeBoards, $includeBoards)
$recentPosts = ssi_recentPosts(8, null, null, 'array');

echo '<ul>';

foreach($recentPosts as $post)
{
     echo '<li>' , $post['link'] , '</li>';
}

echo '</ul>';
Title: Re: TinyPortal
Post by: gumboy on January 12, 2012, 11:52:45 AM
Its working but it comes with the reply... i only want the topic names not with replies...
plz help me...
Title: Re: TinyPortal
Post by: IchBin™ on January 12, 2012, 12:21:13 PM
Then you want to change ssi_recentPosts to ssi_recentTopics
Title: Re: TinyPortal
Post by: gumboy on January 12, 2012, 12:31:07 PM
ok... thanks a lot... its working....
i also have 1 problem, on the front page there only comes the topics of 1st board... i set it but only comes the topics of 1st board...
what is the problem bro...???
plz help me...
Title: Re: TinyPortal
Post by: IchBin™ on January 12, 2012, 12:38:19 PM
What version of TP are you using? This was fixed in the latest TP 1.0 RC3 (internal version in package manager = 1.105)
Title: Re: TinyPortal
Post by: gumboy on January 12, 2012, 12:58:09 PM
i upgrade and its really working... thanks...
1 more question- (i know i'm disturbing you but....???)
On The Front Page, i recently added PHP Code for recent post but it occupies whole size.. i want to add anothe block near the recent post means there will  become the 2 blocks in a row... how can i do this???
sorry but plz help me...
Title: Re: TinyPortal
Post by: IchBin™ on January 12, 2012, 03:13:42 PM
Don't be afraid to explore all the settings. In the panel settings you can decide how you want the whole panel to display. Horizontally or vertically. Then just create another block where you need.
Title: Re: TinyPortal
Post by: DarkAngel612 on January 12, 2012, 04:40:01 PM
My turn for a question....I installed RC3 onto smf 1.1.16

question is about shoutbox block, where do I find the settings to alter the height of the shout box and make it a bit more less tall? I tried using the panels part since we have it as an upper panel but it did nothing so after messing with different spots to plop the block I finally figured it must have a place of its own somewhere.

I can be real dense especially with this flu that won't let go.
Title: Re: TinyPortal
Post by: IchBin™ on January 12, 2012, 04:44:43 PM
In the TPadmin > Modules > TPShout > Settings page you can set the height of the shoutbox.

www.yourdomain.com/index.php?action=tpmod;shout=admin;settings
Title: Re: TinyPortal
Post by: gumboy on January 12, 2012, 05:08:43 PM
Very very thanks bro... i got it..
The tinyportal is really awesome...
and thanks again to giving us such a nice portal..
God always bless you...
Title: Re: TinyPortal
Post by: DarkAngel612 on January 12, 2012, 10:04:52 PM
Quote from: IchBin™ on January 12, 2012, 04:44:43 PM
In the TPadmin > Modules > TPShout > Settings page you can set the height of the shoutbox.

www.yourdomain.com/index.php?action=tpmod;shout=admin;settings (http://www.yourdomain.com/index.php?action=tpmod;shout=admin;settings)

Love that avatar of yours...thanks so very much. I swear I looked everywhere but there. YAY
Title: Re: TinyPortal
Post by: gumboy on January 14, 2012, 05:31:49 PM
Quote from: IchBin™ on January 12, 2012, 12:21:13 PM
Then you want to change ssi_recentPosts to ssi_recentTopics
Then also after reply on topic, it comes in the recent topics..
Title: Re: TinyPortal
Post by: IchBin™ on January 14, 2012, 07:13:12 PM
If SSI doesn't do what you want, then you'll have to custom code something that will pull what you need. Sorry I don't have the time to do that for you.
Title: Re: TinyPortal
Post by: gumboy on January 15, 2012, 02:19:40 AM
Ok.. Thats my badluck.. And thanks to you for giving me your valueable time..
If you got a time then try to do this for me..
I'll thanking u for lifetime..
Thanks..bye..
God bless you..tc..
Title: Re: TinyPortal
Post by: clothahump on January 20, 2012, 08:55:02 AM
Tiny Portal is down so posting here for a quick reply.

Articles are being scrambled by TP editor, old articles are fine but when trying to add a new one to replace the Articles Block it goes completely screwy, you can see the problem here; http://www.tropicalfishforums.co.uk/index.php?page=46

Any idea when TP will be stable?
Title: Re: TinyPortal
Post by: clothahump on January 20, 2012, 09:14:40 AM
Just found yet another problem, in the following image you can plainly see there are 2 pages of articles, when I click on (2) it takes me to my profile page instead of the second page listing my articles, you will also notice no categories are listed.  ::)
Title: Re: TinyPortal
Post by: Celia N. Foster on January 20, 2012, 04:23:11 PM
Theme problem? I think so!
« on: Today at 01:12:42 AM »

    Quote
    Modify
    Remove

Fatal error:  Call to undefined function TP_loadTheme() in /hermes/bosweb26b/b647/ipg.judithbarsicom/forum/Sources/Load.php on line 1357

---------

How do I fix this? Manually?

Title: Re: TinyPortal
Post by: IchBin™ on January 20, 2012, 08:27:01 PM
Sounds like your files didn't get uploaded properly. I'd upload all the files from the TP package for your version of SMF again.

Clothahump,

Is that just a layout issue you are having in the HTML of your article? I'm not sure I understand your problem.
Title: Re: TinyPortal
Post by: agridoc on January 20, 2012, 10:19:25 PM
@clothahump

Congratulations, you have found two minor bugs. Confirmed.
In TP Articles listing in Profile section, Profile -> Tinyportal: Articles
- Article categories are not listed
- Clicking on additional article page numbers leads to profile summary

Thank you for noticing. Nobody else noticed so far.

Please try to give more details on new article problem. Article type, display options etc. Also if you did a major site upgrade including SMF.
Title: Re: TinyPortal
Post by: clothahump on January 21, 2012, 04:22:32 AM
@ IchBin.
It is just a layout problem I suppose, the code is stripped by the editor as far as I can make out which leaves you with the jumble you see, I am only doing this as the Articles block will not list them alphabetically and to be honest the menu is not very nice looking.

@ agridoc.
New install of 2.0.2 and associated packages then connected to old DB.
Article is HTML, will display options make any difference?
Title: Re: TinyPortal
Post by: lurkalot on January 21, 2012, 04:55:37 AM
Quote from: agridoc on January 20, 2012, 10:19:25 PM

Please try to give more details on new article problem. Article type, display options etc. Also if you did a major site upgrade including SMF.

Quote from: clothahump on January 21, 2012, 04:22:32 AM

@ agridoc.
New install of 2.0.2 and associated packages then connected to old DB.
Article is HTML, will display options make any difference?

What versions did you upgrade from originally.  Might be a fresh install of the files, but what upgrades(versions of TP, and SMF) has your database been through?  Are your articles just displaying html? if so, have you simply tried clicking the save button on them again  via edit article?   scrap that last question, I read your post above again, and don't think my last question is relevant.  ;) 
Title: Re: TinyPortal
Post by: clothahump on January 21, 2012, 05:00:09 AM
Originally upgraded from 1.1.4 if I remember correctly, all articles are html, as I said the old ones are not affected just the new one to replace the block.
Title: Re: TinyPortal
Post by: lurkalot on January 21, 2012, 05:07:34 AM
Quote from: clothahump on January 21, 2012, 05:00:09 AM
Originally upgraded from 1.1.4 if I remember correctly, all articles are html, as I said the old ones are not affected just the new one to replace the block.

Strange, a lot of us had this the other way around, old html and javascript articles were displaying html in the output, and fixed by simply clicking the save button again on the articles / bocks.  New blocks and articles work fine.

So you upgraded from SMF 1.1.4 to 2.0, and any ideas what version of TP you upgraded from?
Title: Re: TinyPortal
Post by: clothahump on January 21, 2012, 05:10:01 AM
Not off hand, sorry.
Title: Re: TinyPortal
Post by: clothahump on January 21, 2012, 05:20:17 AM
Your gonna love this, just removed the html and replaced with a copy of my original and it now works, why would it not work Yesterday is a mystery.
http://www.tropicalfishforums.co.uk/index.php?page=articles
Title: Re: TinyPortal
Post by: Anpu on January 21, 2012, 07:49:26 AM
Hi I have following problem:
I am getting this error message on Tiny Portal Download section:
QuoteAn Error Has Occurred!
Wrong value type sent to the database. Integer expected. (week)

Error log says:
Quote
Wrong value type sent to the database. Integer expected. (week)
Function: TPortalDLManager

And it points out to file Sources/TPdlmanager.php
Line 610:
609: array('type' => 'dlitem', 'cat' => $mycats, 'yr' => $year, 'week' => $week)
==>610: );


Closing bracket in line 610 is from    
$request = $smcFunc['db_query']('', '


SMF 2.0.2, TP 1.104
Title: Re: TinyPortal
Post by: ZarPrime on January 21, 2012, 11:18:53 AM
Anpu,


This issue you mention happened to to others on January 1st for some reason.  Though there are a few topics on our site that show the fix, you can't access the site right now.  However, you are currently using TP 1.0 RC2 (internal version 1.104) and this issue has been fixed in the latest version which is TP 1.0 RC3 (internal version 1.105).  Please update to the latest version at your earliest convenience.


ZarPrime
Title: Re: TinyPortal
Post by: Anpu on January 21, 2012, 01:02:07 PM
That worked, thanks! Would be awesome feat for TP to show to administrator notification in admin panel that new version is released (just like SMF does).
Title: Re: TinyPortal
Post by: IchBin™ on January 21, 2012, 04:32:51 PM
Quote from: Anpu on January 21, 2012, 01:02:07 PM
That worked, thanks! Would be awesome feat for TP to show to administrator notification in admin panel that new version is released (just like SMF does).

Yes it would. :) I'll put that on my todo list.
Title: Re: TinyPortal
Post by: agridoc on January 22, 2012, 02:17:35 AM
Quote from: clothahump on January 21, 2012, 04:22:32 AM@ agridoc.
New install of 2.0.2 and associated packages then connected to old DB.
Article is HTML, will display options make any difference?

This means that your database is not properly converted. I would suggest to backup first then do a large upgrade to 2.02 and install mods again. It's a bit time consuming but it will save you time and problems in the future, not only with TP but also with SMF and other mods. Without doing this, it will not be possible to find the proper cause of problems that will appear.

It your previous TP version was 0.9.8 or a little later you might need some work with HTML blocks rather than articles, as the editor was HTML/BBC, in later versions HTML was separated from BBC.

About the bug of TP articles in profile:

Find in /Sources/TPmodules.php
Quote// construct pageindexes
   if($max > 0)
      $context['TPortal']['pageindex'] = TPageIndex($scripturl.'?action=profile;sa=tparticles;u='.$memID.';tpsort='.$sorting, $start, $max, '10');

Replace with
Quote// construct pageindexes
   if($max > 0)
      $context['TPortal']['pageindex'] = TPageIndex($scripturl.'?action=profile;area=tparticles;u='.$memID.';tpsort='.$sorting, $start, $max, '10');

Find in /Themes/default/TPprofile.template.php
Quote<tr class="catbg">
            <td align="center" nowrap="nowrap">', $context['TPortal']['tpsort']=='subject' ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';sa=tparticles;tpsort=subject">'.$txt['subject'].'</a></td>
            <td align="center" nowrap="nowrap">', ($context['TPortal']['tpsort']=='date'  || $context['TPortal']['tpsort']=='') ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';sa=tparticles;tpsort=date">'.$txt['date'].'</a></td>
            <td align="center" nowrap="nowrap">', $context['TPortal']['tpsort']=='views' ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';sa=tparticles;tpsort=views">'.$txt['views'].'</a></td>
            <td align="center" nowrap="nowrap">'.$txt['tp-ratings'].'</td>
            <td align="center" nowrap="nowrap">', $context['TPortal']['tpsort']=='comments' ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';sa=tparticles;tpsort=comments">'.$txt['tp-comments'].'</a></td>
            <td align="center" nowrap="nowrap">', $context['TPortal']['tpsort']=='category' ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';sa=tparticles;tpsort=category">'.$txt['tp-category'].'</a></td>
            <td align="center" nowrap="nowrap">'.$txt['tp-edit'].'</td>
         </tr>';

Replace with
Quote<tr class="catbg">
            <td align="center" nowrap="nowrap">', $context['TPortal']['tpsort']=='subject' ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';area=tparticles;tpsort=subject">'.$txt['subject'].'</a></td>
            <td align="center" nowrap="nowrap">', ($context['TPortal']['tpsort']=='date'  || $context['TPortal']['tpsort']=='') ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';area=tparticles;tpsort=date">'.$txt['date'].'</a></td>
            <td align="center" nowrap="nowrap">', $context['TPortal']['tpsort']=='views' ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';area=tparticles;tpsort=views">'.$txt['views'].'</a></td>
            <td align="center" nowrap="nowrap">'.$txt['tp-ratings'].'</td>
            <td align="center" nowrap="nowrap">', $context['TPortal']['tpsort']=='comments' ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';area=tparticles;tpsort=comments">'.$txt['tp-comments'].'</a></td>
            <td align="center" nowrap="nowrap">', $context['TPortal']['tpsort']=='category' ? '<img src="' .$settings['tp_images_url']. '/TPsort_down.gif" alt="" /> ' : '' ,'<a href="'.$scripturl.'?action=profile;u='.$context['TPortal']['memID'].';area=tparticles;tpsort=category">'.$txt['tp-category'].'</a></td>
            <td align="center" nowrap="nowrap">'.$txt['tp-edit'].'</td>
         </tr>';

The latter changes will fix sorting.

* I had not been able to fix the category listing display, IchBin™ will do it when he finds time.
Title: Re: TinyPortal
Post by: clothahump on January 22, 2012, 04:35:42 AM
Do I need the files from the large upgrade or just the stuff for the DB upgrade?
Title: Re: TinyPortal
Post by: agridoc on January 22, 2012, 04:47:20 AM
It's better to upload (or unzip in server) the large upgrade file replacing existing files with clean new ones the run upgrade.php that will also do the necessary conversions in database.
Title: Re: TinyPortal
Post by: clothahump on January 22, 2012, 04:51:58 AM
Upgrade complete and the TP bug is fixed, do you code for TP?
Title: Re: TinyPortal
Post by: WillyP on January 22, 2012, 09:52:19 AM
After putting the forum in maintenance mode (to prevent posts or uploads from disappearing should I need to restore a backup) I backed up both files and database, and begun uninstalling mods. As I had modified the menu in subs.php, several mods could not undo changes made to it. I ignored failure warnings about subs.php, and at some point got a white screen so I uploaded a fresh copy of subs from the new smf2.0.2 package i had d/l'd earlier. this corrected the white screen and I finished uninstalling mods. I then installed SMF 2.0.2, TP RC3 and all the mods I had before, with out any hitch.  I then opened my backup of subs.php and copied my custom menu from the old to the new. I tested the site briefly then removed maintinece mode. And made a new backup of all files and the DB.

Well done and many thanks, Ichbin, TP and SMF crew!
Title: Re: TinyPortal
Post by: agridoc on January 22, 2012, 12:13:16 PM
Quote from: clothahump on January 22, 2012, 04:51:58 AM
Upgrade complete and the TP bug is fixed, do you code for TP?

Good, you have a good basis now  ;)

I am in TP Team as TP language, like Localizer in SMF. Not a coder, occasionally minor hacks, as in SMF.
Title: Re: TinyPortal
Post by: clothahump on January 22, 2012, 12:17:12 PM
Thanks for a quick fix, hope IchBib pops it into the next version.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 25, 2012, 09:47:03 PM
I am missing my Subs.php file. HELP!!!!!
Title: Re: TinyPortal
Post by: IchBin™ on January 25, 2012, 09:50:36 PM
Thats an smf file. Restore from a backup or extract from smf zip.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 25, 2012, 09:52:16 PM
Well, that still doesn't help.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 25, 2012, 09:52:39 PM
I tried that several times.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 25, 2012, 09:55:56 PM
<?php

/**
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines http://www.simplemachines.org
* @copyright 2011 Simple Machines
* @license http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0.1
*/

/*   This, as you have probably guessed, is the crux on which SMF functions.
   Everything should start here, so all the setup and security is done
   properly.  The most interesting part of this file is the action array in
   the smf_main() function.  It is formatted as so:

      'action-in-url' => array('Source-File.php', 'FunctionToCall'),

   Then, you can access the FunctionToCall() function from Source-File.php
   with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version = 'SMF 2.0.1';

// Get everything started up...
define('SMF', 1);
if (function_exists('set_magic_quotes_runtime'))
   @set_magic_quotes_runtime(0);
error_reporting(defined('E_STRICT') ? E_ALL | E_STRICT : E_ALL);
$time_start = microtime();

// This makes it so headers can be sent!
ob_start();

// Do some cleaning, just in case.
foreach (array('db_character_set', 'cachedir') as $variable)
   if (isset($GLOBALS[$variable]))
      unset($GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

// Make absolutely sure the cache directory is defined.
if ((empty($cachedir) || !file_exists($cachedir)) && file_exists($boarddir . '/cache'))
   $cachedir = $boarddir . '/cache';

// And important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');

// Using an pre-PHP 5.1 version?
if (@version_compare(PHP_VERSION, '5.1') == -1)
   require_once($sourcedir . '/Subs-Compat.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
   db_fatal_error();

// Create a variable to store some SMF specific functions in.
$smcFunc = array();

// Initate the database connection and define some database functions to use.
loadDatabase();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Seed the random generator.
if (empty($modSettings['rand_seed']) || mt_rand(1, 250) == 69)
   smf_seed_generator();

// Before we get carried away, are we doing a scheduled task? If so save CPU cycles by jumping out!
if (isset($_GET['scheduled']))
{
   require_once($sourcedir . '/ScheduledTasks.php');
   AutoTask();
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent())
{
   // If zlib is being used, turn off output compression.
   if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION, '4.2.0') == -1)
      $modSettings['enableCompressedOutput'] = '0';
   else
   {
      ob_end_clean();
      ob_start('ob_gzhandler');
   }
}

// Register an error handler.
set_error_handler('error_handler');

// Start the session. (assuming it hasn't already been.)
loadSession();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))
   unset($_SESSION['nowap']);
elseif (isset($_REQUEST['nowap']))
   $_SESSION['nowap'] = true;
elseif (!isset($_SESSION['nowap']))
{
   if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
      $_REQUEST['wap2'] = 1;
   elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
   {
      if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
         $_REQUEST['imode'] = 1;
      else
         $_REQUEST['wap'] = 1;
   }
}

if (!defined('WIRELESS'))
   define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
   define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' : '')));

   // Some cellphones can't handle output compression...
   $modSettings['enableCompressedOutput'] = '0';
   // !!! Do we want these hard coded?
   $modSettings['defaultMaxMessages'] = 5;
   $modSettings['defaultMaxTopics'] = 9;

   // Wireless protocol header.
   if (WIRELESS_PROTOCOL == 'wap')
      header('Content-Type: text/vnd.wap.wml');
}

// Restore post data if we are revalidating OpenID.
if (isset($_GET['openid_restore_post']) && !empty($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post']) && empty($_POST))
{
   $_POST = $_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post'];
   unset($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]);
}

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area ;).
obExit(null, null, true);

// The main controlling function.
function smf_main()
{
   global $modSettings, $settings, $user_info, $board, $topic, $board_info, $maintenance, $sourcedir;

   // Special case: session keep-alive, output a transparent pixel.
   if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
   {
      header('Content-Type: image/gif');
      die("\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x21\xF9\x04\x01\x00\x00\x00\x00\x2C\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3B");
   }

   // Load the user's cookie (or set as guest) and load their settings.
   loadUserSettings();

   // Load the current board's information.
   loadBoard();

   // Load the current user's permissions.
   loadPermissions();

   // Bad Behavior Start
   require_once($sourcedir . '/bad-behavior/BadBehavior-SMF.php');
   // Bad Behavior End

   // Attachments don't require the entire theme to be loaded.
   if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && (!empty($modSettings['allow_guestAccess']) && $user_info['is_guest']))
      detectBrowser();
   // Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
   else
      loadTheme();

   // Check if the user should be disallowed access.
   is_not_banned();

   // If we are in a topic and don't have permission to approve it then duck out now.
   if (!empty($topic) && empty($board_info['cur_topic_approved']) && !allowedTo('approve_posts') && ($user_info['id'] != $board_info['cur_topic_starter'] || $user_info['is_guest']))
      fatal_lang_error('not_a_topic', false);

   // Do some logging, unless this is an attachment, avatar, toggle of editor buttons, theme option, XML feed etc.
   if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'findmember', 'jseditor', 'jsoption', 'requestmembers', 'smstats', '.xml', 'xmlhttp', 'verificationcode', 'viewquery', 'viewsmfile')))
   {
      // Log this user as online.
      writeLog();

      // Track forum statistics and hits...?
      if (!empty($modSettings['hitStats']))
         trackStats(array('hits' => '+'));
   }

   // Is the forum in maintenance mode? (doesn't apply to administrators.)
   if (!empty($maintenance) && !allowedTo('admin_forum'))
   {
      // You can only login.... otherwise, you're getting the "maintenance mode" display.
      if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
      {
         require_once($sourcedir . '/LogInOut.php');
         return $_REQUEST['action'] == 'login2' ? 'Login2' : 'Logout';
      }
      // Don't even try it, sonny.
      else
      {
         require_once($sourcedir . '/Subs-Auth.php');
         return 'InMaintenance';
      }
   }
   // If guest access is off, a guest can only do one of the very few following actions.
   elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn'))))
   {
      require_once($sourcedir . '/Subs-Auth.php');
      return 'KickGuest';
   }
   elseif (empty($_REQUEST['action']))
   {
      // Action and board are both empty... BoardIndex!
      if (empty($board) && empty($topic))
      {
         require_once($sourcedir . '/BoardIndex.php');
         return 'BoardIndex';
      }
      // Topic is empty, and action is empty.... MessageIndex!
      elseif (empty($topic))
      {
         require_once($sourcedir . '/MessageIndex.php');
         return 'MessageIndex';
      }
      // Board is not empty... topic is not empty... action is empty.. Display!
      else
      {
         require_once($sourcedir . '/Display.php');
         return 'Display';
      }
   }

   // Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
   $actionArray = array(
      'activate' => array('Register.php', 'Activate'),
      'admin' => array('Admin.php', 'AdminMain'),
      'announce' => array('Post.php', 'AnnounceTopic'),
      'attachapprove' => array('ManageAttachments.php', 'ApproveAttach'),
      // Bad Behavior Start
      'badbehavior' => array('BadBehavior-SMF.php', 'badbehavior'),
      // Bad Behavior End
      'buddy' => array('Subs-Members.php', 'BuddyListToggle'),
      'calendar' => array('Calendar.php', 'CalendarMain'),
      'clock' => array('Calendar.php', 'clock'),
      'collapse' => array('BoardIndex.php', 'CollapseCategory'),
      'coppa' => array('Register.php', 'CoppaForm'),
      'credits' => array('Who.php', 'Credits'),
      'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
      'display' => array('Display.php', 'Display'),
      'dlattach' => array('Display.php', 'Download'),
      'editpoll' => array('Poll.php', 'EditPoll'),
      'editpoll2' => array('Poll.php', 'EditPoll2'),
      'emailuser' => array('SendTopic.php', 'EmailUser'),
      'findmember' => array('Subs-Auth.php', 'JSMembers'),
      'groups' => array('Groups.php', 'Groups'),
      'help' => array('Help.php', 'ShowHelp'),
      'helpadmin' => array('Help.php', 'ShowAdminHelp'),
      'im' => array('PersonalMessage.php', 'MessageMain'),
      'jseditor' => array('Subs-Editor.php', 'EditorMain'),
      'jsmodify' => array('Post.php', 'JavaScriptModify'),
      'jsoption' => array('Themes.php', 'SetJavaScript'),
      'lock' => array('LockTopic.php', 'LockTopic'),
      'lockvoting' => array('Poll.php', 'LockVoting'),
      'login' => array('LogInOut.php', 'Login'),
      'login2' => array('LogInOut.php', 'Login2'),
      'logout' => array('LogInOut.php', 'Logout'),
      'markasread' => array('Subs-Boards.php', 'MarkRead'),
      'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
      'mlist' => array('Memberlist.php', 'Memberlist'),
      'moderate' => array('ModerationCenter.php', 'ModerationMain'),
      'modifycat' => array('ManageBoards.php', 'ModifyCat'),
      'modifykarma' => array('Karma.php', 'ModifyKarma'),
      'movetopic' => array('MoveTopic.php', 'MoveTopic'),
      'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
      'notify' => array('Notify.php', 'Notify'),
      'notifyboard' => array('Notify.php', 'BoardNotify'),
      'openidreturn' => array('Subs-OpenID.php', 'smf_openID_return'),
      'pm' => array('PersonalMessage.php', 'MessageMain'),
      'post' => array('Post.php', 'Post'),
      'post2' => array('Post.php', 'Post2'),
      'printpage' => array('Printpage.php', 'PrintTopic'),
      'profile' => array('Profile.php', 'ModifyProfile'),
      'quotefast' => array('Post.php', 'QuoteFast'),
      'quickmod' => array('MessageIndex.php', 'QuickModeration'),
      'quickmod2' => array('Display.php', 'QuickInTopicModeration'),
      'recent' => array('Recent.php', 'RecentPosts'),
      'register' => array('Register.php', 'Register'),
      'register2' => array('Register.php', 'Register2'),
      'reminder' => array('Reminder.php', 'RemindMe'),
      'removepoll' => array('Poll.php', 'RemovePoll'),
      'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
      'reporttm' => array('SendTopic.php', 'ReportToModerator'),
      'requestmembers' => array('Subs-Auth.php', 'RequestMembers'),
      'restoretopic' => array('RemoveTopic.php', 'RestoreTopic'),
      'search' => array('Search.php', 'PlushSearch1'),
      'search2' => array('Search.php', 'PlushSearch2'),
      'sendtopic' => array('SendTopic.php', 'EmailUser'),
      'smstats' => array('Stats.php', 'SMStats'),
      'suggest' => array('Subs-Editor.php', 'AutoSuggestHandler'),
      'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
      'splittopics' => array('SplitTopics.php', 'SplitTopics'),
      'stats' => array('Stats.php', 'DisplayStats'),
      'sticky' => array('LockTopic.php', 'Sticky'),
      'theme' => array('Themes.php', 'ThemesMain'),
      'trackip' => array('Profile-View.php', 'trackIP'),
      'about:mozilla' => array('Karma.php', 'BookOfUnknown'),
      'about:unknown' => array('Karma.php', 'BookOfUnknown'),
      'unread' => array('Recent.php', 'UnreadTopics'),
      'unreadreplies' => array('Recent.php', 'UnreadTopics'),
      'verificationcode' => array('Register.php', 'VerificationCode'),
      'viewprofile' => array('Profile.php', 'ModifyProfile'),
      'vote' => array('Poll.php', 'Vote'),
      'viewquery' => array('ViewQuery.php', 'ViewQuery'),
      'viewsmfile' => array('Admin.php', 'DisplayAdminFile'),
      'who' => array('Who.php', 'Who'),
      '.xml' => array('News.php', 'ShowXmlFeed'),
      'xmlhttp' => array('Xml.php', 'XMLhttpMain'),
   );

   // Allow modifying $actionArray easily.
   call_integration_hook('integrate_actions', array(&$actionArray));

   // Get the function and file to include - if it's not there, do the board index.
   if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
   {
      // Catch the action with the theme?
      if (!empty($settings['catch_action']))
      {
         require_once($sourcedir . '/Themes.php');
         return 'WrapAction';
      }

      // Fall through to the board index then...
      require_once($sourcedir . '/BoardIndex.php');
      return 'BoardIndex';
   }

   // Otherwise, it was set - so let's go to that action.
   require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
   return $actionArray[$_REQUEST['action']][1];
}

?>
Title: Re: TinyPortal
Post by: IchBin™ on January 25, 2012, 10:39:11 PM
It would be better for you if you started a support topic, as your problem is not really related to TinyPortal. Start a topic in the support board for your version of SMF and describe what happens and post any errors or things you are seeing.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 02:00:35 PM
Illori told me someone here must clean up my mess on the TinyPortal Mod.
Quote from: Illori on January 27, 2012, 01:48:18 PM
did you uninstall it using the package manager? if not then you need to post in the support thread so they can help you clean up your mess.
I don't have an Admin.php file and yes, I did try and failed to create one from scratch because my version of MyAdminphp doesn't like m and n characters coming from Macs (I'm on one).
Title: Re: TinyPortal
Post by: clothahump on January 27, 2012, 02:05:37 PM
Quote from: Celia N. Foster on January 27, 2012, 02:00:35 PM
Illori told me someone here must clean up my mess on the TinyPortal Mod.
Quote from: Illori on January 27, 2012, 01:48:18 PM
did you uninstall it using the package manager? if not then you need to post in the support thread so they can help you clean up your mess.


I don't have an Admin.php file and yes, I did try and failed to create one from scratch because my version of MyAdminphp doesn't like m and n characters coming from Macs (I'm on one).

A request for help would probably get somebodies attention quicker than stating somebody MUST clean up YOUR mess.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 02:10:22 PM
I am sorry. I should have said "can". I am only frustrated. Long story. I dislike being bullied, clothahump.
Title: Re: TinyPortal
Post by: IchBin™ on January 27, 2012, 02:13:48 PM
Based on your last post Celia, I have no idea what the problem is that you are having. Could you describe what you have done, and what is the problem that you are seeing?
Title: Re: TinyPortal
Post by: clothahump on January 27, 2012, 02:16:35 PM
Quote from: Celia N. Foster on January 27, 2012, 02:10:22 PM
I am sorry. I should have said "can". I am only frustrated. Long story. I dislike being bullied, clothahump.

How was I bullying You?

Can I suggest deleting the whole forum, install fresh copy and connect to the old DB, then re-install any Packages required, easy fix if Celia is unable to edit files.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 02:24:00 PM
I am disabled. I have Cerebral Palsy. I am dyslexic. I am battling ovarian cysts because in my family they are genetic. My mother has ovarian cancer. I am medically depressed. I am sorry I wrongly perceived your words as bullying and I forgive you. We are both human and we each make mistakes. I am truly sorry I upset you.
Title: Re: TinyPortal
Post by: clothahump on January 27, 2012, 02:28:26 PM
Didn't upset me.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 02:29:55 PM
Okay. No harm done then.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 02:51:56 PM
Quote from: IchBin™ on January 27, 2012, 02:13:48 PM
Based on your last post Celia, I have no idea what the problem is that you are having. Could you describe what you have done, and what is the problem that you are seeing?

Sure.
Title: Re: TinyPortal
Post by: clothahump on January 27, 2012, 03:02:07 PM
Quote from: clothahump on January 27, 2012, 02:16:35 PM

Can I suggest deleting the whole forum, install fresh copy and connect to the old DB, then re-install any Packages required, easy fix if Celia is unable to edit files.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 03:07:39 PM
May I then ask how to reconnect databases with detailed instructions and troubleshooting solutions?
Title: Re: TinyPortal
Post by: clothahump on January 27, 2012, 03:12:42 PM
Do a fresh install and use the DB info from the old settings.php file, upgrade DB, re-install Packages and Themes.

BEWARE: It is not something you should undertake unless you are competent and above all confident with doing this sort of thing.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 03:15:47 PM
I am currently not one of those you are describing following "BEWARE:". I hope to learn someday the very best I know how to.
Title: Re: TinyPortal
Post by: clothahump on January 27, 2012, 03:19:28 PM
Who installed SMF for you originally, can you get them to do the job?
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 03:21:31 PM
Ricky. He told me he is busy.
Title: Re: TinyPortal
Post by: clothahump on January 27, 2012, 03:25:06 PM
Busy or unsure of what he is doing? that will be the best way to go.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 03:28:36 PM
« Sent to: Celia N. Foster (http://www.simplemachines.org/community/index.php?action=profile;u=256279) on: Yesterday at 07:13:38 AM » 
Hello,

I guess I was too busy lately, as I told you earlier, you are having a complex setup to do simple thing.  As I promised , I will show you a simple setup using all SMF where you can do everything you are doing with WP+SMF+some gallery.

I will make test installation and show you.!
~Ricky
----------------
P.S.- My gallery is on Flickr, WP and SMF are separately installed.
Title: Re: TinyPortal
Post by: IchBin™ on January 27, 2012, 04:44:39 PM
If you download the large upgrade package for the version of SMF you are using, you can then unzip that and upload the files to your host replacing all the existing ones. This should bring your forum to a default install without messing with the Settings.php file. Note that this will only happen if you use the large upgrade package. If you use the install package your Settings.php file will get overwritten. You should be able to do this without having to be one of the "those people". :)

I would advise you to make a backup before you make any changes though.
Title: Re: TinyPortal
Post by: Celia N. Foster on January 27, 2012, 04:52:27 PM
Understood.
Title: Re: TinyPortal
Post by: clothahump on January 27, 2012, 05:02:57 PM
Didn't think of that way round, sorry.
Title: Re: TinyPortal
Post by: City Builder on January 31, 2012, 03:49:59 AM
Hi,

I'm trying to figure out where a block comes from, whether it's a built in block to Tiny Portal or if it's from somewhere else entirely.

When I visit a topic on our website above the topic, is something named 'tag this topic'

It allows me to assign a tag to the topic as a new one, or assign one of the tags that I've already assigned to some other topic on our site.

Is this a TP block?

I ask because it seems broken in the sense that I can't keep that block minimized, there is a + sign next to it but it only minimizes that block for that page view, once I move on to another topic, it's fully expanded again.

Thanks if somebody can tell me more about it, or how to fix it, if it's a TP block itself.
Title: Re: TinyPortal
Post by: lurkalot on January 31, 2012, 04:44:59 AM
Quote from: City Builder on January 31, 2012, 03:49:59 AM
Hi,

I'm trying to figure out where a block comes from, whether it's a built in block to Tiny Portal or if it's from somewhere else entirely.

When I visit a topic on our website above the topic, is something named 'tag this topic'

It allows me to assign a tag to the topic as a new one, or assign one of the tags that I've already assigned to some other topic on our site.

Is this a TP block?

I ask because it seems broken in the sense that I can't keep that block minimized, there is a + sign next to it but it only minimizes that block for that page view, once I move on to another topic, it's fully expanded again.

Thanks if somebody can tell me more about it, or how to fix it, if it's a TP block itself.

Is indeed part of TP.  I can see what you mean about not being able to collapse them permanently.  Didn't notice this myself as I have that turned off.  You could also turn that option off while IchBin looks into it.  Tinyportal > Settings "Tag topics with Global tags?" and "Tag boards with Global tags?"
Title: Re: TinyPortal
Post by: City Builder on January 31, 2012, 04:47:18 AM
Thanks for letting me know where it is.  I've turned it off now and will wait to use it until they get fixed to stay collapsed.
Title: Re: TinyPortal
Post by: lurkalot on February 01, 2012, 06:09:30 PM
Quote from: City Builder on January 31, 2012, 04:47:18 AM
Thanks for letting me know where it is.  I've turned it off now and will wait to use it until they get fixed to stay collapsed.

No problem.  I've added the issue to the bugtacker over at http://www.tinyportal.net  Thanks for bringing it to our attention. ;)
Title: Re: TinyPortal
Post by: IchBin™ on February 02, 2012, 09:04:40 PM
Quote from: lurkalot on February 01, 2012, 06:09:30 PM
Quote from: City Builder on January 31, 2012, 04:47:18 AM
Thanks for letting me know where it is.  I've turned it off now and will wait to use it until they get fixed to stay collapsed.

No problem.  I've added the issue to the bugtacker over at http://www.tinyportal.net  Thanks for bringing it to our attention. ;)

In Themes/default/TPsubs.template.php:
Code (find) Select
<div class="windowbg" style="padding: 4px;" id="tagpanel3" ' , in_array('tagpanel3',$context['tp_panels']) ? ' style="display: none;"' : '' , '>
Code (replace) Select
<div class="windowbg" id="tagpanel3" style="padding: 4px; ' , (in_array('tagpanel3',$context['tp_panels'])) ? 'display: none;' : '' , '">


Code (find) Select
<div class="windowbg" style="padding: 4px;" id="tagpanel4" ' , in_array('tagpanel4', $context['tp_panels']) ? ' style="display: none;"' : '' , '>
Code (replace) Select
<div class="windowbg" id="tagpanel4" style="padding: 4px; ' , (in_array('tagpanel4', $context['tp_panels'])) ? 'display: none;' : '' , '">
Title: Re: TinyPortal
Post by: City Builder on February 02, 2012, 10:07:07 PM
Thanks, works great.

Much appreciated.
Title: Re: TinyPortal
Post by: jackregan on February 07, 2012, 04:38:11 PM
Hi...

Just to say, I am loving this mod. It has transformed my site and I can't praise it enough :)

One request though... I would seriously love to have a front page RSS feed. Or at least an articles feed. Or a feed for each category.

But, really a feed of everything that goes on the front page would be best.

Is this envisaged at all?
Title: Re: TinyPortal
Post by: braddasexy on February 07, 2012, 05:08:08 PM
Bloc will this work with your Helios Theme.  I am using Tiny Portal now with that Theme and I love it.  I want to update if this is an improvement but I don't want to ruin what I have if it isn't compatible.
Title: Re: TinyPortal
Post by: IchBin™ on February 07, 2012, 10:00:08 PM
@jackregan,

There is nothing built in for RSS feeds on articles or front page stuff. It's a good idea, but no scheduled plans to put any new features in until after TP 1.0 is stable. There are a few posts on the site where people have written scripts to create these RSS feeds, though I think it is only for articles.

Quote from: braddasexy on February 07, 2012, 05:08:08 PM
Bloc will this work with your Helios Theme.  I am using Tiny Portal now with that Theme and I love it.  I want to update if this is an improvement but I don't want to ruin what I have if it isn't compatible.

Bloc is no longer the Developer on this. He's turned it over to the TP Team to support and develop.
TP should work with pretty much on any theme in SMF 2.0.x.
Title: Re: TinyPortal
Post by: Heardy on February 11, 2012, 05:23:36 PM
I keep getting this error:

8: Undefined index: blockarticle_titles
File: /home/mindless/public_html/Sources/TPortal.php

Does anyone know how I might fix that? I've got 177 errors just piled up >.<

Title: Re: TinyPortal
Post by: IchBin™ on February 12, 2012, 03:45:41 PM
Replied at the TP site where you posted the same thing.
http://www.tinyportal.net/index.php?topic=34723
Title: Re: TinyPortal
Post by: IchBin™ on February 25, 2012, 01:43:38 PM
TinyPortal 1.0 RC4 released today. See first post in this topic for changelog of bug fixes.
Title: Re: TinyPortal
Post by: Zuća on February 29, 2012, 08:37:57 AM
How to disable "tag this topic" and "related" in topic
Title: Re: TinyPortal
Post by: IchBin™ on February 29, 2012, 11:03:51 AM
TPAdmin > Settings > Tag topics with Global tags? Tag boards with Global tags?
Title: Re: TinyPortal
Post by: Zuća on February 29, 2012, 01:36:22 PM
Quote from: IchBin™ on February 29, 2012, 11:03:51 AM
TPAdmin > Settings > Tag topics with Global tags? Tag boards with Global tags?

thank you

and "related" in topic ...how to disable ?
Title: Re: TinyPortal
Post by: IchBin™ on March 01, 2012, 04:13:08 PM
Quote from: Zuca on February 29, 2012, 01:36:22 PM
Quote from: IchBin™ on February 29, 2012, 11:03:51 AM
TPAdmin > Settings > Tag topics with Global tags? Tag boards with Global tags?

thank you

and "related" in topic ...how to disable ?

Looks like an incomplete feature. The only way to make it go away is to comment out some code in Sources/TPortal.php

$context['template_layers'][] = 'TPtagboardsGeneral';

Commented out looks like this:
//$context['template_layers'][] = 'TPtagboardsGeneral';
Title: Re: TinyPortal
Post by: MrMike on March 03, 2012, 11:30:39 AM
I'm planning on converting an existing site to use TP, and have a few questions, mostly about creating articles for an FAQ system (about 300 pages or so).

Is it best to create a top-level "FAQ" category and then the FAQ subcategories before creating the articles, or can I just create them and sort them into categories later? Is there an FAQ mod that you would recommend instead of creating pages and pages of FAQ content? (I looked at some of the FAQ mods but I'd appreciate any recommendations or suggestions).

Also, any tips/tricks that TP users would have on converting a site to be managed by TP would be very welcome. i.e. things to avoid, things consider "must do", any "must have" mod packages, etc.

The site to be converted is http://deltabravo.net (http://deltabravo.net) (a divorce and custody help site, already using SMF 2.x)

Title: Re: TinyPortal
Post by: IchBin™ on March 03, 2012, 01:43:11 PM
It would probably be easier to create the categories first. This way you choose the category when you create the article instead of having to edit the article to change the category later.

About the rest of your post, sorry haven't done what your asking before.
Title: Re: TinyPortal
Post by: MrMike on March 03, 2012, 03:33:17 PM
IchBin,

Thanks. I've done a test install on a sandbox domain, I'll give TinyPortal a go and see what I can do.

Currently I'm trying to figure out how to make a custom article appear on the frontpage, but dang if I can figure that out (yet). I'll work it a bit more and come back if I can't noodle it out.



Quote from: IchBin™ on March 03, 2012, 01:43:11 PM
It would probably be easier to create the categories first. This way you choose the category when you create the article instead of having to edit the article to change the category later.

About the rest of your post, sorry haven't done what your asking before.
Title: Re: TinyPortal
Post by: MrMike on March 03, 2012, 05:17:42 PM
This is, I suspect, a stupid question, but I'm at a loss to figure out what I'm doing wrong.

I created an article and set it for display on the front page. I've turned off most of the other stuff on the front page for a cleaner look (temporarily).

When I go to Articles -> Articles in a Category, I see the article in the category I created ("Frontpage"), but the icon to edit it is greyed out so I can't edit it. Why is that?
Title: Re: TinyPortal
Post by: ZarPrime on March 05, 2012, 04:24:58 PM
MrMike,

Is this the icon you are talking about? --> (http://www.tinyportal.net/Themes/default/images/tinyportal/TPconfig_sm.gif)

Or are you talking about another one?  That is the edit icon but you can also get to the edit screen by clicking the name of the article under the "name" column.  This, of course, assumes that you are using the latest versions of SMF and Tinyportal which you haven't really said.

It might be easier to help you if you register at http://www.tinyportal.net/index.php and post in the Support board over there so that one of the Support people can help you out.

ZarPrime
Title: Re: TinyPortal
Post by: MrMike on March 05, 2012, 06:30:14 PM
Quote from: ZarPrime on March 05, 2012, 04:24:58 PM
Is this the icon you are talking about? --> (http://www.tinyportal.net/Themes/default/images/tinyportal/TPconfig_sm.gif)

Yes, that's the icon. I'm using the latest version of Tiny Portal (as far as I know, we just downloaded it a couple of days ago).


Quote from: ZarPrime on March 05, 2012, 04:24:58 PM
It might be easier to help you if you register at http://www.tinyportal.net/index.php (http://www.tinyportal.net/index.php) and post in the Support board over there so that one of the Support people can help you out.

Thank you, I'll do that.
Title: Re: TinyPortal
Post by: IchBin™ on March 05, 2012, 06:55:37 PM
Mr. Mike, when you are viewing your articles with the grey'd out edit button, is the lock icon active (not grey'd out)? Normally, the icon to edit will be active unless the article has been locked for editing.
Title: Re: TinyPortal
Post by: MrMike on March 05, 2012, 07:17:09 PM
Yep, sure enough, that was it. Thank you.

Does that get set automatically when it's being edited, or...? I don't remember setting that (although I may have done so without realizing it).

I posted on the Tiny Portal forum, so I'll go back and edit that post (there was some other stuff in there as well).


Quote from: IchBin™ on March 05, 2012, 06:55:37 PM
Mr. Mike, when you are viewing your articles with the grey'd out edit button, is the lock icon active (not grey'd out)? Normally, the icon to edit will be active unless the article has been locked for editing.
Title: Re: TinyPortal
Post by: rocknroller on March 18, 2012, 03:24:42 PM
I can't find custom pags in TinyPortal is it support custom pages?
Title: Re: TinyPortal
Post by: IchBin™ on March 18, 2012, 04:25:21 PM
Custom pages = articles. There's a whole mountain of options and features for articles.
Title: Re: TinyPortal
Post by: rocknroller on March 18, 2012, 05:23:12 PM
that is great, I like download system very much.  :)
Title: Re: TinyPortal
Post by: rocknroller on March 19, 2012, 02:26:42 PM
So far I can conclude that this is a great portal, congrats!  ;D

I have some URLs for a long time and it would be really good if they could stay the same.  :-\ I sought but not found. How to create article URL ..../index.php?page=myname instead of ..../index.php?page=page=1

EDIT:
this work   :D
Quote from: IchBin™ on July 05, 2011, 04:14:55 PM
In each article when you create or edit it, there's an option at the top called "query title". Whatever you put in that box is what should show in the URL page=query_title
Title: Re: TinyPortal
Post by: K33NY on March 20, 2012, 12:29:53 PM
Hello I was wondering if there is possibility to have a "Red more" function for articles that are very long? I have a community site having the articles on frontpage, but sometimes they get to long to have on the main site, and a Read more button taking you to full article would have been perfect, is there a function like this for TP??
Title: Re: TinyPortal
Post by: lurkalot on March 20, 2012, 01:34:48 PM
Quote from: K33NY on March 20, 2012, 12:29:53 PM
Hello I was wondering if there is possibility to have a "Red more" function for articles that are very long? I have a community site having the articles on frontpage, but sometimes they get to long to have on the main site, and a Read more button taking you to full article would have been perfect, is there a function like this for TP??

Yes, the articles have a "Use intro" option, so you put your intro and part of the article in that section, and that will give a link to the main article.
Title: Re: TinyPortal
Post by: K33NY on March 20, 2012, 03:19:30 PM
ooooh xD didnt understand what the intro thing was xD LOOL thank you! :D
Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2012, 05:15:15 PM
The TinyPortal Team is pleased to announce the released of TinyPortal 1.0. We feel that this software has reached it's milestone to make TP 1.0 a stable release.

Downloads
On the TinyPortal site:
http://www.tinyportal.net/index.php?action=tpmod;dl=item96
On the SMF mod site:
http://custom.simplemachines.org/mods/index.php?mod=97


Change log:
v1.0:

See the first post with links to download.
Title: Re: TinyPortal
Post by: City Builder on April 01, 2012, 06:27:21 PM
Hi,
I installed your latest version of TP, the verson that is supposed to fix saving block content when using wysiwyg editor.  However, now it breaks the formatting of the text that I enter, and loses the line breaks and paragraph breaks.  It worked prior to this 1.107 release.
Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2012, 06:36:21 PM
Can you give an example? Show me some text that is currently working, and then what happens to the text when you save?

Assuming you are using SMF1 or SMF2?
Title: Re: TinyPortal
Post by: City Builder on April 01, 2012, 06:40:50 PM
Yes,

SMF 2

Example:
domain.com is a "fan" site and all expenses incurred are payed for out of my own pocket and the kind members that donate to keep this site alive.

If you would like to donate to domain.com you can do so through paypal.  Just click the link below to be taken to our donations page where you can choose how much to donate to this site and then do so through paypal.

When saved it comes out like this:
domain.com is a "fan" site and all expenses incurred are payed for out of my own pocket and the kind members that donate to keep this site alive. If you would like to donate to domain.com you can do so through paypal.  Just click the link below to be taken to our donations page where you can choose how much to donate to this site and then do so through paypal.
Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2012, 06:45:12 PM
hmm... I just copied your text into a block on my test site and saved it in an html/javascript block. It kept the line endings/returns just fine.  Not sure what to tell you at this point. Does it happen in existing blocks only? Or does it happen in new blocks too? Any additional information would be helpful.
Title: Re: TinyPortal
Post by: City Builder on April 01, 2012, 06:49:52 PM
Happens in both existing blocks as well as new block, just tried it.

This is a BBC block that this happens on.  I don't have any problems with the html javascript blocks, they hold their formatting.  Your quote above states:
BBC blocks now save properly when using wysiwyg editor.
Which is where I lose the formatting, but your quote below says you tested it in html/javascript block, where it works fine on my site as well, it's the BBC blocks that I lose formatting.

Quote from: IchBin™ on April 01, 2012, 06:45:12 PM
hmm... I just copied your text into a block on my test site and saved it in an html/javascript block. It kept the line endings/returns just fine.  Not sure what to tell you at this point. Does it happen in existing blocks only? Or does it happen in new blocks too? Any additional information would be helpful.
Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2012, 06:51:22 PM
It's likely a fault of the SMF BBC editor then. Check to see if the same happens when you save text in your editor for a post in the forum.
Title: Re: TinyPortal
Post by: City Builder on April 01, 2012, 07:05:42 PM
No, it doesn't happen in the SMF editor, just tried it, the formatting is kept fine
Title: Re: TinyPortal
Post by: lurkalot on April 01, 2012, 07:21:16 PM
Quote from: City Builder on April 01, 2012, 06:49:52 PM
Happens in both existing blocks as well as new block, just tried it.

This is a BBC block that this happens on.  I don't have any problems with the html javascript blocks, they hold their formatting. 

I just copied your text into a BBC block, and it's fine for me. See it half way down on my test site http://cctestsite.info/forums/index.php
Title: Re: TinyPortal
Post by: City Builder on April 01, 2012, 07:25:56 PM
Okay.  I will assume that it's something on my sites fault until/or if somebody else comes in here to say they have the same issue.
Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2012, 08:09:34 PM
I see the issue here.

Lurk, did you toggle the wysiwyg button when you saved? You can probably see it if you turn the bbc wysiwyg editor on by default when you save a block too. Doesn't happen in articles, which is very weird as I'm using the same exact code to handle both.

I'll keep looking at it as I get some time and post a fix if I find it.
Title: Re: TinyPortal
Post by: DarkAngel612 on April 01, 2012, 08:34:55 PM
I tried it in a block in my forum...not the attic but my own

and it was still 1.106 of TP and it behaved beautifully by just opening new block...insert pasted words from here...hit save and it looked right

then I uninstall TP/deleteded it from package manager after uninstalling and installed updated version.

went to a new bbc block, inserted wording hit save and no formatting...just like his

deleted that block

created a new bbc block-- upper block now-- then toggled view from original to html?? plopped in the copied text and hit save and it has the formatting...

this is the same thing that I have had to do to edit or when creating a block since the 2.0/1.106 versions.

I still have to toggle from normal view to html if I write things up prior to doing the entire thing in the block

Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2012, 08:42:21 PM
Bleh... sorry this was dumb. Here's the change for the wysiwyg editor removing line feeds. Just need to move a chunk of code into a different place.

In Sources/TPortalAdmin.php find this line:
if(substr($what, 0, 9) == 'tp_block_')
{
$setting = substr($what, 9);
// If we came from WYSIWYG then turn it back into BBC regardless.
if (!empty($_REQUEST['tp_block_body_mode']) && isset($_REQUEST['tp_block_body']))
{
require_once($sourcedir . '/Subs-Editor.php');
$_REQUEST['tp_block_body'] = html_to_bbc($_REQUEST['tp_block_body']);
// We need to unhtml it now as it gets done shortly.
$_REQUEST['tp_block_body'] = un_htmlspecialchars($_REQUEST['tp_block_body']);
// We need this for everything else.
if($setting == 'body')
$value = $_POST['tp_block_body'] = $_REQUEST['tp_block_body'];
}
if($setting == 'body')
{
// PHP block?
if($_POST['tp_block_type'] == 10)
$value = tp_convertphp($value);

$smcFunc['db_query']('', '
UPDATE {db_prefix}tp_blocks
SET '. $setting .' = {string:value}
WHERE id = {int:blockid}',
array('value' => $value, 'blockid' => $where)
);
}


Replace with this code:

if(substr($what, 0, 9) == 'tp_block_')
{
$setting = substr($what, 9);

if($setting == 'body')
{
// If we came from WYSIWYG then turn it back into BBC regardless.
if (!empty($_REQUEST['tp_block_body_mode']) && isset($_REQUEST['tp_block_body']))
{
require_once($sourcedir . '/Subs-Editor.php');
$_REQUEST['tp_block_body'] = html_to_bbc($_REQUEST['tp_block_body']);
// We need to unhtml it now as it gets done shortly.
$_REQUEST['tp_block_body'] = un_htmlspecialchars($_REQUEST['tp_block_body']);
// We need this for everything else.
$value = $_POST['tp_block_body'] = $_REQUEST['tp_block_body'];
}

// PHP block?
if($_POST['tp_block_type'] == 10)
$value = tp_convertphp($value);

$smcFunc['db_query']('', '
UPDATE {db_prefix}tp_blocks
SET '. $setting .' = {string:value}
WHERE id = {int:blockid}',
array('value' => $value, 'blockid' => $where)
);
}


darkangel,

If you are having the same problem as previous, you need to make sure your files were updated in the upgrade. Last time I recall your upgrade didn't update the files properly? You can also put this change in to see if it affects your problem too.
Title: Re: TinyPortal
Post by: DarkAngel612 on April 01, 2012, 09:15:53 PM
weird too...I updated the attic earlier tonight and it claimed to update....it shows the current version when hover but....I did not get anything but successfully installed.

now for my forum I uninstalled then deleted the old and installed the new and got that familiar spash page telling you it is installed...lol

first I will manually upload all files for sources and default template and see if that works...if not will try code with this problematic site...lol
Title: Re: TinyPortal
Post by: DarkAngel612 on April 01, 2012, 09:41:43 PM
I'm back...lol

ok manually uploaded the files to the server for the sources and default template---not the others since they seem to behave--shoutbox/downloads

made a new block at the Attic (admin seen only, no need to scare the residents in our asylum.

entered this text:

domain.com is a "fan" site and all expenses incurred are payed for out of my own pocket and the kind members that donate to keep this site alive.

If you would like to donate to domain.com you can do so through paypal.  Just click the link below to be taken to our donations page where you can choose how much to donate to this site and then do so through paypal.

notice the spaces in between the paragraphs...well as soon as I saved it still lost all formatting.

Now to try the code but...

do I replace this is TPPortalAdmin.php:

if(substr($what, 0, 9) == 'tp_block_')
                {
                    $setting = substr($what, 9);
                    // If we came from WYSIWYG then turn it back into BBC regardless.
                    if (!empty($_REQUEST['tp_block_body_mode']) && isset($_REQUEST['tp_block_body']))
                    {
                        require_once($sourcedir . '/Subs-Editor.php');
                        $_REQUEST['tp_block_body'] = html_to_bbc($_REQUEST['tp_block_body']);
                        // We need to unhtml it now as it gets done shortly.
                        $_REQUEST['tp_block_body'] = un_htmlspecialchars($_REQUEST['tp_block_body']);
                        // We need this for everything else.
                        if($setting == 'body')
                            $value = $_POST['tp_block_body'] = $_REQUEST['tp_block_body'];
                    }
                    if($setting == 'body')
                    {
                        // PHP block?
                        if($_POST['tp_block_type'] == 10)
                            $value = tp_convertphp($value);

                        $smcFunc['db_query']('', '
                            UPDATE {db_prefix}tp_blocks
                            SET '. $setting .' = {string:value}
                            WHERE id = {int:blockid}',
                            array('value' => $value, 'blockid' => $where)
                        );
                    }




with the first one you supplied

if(substr($what, 0, 9) == 'tp_block_')
{
$setting = substr($what, 9);
// If we came from WYSIWYG then turn it back into BBC regardless.
if (!empty($_REQUEST['tp_block_body_mode']) && isset($_REQUEST['tp_block_body']))
{
require_once($sourcedir . '/Subs-Editor.php');
$_REQUEST['tp_block_body'] = html_to_bbc($_REQUEST['tp_block_body']);
// We need to unhtml it now as it gets done shortly.
$_REQUEST['tp_block_body'] = un_htmlspecialchars($_REQUEST['tp_block_body']);
// We need this for everything else.
if($setting == 'body')
$value = $_POST['tp_block_body'] = $_REQUEST['tp_block_body'];
}
if($setting == 'body')
{
// PHP block?
if($_POST['tp_block_type'] == 10)
$value = tp_convertphp($value);

$smcFunc['db_query']('', '
UPDATE {db_prefix}tp_blocks
SET '. $setting .' = {string:value}
WHERE id = {int:blockid}',
array('value' => $value, 'blockid' => $where)
);
}
Title: Re: TinyPortal
Post by: IchBin™ on April 01, 2012, 09:48:55 PM
Sorry about that. I clarified my post above so you can see which to do.
Title: Re: TinyPortal
Post by: DarkAngel612 on April 01, 2012, 10:04:19 PM
LOL thanks for that cause as you know I is touched...

I did as instructed and YAY it now holds the formatting...did not try with bbc codes or such but the text does hold its formatting now...

tried it in a new block and in the previous one as editing and both behaved

thanks
Title: Re: TinyPortal
Post by: City Builder on April 01, 2012, 10:40:25 PM
I made the changes, however I'm seeing this when trying to add a new block:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'block
WHERE id = 28' at line 2
File: /home/muusername/mydomainname.com/Sources/TPortalAdmin.php
Line: 3285


If I try to edit an existing block, it's basically the same error, with the only part that changes is "syntax to use near 'block  The word block changes to whatever the title of the block is, in this case it was testing block
Title: Re: TinyPortal
Post by: DarkAngel612 on April 01, 2012, 10:52:41 PM
CityBuilder.....

redo the coding...it was changed from the first set to a different set...so I could understand it better...lol

I just did the coding and it works
Title: Re: TinyPortal
Post by: City Builder on April 01, 2012, 10:58:04 PM
Yeah I did, I just pulled the coding off of the what Ichbin posted below, which should be the updated code.

Is there maybe someway I can simply reinstall the mod with the updated code?  I assume the mod in the mod area of this site has been updated too so maybe a new version number to allow me to simply pop a new copy into my server through package manager?

Quote from: IchBin™ on April 01, 2012, 08:42:21 PM
Bleh... sorry this was dumb. Here's the change for the wysiwyg editor removing line feeds. Just need to move a chunk of code into a different place.

In Sources/TPortalAdmin.php find this line:
if(substr($what, 0, 9) == 'tp_block_')
{
$setting = substr($what, 9);
// If we came from WYSIWYG then turn it back into BBC regardless.
if (!empty($_REQUEST['tp_block_body_mode']) && isset($_REQUEST['tp_block_body']))
{
require_once($sourcedir . '/Subs-Editor.php');
$_REQUEST['tp_block_body'] = html_to_bbc($_REQUEST['tp_block_body']);
// We need to unhtml it now as it gets done shortly.
$_REQUEST['tp_block_body'] = un_htmlspecialchars($_REQUEST['tp_block_body']);
// We need this for everything else.
if($setting == 'body')
$value = $_POST['tp_block_body'] = $_REQUEST['tp_block_body'];
}
if($setting == 'body')
{
// PHP block?
if($_POST['tp_block_type'] == 10)
$value = tp_convertphp($value);

$smcFunc['db_query']('', '
UPDATE {db_prefix}tp_blocks
SET '. $setting .' = {string:value}
WHERE id = {int:blockid}',
array('value' => $value, 'blockid' => $where)
);
}


Replace with this code:

if(substr($what, 0, 9) == 'tp_block_')
{
$setting = substr($what, 9);

if($setting == 'body')
{
// If we came from WYSIWYG then turn it back into BBC regardless.
if (!empty($_REQUEST['tp_block_body_mode']) && isset($_REQUEST['tp_block_body']))
{
require_once($sourcedir . '/Subs-Editor.php');
$_REQUEST['tp_block_body'] = html_to_bbc($_REQUEST['tp_block_body']);
// We need to unhtml it now as it gets done shortly.
$_REQUEST['tp_block_body'] = un_htmlspecialchars($_REQUEST['tp_block_body']);
// We need this for everything else.
$value = $_POST['tp_block_body'] = $_REQUEST['tp_block_body'];
}

// PHP block?
if($_POST['tp_block_type'] == 10)
$value = tp_convertphp($value);

$smcFunc['db_query']('', '
UPDATE {db_prefix}tp_blocks
SET '. $setting .' = {string:value}
WHERE id = {int:blockid}',
array('value' => $value, 'blockid' => $where)
);
}


darkangel,

If you are having the same problem as previous, you need to make sure your files were updated in the upgrade. Last time I recall your upgrade didn't update the files properly? You can also put this change in to see if it affects your problem too.
Title: Re: TinyPortal
Post by: IchBin™ on April 02, 2012, 02:52:57 AM
The mod has been updated on the site. You should be able to just upload the files from the sources directory to fix the issue.
Title: Re: TinyPortal
Post by: lurkalot on April 02, 2012, 04:29:23 AM
Quote from: IchBin™ on April 01, 2012, 08:09:34 PM
I see the issue here.

Lurk, did you toggle the wysiwyg button when you saved? You can probably see it if you turn the bbc wysiwyg editor on by default when you save a block too. Doesn't happen in articles, which is very weird as I'm using the same exact code to handle both.


Ich, funny enough I did toggle it, but it kept the formatting.  This morning however when I tried it, it didn't.  Anyway, updated the files and all is working as expected.  ;) 

Thanks for the fix.  And @ City Builder, sorry for any confusion I caused.  :-[
Title: Re: TinyPortal
Post by: rocknroller on April 02, 2012, 08:02:07 AM
which is newer v.1.106  or v1.0 - update Apr. 1, 2012  :o
Title: Re: TinyPortal
Post by: Nolt on April 02, 2012, 09:09:35 AM
Version 1.0 released 1.04.12 is the newest one.
Title: Re: TinyPortal
Post by: rocknroller on April 02, 2012, 09:21:17 AM
thank you!
Title: Re: TinyPortal
Post by: IchBin™ on April 02, 2012, 11:22:49 AM
The internal version number for TinyPortal 1.0 is v.1.107.
Title: Re: TinyPortal
Post by: rocknroller on April 02, 2012, 02:02:49 PM
Quote from: IchBin™ on April 02, 2012, 11:22:49 AM
The internal version number for TinyPortal 1.0 is v.1.107.

I made some custom modifications in subs.php file. Is there are any changes from version before in that file? So I can backup and restore that file if it's not.

Thanks.
Title: Re: TinyPortal
Post by: IchBin™ on April 02, 2012, 02:09:50 PM
The edits that TP makes to that file have not changed from RC4.
Title: Re: TinyPortal
Post by: rocknroller on April 02, 2012, 02:47:21 PM
I did not know there in SMF package manager is option for upgrade, can I upgrade it in that way, or to uninstall RC4 version first?

I found few small bugs in RC4 version because i use really huge number of custom blocks, pages, downloads, all that, all types. I do not mind so much for that but it's good to see that someone work on it.
Title: Re: TinyPortal
Post by: agridoc on April 02, 2012, 11:34:33 PM
Although not necessary, it's better to uninstall TP 1.0 RC4 first, keeping your added TP files and data. It's just a few clicks.  ;)
Title: Re: TinyPortal
Post by: sdd on April 03, 2012, 03:31:56 PM
Hi,
how to update?
I have version 1.105
Title: Re: TinyPortal
Post by: IchBin™ on April 03, 2012, 03:58:28 PM
Upload the new package and click install. It's that easy.
Title: Re: TinyPortal
Post by: koupe377 on April 04, 2012, 04:20:12 AM
SMF 2.0.2 and TP. All downloaded and installed this past Saturday the 31. (Then of course the following day was the release of 1.0). Black Rain theme
1. I have a facebook fan page for my forum. It has 1300 'Likes" I want to have a facebook block that has a Like button and also shows the profile images and to show the "1300 people like this." Is there a mod for this? Is there already a block for this in TP? I didn't see one.
2. I want to put facebook 'Like' , twitter, google +1 buttons for the threads. Is there a TP specific mod for this or TP friendly mod for it.
3. In general do we need to use TP specific mods or will the 'normal' smf mods for when a portal is not installed work?
4. I wrote a shout out in shoutbox. The white "bubble" showed up but there is no text in it. The fix?
5. I want to add some tabs in the menu strip where the default tabs are the Home Forum Help Search Profile My Messages Calendar Members Logout. In SMF 1.1.11 I could add them in the index.template.php but that function is not written out in there any more. It calls on template or other file  and I can't find it. Where is this at now?
6. Previously, if a person included their location in the forum profile it would show up under their name and avatar when the posted in the forum. Its not showing up. I want all users 'Location' to be displayed when they post. The fix?
7. Is there a TP specific you tube mode? If not what you tube mods have others used that react goof with TP
8. seo friendly urls. I saw the option for SEF in SMF  but is said it only worked for apache servers. It wont work for me. Which SEF is good for TP. I heard that pretty urls slows the forum down so please suggest anyother than that. Also will the sef work on articles too?
9. Before the SMF upgrade and TP install, if I posted a thread url that had a image attachment on facebook, facebook would see the image that was attached in the thread and also my website logo. It would give me the choice of what image I wanted to use when posting it on facebook. Now, however, attachment images aren't being seen anymore. I'm stuck having to use my logo. I have threads where I attach images of event  flyers and I want those event flyers to show up when I post the thread url in facebook. What do i need to do so facebook can see the thread attachments like it did previously? Is TP  causing this to be blocked now?
Title: Re: TinyPortal
Post by: IchBin™ on April 04, 2012, 10:28:28 AM
1. I'm not sure to be honest. I don't think it would be hard to add a link if you get the facebook code to do it.
2. No mods. You just find code for it, and put this stuff into a block.
3. No TP specific mods. SMF mods are all you need. And actually TP doesn't supply any SMF mods other than TP. :)
4. You sure there's no text? I'm guessing you are using a custom theme which may have the text the same color as the bubble or something. Check it in the default curve theme if you can.
5. This is documented here: http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0
6. You'll probably have to add the code in for this. I haven't looked at it, but I don't think it's an option in SMF 2.0.
7. Don't have any experience in this part. I've heard people use the Aeva mod at the same time as TP before.
8. I've never bothered with these either. I would imagine that non of the mods touch the TP files to change the URL's for articles though.
9. I don't have that problem when testing some URL's out on my facebook. Not sure what to tell you.
Title: Re: TinyPortal
Post by: koupe377 on April 04, 2012, 04:13:34 PM
4. the shoutbox text bubble is white. you're probably right i bet the text is white too. where do i go to change either the bubble background color or the text color. I'm guessing one of the style sheets.
Title: Re: TinyPortal
Post by: IchBin™ on April 04, 2012, 04:44:27 PM
Hard to say as it depends on the theme. If you use a tool like firebug (link in my sig), you can see right away which class or ID is affecting it in your CSS. And even which file it is in.
Title: Re: TinyPortal
Post by: DarkAngel612 on April 04, 2012, 05:17:45 PM
I have many themes and what I did was duplicate the tpshout.css file for the theme then edited it and added it the theme needing the color change

.tp_shoutbody
{
    background: #051133;
    border: solid 1px #888;
    border-top: none;
    line-height: 1.3em;
    margin: 0 5px 8px 0;
    padding: 8px;
    font-size: 11pt;
    overflow: auto;
Title: Re: TinyPortal
Post by: ZarPrime on April 05, 2012, 12:42:31 AM
Quote from: koupe377 on April 04, 2012, 04:13:34 PM
4. the shoutbox text bubble is white. you're probably right i bet the text is white too. where do i go to change either the bubble background color or the text color. I'm guessing one of the style sheets.

There is a 2 page topic on the TinyPortal site explaining what to do for the Shoutbox when the custom theme is dark and has white bubbles.  If you read the whole topic, you should be able to figure it out --> http://www.tinyportal.net/index.php?topic=32443.0 (http://www.tinyportal.net/index.php?topic=32443.0)

ZarPrime
Title: Re: TinyPortal
Post by: koupe377 on April 05, 2012, 02:01:44 AM
I'm using blackrain. thanks for all the advice. i'll report back what I find
Title: Re: TinyPortal
Post by: koupe377 on April 05, 2012, 03:53:05 AM
What file is this www.mydomain***.com/index.php?action=tpmod;sa=help what file would be responsible for this? do I need to look for tpmod.php, help.php and where would i look
Title: Re: TinyPortal
Post by: IchBin™ on April 05, 2012, 10:29:49 AM
tpmod runs through the TPmodules.php file, and outputs to the TPmodules.template.php file. Not sure why you are asking about that though.
Title: Re: TinyPortal
Post by: koupe377 on April 06, 2012, 05:47:24 AM
It was coming up when I googled my site. I thought it was a hiddend text or something but then realized its from an actual page.

Next question. How do I delete the an image from the My Images Quicklist menu?
Title: Re: TinyPortal
Post by: IchBin™ on April 06, 2012, 10:39:47 AM
I don't think Bloc put any way in their to remove the images from the quicklist. You probably just have to remove the image from the folder on your server to make it go away.

Should be in the tp-images/ folder.
Title: Re: TinyPortal
Post by: koupe377 on April 06, 2012, 06:58:50 PM
thanks.

Where are you guys putting your google analytics code.  I saw this was a mod for google anylatics but I want to use the mod, rather hardcode it.
Title: Re: TinyPortal
Post by: IchBin™ on April 06, 2012, 07:26:45 PM
Use the mod, there's nothing wrong with doing it that way and it's actually probably better.
Title: Re: TinyPortal
Post by: koupe377 on April 06, 2012, 08:09:42 PM
I know. I just want to run the least amount of mods as possible. I figured since this was a simple code i could just stick it in and be done. Is there any reason why the mod is better than hardcoding it?
Title: Re: TinyPortal
Post by: IchBin™ on April 06, 2012, 08:13:56 PM
Google suggest that you put their code in a certain place in the head if I remember right. You can't do that with TP. The mod is very simple, and ads things via hook if I'm not mistaken. Just all around a better way to handle it.
Title: Re: TinyPortal
Post by: koupe377 on April 06, 2012, 08:42:02 PM
what is the link to the mod I found one but i don't know if there is only one and if not  if its the correct one.
Title: Re: TinyPortal
Post by: IchBin™ on April 06, 2012, 08:58:08 PM
http://custom.simplemachines.org/mods/index.php?mod=2210
Title: Re: TinyPortal
Post by: Bigguy on April 06, 2012, 09:34:59 PM
I just tried this out again for the first time in a long time. I must say there has been some changes. Everything looks good. Well done for sure. :)
Title: Re: TinyPortal
Post by: koupe377 on April 07, 2012, 12:22:08 AM
Quote from: koupe377 on April 04, 2012, 04:20:12 AM
9. Before the SMF upgrade and TP install, if I posted a thread url that had a image attachment on facebook, facebook would see the image that was attached in the thread and also my website logo. It would give me the choice of what image I wanted to use when posting it on facebook. Now, however, attachment images aren't being seen anymore. I'm stuck having to use my logo. I have threads where I attach images of event  flyers and I want those event flyers to show up when I post the thread url in facebook. What do i need to do so facebook can see the thread attachments like it did previously? Is TP  causing this to be blocked now?

Quote from: IchBin™ on April 04, 2012, 10:28:28 AM
9. I don't have that problem when testing some URL's out on my facebook. Not sure what to tell you.

I think have my have figured out what the problem is. But I don't know where to go to fix it. When ever I click on and image attachment a new browse window opens up with 2.0.2 and tp. In 1.1.11 and no TP the image attachment would stay on the same page, just the image would get bigger is all. So here is a typical url opening now in a new browser when I click an image http://mydomain***.com/index.php?action=dlattach;topic=340.0;attach=594;image  The topic url is this http://mydomain***.com/index.php?topic=340.0

I was thinking that what is happening is basically the attachment is not actually with the topic url. So when I paste the topic url facebook is not seeing the image because its not there.

How can a change it to the old style where a new browser window doesn't open up. I don't really like that style anyway. I want the image to enlarge in the post.

I really need to fix this. Because as I said. I post up coming events in the forum and attach the event flyers. When I copy the thread url in facebook I need to have flyer image show up. But all that is showing is the website logo. Before it would let me choose between the website logo and the image in the topic post.
Title: Re: TinyPortal
Post by: Bigguy on April 10, 2012, 07:45:54 PM
Please create your own topic for this instead of taking over someone else's, thank you.
Title: Re: TinyPortal
Post by: koupe377 on April 11, 2012, 12:31:43 AM
Big Guy what are you talking about? Isn't this the Tiny Portal thread for all things Tiny Portal? Its one big TP melting pot with 92 pages of people asking different questions about different issues in relation to it.
Title: Re: TinyPortal
Post by: lbuisson on April 17, 2012, 04:27:45 PM
Hi

I have an issue since I install new update (   1.107) Tinyportal (before I was 1.083)

Now I have blank column before left column :( (on Safari, Mozilla and IE)

Somebody can help me?

Website is : http://www.polaris-site.com
Title: Re: TinyPortal
Post by: IchBin™ on April 17, 2012, 04:35:56 PM
Looks like you are using a theme that was modified to work with the old tinyportal. You need to remove the parts in your index.template.php that add the old tinyportal sidebars.
Title: Re: TinyPortal
Post by: lbuisson on April 17, 2012, 04:53:25 PM
Quote from: IchBin™ on April 17, 2012, 04:35:56 PM
Looks like you are using a theme that was modified to work with the old tinyportal. You need to remove the parts in your index.template.php that add the old tinyportal sidebars.
Great thank you !

I didn't remember I done that several years ago :)
Title: Re: TinyPortal
Post by: Bigguy on April 17, 2012, 06:04:18 PM
Quote from: koupe377 on April 11, 2012, 12:31:43 AM
Big Guy what are you talking about? Isn't this the Tiny Portal thread for all things Tiny Portal? Its one big TP melting pot with 92 pages of people asking different questions about different issues in relation to it.

lmao, so it is. I guess I lost my place there, lol....continue. :)
Title: Re: TinyPortal
Post by: IchBin™ on April 17, 2012, 11:37:28 PM
koupe377, i honestly havent messed with the image resize options for a long time. I can only suggest you alter them to see when the behavior changes based on the size.
Title: Re: TinyPortal
Post by: koupe377 on April 18, 2012, 02:20:30 AM
Its not a resize issue. Its a - image opening up in a new window issue. Its an issue where as before when i had 1.1.11 and no portal, When you clicked on an image attached to a post the image would stay in that post on the page. But now with 2.o and TP when you click on an image in thread/post a whole new browse window (not a tab) opens up to the size of the image. Then you close that browser window when youre done with the looking at it.  Therefore the image not being on the actual thread page this is why it does not come up as one of the images to chose from when I post the thread link on  facebook.

I need to know how to make TP, SMF leave the image on the post page and not a new browser window.
Title: Re: TinyPortal
Post by: agridoc on April 18, 2012, 02:48:56 AM
koupe377 attachment image opening in new pop up window is SMF 2.0x behavior, different than 1.1x, not added by TP. See above http://www.simplemachines.org/community/index.php?topic=27642.msg3316610#msg3316610, click on attachment. I don't know some way or mod to overcome this, I suggest to open a topic in SMF 2.x Support (http://www.simplemachines.org/community/index.php?board=147.0) board.

You may disable thumbnails and choose a pixel size for display in
Administration Center » Features and Options » Layout
I don't know if this will bring the desired result in Facebook and also be an acceptable way to display attachments in your forum.
Title: Re: TinyPortal
Post by: jackregan on April 18, 2012, 08:40:07 AM
Hi... I'm having a small problem.

When I look at articles in a category and try to go on to the next page (e.g. Page 2) I get a 403: Forbidden code.

Any ideas?
Title: Re: TinyPortal
Post by: koupe377 on April 18, 2012, 08:53:12 AM
I went in to admin > features and options > layout but there is no disable thumbnails option. Thanks for you help. I will try this in smf 2 support. thank you
Title: Re: TinyPortal
Post by: IchBin™ on April 18, 2012, 10:36:55 AM
Quote from: jackregan on April 18, 2012, 08:40:07 AM
Hi... I'm having a small problem.

When I look at articles in a category and try to go on to the next page (e.g. Page 2) I get a 403: Forbidden code.

Any ideas?

Sounds like mod_security on the server is keeping you from having certain characters either in your post or URL. Forbidden means your server is not allowing you to view the page because of something it's configured to keep you from seeing. Contact your host and ask them if they have mod_security turned on, and if so how to fix your problem.
Title: Re: TinyPortal
Post by: Biology Forums on April 20, 2012, 10:09:25 AM
I believe I left one of the blocks open to be edited by anyone and someone went into the tiny-portal admin and hacked the coding, leading to a continuous php loop somewhere - this in turn lead to millions of dump files being created and account suspension... Anyway, is there a way of disabling tiny-portal totally so that index.template.php loads without it completely, I need for now so that I can screen through where this occurred.
Title: Re: TinyPortal
Post by: IchBin™ on April 20, 2012, 11:08:42 AM
There's no way to disable TP like that. There is an option to disable all blocks though if you are the admin. You can simply add "noblocks" to the URL.

http://yoursite.com/index.php?noblocks
Title: Re: TinyPortal
Post by: AMWebby on April 29, 2012, 06:01:27 AM
I'm currently running SMF 1.1.16 but considering upgrading to SMF2 and ditching my current CMS (Joomla) in favour of something like Tiny Portal.

One requirement I have is to develop a mobile version of the portal and forum. I currently use the wap2 version of SMF wrapped in a mobile theme for Joomla, which you can see here, http://m.amoc.org/forum

I'd like to achieve the same thing with Tiny Portal and SMF 2, has anyone successfully adapted Curve or smf4iphone to actually work with Tiny Portal, rather than disabling the Tiny Portal blocks?
Title: Re: TinyPortal
Post by: IchBin™ on April 29, 2012, 12:48:24 PM
I don't really see how you could put blocks in a mobile theme. That really defeats the purpose of keeping a mobile theme compact so that it will display on all the different size screens on mobile devices.

Haven't seen anyone do anything like what you are suggesting. sorry.
Title: Re: TinyPortal
Post by: AMWebby on April 29, 2012, 01:02:55 PM
Quote from: IchBin™ on April 29, 2012, 12:48:24 PM
I don't really see how you could put blocks in a mobile theme. That really defeats the purpose of keeping a mobile theme compact so that it will display on all the different size screens on mobile devices.

Haven't seen anyone do anything like what you are suggesting. sorry.

You can do it by using HTML5, CSS3 and media queries to resize the contents and rearrange the blocks dependant on screen width.

I've done it with the current AMOC site, as you can see if you follow the link.

Looks like I'll have to bake my own.
Title: Re: TinyPortal
Post by: bloc on April 29, 2012, 02:00:42 PM
Since TP use a table for its layout, using css to change the sidebars into "bottom-bars" will be difficult, unless you rewrite the TP template for panels. If its CSS based however, that would work.

But also much of the TP block size code and in part also the block content itself, would need to be less rigid, so it fits within a liquid layout.

Due to that I opted a long time ago to just turn off the blocks in TP, for mobile devices. But theres no reason why they can't be added still - just needs more work on aforementioned areas.
Title: Re: TinyPortal
Post by: AMWebby on April 29, 2012, 02:09:31 PM
I have got some css code that turns tables into display blocks using media queries but it does sound as if I could re-engineer the tiny portal blocks. I'll set up a sandpit next week and have a play around.
Title: Re: TinyPortal
Post by: koupe377 on May 05, 2012, 12:10:58 AM
By the way. back from page 91 I had some questions on the shout ox not being able to see the font. I finally had the time to do the fix. As was said just had to make some changes to the .css for the shout box. I changed the background to black and the border to white. Works and looks good now. thanks
Title: Re: TinyPortal
Post by: IchBin™ on May 05, 2012, 06:03:02 PM
Glad you figured it out.
Title: Re: TinyPortal
Post by: warhonowicz on May 24, 2012, 03:14:08 PM
I get a strange error message in my log which seems to be related to TP

http://www.mmc.uk.com/index.php?cat=9
8: Undefined index:
File: /home/mmc/public_html/Themes/default/TPortal.template.php
Line: 174


What could this be and how do I fix it?
Title: Re: TinyPortal
Post by: IchBin™ on May 24, 2012, 05:58:15 PM
What version of TP are you using? IIRC that error was fixed in one of the RC's a while ago. It comes from you not having all the layout options selected in your category settings. If you are running TP1.0 just update your category layout settings and it should be fixed.
Title: Re: TinyPortal
Post by: Biology Forums on May 24, 2012, 07:46:12 PM
Quote from: warhonowicz on May 24, 2012, 03:14:08 PM
I get a strange error message in my log which seems to be related to TP

http://www.mmc.uk.com/index.php?cat=9
8: Undefined index:
File: /home/mmc/public_html/Themes/default/TPortal.template.php
Line: 174


What could this be and how do I fix it?

Perhaps the coding you've added in one of your blocks is conflicting... Do you have any PHP-based blocks?
Title: Re: TinyPortal
Post by: warhonowicz on May 25, 2012, 01:54:44 AM
Quote from: IchBin™ on May 24, 2012, 05:58:15 PM
What version of TP are you using? IIRC that error was fixed in one of the RC's a while ago. It comes from you not having all the layout options selected in your category settings. If you are running TP1.0 just update your category layout settings and it should be fixed.

I am using TP 1.107. I have updated my category layout settings and deleted the log entries. Hopefully that will have fixed it.

Quote from: Liam_michael on May 24, 2012, 07:46:12 PM
Perhaps the coding you've added in one of your blocks is conflicting... Do you have any PHP-based blocks?

I've got two PHP based blocks. One displays the top 15 contributors on the forum and the other random pictures from the gallery (smf gallery lite).
Title: Re: TinyPortal
Post by: IchBin™ on May 25, 2012, 10:42:04 AM
warhonowicz, you can test if it worked by hitting the URL to your site that you posted in your error.

Liam_michael,
The error doesn't have anything to do with blocks if you look at the code it's pointing to in the file.
Title: Re: TinyPortal
Post by: warhonowicz on May 28, 2012, 02:46:07 PM
thanks to a bank holiday weekend in Germany I was away for a few days ... the error still comes up, with a slight variation

http://www.mmc.uk.com/index.php?cat=-9.9
2: in_array() expects parameter 2 to be array, null given
File: /home/mmc/public_html/Themes/default/TPBlockLayout.template.php
Line: 82



When I go to http://www.mmc.uk.com/index.php?cat=9 I get a page with the article categories listed across the top but no content, when I go to http://www.mmc.uk.com/index.php?cat=-9.9 I get an error page

Wrong value type sent to the database. Integer expected. (cat)

In the categories I have selected:

a name
a parent where applicable
do not use an icon
sort by date in descending order
5 articles per page
short name 17
Layout A
Normal article layout
Display child categories where applicable
Display left, top, upper and right panel (I do not use the lower and bottom)
Membergroups as needed
Title: Re: TinyPortal
Post by: IchBin™ on May 28, 2012, 03:30:23 PM
Can you show me a screenshot of those category settings?

Why is your category named -9.9 ? That could be it I suppose. TP may not handle the name properly in order for you to use a title name like that.
Title: Re: TinyPortal
Post by: warhonowicz on June 01, 2012, 02:49:45 AM
Sorry, been away with work, here's the screenshots. As far as I know I do not have a category name -9.9

Title: Re: TinyPortal
Post by: IchBin™ on June 01, 2012, 11:01:49 AM
Quote from: warhonowicz on June 01, 2012, 02:49:45 AM
<snip>... As far as I know I do not have a category name -9.9

Umm what? lol You have confused me based on this reply:

Quote from: warhonowicz on May 28, 2012, 02:46:07 PM
When I go to http://www.mmc.uk.com/index.php?cat=9 I get a page with the article categories listed across the top but no content, when I go to http://www.mmc.uk.com/index.php?cat=-9.9 I get an error page

Wrong value type sent to the database. Integer expected. (cat)

In that reply you are showing that you are trying to hit a category named - 9.9. But according to your screenshot you don't even have any categories named 9xx or - 9xx. Maybe you are using the short name for them?

The bottom screenshot that you provided is only showing the category settings for category 1. MMC (or shortname 17). Can you clarify what is going on here? lol

Title: Re: TinyPortal
Post by: warhonowicz on June 01, 2012, 02:52:16 PM
I started off with this being part of an error message


http://www.mmc.uk.com/index.php?cat=9


you then replied that I could test by calling that URL so I did ...

however, I am not knowingly or intentionally calling this URL (apart from for testing) something in my forum does ... and I would like to know what so I can stop it and stop the error messages from popping up. Since these categories are part of Tinyportal I thought this was the correct place to ask.

I provided a screenshot of the details of one category as an example as I thought that was what you asked for the in the last post, I can provide all 13 of them if required. There is no category with a name of 9 or 9.9 nor one with a short name of 9 or 9.9 so I couldn't show you the details for that specific one
Title: Re: TinyPortal
Post by: IchBin™ on June 01, 2012, 04:58:31 PM
Ok, would you show me the error that you get in your log for a specific category that exists? And then show me the category settings so I can try to replicate the problem?
Title: Re: TinyPortal
Post by: warhonowicz on June 03, 2012, 10:50:22 AM
I do not have errors relating to existing categories, only the one relating to the -9.9 category which does not exist.

What seems interesting is, all of them are from GUEST, none from a registered user
Title: Re: TinyPortal
Post by: fmofmpls on June 03, 2012, 11:03:55 AM
Is there a way to have the shout box refresh itself in intervals? Or is this only obtained through a page re-fresh?
Title: Re: TinyPortal
Post by: WillyP on June 03, 2012, 12:10:55 PM
Do a search in the mods for ajax shoutbox.
Title: Re: TinyPortal
Post by: IchBin™ on June 04, 2012, 11:33:30 AM
Quote from: fmofmpls on June 03, 2012, 11:03:55 AM
Is there a way to have the shout box refresh itself in intervals? Or is this only obtained through a page re-fresh?

Currently no. There is ajax added to the next version of TP for this though, but I'm not sure how long until I start the next release cycle of TP 1.1. You can see the ajax stuff in action at the tinyportal.net site.
Title: Re: TinyPortal
Post by: IchBin™ on June 04, 2012, 11:36:30 AM
Quote from: warhonowicz on June 03, 2012, 10:50:22 AM
I do not have errors relating to existing categories, only the one relating to the -9.9 category which does not exist.

Finding this code in Sources/TPortal.php and changing it will silence the errors until a better fix is put in to handle the errors.

Code (find) Select
// get the category first
$request =  $smcFunc['db_query']('', '
SELECT * FROM {db_prefix}tp_variables
WHERE '. $catid .' LIMIT 1',
array('cat' => $cat)
);


Code (replace with) Select
// get the category first
$request =  $smcFunc['db_query']('', '
SELECT * FROM {db_prefix}tp_variables
WHERE '. $catid .' LIMIT 1',
array('cat' => is_numeric($cat) ? (int) $cat : $cat)
);
Title: Re: TinyPortal
Post by: warhonowicz on June 04, 2012, 01:29:36 PM
Quote from: IchBin™ on June 04, 2012, 11:36:30 AM

Finding this code in Sources/TPortal.php and changing it will silence the errors until a better fix is put in to handle the errors.

Code (find) Select
// get the category first
$request =  $smcFunc['db_query']('', '
SELECT * FROM {db_prefix}tp_variables
WHERE '. $catid .' LIMIT 1',
array('cat' => $cat)
);


Code (replace with) Select
// get the category first
$request =  $smcFunc['db_query']('', '
SELECT * FROM {db_prefix}tp_variables
WHERE '. $catid .' LIMIT 1',
array('cat' => is_numeric($cat) ? (int) $cat : $cat)
);


I tried that and got this


Parse error: syntax error, unexpected ')' in /home/mmc/public_html/Sources/TPortal.php on line 1032
Title: Re: TinyPortal
Post by: IchBin™ on June 04, 2012, 02:12:37 PM
Attach your file please.
Title: Re: TinyPortal
Post by: warhonowicz on June 05, 2012, 01:13:30 PM
this is the changed version
Title: Re: TinyPortal
Post by: IchBin™ on June 05, 2012, 01:32:48 PM
Hmm... looks like your file is messed up. What editor did you use to edit it? It has a lot of extra lines spaces and stuff. Opening it with my editor it shows that line 1032 is a blank line. Can you tell me what is on that line for you?
Title: Re: TinyPortal
Post by: warhonowicz on June 05, 2012, 01:45:35 PM
line 1032 is blank, the code I replaced is on line 2061. I use Notepad++ to edit
Title: Re: TinyPortal
Post by: IchBin™ on June 05, 2012, 02:42:09 PM
Strange I didn't have any problem with your file. Try this one to see if it makes any difference.
Title: Re: TinyPortal
Post by: warhonowicz on June 05, 2012, 02:52:31 PM
that seems to work ... I've just tried mine again as well and got the same error again ... I've cleared the error log, so we'll see if it stays empty
Title: Re: TinyPortal
Post by: !RFAN on June 10, 2012, 07:52:31 AM
Hi,

I need some help regarding my forum link

http://amigozone.com/index.php?action=forum

this link is not working on my forum. I recently moved my one vps(cpanel) to another vps(kloxo)
i'm using TinyPortal and Pretty URLs
all other actions are working fine.

Thanks
Title: Re: TinyPortal
Post by: IchBin™ on June 10, 2012, 09:22:07 PM
I'm getting a database connection error when hitting your site.
Title: Re: TinyPortal
Post by: steveb72 on July 07, 2012, 09:57:15 AM
Hello,

When I toggle my articles to appear on the front page of my site they are always sorted by article date in descending order.  I want them sorting by Position but when I change the settings in either the category and/or the frontpage to sort by Position (or anything else for that matter) it always displays the articles sorted by date.

Is this a bug in Tinyportal or am I missing something?
Title: Re: TinyPortal
Post by: IchBin™ on July 07, 2012, 05:08:10 PM
Are you running the latest version of TinyPortal? The latest version is TP 1.0
Title: Re: TinyPortal
Post by: steveb72 on July 08, 2012, 11:30:52 AM
In the package manager it is telling me I have version 1.106 installed.  I have downloaded the latest version (but not installed it yet) and that says version 1.107.  Will installing this one fix the problem?
Title: Re: TinyPortal
Post by: IchBin™ on July 08, 2012, 11:21:10 PM
TBH I can't remember which bugs I fixed in which version. I'm pretty sure I fixed that bug at some point. And plenty of things were fixed between 1.106 and 1.107 so there's no reason to not update and find out. :) Let me know if you still have the problem after the update. Things seem to be working for me on a test install of TP 1.0.
Title: Re: TinyPortal
Post by: Biology Forums on July 14, 2012, 06:19:47 PM
My portals (all of them) disappear after I click preview while writing a PM?

Why in certain areas of the forum do portals disappear?
Title: Re: TinyPortal
Post by: IchBin™ on July 15, 2012, 06:11:11 PM
Quote from: Liam_michael on July 14, 2012, 06:19:47 PM
My portals (all of them) disappear after I click preview while writing a PM?

Why in certain areas of the forum do portals disappear?
You're going to have to explain what you mean by "portals".  What is a "portals"?
Title: Re: TinyPortal
Post by: Ricky. on July 15, 2012, 06:16:28 PM
He certainly means BLOCK :)
Title: Re: TinyPortal
Post by: Biology Forums on July 15, 2012, 11:15:35 PM
Quote from: IchBin™ on July 15, 2012, 06:11:11 PM
Quote from: Liam_michael on July 14, 2012, 06:19:47 PM
My portals (all of them) disappear after I click preview while writing a PM?

Why in certain areas of the forum do portals disappear?
You're going to have to explain what you mean by "portals".  What is a "portals"?

Meaning the side panels... All panels programmed by tinyportal software. Try it yourself and see if you get the same problem.
Title: Re: TinyPortal
Post by: agridoc on July 16, 2012, 12:35:18 AM
Just adjust panel settings to how you like your panels to behave.  ;)

TP Admin » Blocks » Panels
Panel Settings

Hide panels when in these sections:  Yes  No - Profile screen
  Yes  No - Personal Messages screen
  Yes  No - Memberlist screen
  Yes  No - Search screen
  Yes  No - Calendar screen
Hide panels when in custom actions:
( separate the actions with comma.
For example: "gallery,arcade,shop"
Title: Re: TinyPortal
Post by: Biology Forums on July 16, 2012, 01:37:04 PM
Quote from: agridoc on July 16, 2012, 12:35:18 AM
Just adjust panel settings to how you like your panels to behave.  ;)

TP Admin » Blocks » Panels
Panel Settings

Hide panels when in these sections:  Yes  No - Profile screen
  Yes  No - Personal Messages screen
  Yes  No - Memberlist screen
  Yes  No - Search screen
  Yes  No - Calendar screen
Hide panels when in custom actions:
( separate the actions with comma.
For example: "gallery,arcade,shop"

I know that already, I've been using this software for years and have over 50 blocks scattered throughout the forum. Did you try what I proposed?
Title: Re: TinyPortal
Post by: lurkalot on July 16, 2012, 02:38:11 PM
Quote from: Liam_michael on July 14, 2012, 06:19:47 PM
My portals (all of them) disappear after I click preview while writing a PM?

Why in certain areas of the forum do portals disappear?

Where's the Tinyportal Copywrite, I don't see it for some reason. 
Title: Re: TinyPortal
Post by: IchBin™ on July 16, 2012, 03:12:54 PM
Looks to me like it was never coded in to pick up on the review page. So none of the panels are loaded for it.
Title: Re: TinyPortal
Post by: Biology Forums on July 16, 2012, 04:55:12 PM
Quote from: IchBin™ on July 16, 2012, 03:12:54 PM
Looks to me like it was never coded in to pick up on the review page. So none of the panels are loaded for it.

@IchBin™: That was the answer I was looking for! How do you go about coding it?
Title: Re: TinyPortal
Post by: bloc on July 17, 2012, 05:04:13 AM
Quote from: IchBin™ on July 16, 2012, 03:12:54 PM
Looks to me like it was never coded in to pick up on the review page. So none of the panels are loaded for it.
It felt like a waste really, to make it show there too, since its using AJAX to render the preview. Adding all the block coding into that..well, to what purpose? You are just previewing a post, when its saved, THATS when you need the blocks to show.
Title: Re: TinyPortal
Post by: Biology Forums on July 17, 2012, 10:10:05 AM
Quote from: Bloc on July 17, 2012, 05:04:13 AM
Quote from: IchBin™ on July 16, 2012, 03:12:54 PM
Looks to me like it was never coded in to pick up on the review page. So none of the panels are loaded for it.
It felt like a waste really, to make it show there too, since its using AJAX to render the preview. Adding all the block coding into that..well, to what purpose? You are just previewing a post, when its saved, THATS when you need the blocks to show.

It's really not 100% important, Bloc. Just that it looks nice and consistent if it programmed there. Once the blocks disappear, everything looks so much bigger and less compact, that's why. I like things looking compact.
Title: Re: TinyPortal
Post by: bloc on July 17, 2012, 10:53:08 AM
Well, ok, but it does present a resource problem, essentially loading in things you don't need. Seeing as there might be many users doing edits/replies at once(and not just a few admins doing stuff in admin section which doesn't impact things so much) it might be looking nicer, but you also make your server work harder.

That said, I believe its possible to load in the panels initially at least - if the code isn't changed by Brad/Ichbin, I'll look it up to see if its possible.
Title: Re: TinyPortal
Post by: bloc on July 17, 2012, 10:59:07 AM
Open Sources/TPortal.php and find this line:
// set up the layers, but not for certain actions
if(!isset($_REQUEST['preview']) && !isset($_REQUEST['quote']) && !isset($_REQUEST['xml']) && !isset($aoptions['nolayer']))
$context['template_layers'][] = $context['TPortal']['hooks']['tp_layer'];

change to :
// set up the layers, but not for certain actions
if(!isset($_REQUEST['quote']) && !isset($_REQUEST['xml']) && !isset($aoptions['nolayer']))
$context['template_layers'][] = $context['TPortal']['hooks']['tp_layer'];


BUT - and this is important, do keep the edits of the file intact in case you need to change back - its not certain everything works good when you change that. I didn't test anymore with panels on preview, since I found it a waste to begin with. So its UNTESTED. :)
Title: Re: TinyPortal
Post by: IchBin™ on July 17, 2012, 11:36:03 AM
Thx Bloc! I had not taken a chance to look into the code yet.  Looks like that edit makes things work in the little test I just did. Agree on your sentiments previously though. :)
Title: Re: TinyPortal
Post by: Biology Forums on July 17, 2012, 07:02:28 PM
Thank you both for your assistance,

Take care.
Title: Re: TinyPortal
Post by: Farmacija on July 24, 2012, 10:39:04 AM
I have problem with WYSIWYG editor folder on my server.

See this topic please -> http://www.simplemachines.org/community/index.php?topic=482364.0

Is that folder install by tp?
Title: Re: TinyPortal
Post by: lurkalot on July 24, 2012, 11:14:46 AM
Quote from: Farmacija on July 24, 2012, 10:39:04 AM
I have problem with WYSIWYG editor folder on my server.

See this topic please -> http://www.simplemachines.org/community/index.php?topic=482364.0

Is that folder install by tp?

As far as I'm aware TP doesn't add a WYSIWYG folder, not since TP version 0.9.8.  Did you upgrade from that version at some point?  Also you're running TP 1.0 RC2 so you're a few versions behind now.  Latest version is TP 1,0
Title: Re: TinyPortal
Post by: Farmacija on July 24, 2012, 12:59:25 PM
Yes, i did upgrade from that version. I delete that folder now so I will see if errors continue to show .
Title: Re: TinyPortal
Post by: Duskmoon on August 01, 2012, 07:19:48 AM
Hello,

I need some help regarding the TP Shoutbox mod.

I am trying to fix a nice shoutbox for our guild forums, and really like the TP one, but I would like to edit it some more. I am kinda hopeless when it comes to figuring these type of things, I did look through TPShout.css in default theme folder, but not quite sure what to do with it. I searched this topic for similar questions, but couldn't find anything along these lines.

SMF version: 1.1.16
Website: triggerthetempest.eu
TinyPortal: Using Warcraft Portal version 1.083, which is basicly TinyPortal with a few additional WoW mods, added by our host Ejeet Networks.




I have a list of items I would like to change, and I'm in no hurry whatsoever, so if anyone can help with whichever small part of it I would be very grateful. I made an illustration of what I'm aiming for to better clarify what I need:

(http://i.imgur.com/TqcPb.jpg)
1. I would like to enable user avatars to show and make them a fixed size 32x32.
2. I would like to move the BBCode formatting buttons and smilies to the bottom of the box.
3. I would like to remove the "Last 100 Shouts:" line and the line break after it.

Many thanks in advance to anyone who wants to help out!
Title: Re: TinyPortal
Post by: IchBin™ on August 01, 2012, 03:08:59 PM
You should do an upgrade since you are like 6 versions behind, and you've missed some security updates too...

1. Already exists in TP 1.0, but the size be slightly bigger IIRC.
2. Already exists in TP 1.0.
3. You just have to alter the TPShout.template.php file in the Themes/default/ directory.
Title: Re: TinyPortal
Post by: DarkAngel612 on August 01, 2012, 10:37:50 PM
Yup with the later version than yours they are now using their own smilies...rather the default smilies that come with smf but you can change them in the tp-files/tp-modules-TPShout/Sources/TPShout.php

go to about line: 828

should read:
$context['tp_smileys']['postform'][] = array(
            'smileys' => array(

that is the beginning and you will see them listed...just change the name listed to the name of the smilie you want to be able to use. You can use as many or as few as you like, my forum is smilie happy so we have thousands it weems at times so I only have a few of them showing in the shout box.

not sure if there is anywhere that we can add the actual smiley for it to show automatically or if that is something to request for later versions but for now this does quite nicely

about removing the last shouts at the top of the box, I have no clue. I search files and find the show all shouts but not that one at all.


*****EDIT*****

[/color]I did find that in the TPortal.english.php located in the Themes/default/languages folder does contain the place for the word Shouts:
[/b][/color]when you remove that the word goes away from the shoutbox but not the count before it...that I fear is encoded elsewhere since it does tell you how many shouts are in the display window[/b]
Title: Re: TinyPortal
Post by: MoreBloodWine on August 05, 2012, 11:33:18 PM
Just tried to install on a fresh 2.0.2 site, seemed to go well except the images folder didn't ceem to be created as I don't have images for anything.

When I goto the images folder, instead of seeing the tinyportal folder that's supposed to be created I instead see a tinyportal file with a size of 0. The main image folder is permisioned 777 so everything should be working.

Any ideas ?
Title: Re: TinyPortal
Post by: IchBin™ on August 05, 2012, 11:43:15 PM
You should probably ask the host about that. It would seem to be some type of server configuration that isn't allowing it. You can of course, simply upload the files for that folder manually if you need to fix it though.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 06, 2012, 12:02:44 AM
Quote from: IchBin™ on August 05, 2012, 11:43:15 PM
You should probably ask the host about that. It would seem to be some type of server configuration that isn't allowing it. You can of course, simply upload the files for that folder manually if you need to fix it though.
It's not a host thing because I'm successfully using TP on two other sites.
Title: Re: TinyPortal
Post by: IchBin™ on August 06, 2012, 11:32:26 AM
Quote from: MoreBloodWine on August 06, 2012, 12:02:44 AM
Quote from: IchBin™ on August 05, 2012, 11:43:15 PM
You should probably ask the host about that. It would seem to be some type of server configuration that isn't allowing it. You can of course, simply upload the files for that folder manually if you need to fix it though.
It's not a host thing because I'm successfully using TP on two other sites.

The only thing that can affect the installation process is the configuration of the host. Unless there's a bug in SMF, which is highly unlikely. Considering that TP has installed on hundreds of sites since the TP 1.0 release, I don't see how it could be anything else. It could be any number of things that don't allow a directory and it's files to be extracted into your file system. Permissions, Apache/PHP configuration, file system limitations. There is no possible way for me to be able to tell you exactly what unless I'm the administrator of your server. Especially when I cannot reproduce the problem and haven't seen anyone else have the problem either.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 06, 2012, 12:29:44 PM
Quote from: IchBin™ on August 06, 2012, 11:32:26 AM
Quote from: MoreBloodWine on August 06, 2012, 12:02:44 AM
Quote from: IchBin™ on August 05, 2012, 11:43:15 PM
You should probably ask the host about that. It would seem to be some type of server configuration that isn't allowing it. You can of course, simply upload the files for that folder manually if you need to fix it though.
It's not a host thing because I'm successfully using TP on two other sites.

The only thing that can affect the installation process is the configuration of the host. Unless there's a bug in SMF, which is highly unlikely. Considering that TP has installed on hundreds of sites since the TP 1.0 release, I don't see how it could be anything else. It could be any number of things that don't allow a directory and it's files to be extracted into your file system. Permissions, Apache/PHP configuration, file system limitations. There is no possible way for me to be able to tell you exactly what unless I'm the administrator of your server. Especially when I cannot reproduce the problem and haven't seen anyone else have the problem either.
Going on that notion just for a minut, what would single TP our but not any other mods ?

I mean if it was a host thing wouldnt I have also had folder installation issues with SMF since this was a brand new install ?
Title: Re: TinyPortal
Post by: Arantor on August 06, 2012, 12:31:39 PM
Actually there are a bunch of mods that have this problem and there is one common feature.

If the mod contains a Themes/ folder and expects to 'overlay' that on top of the existing Themes folder, it will cause a permissions problem on some hosts and cause the 'file' to be written instead of a folder.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 06, 2012, 01:06:35 PM
So maybe that's the issue then ?
Title: Re: TinyPortal
Post by: Arantor on August 06, 2012, 01:07:36 PM
Maybe...
Title: Re: TinyPortal
Post by: MoreBloodWine on August 06, 2012, 01:43:44 PM
Well, I know I can simply create / copy the images easily but ince were talking about it. What would be an easy fix to that so it might stop it from possibly happening to others even if it's rare when it does ?
Title: Re: TinyPortal
Post by: Arantor on August 06, 2012, 01:47:24 PM
Restructuring the package and the installer for it.
Title: Re: TinyPortal
Post by: MoreBloodWine on August 06, 2012, 02:29:46 PM
lol, seems like a lot to ask for something I doubt that happens all to often so I wont ask heh.

Edit: Actually, is there anythin I can tweak on my VPS to stop this from happening not only with TP but other mods as well ?
Title: Re: TinyPortal
Post by: stylusss on August 17, 2012, 03:23:22 PM
Using the tinyportal download manager,

A hypothetical situation...

I would like membergroup 2 to be able to upload files, but not be able download files. Is this a possibility? And those who are not allowed to download files, they are still allowed to see the file that has been uploaded, but when they click the link, an error will state, sorry you are not allowed to download this file.
Title: Re: TinyPortal
Post by: Kindred on August 17, 2012, 04:15:26 PM
not sure about your first question, but the second question goes against the standard design of SMF...    ]
Under standard design, users can only see options if they can do the option...  if they can't do it, they can't see it.
Title: Re: TinyPortal
Post by: stylusss on August 17, 2012, 07:55:41 PM
Quote from: Kindred on August 17, 2012, 04:15:26 PM
not sure about your first question, but the second question goes against the standard design of SMF...    ]
Under standard design, users can only see options if they can do the option...  if they can't do it, they can't see it.

Still, I want the person to see that the download is there, but when clicked, it says, sorry :)
Title: Re: TinyPortal
Post by: Kindred on August 17, 2012, 11:15:14 PM
that might be bwhat you want... but that is not how the standard permissions work in SMF functions.
Unless specifically altered - SMF assumes that - if you can see it, you can do it - and if you can't do it, you have no need to see it.
Title: Re: TinyPortal
Post by: stylusss on August 18, 2012, 02:51:03 AM
I'm pretty sure a very talented programmer could figure this out ;D

Otherwise, I REALLY don't want to download another download manager. This seems pretty neat on its own. O:)
Title: Re: TinyPortal
Post by: Kindred on August 18, 2012, 10:39:37 AM
you miss my point.  Yes - it can be figured out...   however, it contradicts SMF standards...   so, unless it is a custom built mod, it is unlikely that a standard and widely used mod would do that....
Title: Re: TinyPortal
Post by: IchBin™ on August 20, 2012, 04:00:50 PM
TP behaves in the same way. If you are given the permission to see it you have the permission to download it. Any further option than that would have to be coded in to work the way you want.
Title: Re: TinyPortal
Post by: smashmash on August 29, 2012, 04:51:48 PM
I'm using Tinyportal and loving it but I have a problem with the calendar. If I use the bloc code for mini calendar it doesn't show events that are already posted in the main forum calendar - how can I get the calendar on tinyportal to reflect events logged through the stock SMF calander?

I'm on SMF 2.02, running Facebook SMF theme, Event registration mod, Tank-o-matic and Simple Audio Video embedder.

Appreciate any ideas!
Title: Re: TinyPortal
Post by: IchBin™ on August 30, 2012, 10:59:32 AM
If the code doesn't show what you want, then you'll have to get some code that does, or write the code yourself. We have a couple of different ones at the tinyportal.net site, but I have no idea what they display.
Title: Re: TinyPortal
Post by: Duskmoon on August 30, 2012, 05:52:19 PM
Quote from: DarkAngel612 on August 01, 2012, 10:37:50 PM
Yup with the later version than yours they are now using their own smilies...rather the default smilies that come with smf but you can change them in the tp-files/tp-modules-TPShout/Sources/TPShout.php

go to about line: 828

should read:
$context['tp_smileys']['postform'][] = array(
            'smileys' => array(

that is the beginning and you will see them listed...just change the name listed to the name of the smilie you want to be able to use. You can use as many or as few as you like, my forum is smilie happy so we have thousands it weems at times so I only have a few of them showing in the shout box.

not sure if there is anywhere that we can add the actual smiley for it to show automatically or if that is something to request for later versions but for now this does quite nicely

about removing the last shouts at the top of the box, I have no clue. I search files and find the show all shouts but not that one at all.


*****EDIT*****

[/color]I did find that in the TPortal.english.php located in the Themes/default/languages folder does contain the place for the word Shouts:
[/b][/color]when you remove that the word goes away from the shoutbox but not the count before it...that I fear is encoded elsewhere since it does tell you how many shouts are in the display window[/b]
Thanks for this!

In the meantime I updated both SMF and TP and generally just set up the website from scratch again. I shall add the smilies manually, and just live with the Last 100 Shouts line I suppose. :) If I figure anything out myself, I'll post it here.
Title: Re: TinyPortal
Post by: fouad on September 01, 2012, 07:31:25 AM
hi everyone

i have installed tiny portal and pretty much satisfied with it but i am facing a problem. i want to put a menu link like home, profiles, search etc   but couldn't find how to do this in tiny portal.

plz help me out

thanks
Title: Re: TinyPortal
Post by: DarkAngel612 on September 01, 2012, 05:06:14 PM


Quote from: fouad on September 01, 2012, 07:31:25 AM
hi everyone

i have installed tiny portal and pretty much satisfied with it but i am facing a problem. i want to put a menu link like home, profiles, search etc   but couldn't find how to do this in tiny portal.

plz help me out

thanks


this is how I was told to do it and it has worked beautifully. In the spot where it says 'href'=> ' ' --- in between the ' ' place the actual link, especially if it is an article or off site. I never have added a button at the end cause I feel the ones already there should be, but have added links/buttons to the rest of the navigation bar...bear in mind that in some themes they won't look as good as the ones there -- may drop the menu down a line.

Firstly you'll need to open Sources / Subs.php

Scroll down to:

Code: [Select]

    // All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.


This is where the tabs are set.

Each button is an entry in a big array. Here is the first button:

Code: [Select]

            'home' => array(
                'title' => $txt['home'],
                'href' => $scripturl,
                'show' => true,
                'sub_buttons' => array(
                ),
            ),


To add a button copy and paste this code between the buttons where you want this button to be located.
Change 'home' to something simple and unique
Change $txt['home'] to the name of your button in quotes
Change $scripturl to the location of your button in quotes
Change show to true (you can do more advanced things with this which will be explained later in the tutorial)
Ignore sub-buttons for now. This can create a drop-down menu and will also be covered later in the tutorial

My example button would look like this, inbetween home and help:

Code: [Select]

            'home' => array(
                'title' => $txt['home'],
                'href' => $scripturl,
                'show' => true,
                'sub_buttons' => array(
                ),
            ),
            'arcade' => array(
                'title' => 'Arcade',
                'href' => 'http://www.mysite.example/arcade (http://www.mysite.example/arcade)',
                'show' => true,
                'sub_buttons' => array(
                ),
            ),
            'help' => array(
                'title' => $txt['help'],
                'href' => $scripturl . '?action=help',
                'show' => true,
                'sub_buttons' => array(
                ),
            ),


Now you just need to save the file and upload with FTP if necessary. You may want to read How do I use FTP? / What is FTP?.
Finally if you use the SMF cache you'll need to clear it by going to the Admin area > Forum Maintenance > Empty the file cache.

If you just want a simple button you can stop reading now, otherwise read on!

Note that if you wish to add a button at the end of the menu it must be placed after the logout button and (after logout / register) you'll need to change is_last to false in login and register:

Code: [Select]

                'is_last' => true,


You also need to add it to your button after :

Code: [Select]

                'sub_buttons' => array(
                ),


Which would make something like this:

Code: [Select]

            'arcade' => array(
                'title' => 'Arcade',
                'href' => 'http://www.mysite.example/arcade (http://www.mysite.example/arcade)',
                'show' => true,
                'sub_buttons' => array(
                ),
                'is_last' => true,

            ),
Title: Re: TinyPortal
Post by: Kindred on September 01, 2012, 06:22:37 PM
Hi DarkAngel,

Instead of typing out that whole thing, you can just link to the wikiw, which explains all of that. :)
http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0
Title: Re: TinyPortal
Post by: DarkAngel612 on September 01, 2012, 06:54:05 PM


I am a lazy sort and will copy/paste into a doc for my comp so I don't have to search for the link, which I lose royally. But do link when I have one...thanks
Title: Re: TinyPortal
Post by: fouad on September 02, 2012, 03:14:25 AM
@ Dark angel

thank you sir .i am new to smf and i highly appreciate your help.
Title: Re: TinyPortal
Post by: DarkAngel612 on September 02, 2012, 04:31:19 AM
you are very welcome
Title: Re: TinyPortal
Post by: fouad on September 02, 2012, 11:00:15 AM
hello sir i implemented what you said. got the menu button on menu bar but it didn't shows its title. i put its name 'downloads' but on front page of my forum it shows only an invisible block .which can be sensed when i place cursor on it ..
Title: Re: TinyPortal
Post by: DarkAngel612 on September 02, 2012, 04:45:09 PM
Quote from: fouad on September 02, 2012, 11:00:15 AM
hello sir i implemented what you said. got the menu button on menu bar but it didn't shows its title. i put its name 'downloads' but on front page of my forum it shows only an invisible block .which can be sensed when i place cursor on it ..

Hi sugar, am female and always confuse people with my username...lol

This is how I did mine with the TP links:

'freebies' => array(
'title' => 'FreeStuff',
'href' => 'http://thefantasiesattic.net/attic/index.php?action=tpmod;dl=0',
'show' => true,
'sub_buttons' => array(
),
),


Make sure you have all the little ' where they should be

do you get an error message?

can you post the code you used and where you put it and a link to your site might help too.
Title: Re: TinyPortal
Post by: fouad on September 03, 2012, 09:03:43 AM
i am sorry for that madam..

i was placing the code


'Downloads' => array(
                     'title' => $txt['Downloads'],
                     'href' => 'http://pakhealthforum.com/index.php?action=tpmod;dl',
                     'show' => true,
                     'sub_buttons' => array(
                           ),
                      ),


and after comparing it with your code i found the error.and now it works fine..
m highly thankful to you for helping me.

http://www.pakhealthforum.com/ (http://www.pakhealthforum.com/)
Title: Re: TinyPortal
Post by: Kindred on September 03, 2012, 09:53:05 AM
You could use

'href' => $scripturl . '?action=tpmod;dl',
Title: Re: TinyPortal
Post by: DarkAngel612 on September 03, 2012, 06:29:29 PM
you are very welcome fouad, glad I could help
Title: Re: TinyPortal
Post by: faddi89 on September 07, 2012, 03:03:51 PM
Hello,is there anyway i can upload power point presentations on tiny portal?
Title: Re: TinyPortal
Post by: fouad on September 09, 2012, 08:34:08 AM
goto tinyportal >settings > modules>downloads manager > admin settings of download manager>

there you find allowed file extensions .place there your desired format like ppt or pptx or docx etc
and send

Title: Re: TinyPortal
Post by: AMWebby on September 20, 2012, 04:56:02 AM
I'm looking at Tiny Portal with a view to replacing my current set up of Joomla and SMF. It looks really good but I have the problem of legacy content. Has anyone any clues on how to import content from Joomla into Tiny Portal?
Title: Re: TinyPortal
Post by: Kindred on September 20, 2012, 07:34:56 AM
you'd have to write a script for it...

it can be done (and it wouldn't be terribly difficult), but there is nothing currently written.
Title: Re: TinyPortal
Post by: AMWebby on September 20, 2012, 07:52:10 AM
That's what I thought. Any pointers as to writing the script would be gratefully received...
Title: Re: TinyPortal
Post by: Kindred on September 20, 2012, 09:18:32 AM
Quote from: AMWebby on September 20, 2012, 07:52:10 AM
That's what I thought. Any pointers as to writing the script would be gratefully received...

it would probably be best done directly in SQL - assuming both tables are in the same db...   but the actual script lines would depend on the tables, fields and content...
Title: Re: TinyPortal
Post by: AMWebby on September 20, 2012, 09:22:49 AM
Once again I had assumed a SQL script. Both are in the same database. Any pointers to a script I could use as a starting point?
Title: Re: TinyPortal
Post by: Kindred on September 20, 2012, 10:37:36 AM
not really....   I had to do something similar when I converted from Gallery2 to AEVA Media, so I know (in general) what you need to do, but I don't have Joomla or TP installed on my own system, so I don't know the specifics...

Basically, make a map of table+field to table+field
i.e.
joomla_content.title -> smf_tp_article.title
joomla_content.body -> smf_tp_article.body
etc

the problem is going to be matching the userIDs, since I expect that the UserIDs in joomla will not match those in SMF, so you may have to create a separate map of that...

you can either do it directly, or through export/convert data/import.

it's a fair amount of manual work
(it may be easier if you do not have any content in your TP tables yet.)


Actually, it just occurred to me that I did do something similar. I converted Joomla content to the SMF articles mod system (from vbgamer).   Not sure if I still have the conversion script around though...  it was several years ago.
One thing to note: Joomla content is stored as HTML...   I'm not sure about TP, but I know that screwed up the SMF articles and all the HTML had to be converted to BBC, which was a pain in the but and took the 4-5 editorial staff nearly a year to do (we had 500+ articles)
Title: Re: TinyPortal
Post by: AMWebby on September 20, 2012, 10:45:39 AM
Thanks, I think. Seriously, that does give me some pointers to start. I suspect export/import will be the route to take. My TP tables are pretty sparsely populated at  present and TP does support BBC, HTML, PHP and Javascript so at least  that shouldn't be a problem.

I'll let you know how I get on...
Title: Re: TinyPortal
Post by: bearstreet on October 01, 2012, 10:04:17 AM
I wanted to post a problem at
http://www.tinyportal.net/
but i am colourblind and the last question asked on registration was to identify red characters
so I could not register

I am posting the problem here
is there a way to permalink comments in the articles?

Title: Re: TinyPortal
Post by: IchBin™ on October 01, 2012, 12:08:01 PM
Hi bearstreet. Sorry about the registering problems. I didn't even think of a color problem when I added those questions. I'll have to look into that.

As to your question, I'm not sure I understand what you are asking for? What do you mean by permalink comments in articles?
Title: Re: TinyPortal
Post by: Kindred on October 01, 2012, 12:26:57 PM
I think he means: Can someone have a link that points the viewer directly to that comment....
Title: Re: TinyPortal
Post by: IchBin™ on October 01, 2012, 12:57:43 PM
Ah thx Kindred. That makes sense. Might be something easy to add. I'll take a look when I get a moment and see.

ETA: This should make comments linkable.


Find in TPortal.php
$context['TPortal']['article']['comment_posts'][] = array(
    'id' => $row['id'],
    'subject' => $row['value1'],


Replace with:
$context['TPortal']['article']['comment_posts'][] = array(
    'id' => $row['id'],
    'subject' => '<a href="'.$scripturl.'?page='.$context['TPortal']['article']['id'].'#comment'. $row['id'].'">'.$row['value1'].'</a>',


In Themes/default/TPsubs.template.php find:
foreach($context['TPortal']['article']['comment_posts'] as $comment)
{
$code .= '
<div class="' . ($context['TPortal']['article']['authorID']!=$comment['posterID'] ? 'mycomment' : 'othercomment') . '">


Add after that code this code:

<a id="comment'.$comment['id'].'"></a>
Title: Re: TinyPortal
Post by: bearstreet on October 02, 2012, 04:54:54 AM
will do and update it here

i meant exactly what Kindred said
Thanks for the reply
Title: Re: TinyPortal
Post by: bearstreet on October 05, 2012, 10:22:08 AM
it is not working as expected, I did it,
http://testbear1234.site88.net/index.php?page=test-my-test
the comment can not be permalinked
Title: Re: TinyPortal
Post by: bearstreet on October 05, 2012, 10:28:47 AM
what is the query title meant for in the articles?
Title: Re: TinyPortal
Post by: IchBin™ on October 05, 2012, 11:02:20 AM
The query title changes the URL from being ?page=3 to ?page=query_title

Looking at the page you linked to, I don't see that you've made the changes. When you make the changes I posted above the subject of the comment should be linked.
Title: Re: TinyPortal
Post by: bearstreet on October 05, 2012, 01:47:36 PM
packages/tinyportal/smf2/sources/Tportal.php

$context['TPortal']['article']['comment_posts'][] = array(
'id' => $row['id'],
'subject' => '<a href="'.$scripturl.'?page='.$context['TPortal']['article']['id'].'#comment'. $row['id'].'">'.$row['value1'].'</a>',
'text' => parse_bbc($row['value2']),
'timestamp' => $row['value4'],

I did it
and the second one too
did i missed something?

$code .= '
<div class="' . ($context['TPortal']['article']['authorID']!=$comment['posterID'] ? 'mycomment' : 'othercomment') . '">
<a id="comment'.$comment['id'].'"></a>


<span class="comment_author">' . (!empty($comment['avatar']['image']) ? $comment['avatar']['image'] : '') . '</span>
<strong>' . $counter++ .') ' . $comment['subject'] . '</strong>
' . (($comment['is_new'] && $context['user']['is_logged']) ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="" />' : '') . '
<div class="middletext" style="padding-top: 0.5em;"> '.$txt['tp-by'].' <a href="'.$scripturl.'?action=profile;u='.$comment['posterID'].'">'.$comment['poster'].'</a>
' . $txt['on'] . ' ' . $comment['date'] . '
</div>

code snippet from tpsubstemplate.php
Title: Re: TinyPortal
Post by: IchBin™ on October 07, 2012, 05:23:00 PM
How come you are editing the file in the packages directory? You need to edit the file in the Sources/ dir.
Title: Re: TinyPortal
Post by: bearstreet on October 08, 2012, 04:16:59 AM
sory, I did not knew what to edit
Will do as you said in the said directory
Title: Re: TinyPortal
Post by: IchBin™ on October 08, 2012, 12:34:57 PM
No problem bearstreet. The packages directory should really only be used by the package manager just so you know. All files that SMF uses would be in the Sources/ and Themes/ directory for 99% of the work. Let me know if it doesn't work out for you.
Title: Re: TinyPortal
Post by: stylusss on October 17, 2012, 11:52:20 PM
Can someone explain to me - if possible - how the tinyportals article system can be used as a blogging system for all members? Has anyone done this? Could I see an example?

I would like members in my forum to have the ability to create their own blogs. I want to present my blog, however, in the front page (I know how to do this).

Input anyone?
Title: Re: TinyPortal
Post by: Kindred on October 18, 2012, 12:28:47 AM
actually, only portaMX has a blog to go with the portal, as far as I know...
Title: Re: TinyPortal
Post by: IchBin™ on October 18, 2012, 10:26:56 AM
Need more details stylusss. You can easily give everyone permission to write articles that will appear on the frontpage. But I'm not sure exactly how you want it to work. You could even create a category where only a certain member would be able to post to. But that would make your permissions and member groups fun to setup/maintain.

Sounds like your using the wrong tool for the job if you only want a blog though.
Title: Re: TinyPortal
Post by: feline on October 18, 2012, 12:56:58 PM
Quote from: Kindred on October 18, 2012, 12:28:47 AM
actually, only portaMX has a blog to go with the portal, as far as I know...
PmxBlog 1.1 (Multi user Blog) works also as stand alone Blog and can be download on our Site ...
Title: Re: TinyPortal
Post by: stylusss on October 18, 2012, 10:00:24 PM
Thanks for the clarification guys. I can't use PmxBlog because I am using version 1.x. VBulliten has the right idea, each member gets their own blog page, which can be accessed via the main menu or individual profiles.
Title: Re: TinyPortal
Post by: techguy on November 15, 2012, 11:30:54 PM
How can I manage permissions for articles created by users so that guest can see articles
Title: Re: TinyPortal
Post by: IchBin™ on November 16, 2012, 10:22:46 AM
Each category for articles has the option to turn on/off access to the articles placed in that category, by which ever groups you select. You just make sure guest is checked in the categories that you want.
Title: Re: TinyPortal
Post by: techguy on November 20, 2012, 06:51:23 AM
how to create custom url for artciles created by tinyportal
Title: Re: TinyPortal
Post by: DarkAngel612 on November 20, 2012, 05:11:16 PM
Quote from: techguy on November 20, 2012, 06:51:23 AM
how to create custom url for artciles created by tinyportal

Do you mean like when you hyperlink to a site : Fantasy Attic (http://thefantasiesattic.net/attic/index.php)

only with the link going strait to your article?

What I do is go to the article's page then copy/paste the link like this one: Weekly Newsletter (http://thefantasiesattic.net/attic/index.php?page=21)

[url=http://thefantasiesattic.net/attic/index.php?page=21]Weekly Newsletter[/url]

the ?page=21 is what tells it the actual article page number.

Sorry if that is not what you meant...been on cold meds and still this flu/cold -- whatever it is won't go away.

Have a Happy Thanksgiving.
Title: Re: TinyPortal
Post by: lurkalot on November 21, 2012, 02:59:51 AM
Quote from: DarkAngel612 on November 20, 2012, 05:11:16 PM
Quote from: techguy on November 20, 2012, 06:51:23 AM
how to create custom url for artciles created by tinyportal

Do you mean like when you hyperlink to a site : Fantasy Attic (http://thefantasiesattic.net/attic/index.php)

only with the link going strait to your article?

What I do is go to the article's page then copy/paste the link like this one: Weekly Newsletter (http://thefantasiesattic.net/attic/index.php?page=21)

[url=http://thefantasiesattic.net/attic/index.php?page=21]Weekly Newsletter[/url]

the ?page=21 is what tells it the actual article page number.

Sorry if that is not what you meant...been on cold meds and still this flu/cold -- whatever it is won't go away.

Have a Happy Thanksgiving.

If you enter a Query title to the article. you can then use [url=http://thefantasiesattic.net/attic/index.php?page=Weekly Newsletter[/url] as the address, without the page number.

Example http://cameracraniums.com/forum/index.php?page=time-lapse-photography
Title: Re: TinyPortal
Post by: techguy on November 21, 2012, 10:54:44 AM
Quote from: lurkalot on November 21, 2012, 02:59:51 AM
Quote from: DarkAngel612 on November 20, 2012, 05:11:16 PM
Quote from: techguy on November 20, 2012, 06:51:23 AM
how to create custom url for artciles created by tinyportal

Do you mean like when you hyperlink to a site : Fantasy Attic (http://thefantasiesattic.net/attic/index.php)

only with the link going strait to your article?

What I do is go to the article's page then copy/paste the link like this one: Weekly Newsletter (http://thefantasiesattic.net/attic/index.php?page=21)

[url=http://thefantasiesattic.net/attic/index.php?page=21]Weekly Newsletter[/url]

the ?page=21 is what tells it the actual article page number.

Sorry if that is not what you meant...been on cold meds and still this flu/cold -- whatever it is won't go away.

Have a Happy Thanksgiving.

If you enter a Query title to the article. you can then use [url=http://thefantasiesattic.net/attic/index.php?page=Weekly Newsletter[/url] as the address, without the page number.

Example http://cameracraniums.com/forum/index.php?page=time-lapse-photography

Lemme tell you in detail.
For example I created an article "abc" in tinyportal articles.
Can I get the article URL as www.domain.com/abc
Title: Re: TinyPortal
Post by: Kindred on November 21, 2012, 11:11:12 AM
no.
Title: Re: TinyPortal
Post by: techguy on November 21, 2012, 12:20:21 PM
So how exactly a URL would be created for the article
Title: Re: TinyPortal
Post by: IchBin™ on November 21, 2012, 12:48:50 PM
You can't do that without rewriting a lot of code.
Title: Re: TinyPortal
Post by: Madchen on November 24, 2012, 06:05:09 AM
I want to swap frontpage with left sidebar. I found in TPBlockLayout.template.php that i can swap panels with calling TPortal_panel('nameofpanel') and specifing name of the panel. How would i do for frontpage?
Title: Re: TinyPortal
Post by: DarkAngel612 on November 24, 2012, 07:15:34 PM
Quote from: Madchen on November 24, 2012, 06:05:09 AM
I want to swap frontpage with left sidebar. I found in TPBlockLayout.template.php that i can swap panels with calling TPortal_panel('nameofpanel') and specifing name of the panel. How would i do for frontpage?

Do you mean you want the left blocks to be on right? Or am I totally wrong. You could just make duplicates of the blocks and set them for right side and front page only then adjust the left blocks to not be on the front page.
Title: Re: TinyPortal
Post by: Madchen on November 24, 2012, 07:54:26 PM
Quote from: DarkAngel612 on November 24, 2012, 07:15:34 PM
Quote from: Madchen on November 24, 2012, 06:05:09 AM
I want to swap frontpage with left sidebar. I found in TPBlockLayout.template.php that i can swap panels with calling TPortal_panel('nameofpanel') and specifing name of the panel. How would i do for frontpage?

Do you mean you want the left blocks to be on right? Or am I totally wrong. You could just make duplicates of the blocks and set them for right side and front page only then adjust the left blocks to not be on the front page.

No. I want left panel to be swaped with frontpage panel (where articles are displayed).

The goal is to create three column layout, first column/panel (if we count from left to right) with all articles from one category, second column with articles from another category and third column will contain something like last posts, last comments and so on. Maybe i can accomplish this in another way?

Right now i have two problems:
1. I can't change which articles will be displayed in middle column  (frontpage panel or second column)
2. If i set first column to show it shows only list of articles (i want more info like first 300 characters to show and link to read more)
Title: Re: TinyPortal
Post by: IchBin™ on November 27, 2012, 12:42:45 PM
Instead of modifying the files to get this, you would probably be better off putting in custom code into blocks or articles that will pull the data you want for each column.
Title: Re: TinyPortal
Post by: sangham.net on February 18, 2013, 08:11:38 AM
(http://sangham.net/Smileys/sadhu_sangham.gif)Dear developers, co-workers, helpers... of TinyPortal

I would like to express my(our) gratitude for your work and it's really a join to work with it. I do not know how we came to have such a luck to get be able to use it.

Thanks a lot and keep up your great work! May you always be able to enjoy the fruits of your great work!

Sadhu! (http://sangham.net/Smileys/sadhu_sangham.gif)
Title: Re: TinyPortal
Post by: IchBin™ on February 18, 2013, 05:12:25 PM
Glad you enjoy it. Thanks for the feedback.
Title: Re: TinyPortal
Post by: Adrek on February 24, 2013, 10:29:51 AM
I think there is bug in language file.

index.php?pretty;action=admin&amp;area=permissions;sa=modify;group=0;view=classic
8: Undefined index: permissionname_tp_can_admin_shout
File: /Sources/ManagePermissions.php
Line: 1647


I added at the end of TPortal.english.php:
$txt['permissionname_tp_can_admin_shout'] = 'Manage Shoutbox';

and error is gone.
Title: Re: TinyPortal
Post by: IchBin™ on February 24, 2013, 06:14:34 PM
Those language strings are in the TPShout.english.php file.
Title: Re: TinyPortal
Post by: Adrek on February 25, 2013, 10:22:54 AM
Yes, they are there, and it is causing error in my logs.
I had to move it/copy it to TPortal.english.php.
Title: Re: TinyPortal
Post by: IchBin™ on February 25, 2013, 10:34:42 AM
When is it causing an error? There must be a special case, because the TPShout language file should be loaded on every single page.
Title: Re: TinyPortal
Post by: Adrek on February 25, 2013, 10:40:39 AM
When i go to permissions page, in error quote you can see URL
Title: Re: TinyPortal
Post by: IchBin™ on February 26, 2013, 10:35:03 AM
I do the same thing and do not have the problem. There has to be something else going on with your setup. If you find anything, let me know.
Title: Re: TinyPortal
Post by: MoreBloodWine on February 28, 2013, 04:40:29 PM
When using front page articles you see something like this.

posted in General Articles Print

How can I remove that including the preceeding triangle image before posted ?

Basically I want to use a front page article as a site intro.

http://www.dust514corps.com

Already got the groundwork started. Just want to remove that header info.

Ty.
Title: Re: TinyPortal
Post by: lurkalot on March 01, 2013, 03:27:46 AM
Quote from: MoreBloodWine on February 28, 2013, 04:40:29 PM
When using front page articles you see something like this.

posted in General Articles Print

How can I remove that including the preceeding triangle image before posted ?

Basically I want to use a front page article as a site intro.

http://www.dust514corps.com

Already got the groundwork started. Just want to remove that header info.

Ty.

Just curious, any reason for using an article for your front page intro, rather than a Top , Upper, or front block?
Title: Re: TinyPortal
Post by: MoreBloodWine on March 01, 2013, 03:51:44 AM
Quote from: lurkalot on March 01, 2013, 03:27:46 AM
Quote from: MoreBloodWine on February 28, 2013, 04:40:29 PM
When using front page articles you see something like this.

posted in General Articles Print

How can I remove that including the preceeding triangle image before posted ?

Basically I want to use a front page article as a site intro.

http://www.dust514corps.com

Already got the groundwork started. Just want to remove that header info.

Ty.

Just curious, any reason for using an article for your front page intro, rather than a Top , Upper, or front block?
Cause I'm a dumb a** and didnt think lol.

I think with a top / upper block I can achieve what I want with a basic no link / title look right ?

Ex. What's seen at dust514corps.com now more or less but minues the print stuff which with a block I guess owuld be the title bar which can be hidden.
Title: Re: TinyPortal
Post by: IchBin™ on March 01, 2013, 11:26:15 AM
You can also choose the custom template layout for the front page which allows you to add/remove the bits you don't want to show in the article layout.
Title: Re: TinyPortal
Post by: jackregan on April 07, 2013, 09:26:30 PM
I'd be willing to pay US$100-150 if somebody could code, and help me to install, an RSS feed for everything I put on the front page. Payment on successful implementation.

I'd be looking for basically an extension of the current regular forum feed i.e for each feed item a title and body.

Message me if you're interested.
Title: Re: TinyPortal
Post by: TheListener on April 07, 2013, 09:36:42 PM
Quote from: jackregan on April 07, 2013, 09:26:30 PM
I'd be willing to pay US$100-150 if somebody could code, and help me to install, an RSS feed for everything I put on the front page. Payment on successful implementation.

I'd be looking for basically an extension of the current regular forum feed i.e for each feed item a title and body.

Message me if you're interested.

Might I suggest you post this on the tinyportal website or in help wanted.

You would get a better response if you do.
Title: Re: TinyPortal
Post by: jackregan on April 08, 2013, 08:28:07 AM
Okay, will do, thanks...

I really love TP though, great mod.

I've been trying to work out the whole RSS thing for a while now. I have installed an XML sitemap generator on my site which includes an optional RSS output. That gives me RSS for the whole site, but only the title of each post, which I really don't think is a good thing... who is going to click through without a bit of a description there?

Anyway...
Title: Re: TinyPortal
Post by: IchBin™ on April 08, 2013, 11:04:15 AM
If you can provide the details of how you want this to work, I may be able to do it for you. But it depends on how involved this is going to be, as I don't have a lot of time unfortunately.  Do you only want the RSS feed to display what's on the frontpage? Where do you want the feed linked from? Any details would help.
Title: Re: TinyPortal
Post by: jackregan on April 08, 2013, 03:43:07 PM
Thanks... well, I want a feed that includes both forum posts and articles. It could either be just stuff that I put on the front page or absolutely every post and article. I'd be happy with either, so whichever is easier to do really.

Linked from...? I guess from the front page, if I understand you correctly.

Title: Re: TinyPortal
Post by: MoreBloodWine on April 11, 2013, 10:03:39 PM
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>';
Title: Re: TinyPortal
Post by: IchBin™ on April 12, 2013, 04:32:11 PM
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.
Title: Re: TinyPortal
Post by: MoreBloodWine on April 12, 2013, 07:39:36 PM
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.
Title: Re: TinyPortal
Post by: IchBin™ on April 13, 2013, 09:33:33 PM
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.
Title: Re: TinyPortal
Post by: 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?
Title: Re: TinyPortal
Post by: DarkAngel612 on May 05, 2013, 03:21:38 AM
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.
Title: Re: TinyPortal
Post by: 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).
Title: Re: TinyPortal
Post by: stylusss on May 05, 2013, 01:22:18 PM
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?
Title: Re: TinyPortal
Post by: 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.
Title: Re: TinyPortal
Post by: stylusss on May 05, 2013, 02:55:58 PM
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.
Title: Re: TinyPortal
Post by: bloc on May 05, 2013, 03:18:37 PM
Sure, its TPortal.template.php if I remember correctly, the "template_tp_above" and "template_tp_below" functions.
Title: Re: TinyPortal
Post by: stylusss on May 05, 2013, 03:22:08 PM
Neither actually lol I searched the file thoroughly, no records of "template_tp_above" and "template_tp_below" exist.
Title: Re: TinyPortal
Post by: 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. :)
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2013, 05:25:58 PM
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.
Title: Re: TinyPortal
Post by: bloc on May 05, 2013, 06:20:51 PM
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.
Title: Re: TinyPortal
Post by: stylusss on May 05, 2013, 09:35:09 PM
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?
Title: Re: TinyPortal
Post by: 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.
Title: Re: TinyPortal
Post by: stylusss on May 05, 2013, 11:13:03 PM
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.
Title: Re: TinyPortal
Post by: CheeseHead05 on July 17, 2013, 02:25:52 PM
So what exactly is this "tiny portal" and what is it's purpose?
Title: Re: TinyPortal
Post by: DarkAngel612 on July 18, 2013, 03:26:37 AM
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.
Title: Re: TinyPortal
Post by: IchBin™ on July 18, 2013, 03:19:51 PM
If you read the mod description it should give you a good idea. :)
http://mods.simplemachines.org/index.php?mod=97
Title: Re: TinyPortal
Post by: KirkhamsEbooks on August 15, 2013, 07:54:30 PM
Love Tinyportal just made a small donation (and was promptly redirected to a page to buy more stuff  :))

You knew there was a but right?

I miss being able to link to categories! I used to be able to have a category show on top by posting forumlink#c3 or whatever. I tried the tinyportal version ?forum=6 or something like that which showed on the url, but it still took me to the top of the forum instead of placing the category I was selecting on top.

any thoughts or ideas?

Version Information:
Forum version: SMF 2.0.4
Current SMF version: SMF 2.0.5

Rick
Title: Re: TinyPortal
Post by: IchBin™ on August 16, 2013, 03:31:50 PM
Hard to tell what you're talking about, but it looks like you're talking about forum categories? I believe having a category show like you are describing, requires a modification to make that feature. This is not something that comes with TP.
Title: Re: TinyPortal
Post by: KirkhamsEbooks on August 17, 2013, 08:22:39 PM
Actually it existed before I installed Tinyportal Going into a board then clicking up to the category placed that category on top of the web page so copying that url would place the category on top of the viewers page when he/she clicked on the link if I provided it.

This feature no longer exists after installing Tinyportal

Rick
Title: Re: TinyPortal
Post by: KirkhamsEbooks on August 17, 2013, 08:41:17 PM
Here's an example

http://www.computerhelp808.com/MoreHelp/index.php#c2

Note that this category is not the first category of the forum.

Rick
Title: Re: TinyPortal
Post by: IchBin™ on August 17, 2013, 09:24:45 PM
Can't test it on your site since it appears you've removed TP. I'll take a look at the code and see if it's doing something strange.
Title: Re: TinyPortal
Post by: IchBin™ on August 17, 2013, 09:28:13 PM
Ah yes I do see a problem, which I can only assume is the one you are talking about. Although, it doesn't happen on the category links, it only happens in the linktree. If that is your problem, you can fix it by looking for this code in the the Sources/Load.php file.

'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'],

Change it to this:
'url' => $scripturl . '?action=forum#c' . $board_info['cat']['id'],
Title: Re: TinyPortal
Post by: KirkhamsEbooks on August 20, 2013, 12:35:34 PM
Quote from: IchBin™ on August 17, 2013, 09:24:45 PM
Can't test it on your site since it appears you've removed TP. I'll take a look at the code and see if it's doing something strange.

Thank you for the code. I did not remove it I had to find one of my forums without Tinyportal. The one inwhich the category links do not work is http://GodsBusinessWay.com

http://www.godsbusinessway.com/index.php#c25 would be an example. It's supposed to go to a category discussing Mila.

Rick
Title: Re: TinyPortal
Post by: IchBin™ on August 20, 2013, 08:59:36 PM
Did the code fix your problem?  I can't view the category links as a guest so I can't really test the problem on that site.
Title: Re: TinyPortal
Post by: DarkAngel612 on August 20, 2013, 09:54:55 PM
LOL no idea if he tried it or not but I did on my forums and it works beautifully.

I too noticed that when the SMF forums are with TP that the category in breadcrumbs takes you back to it if clicked, which disappeared once TP was installed----many, many, many versions ago...LOL

Never thought to ask about it so glad to have found this thread....works in 2.0.5SMF
Title: Re: TinyPortal
Post by: KirkhamsEbooks on August 21, 2013, 06:03:59 PM
Since TP took over my index I have to change the url, but it now ends up on top as it should.

http://www.godsbusinessway.com/index.php?action=forum#c28

Unless there's a way to change that so other links I have on the web don't need to be changed I will be happy with this.

Thank you

Rick
Title: Re: TinyPortal
Post by: IchBin™ on August 23, 2013, 01:22:40 PM
If you want the old incorrect link to still work, I'd suggest you put some apache redirects in to your server config to forward the old links to the new ones. There's tons of info out there that can show you how to do this.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 16, 2013, 10:40:22 PM
I seem to be experiencing an issue.

Whenever I try to use the following code in a left block I get the the following forbidden error. The code worked fine before and for the life of me I can't figure out what changed to now cause the forbidden error when trying to save the block.

echo '
<center><b><u><font size="3">Milestones</font></u></b></center>
';

global $smcFunc;
$increments = 25;
$data1 = $smcFunc['db_query']('',
'SELECT date_registered
FROM {db_prefix}members AS milestones
WHERE id_member % {int:increments} = 0
ORDER BY date_registered DESC',
array(
'increments' => $increments,
)
);
$dates = array();
while ($row1 = $smcFunc['db_fetch_assoc']($data1))
$dates[] = $row1;

$total = $increments * count($dates);
echo '
<div style="overflow: auto; width: auto; height: 50px; border: none; text-align: left; font-size: 13px; padding-top: 3px;">
';
foreach($dates as $row1)
{
echo date('n/j/Y', strftime($row1['date_registered'])), " - ", number_format($total), " Users Gained !<br />";
$total -= $increments;
}
echo'
</div>
';



QuoteForbidden
You don't have permission to access /index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: TinyPortal
Post by: lurkalot on September 17, 2013, 02:14:56 AM
Quote from: MoreBloodWine on September 16, 2013, 10:40:22 PM
I seem to be experiencing an issue.

Whenever I try to use the following code in a left block I get the the following forbidden error. The code worked fine before and for the life of me I can't figure out what changed to now cause the forbidden error when trying to save the block.

echo '
<center><b><u><font size="3">Milestones</font></u></b></center>
';

global $smcFunc;
$increments = 25;
$data1 = $smcFunc['db_query']('',
'SELECT date_registered
FROM {db_prefix}members AS milestones
WHERE id_member % {int:increments} = 0
ORDER BY date_registered DESC',
array(
'increments' => $increments,
)
);
$dates = array();
while ($row1 = $smcFunc['db_fetch_assoc']($data1))
$dates[] = $row1;

$total = $increments * count($dates);
echo '
<div style="overflow: auto; width: auto; height: 50px; border: none; text-align: left; font-size: 13px; padding-top: 3px;">
';
foreach($dates as $row1)
{
echo date('n/j/Y', strftime($row1['date_registered'])), " - ", number_format($total), " Users Gained !<br />";
$total -= $increments;
}
echo'
</div>
';



QuoteForbidden
You don't have permission to access /index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

A mod security issue perhaps.  Ask your host to check, and turn it off.
Title: Re: TinyPortal
Post by: MoreBloodWine on September 17, 2013, 03:02:17 AM
Quote from: lurkalot on September 17, 2013, 02:14:56 AM
Quote from: MoreBloodWine on September 16, 2013, 10:40:22 PM
I seem to be experiencing an issue.

Whenever I try to use the following code in a left block I get the the following forbidden error. The code worked fine before and for the life of me I can't figure out what changed to now cause the forbidden error when trying to save the block.

echo '
<center><b><u><font size="3">Milestones</font></u></b></center>
';

global $smcFunc;
$increments = 25;
$data1 = $smcFunc['db_query']('',
'SELECT date_registered
FROM {db_prefix}members AS milestones
WHERE id_member % {int:increments} = 0
ORDER BY date_registered DESC',
array(
'increments' => $increments,
)
);
$dates = array();
while ($row1 = $smcFunc['db_fetch_assoc']($data1))
$dates[] = $row1;

$total = $increments * count($dates);
echo '
<div style="overflow: auto; width: auto; height: 50px; border: none; text-align: left; font-size: 13px; padding-top: 3px;">
';
foreach($dates as $row1)
{
echo date('n/j/Y', strftime($row1['date_registered'])), " - ", number_format($total), " Users Gained !<br />";
$total -= $increments;
}
echo'
</div>
';



QuoteForbidden
You don't have permission to access /index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

A mod security issue perhaps.  Ask your host to check, and turn it off.
Before I goto my host, is that the only thing that comes to mind ?

http://www.eojmarket.com/php_info.php
Title: Re: TinyPortal
Post by: lurkalot on September 17, 2013, 03:38:24 AM
Quote from: MoreBloodWine on September 17, 2013, 03:02:17 AM

Before I goto my host, is that the only thing that comes to mind ?


Well, your code works for me on my testsite, and my http://guitaristguild.com site.  Second block down on left.  ;)
Title: Re: TinyPortal
Post by: MoreBloodWine on September 17, 2013, 04:14:41 AM
I shoulda mentioned this earlier but I brain farted... it works fine when saving and displaying on my one sitee I havent touched in some timed. It's my two latest sites having issues with the code, but worked fine before. The only diff between the two faulty sites is that the one was a recent complete file refresh to delete mods.

I can manually edit the code via PHPMyAdmin and it displays n works fine on the site. Just cant edit n save the block with that code in it on two of my three sites.
Title: Re: TinyPortal
Post by: IchBin™ on September 18, 2013, 02:02:29 AM
mod_security can do many things. But I suspect it is not liking something in your code. See if you can narrow down if it is just a part of the code that it doesn't like. But yeah, definitely mod_security IMO.
Title: Re: TinyPortal
Post by: Kindred on September 18, 2013, 08:26:10 AM
try putting that code into a separate php file with an include for SSI.php and try running it....

that way, it won't kill your whole site while you debug
Title: Re: TinyPortal
Post by: DarkAngel612 on September 18, 2013, 01:56:15 PM
I offer no assistance cause still learning php but

I did try it at my very finicky site and it worked as you have it posted.

I even moved the block down further, edited the height of the block and it still works.

IF what is showing is what it is supposed to display

http://thefantasiesattic.net/attic/index.php?action=forum

bottom left
Title: Re: TinyPortal
Post by: MoreBloodWine on September 18, 2013, 07:59:32 PM
Havent gotten into debuggin yet because it works fine, just issues with saving he block so I started on a diff project I'm curious about.

The following is asked in relation to this (http://www.simplemachines.org/community/index.php?topic=511170.msg3608535#msg3608535) since I can't seem to get a response there. Anyway, in the TP stats block where it shows members, guests etc online. What are the $context calls for guests and members.

Riht now what I'm using is $context['num_users_online'] in a custom thing an it's showing a combined total for guests and members curently online.
Title: Re: TinyPortal
Post by: IchBin™ on September 19, 2013, 07:53:27 PM
Here's the code for TP stats. You can see what you need from this.

function TPortal_statsbox()
{
global $context, $settings, $scripturl, $txt, $modSettings;

$bullet = '<img src="'.$settings['tp_images_url'].'/TPdivider.gif" alt=""  style="margin:0 4px 0 0;" />';
$bullet2 = '<img src="'.$settings['tp_images_url'].'/TPdivider2.gif" alt="" style="margin:0 4px 0 0;" />';

echo'
<div class="tp_statsblock">';

if(isset($context['TPortal']['userbox']['stats']))
// members stats
echo '
<h5 class="mlist"><a href="'.$scripturl.'?action=mlist">'.$txt['members'].'</a></h5>
<ul>
<li>' . $bullet. $txt['total_members'].': ' , isset($modSettings['memberCount']) ? $modSettings['memberCount'] : $modSettings['totalMembers'] , '</li>
<li>' . $bullet. $txt['tp-latest']. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><strong>', $modSettings['latestRealName'], '</strong></a></li>
</ul>';
if(isset($context['TPortal']['userbox']['stats_all']))
// more stats
echo '
<h5 class="stats"><a href="'.$scripturl.'?action=stats">'.$txt['tp-stats'].'</a></h5>
<ul>
<li>'.  $bullet. $txt['total_posts'].': '.$modSettings['totalMessages']. '</li>
<li>'.  $bullet. $txt['total_topics'].': '.$modSettings['totalTopics']. '</li>
<li>' . $bullet. $txt['tp-mostonline-today'].': '.$modSettings['mostOnlineToday'].'</li>
<li>' . $bullet. $txt['tp-mostonline'].': '.$modSettings['mostOnline'].'</li>
<li>('.timeformat($modSettings['mostDate']).')</li>
</ul>';

if(isset($context['TPortal']['userbox']['online']))
{
// add online users
echo '
<h5 class="online"><a href="'.$scripturl.'?action=who">'.$txt['online_users'].'</a></h5>
<div style="line-height: 1.3em;">';

$online = ssi_whosOnline('array');
echo  $bullet. $txt['tp-users'].': '.$online['num_users']. '<br />
'. $bullet. $txt['tp-guests'].': '.$online['guests'].'<br />
'. $bullet. $txt['tp-total'].': '.$online['total_users'].'<br />
<div style="max-height: 23em; overflow: auto;">';

foreach($online['users'] as $user)
{
echo  $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];
echo '<br />';
}
echo '
</div></div>';
}
echo '
</div>';
}
Title: Re: TinyPortal
Post by: j0hny21 on October 05, 2013, 12:10:42 PM
I have a problem with shoutbox, in the panel is not visible at all talks, and in the 50 most recent calls you will see a message only after you select a mouse!
(http://s23.postimg.org/h63r2guez/shout.png)

This that can be seen that the messages after they are selected a mouse, is the fault of the selected theme but how to change it? And why do not see a message in the main panel?

I had previous a Simple Portal maybe This is a wine that I can't see the shouts? How to fix? Pls help.
Title: Re: TinyPortal
Post by: DarkAngel612 on October 05, 2013, 01:29:35 PM
Quote from: j0hny21 on October 05, 2013, 12:10:42 PM
I have a problem with shoutbox, in the panel is not visible at all talks, and in the 50 most recent calls you will see a message only after you select a mouse!
(http://s23.postimg.org/h63r2guez/shout.png)

This that can be seen that the messages after they are selected a mouse, is the fault of the selected theme but how to change it? And why do not see a message in the main panel?

I had previous a Simple Portal maybe This is a wine that I can't see the shouts? How to fix? Pls help.

When you uninstalled the other portal did you go to your server files and make sure EVERY file from it was removed?

Did you get any errors when you installed TinyPortal?

What version of SMF are you using?

Have you tried to uninstall it totally then reinstall it?

A link would be most helpful especially if the box can be seen by guests.

What theme is it not behaving in or is it all themes?
Title: Re: TinyPortal
Post by: j0hny21 on October 05, 2013, 02:51:40 PM
Quote from: DarkAngel612 on October 05, 2013, 01:29:35 PM
Quote from: j0hny21 on October 05, 2013, 12:10:42 PM
I have a problem with shoutbox, in the panel is not visible at all talks, and in the 50 most recent calls you will see a message only after you select a mouse!
(http://s23.postimg.org/h63r2guez/shout.png)

This that can be seen that the messages after they are selected a mouse, is the fault of the selected theme but how to change it? And why do not see a message in the main panel?

I had previous a Simple Portal maybe This is a wine that I can't see the shouts? How to fix? Pls help.

When you uninstalled the other portal did you go to your server files and make sure EVERY file from it was removed?

Did you get any errors when you installed TinyPortal?

What version of SMF are you using?

Have you tried to uninstall it totally then reinstall it?

A link would be most helpful especially if the box can be seen by guests.

What theme is it not behaving in or is it all themes?

1 - No, I have no idea where these files are placed

2 - No error when instaled

3 - 2.0.5

4 - Yes and still the same

5 - On other browsers as well as guest

6 - On all themes

I have other forum and there is running fine, so this is the only issue on these forums, if I knew how files are responsible for the shoutbox, I could it replace, and how to delete previous portal?
Title: Re: TinyPortal
Post by: lurkalot on October 05, 2013, 03:02:58 PM
Quote from: DarkAngel612 on October 05, 2013, 01:29:35 PM

A link would be most helpful especially if the box can be seen by guests.


@ j0hny21   You seem to have missed this bit
Title: Re: TinyPortal
Post by: DarkAngel612 on October 05, 2013, 03:25:20 PM
@j0hny21:

to manually remove the files from the first portal you need to pend its zip, then go with your ftp to your server files.

look through the folders on your zip and the matching folder on the server to see if any of the zipp files are still up there...if there are then just delete them.

The other forums --- did you have simple portal before installing TP in them too?
Title: Re: TinyPortal
Post by: j0hny21 on October 05, 2013, 04:44:31 PM
Quote from: DarkAngel612 on October 05, 2013, 03:25:20 PM
@j0hny21:

to manually remove the files from the first portal you need to pend its zip, then go with your ftp to your server files.

look through the folders on your zip and the matching folder on the server to see if any of the zipp files are still up there...if there are then just delete them.

The other forums --- did you have simple portal before installing TP in them too?

Yes I fixed it! enough backup before simpe portal, but by my theme I can't see the characters, can somehow change the font color?
Title: Re: TinyPortal
Post by: DarkAngel612 on October 05, 2013, 05:11:07 PM
glad you got fixed so now you just need the text done differently...lol...that is how I doctored some of my dark templates too.

here is what i did

1. make a copy of the TPShout.css in the default template folder and save it to your desktop

2. change this area:

.tp_shoutbody
{
    background: #ffffff;  < ---- this changes the litle box background color
    border: solid 1px #888;
    border-top: none;
    line-height: 1.3em;
    margin: 0 5px 8px 0;
    padding: 8px;
    font-size: 0.9em;
    overflow: auto;
    color: #eee; < --- this changes the text color -- I added this when I changed mine to a #000 background color
   
}
then save it and upload it to your template that is not showing the text.
Title: Re: TinyPortal
Post by: lurkalot on October 06, 2013, 04:11:42 AM
Quote from: DarkAngel612 on October 05, 2013, 05:11:07 PM
glad you got fixed so now you just need the text done differently...lol...that is how I doctored some of my dark templates too.

here is what i did

1. make a copy of the TPShout.css in the default template folder and save it to your desktop

2. change this area:

.tp_shoutbody
{
    background: #ffffff;  < ---- this changes the litle box background color
    border: solid 1px #888;
    border-top: none;
    line-height: 1.3em;
    margin: 0 5px 8px 0;
    padding: 8px;
    font-size: 0.9em;
    overflow: auto;
    color: #eee; < --- this changes the text color -- I added this when I changed mine to a #000 background color
   
}
then save it and upload it to your template that is not showing the text.


There's also couple of files attached to the last post here, http://www.tinyportal.net/index.php?topic=32443.10 these will fix the issues with the text and the text bubble in darker themes. It's what I use here for example, http://guitaristguild.com/index.php?theme=3
Title: Re: TinyPortal
Post by: DarkAngel612 on October 06, 2013, 05:01:13 AM
aha, you sneaky critter...LOL I left my bubble white and found that even though it installs I still had to manually upload the images fodler to the individual themes folders.
Title: Re: TinyPortal
Post by: j0hny21 on October 06, 2013, 05:23:45 AM
Wow cool :) Can adjust yourself according to your needs :D thanks you so much guys :)

now my shout see that :D
(http://s2.postimg.org/pq77k9r95/Bez_tytu_u.png)
Title: Re: TinyPortal
Post by: stylusss on October 10, 2013, 12:11:03 AM
Long time supporter -- OK, I would like to know how to disable all portals, all blocks, pretty much everything if the member who comes to the forum is banned?
Title: Re: TinyPortal
Post by: DarkAngel612 on October 10, 2013, 12:27:28 AM
Quote from: stylusss on October 10, 2013, 12:11:03 AM
Long time supporter -- OK, I would like to know how to disable all portals, all blocks, pretty much everything if the member who comes to the forum is banned?

Well when you create your blocks then make sure you unic the "guests" so that only  admin/members view theblocks then uncheck them all for just admi seeing them.

That should work.
Title: Re: TinyPortal
Post by: stylusss on October 10, 2013, 12:40:37 AM
What if I still want guests to view blocks? :-\ I want to totally disable the portals if the member or IP is banned.
Title: Re: TinyPortal
Post by: DarkAngel612 on October 10, 2013, 12:45:27 AM
Quote from: stylusss on October 10, 2013, 12:40:37 AM
What if I still want guests to view blocks? :-\ I want to totally disable the portals if the member or IP is banned.

not exactly sure if possible but, I know they get this message: Sorry Guest, you are banned from using this forum and assume they can not see forum but never thought to ask...and did not pay attention when I accidently banned myself...LOL

but you could ban the IP address in your htaccess file on the server, maybe that will keep them out of the forum and seeing anything.
Title: Re: TinyPortal
Post by: stylusss on October 10, 2013, 12:18:21 PM
Can anyone else please chime in on this?
Title: Re: TinyPortal
Post by: Burke ♞ Knight on October 10, 2013, 12:23:08 PM
Could set up a member group for banned users, and set their permissions to see nothing, and leave the portal viewable to guests.
Title: Re: TinyPortal
Post by: stylusss on October 10, 2013, 12:24:40 PM
Quote from: BurkeKnight on October 10, 2013, 12:23:08 PM
Could set up a member group for banned users, and set their permissions to see nothing, and leave the portal viewable to guests.

Is there a mod that automatically puts people in a banned membergroup?

This is too much work guys, there have to be a make-shift shutoff swtich... Ie, if member is banned echo nothing.
Title: Re: TinyPortal
Post by: Burke ♞ Knight on October 10, 2013, 12:29:16 PM
Quote from: stylusss on October 10, 2013, 12:24:40 PM
This is too much work guys, there have to be a make-shift shutoff swtich... Ie, if member is banned echo nothing.

Sorry, but you'd have to search for that in at the Mod Site (http://custom.simplemachines.org/mods/index.php).

However, I do have to say, the whole part of being an admin of a site is to work the site. Some things you will have to do. There is not going to be a mod for doing everything on a site. That is one reason why there are admins and moderators.

Title: Re: TinyPortal
Post by: stylusss on October 10, 2013, 12:34:27 PM
Thanks for teaching me how to be an admin, I nearly forgot how to handle 100K members...

I hope Ichbin can chime in, he's the only person who would know.
Title: Re: TinyPortal
Post by: Kindred on October 10, 2013, 12:34:42 PM
actually, no....  there is no such shut-off and there is no mod to do so, either... to the best of my knowledge.

Either you ban them by IP in htaccess or you put them into a special group which has all options turned off/hidden.

What you are asking for is unusual and not the general way people deal with bans.
Seriously, who cares if they can SEE your site? (after all, even if they are banned, they could go to a different computer and view the site as a guest)
The only thing that BANNING does is to prevent them from logging in and use the rights of a user.


Also, it would behoove you to try being a little less rude. Especially to the staff who have spent a lot of time in SMF code and probably know what the system is capabale of.
Title: Re: TinyPortal
Post by: Burke ♞ Knight on October 10, 2013, 12:40:52 PM
1. Thank you Kindred.

2. stylusss, I was meaning your subtle comment that I quoted, which basically implies that you want a mod to do everything. That is why I said what I did. I am a firm believer that an admin has to do some of the things they want done, without resorting to mods for everything. It was not meant to be an insult, as you took it. It was meant as advice that sometimes, you have to rely on yourself, not a mod.

3. Kindred is right. Rudeness is not going to help anything, and can further delay help, as we have to deal with that, instead of the issue.
Title: Re: TinyPortal
Post by: IchBin™ on October 10, 2013, 10:48:33 PM
stylusss, you may be able to try this.

In Sources/TPortal.php right after the global line of the TPortal_init() function.

if (isset($_SESSION['ban']['cannot_access']))
    return;


This should disable most of TP. But I'm not sure if all of it will be. Let me know if it works.
Title: Re: TinyPortal
Post by: stylusss on October 10, 2013, 11:33:39 PM
Quote from: IchBin™ on October 10, 2013, 10:48:33 PM
stylusss, you may be able to try this.

In Sources/TPortal.php right after the global line of the TPortal_init() function.

if (isset($_SESSION['ban']['cannot_access']))
    return;


This should disable most of TP. But I'm not sure if all of it will be. Let me know if it works.

Thank you, IchBin™, it worked.

Take care. 
Title: Re: TinyPortal
Post by: hellboy78 on October 15, 2013, 09:16:33 AM
I cannot find where to access the TP admin-setting
Title: Re: TinyPortal
Post by: DarkAngel612 on October 15, 2013, 03:32:22 PM
Quote from: hellboy78 on October 15, 2013, 09:16:33 AM
I cannot find where to access the TP admin-setting

depending on the theme you are using is where the Tinyportal menu is seen...but do you mean in the admin section itself? If not then look in the main navigation of the theme or in some it is in the upper right corner...those confuse me a bit at times.
Title: Re: TinyPortal
Post by: IchBin™ on October 15, 2013, 05:50:22 PM
Should be in the main menu of your theme. Unless it's a custom theme that is doing a custom menu that may not include it. You can check in the SMF curve theme. Otherwise you can access it directly.
index.php?aciton=tpadmin
Title: Re: TinyPortal
Post by: stog on December 05, 2013, 07:29:16 AM
hi

i have tp 1 installed in a fresh smf 2.6 test installation with a bloc theme.
i am getting lots of the following errors ()line 18 seems to be scrolling duration but scrolling is off)

Quote8: Undefined variable: txt
Apply Filter: Only show the errors from this file
File: /-----/Themes/default/languages/TPShout.english.php (tp_below sub template - eval?)
Line: 18

can anyone help

thx in advance
Title: Re: TinyPortal
Post by: IchBin™ on December 05, 2013, 05:04:54 PM
In Admin > Configuration > Server settings > General

Check box to disable template eval. Then look at the errors after new error have been output to the log. It should show you a more specific error, telling you the proper file and line number of where the error occurs.
Title: Re: TinyPortal
Post by: stog on December 06, 2013, 03:18:22 PM
thx
Quote.../Themes/default/TPsubs.template.php(114) : eval()'d code
Line: 18

is the 114 in brackets the line or is it line 18 which is empty
Title: Re: TinyPortal
Post by: IchBin™ on December 06, 2013, 05:29:26 PM
That means you have a $txt variable in one of your PHP blocks that does not have $txt declared in the global.

You need this at the top of any block that calls a $txt variable.
global $txt;
Title: Re: TinyPortal
Post by: stog on December 06, 2013, 06:07:54 PM
thx IchBin™

looking through the php code blocks i can't see any likely culprits, but will look again and report back

the original error (before disabling template eval) cited the shoutbox.....TPShout.english.php

could that then not be involved?


found it! thx -->it was missing in a recent topics block

Quoteglobal $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=&quot;width: 100%; overflow: auto; height: 30ex;&quot;>';

foreach($what as $w)
{
   echo '
   <div class=&quot;smalltext&quot;><a href=&quot;'.$w['href'].'&quot;>' . $w['short_subject'] . '</a></div>
   <div class=&quot;smalltext&quot;>', $txt['by'], ' <b>', $w['poster']['link'], '</b></div>
   <div class=&quot;smalltext&quot;>';
   if(!$w['new'])
      echo '<a href=&quot;'.$w['href'].'&quot;><img border=&quot;0&quot; src=&quot;'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif&quot; alt=&quot;new&quot; /></a> ';

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

   if($counter != $cmax)
      echo '<hr />';
   $counter++;
}
echo '
</div>';

the subject line is truncated in the output and i would like to know in which file i can edit the short subject length? -- i did ask this for my 1.1.19 installation a couple of years ago and you told me on the TP Site so i'll go and have a look , but it may be that with smf 2 the file is different or installed in a different place
Title: Re: TinyPortal
Post by: IchBin™ on December 06, 2013, 06:10:46 PM
Nope, TPShout has nothing to do with it as far as I can tell. When you disable the template eval, it actually gives you the link in the file that tells you where he error occurs. The TPsubs.template.php is where the PHP blocks code is eval()'d.

One way to find it is to turn off all your blocks. Then enable one by one, each time checking the log after viewing the page with the block turned on.
Title: Re: TinyPortal
Post by: stog on December 06, 2013, 06:30:13 PM
cheers original query sorted!

found the missing global thx

found the 'short_subject'  file -- tpsubs in sources as before

'short_subject'  just increased the characters to 50 and but no still truncated! (its the code above btw)

(original thread from smf 1 version here http://www.tinyportal.net/index.php?topic=32736.msg262843#msg262843)
Title: Re: TinyPortal
Post by: ZarPrime on December 10, 2013, 09:32:25 PM
Stog,

Have a look at this page --> http://www.tinyportal.net/index.php?page=recent

This is an article I created a while back to show 2 different sets of block codes.  The bottom one is about the same as the top one except the top one shows the avatar of the last poster and the bottom one has preview on hover, when hovering over the subject.  If either of these will work for you, login over there and ask me for the code of the one you like and I'll give it to you.  Remember, these are both for SMF 2.0 +

ZarPrime
Title: Re: TinyPortal
Post by: stog on December 17, 2013, 10:23:49 AM
thx zar have pm-d you
Title: Re: TinyPortal
Post by: ZarPrime on December 17, 2013, 10:29:41 AM
OK Stog,

I'll check it and respond in a few. ;)

ZarPrime
Title: Re: TinyPortal
Post by: neoz on December 17, 2013, 10:34:09 PM
Hello,

I tried the tiny portal. Can i change the languages to my native?? I have to edit the  TPShout.english.php for that. Would like to use Asian language in my smf forum.
Title: Re: TinyPortal
Post by: Kindred on December 18, 2013, 08:25:18 AM
If you change the default language of your main SMF installation, TinyPortal will follow...
(of course, only if the language file for your language exists)
Title: Re: TinyPortal
Post by: ZarPrime on December 18, 2013, 09:08:53 AM
neoz,

What Kindred says is correct of course.  However, there are several language files in English that are specifically for TinyPortal that come with the package that should be translated for your language.

I can tell you which files need to be translated to your language for full use of TinyPortal on your Forum, if you will register and login over at our site --> http://www.tinyportal.net/index.php?action=forum (http://www.tinyportal.net/index.php?action=forum)

Once you are there, post a topic to our support board and one of the other Support people, or myself, will be able to help you with this.

The image attached below shows the TinyPortal language files that need to be translated to your language once your Forum is using the language files of your own language.  If you don't use utf8, you will not have to translate those.  Any questions about how to do this, please ask here or over at TinyPortal.net and someone will help you.

ZarPrime
Title: Re: TinyPortal
Post by: ktm450ds on January 01, 2014, 12:46:07 AM
Sorry if this has been answered, but I'm new to this. I tried to load the tinyportal and after uninstalling it I can't see to get my forum to load. Is there any way to fix this?
Title: Re: TinyPortal
Post by: IchBin™ on January 02, 2014, 12:13:53 PM
If your forum doesn't load something went wrong with the uninstall process. I'd restore the backup you made before you made any changes. You did back things up right?
Title: Re: TinyPortal
Post by: SirAlahn on January 25, 2014, 04:17:28 AM
Having recently installed TinyPortal on my site, I was wondering if it would be possible for me to make two "Recent Topics" blocks, both of which pull from only select (and different) boards from which to display the topics. Is that possible? I found some resources about modifying the SSI.php code in order to display only topics form certain boards for one block, but the example codes were dissimilar enough from mine that I do not feel comfortable editing it myself. Help even to do that would be extremely welcome.

To any who respond, thank you in advance! Your help is greatly appreciated.
Title: Re: TinyPortal
Post by: ZarPrime on January 25, 2014, 04:48:00 PM
If you are wanting the blocks in the top, upper, lower, or bottom panel, you could just use use the ssi recent topics code for that.  Unfortunately, the output wouldn't be suitable for a left of right panel block because the output is not really formatted correctly for that.  For instance, to get topics from Board #3, ...

Code (Change This) Select
ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo');


Code (To This) Select
ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = 3, $output_method = 'echo');

If you want something for the left or right panel, there is a block code snippet on http://www.tinyportal.net (http://www.tinyportal.net) that should work fine for what you want to do.  It's at this link --> http://www.tinyportal.net/index.php?topic=33026.0 (http://www.tinyportal.net/index.php?topic=33026.0)

If you have questions about how to use it, you can post in this topic --> http://www.tinyportal.net/index.php?topic=33024.0 (http://www.tinyportal.net/index.php?topic=33024.0)

ZarPrime
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 19, 2014, 11:35:21 PM

Trying to install TP1.0 on a clean 2.0.7 forum, getting error  for /Sources/QueryString.php.  Reason for this?

Title: Re: TinyPortal
Post by: lurkalot on February 20, 2014, 03:45:27 AM
Quote from: Krash. on February 19, 2014, 11:35:21 PM

Trying to install TP1.0 on a clean 2.0.7 forum, getting error  for /Sources/QueryString.php.  Reason for this?



Reason is TP hasn't been updated to run on 2.0.7 yet. It will be soon though.  However the patch was updated to work with TP, so as a work around, uninstall the 2.0.7 patch, install TP 1.0, then reinstall the 2.0.7 patch. ;)
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 20, 2014, 03:01:33 PM
<sigh>

It wasn't patched, it's an original 2.0.7 install.  I can do the edit manually, but will it work?


Title: Re: TinyPortal
Post by: Kindred on February 20, 2014, 09:57:05 PM
Krash - you missed the point, I think.

TP will install on a 2.0.6 forum and then the 2.0.7 patch will work with it.
TP will not currently  install on any version of 2.0.7 (patched or fresh install)
Title: Re: TinyPortal
Post by: IchBin™ on February 20, 2014, 11:24:01 PM
Working on an update now. Fixes are in for the 2.0.7 SMF update. And updated some things in TP. Mostly shoutbox updates to make it use ajax etc. News is on TP frontpage if you want to check it out. Just waiting for some more testing to make sure everything is ok before release.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 21, 2014, 02:02:39 PM
Quote from: Kindred on February 20, 2014, 09:57:05 PM
Krash - you missed the point, I think.

No, I didn't.  If I understand correctly, would have to downgrade from 2.0.7 to 2.0.6 by installing 2.0.6 upgrade package, install TP, then 2.0.7 upgrade patch, then reinstall mods and code edits.  Hardly seems worth it.

Quote from: IchBin™ on February 20, 2014, 11:24:01 PM
Working on an update now. Fixes are in for the 2.0.7 SMF update. And updated some things in TP. Mostly shoutbox updates to make it use ajax etc. News is on TP frontpage if you want to check it out. Just waiting for some more testing to make sure everything is ok before release.

Will take a look tonight.
Title: Re: TinyPortal
Post by: Erron on February 27, 2014, 04:22:48 PM
Hiyas, any update on the update for 2.0.7?

i did a full patch to 2.0.7 and we use tinyportal for many integral parts of the site.

Apologies for hassling you, just desperate :)
Title: Re: TinyPortal
Post by: Kindred on February 27, 2014, 05:42:37 PM
if you did a patch, then you should be fine...
Title: Re: TinyPortal
Post by: IchBin™ on February 27, 2014, 07:00:48 PM
Latest update is here. Code isn't released yet, but available for testing on Github if you are brave. :)
http://www.tinyportal.net/index.php?topic=35301
Title: Re: TinyPortal
Post by: MoreBloodWine on March 01, 2014, 06:22:55 PM
TP needs updating, the edit to sources/QueryString.php looks for

$buffer = preg_replace

but here's what exisits

$buffer = preg_replace_callback
Title: Re: TinyPortal
Post by: lurkalot on March 01, 2014, 06:28:19 PM
Quote from: MoreBloodWine on March 01, 2014, 06:22:55 PM
TP needs updating, the edit to sources/QueryString.php looks for

$buffer = preg_replace

but here's what exisits

$buffer = preg_replace_callback

Thanks. We are aware.  Did you read the posts above by any chance. ;)
Title: Re: TinyPortal
Post by: MoreBloodWine on March 01, 2014, 07:59:27 PM
Quote from: lurkalot on March 01, 2014, 06:28:19 PM
Quote from: MoreBloodWine on March 01, 2014, 06:22:55 PM
TP needs updating, the edit to sources/QueryString.php looks for

$buffer = preg_replace

but here's what exisits

$buffer = preg_replace_callback
Thanks. We are aware.  Did you read the posts above by any chance. ;)
Did just now, when I made that post I just came here and hit reply from page one then left to go back to my site heh.

Got TP workin ok though with the manual edit.
Title: Re: TinyPortal
Post by: lurkalot on March 02, 2014, 03:32:04 AM
Glad you got it working.  The update shouldn't be too long, we've just got to test things a bit more and we'll be there.  I think you'll like some of the changes made to the new version. ;)
Title: Re: TinyPortal
Post by: Biology Forums on April 04, 2014, 12:24:42 PM
How do I activate tinyportal panels to appear in the 'help' action?
Title: Re: TinyPortal
Post by: Biology Forums on April 05, 2014, 01:41:49 AM
Figured it out: Go to Tportal.php --> Find if (in_array($context['TPortal']['a --> Remove 'help'
Title: Re: TinyPortal
Post by: Padre gremista on May 29, 2014, 09:26:52 PM
How make show full topic title in blocks? It's a example in annex of the problem.
Title: Re: TinyPortal
Post by: Kunari on May 30, 2014, 06:58:59 PM
Hey there, I'm having an issue with Tinyportal not redirecting login's to the forums.  I have the option selected in the Settings for tinyportal, but it keeps redirecting everything to the frontpage regardless of which option I have chosen.

Right now the login directs them to /index.php which I'm guessing is just the default.

I'd like for it to redirect to /index.php?action=forum if at all possible.  Just not sure how to go about doing it.

Thanks.
Title: Re: TinyPortal
Post by: IchBin™ on May 30, 2014, 07:04:24 PM
@gremista,
In Themes/default/TPsubs.template.php file look for this line:
echo '
<li' , $coun<count($what) ? '' : ' style="border: none; margin-bottom: 0;padding-bottom: 0;"'  , '>
<span class="tpavatar"><a href="' . $scripturl. '?action=profile;u=' . $w['poster']['id'] . '">' , empty($w['poster']['avatar']) ? '<img src="' . $settings['tp_images_url'] . '/TPguest.png" alt="" />' : $w['poster']['avatar'] , '</a></span><a href="'.$w['href'].'">' . $w['short_subject'].'</a>
', $txt['by'], ' <b>', $w['poster']['link'],'</b> ';


Change $w['short_subject'] to $w['subject']


@Kunari,
What version are you using? I seem to recall fixing that some time ago. I think it was related to having the apache friendly URL's setting turned on in SMF. It should be fixed if you are running TP1.0 I think.
Title: Re: TinyPortal
Post by: Kunari on May 30, 2014, 08:44:25 PM
Quote from: IchBin™ on May 30, 2014, 07:04:24 PM
@Kunari,
What version are you using? I seem to recall fixing that some time ago. I think it was related to having the apache friendly URL's setting turned on in SMF. It should be fixed if you are running TP1.0 I think.

I'm using version 1.107.  It's a clean install I just did a couple days ago so it's the most current SMF and Tinyportal.
Title: Re: TinyPortal
Post by: IchBin™ on May 31, 2014, 01:36:24 AM
Working fine for me in my tests. Are you getting any errors in your SMF log when you try to set the option in admin? Or when someone logs into the forum?
Title: Re: TinyPortal
Post by: Kunari on May 31, 2014, 02:46:18 AM
I ended up going into the Settings and choosing go directly to forum index and it works now.  I feel like an idiot.  Thanks though.
Title: Re: TinyPortal
Post by: IchBin™ on June 01, 2014, 12:23:13 PM
I thought you already said you had selected that option? Anyway, glad you got it figured out.
Title: Re: TinyPortal
Post by: Padre gremista on June 01, 2014, 06:08:52 PM
@Ichbin

The solution that you posted is not working. The problem remains.
Title: Re: TinyPortal
Post by: IchBin™ on June 01, 2014, 09:26:00 PM
What settings are you using for the recent topics block?
Title: Re: TinyPortal
Post by: Bigguy on June 01, 2014, 09:54:23 PM
Is there a beta version for 2.1 yet. ??
Title: Re: TinyPortal
Post by: Padre gremista on June 01, 2014, 10:44:37 PM
Quote from: IchBin™ on June 01, 2014, 09:26:00 PM
What settings are you using for the recent topics block?

This below in annex.
Title: Re: TinyPortal
Post by: IchBin™ on June 02, 2014, 01:04:55 PM
Quote from: Padre gremista on June 01, 2014, 10:44:37 PM
Quote from: IchBin™ on June 01, 2014, 09:26:00 PM
What settings are you using for the recent topics block?

This below in annex.

You must have made the edit in the wrong place. There are two places that short_subject appears in the recent posts box code. The first is for recent posts when you don't have avatars turned on, the second is when avatars are turned on. I just made the change and verified it works. So you probably just need to make the 2nd edit. The 2 places in the code are only like 20 lines from each other or so.
Title: Re: TinyPortal
Post by: IchBin™ on June 02, 2014, 01:05:42 PM
Quote from: Bigguy on June 01, 2014, 09:54:23 PM
Is there a beta version for 2.1 yet. ??

No plans to release another TP version until SMF reaches it's first RC release for 2.1.
Title: Re: TinyPortal
Post by: Bigguy on June 02, 2014, 05:17:29 PM
Ok, thanks IchBin. :)
Title: Re: TinyPortal
Post by: Padre gremista on June 02, 2014, 09:02:00 PM
Thanks Ichbin, it Works.
Title: Re: TinyPortal
Post by: MoreBloodWine on May 23, 2015, 05:08:30 PM
Is TP even still managed / under development ?

Just saw the last time the "mod" was updated. Anyway, went to go install on a new 2.0.10 site and got this fail.

./Sources/QueryString.php

While I'm sure I could just make the hand edit finding current lines, I'm sure I'd be overwriting something that probably shouldnt be looking at the subtle changes from the old "find" to the new "find".

Ty.
Title: Re: TinyPortal
Post by: DarkAngel612 on May 23, 2015, 07:04:07 PM
Quote from: MoreBloodWine on May 23, 2015, 05:08:30 PM
Is TP even still managed / under development ?

Just saw the last time the "mod" was updated. Anyway, went to go install on a new 2.0.10 site and got this fail.

./Sources/QueryString.php

While I'm sure I could just make the hand edit finding current lines, I'm sure I'd be overwriting something that probably shouldnt be looking at the subtle changes from the old "find" to the new "find".

Ty.

Yes it is being managed still and works perfectly as always...yes I am biased cause I have used this for centuries...LOL

You should not overwrite anything by doing the manual edit it is only 1 bit of code that distinctly says TP, hope they fix this in the next generation of it though.
Title: Re: TinyPortal
Post by: MoreBloodWine on May 23, 2015, 07:08:48 PM
Quote from: DarkAngel612 on May 23, 2015, 07:04:07 PM
Quote from: MoreBloodWine on May 23, 2015, 05:08:30 PM
Is TP even still managed / under development ?

Just saw the last time the "mod" was updated. Anyway, went to go install on a new 2.0.10 site and got this fail.

./Sources/QueryString.php

While I'm sure I could just make the hand edit finding current lines, I'm sure I'd be overwriting something that probably shouldnt be looking at the subtle changes from the old "find" to the new "find".

Ty.

Yes it is being managed still and works perfectly as always...yes I am biased cause I have used this for centuries...LOL

You should not overwrite anything by doing the manual edit it is only 1 bit of code that distinctly says TP, hope they fix this in the next generation of it though.
I like to have things done in completeness, that being said, guess I wont be using TP on this new site less someone from the team wan'ts to get a quick hotfix update posted for DL here on the mods page.
Title: Re: TinyPortal
Post by: DarkAngel612 on May 23, 2015, 07:16:48 PM

Quote from: MoreBloodWine on May 23, 2015, 05:08:30 PM

I like to have things done in completeness, that being said, guess I wont be using TP on this new site less someone from the team wan'ts to get a quick hotfix update posted for DL here on the mods page.

Sorry to hear that the only reason you won't use it id due to one manual edit, there are many mods that need manual editing for templates of site files and still have problems. This mod just need the one copy/paste to proper are and that is it and has features that are easy to use.
Title: Re: TinyPortal
Post by: MoreBloodWine on May 23, 2015, 07:21:00 PM
Quote from: DarkAngel612 on May 23, 2015, 07:16:48 PM

Quote from: MoreBloodWine on May 23, 2015, 05:08:30 PM

I like to have things done in completeness, that being said, guess I wont be using TP on this new site less someone from the team wan'ts to get a quick hotfix update posted for DL here on the mods page.

Sorry to hear that the only reason you won't use it id due to one manual edit, there are many mods that need manual editing for templates of site files and still have problems. This mod just need the one copy/paste to proper are and that is it and has features that are easy to use.
The thing is, the manual edit for all I know may cause problems if made. There's subtle differences to the find and replace. One of which I noticed is the word callback in two lines in the existing 2.0.10 code. Didn't look for anything else really... so while yes I can and have for other mods made manual edits. Why make this one without knowing what may or may not break due to the sublt differences in the code from what it was then in smf to what it is now that flags the error in said file.
Title: Re: TinyPortal
Post by: DarkAngel612 on May 23, 2015, 07:34:09 PM
I believe that SMF flags it due to the "callback" being in the text now but I have used it and am using it in all 8 of our forums plus the ones I manage and have no problems. As I said you locate the area it goes into, copy/paste the code that is given to the area and no problems that I have had with smf nor TP

but ultimately sweety the choice is yours to try or not. you can always remove the mod and the text you pasted in there if you decide not to use it.

I just know I have tried this mod and yes the simple portal and much prefer this one...that is just me.
Title: Re: TinyPortal
Post by: IchBin™ on June 01, 2015, 05:34:35 PM
The code has been updated for the next release already.  It just needs to get out the door. Not sure what the hold up is at this point. I think it's just time for testing other things that are coming out with it.

Essentially, TP is only adding this to those two spots it's altering.

(?:board|topic) will become (?:board|topic|page|cat)
Title: Re: TinyPortal
Post by: Steve on June 01, 2015, 06:24:31 PM
Can't wait. Love this portal. :)
Title: Re: TinyPortal
Post by: DarkAngel612 on June 01, 2015, 06:27:39 PM
so does me, myself and I
Title: Re: TinyPortal
Post by: eldritch1969 on June 02, 2015, 03:43:58 PM
Hi !
Nice portal ! Sorry if it has already been asked, but how do you integrate The mod called Teasury
to show on the front page.
It's said TP can integrate it, but I haven't found out exactly how.
Could you explain how it's done, please ?
Thanks
Title: Re: TinyPortal
Post by: IchBin™ on June 02, 2015, 04:40:41 PM
Don't know anything about someone else's mod. You'll have to ask who ever wrote the Treasury mod to help you with that.
Title: Re: TinyPortal
Post by: eldritch1969 on June 03, 2015, 03:30:12 AM
Thx for your answer, I'll sort it out later :)

Can you tell me if there's a way to replicate the sliding pictures space that you have installed on Tiny Portal landpage ?

Thanks again or your time
Title: Re: TinyPortal
Post by: IchBin™ on June 03, 2015, 11:33:22 AM
I do believe this is the site they got that slider from.
http://wowslider.com/
Title: Re: TinyPortal
Post by: lurkalot on June 03, 2015, 12:31:43 PM
Quote from: eldritch1969 on June 03, 2015, 03:30:12 AM

Can you tell me if there's a way to replicate the sliding pictures space that you have installed on Tiny Portal landpage ?


Quote from: IchBin™ on June 03, 2015, 11:33:22 AM
I do believe this is the site they got that slider from.
http://wowslider.com/

Correct, it is wowslider.  ;) I was only a temporary one until I found something easier to use, but didn't get around to it.
Title: Re: TinyPortal
Post by: villasg on June 06, 2015, 06:13:24 AM
Hi .
Just updated ( upgrade ) from smf 1.1.2 & TP 0982 to 2.0.10 .
I try to install the TinyPortal1_0_2 but i receive an error :
./Sources/QueryString.php   ----> Failed .

Any help please ?

Thanks
Title: Re: TinyPortal
Post by: Kindred on June 06, 2015, 07:25:19 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: TinyPortal
Post by: villasg on June 07, 2015, 07:04:23 AM
Ok but my question are : is combatible with the 2.0.10 version of smf ?
Title: Re: TinyPortal
Post by: Kindred on June 07, 2015, 07:44:20 AM
yes, otherwise it would not have even gotten to the success/error portion.
Title: Re: TinyPortal
Post by: villasg on June 07, 2015, 08:10:00 AM
Thanks but i try to install in a virgin - fresh smf without any mod .
The 1st mod i have try are TinyPortal  .
Strange i restore my old forum and upgrade again and try to install first this mod .
Thanks
Title: Re: TinyPortal
Post by: sangham.net on June 19, 2015, 02:56:19 AM
The "hidden" treasure of TP.

Valued Mr. IchBin,
Valued TP Friends and supporters,

Where could one find the code the TPs "search in Article" to be able to add it into a block or another html? Or maybe some one could even share the code here.

Thanks in advanced!
Title: Re: TinyPortal
Post by: lurkalot on July 26, 2015, 11:31:37 AM
Quote from: sangham.net on June 19, 2015, 02:56:19 AM
The "hidden" treasure of TP.

Valued Mr. IchBin,
Valued TP Friends and supporters,

Where could one find the code the TPs "search in Article" to be able to add it into a block or another html? Or maybe some one could even share the code here.

Thanks in advanced!

I don't have the answer, but you could try asking over at the TP support site, http://www.tinyportal.net someone might be able to help you with this.
Title: Re: TinyPortal
Post by: lurkalot on July 26, 2015, 11:35:33 AM
Quote from: Steve on June 01, 2015, 06:24:31 PM
Can't wait. Love this portal. :)

Actually, we could do with a couple more beta testers if you're interested (and have a test install of SMF).  We need to test TP 1.1 a bit more before we roll it out. ;)
Title: Re: TinyPortal
Post by: IchBin™ on September 10, 2015, 06:46:59 PM
Mod has been updated. Check the first post of this topic or the mod page for more details.  Thanks to all the TP guys for all their work.
Title: Re: TinyPortal
Post by: Ken. on October 04, 2015, 06:54:05 AM
Our TinyPortal Mod has been updated to v.1.1, check the OP (http://www.simplemachines.org/community/index.php?topic=27642.0) in this topic for details and download the zip file HERE (http://custom.simplemachines.org/mods/index.php?mod=97).

We need Beta Testers!!!

We've just released our beta version of TinyPortal for SMF 2.1... get in on the bug smashing, be a Beta Tester for TP.  8)
Title: Re: TinyPortal
Post by: Steve on October 04, 2015, 09:48:22 AM
The instructions say I must uninstall any previous version. If I do that, then install 1.1, am I going to have to rebuild all my blocks?
Title: Re: TinyPortal
Post by: lurkalot on October 04, 2015, 09:58:45 AM
Quote from: Steve on October 04, 2015, 09:48:22 AM
The instructions say I must uninstall any previous version. If I do that, then install 1.1, am I going to have to rebuild all my blocks?

No Steve, your blocks will still be there.  (provided you don't tick the "Remove all data associated with this modification" box) you should be fine. I would however back up your TP files before uninstalling it, just in case you have any images stored in the tp-files folder, downloads folder etc.  Just to be on the safe side. ;)
Title: Re: TinyPortal
Post by: Steve on October 04, 2015, 10:50:50 AM
Cool beans. Thanks. :D
Title: Re: TinyPortal
Post by: lurkalot on October 25, 2015, 05:14:49 PM
Hi all.  Just a quick heads up. We are currently working on a update for Tinyportal 1.1 to sort out a few minor bugs etc, this release will be winging its way to you very soon. 

Also wanted to mention, that if any of you are currently testing SMF 2.1 Beta 2.  Thanks to Illori and the team who have done a fantastic job converting Tinyportal to run on this version of SMF.  You can find it here on our Github Repository (https://github.com/Tinyportal) if you'd like to try it out.  I will stress that as SMF 2.1 Beta 2 is just that, it's a beta, and shouldn't be used on a live site. Please let us know what you think, should you decide to test it. ;)
Title: Re: TinyPortal
Post by: Ken. on November 01, 2015, 08:53:22 AM
We are working on TinyPortal every day, trying to make it even easier to use, and easier to find your way through all the options and features... and TP has lots of features!
And don't forget that our TinyPortal Docs (http://www.tinyportal.net/docs/index.php) are getting a complete rebuild and include lots of images to make the Docs topics even easier to understand.
Like this page detailing our Articles System:
A Beginners Guide to the TinyPortal Article Management System. (http://www.tinyportal.net/docs/index.php?page=11)
Title: Re: TinyPortal
Post by: ArkServer on November 02, 2015, 02:17:14 PM
Fatal error: Cannot redeclare template_editcategory() (previously declared in /home/public_html/.com/community/Sources/Load.php(2383) : eval()'d code:6) in /home/public_html/.com/community/Sources/Load.php(2383) : eval()'d code on line 1640

Installed without any problems and no errors were given but i cant access the settings page
Title: Re: TinyPortal
Post by: Kindred on November 02, 2015, 02:33:45 PM
Looks like you may have installed the new version without uninstalling the old version first...
Title: Re: TinyPortal
Post by: ArkServer on November 02, 2015, 02:38:06 PM
Quote from: Kindred on November 02, 2015, 02:33:45 PM
Looks like you may have installed the new version without uninstalling the old version first...

no fresh install but i fixed it. There was a mod that uses the same function name as this one and it conflicted, i rewrote it and it works now.
Title: Re: TinyPortal
Post by: Steve on November 03, 2015, 09:27:18 AM
Which mod?
Title: Re: TinyPortal
Post by: ArkServer on November 03, 2015, 05:14:08 PM
Quote from: Steve on November 03, 2015, 09:27:18 AM
Which mod?

footermenu, same function name
Title: Re: TinyPortal
Post by: Ken. on November 24, 2015, 01:02:48 PM
Update:

Just wanted to let you know that our work on the Docs Boards (http://www.tinyportal.net/docs/index.php) continues.
We've now completed populating the boards for the TinyPortal 1.1 Docs and have started a review process that entails reviewing each page/topic in the Docs and proofreading the page to ensure that all details are correct and that the content accurately addresses the question posed by that Doc.

We are now on what we are calling "Docs Update Phase 3", meaning that this is our third run-through as we make every effort to give you a Docs Board that will give you the answers you need as you work to improve your SMF/TP site. 

If you see anything amiss, or have a subject or question that you think we should cover, please let us know.

Title: Re: TinyPortal
Post by: lurkalot on December 02, 2015, 02:52:03 PM
The TinyPortal Team is pleased to announce the released of TinyPortal 1.2

What's new in TP 1.2

•Many bug fixes
•Fix Latest comments link
•Fix Delete comments button for guests
•Restore redirect when editing articles
•Remove broken CAPTCHA
•Remove permissions for guests
•Fix minor issues with installer
•Move css to css folder
•Update the css for shoutbox and article comments
•Align long items in menu block
•Minor changes to category header when looking at article listing
•Fix error related to layout
•PNG images uploaded may have a transparent background now
•Add avatar to user block
•Add top posters block code
•Fix Do not use SMF templates error
•fixes for the recent topics block, update to be similar to SSI.
Title: Re: TinyPortal
Post by: njtweb on December 10, 2015, 03:32:17 PM
Been using this mod for the past week now and I'm VERY pleased. Excellent development and incorporates very well with my theme and overall need(s). I used a different portal and wasn't happy with it and was recently directed to tinyportal. Thankfully I have come across this gem.

and most importantly.....

THE SUPPORT IS AWESOME!!
Title: Re: TinyPortal
Post by: Jade Elizabeth on January 14, 2016, 11:05:22 PM
Hey having issues with undefined indexes...when unattaching images...

URL: /index.php?action=dlattach;topic=216.0;attach=112;image
8: Undefined index: forum_name
File: /Themes/default/languages/TPortal.english.php
Line: 305


==>305:   $txt['whoall_forum'] = 'Viewing the board index of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';

Can you please help me fix it? :)
Title: Re: TinyPortal
Post by: lurkalot on January 15, 2016, 03:45:53 AM
Quote from: Jade Elizabeth on January 14, 2016, 11:05:22 PM

Can you please help me fix it? :)


Can't say I've ever seen this error on any of the TP sites so far.  Might be clashing with some other mod you have installed.  A list of your mods might be handy please.
Title: Re: TinyPortal
Post by: Illori on January 15, 2016, 06:01:46 AM
Quote from: lurkalot on January 15, 2016, 03:45:53 AM
Quote from: Jade Elizabeth on January 14, 2016, 11:05:22 PM

Can you please help me fix it? :)


Can't say I've ever seen this error on any of the TP sites so far.  Might be clashing with some other mod you have installed.  A list of your mods might be handy please.

this i dont believe has anything to do with mods installed. it is an issue that has no solution at this time. it has been reported on tp.net a few times. i had someone that knows more then i do look into it and they could not find a solution.
Title: Re: TinyPortal
Post by: lurkalot on January 15, 2016, 12:50:57 PM
Quote from: Illori on January 15, 2016, 06:01:46 AM
Quote from: lurkalot on January 15, 2016, 03:45:53 AM
Quote from: Jade Elizabeth on January 14, 2016, 11:05:22 PM

Can you please help me fix it? :)


Can't say I've ever seen this error on any of the TP sites so far.  Might be clashing with some other mod you have installed.  A list of your mods might be handy please.

this i dont believe has anything to do with mods installed. it is an issue that has no solution at this time. it has been reported on tp.net a few times. i had someone that knows more then i do look into it and they could not find a solution.
Quote from: Illori on January 15, 2016, 06:01:46 AM
Quote from: lurkalot on January 15, 2016, 03:45:53 AM
Quote from: Jade Elizabeth on January 14, 2016, 11:05:22 PM

Can you please help me fix it? :)


Can't say I've ever seen this error on any of the TP sites so far.  Might be clashing with some other mod you have installed.  A list of your mods might be handy please.

this i dont believe has anything to do with mods installed. it is an issue that has no solution at this time. it has been reported on tp.net a few times. i had someone that knows more then i do look into it and they could not find a solution.

Yes I know, sorry.  My post should have been, Can't say I've ever seen this error problem on any of the TP sites so far. 

I was referring to the un-attaching of images, causing the error. ;)
Title: Re: TinyPortal
Post by: Bloc on January 15, 2016, 08:08:13 PM
Quote from: Jade Elizabeth on January 14, 2016, 11:05:22 PM
Hey having issues with undefined indexes...when unattaching images...

URL: /index.php?action=dlattach;topic=216.0;attach=112;image
8: Undefined index: forum_name
File: /Themes/default/languages/TPortal.english.php
Line: 305


==>305:   $txt['whoall_forum'] = 'Viewing the board index of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';

Can you please help me fix it? :)

The reason the error shows is simply that $context['forum_name'] isn't defined when the action=dlattach is performed(its just managing the attachment after all). Two ways to solve it, check the variable in the TP language file, or move the whole string to its proper place inside Who.english.php.

For example...

$txt['whoall_forum'] = 'Viewing the board index of <a href="' . $scripturl . '">' . (!empty($context['forum_name']) ? $context['forum_name'] : 'the site') . '</a>.';
Title: Re: TinyPortal
Post by: Jade Elizabeth on January 15, 2016, 10:13:29 PM
That looks like it will work perfectly! :D

Thank you Bjorn!


Lurkalot I've seen it posted a lot as well, but never with a solution either. Also by unattach I mean clicking to view the attachment, in SMF that's called unattaching for some reason ha ha. Sorry if that was a bit unclear!
Title: Re: TinyPortal
Post by: Jade Elizabeth on February 23, 2016, 07:33:49 AM
Hey does this change the forums title? If so how can I disable it interfering with the title at all? I've installed Optimus Brave and I want that to handle the title, and something is adding the forum name before the title and it's super annoying. This is the last thing I can think of.
Title: Re: TinyPortal
Post by: lurkalot on February 23, 2016, 12:34:18 PM
Is this relevant to your problem? http://www.simplemachines.org/community/index.php?topic=422210.msg3159370#msg3159370
Title: Re: TinyPortal
Post by: Jade Elizabeth on February 23, 2016, 04:30:10 PM
Quote from: lurkalot on February 23, 2016, 12:34:18 PM
Is this relevant to your problem? http://www.simplemachines.org/community/index.php?topic=422210.msg3159370#msg3159370

No unfortunately. Meta are fine and forum name is blah blah forum. It's showing this way in forum, in Google, in social media too.

Subs and languages fine too. TP is the only other mod that might handle titles I can think of.
Title: Re: TinyPortal
Post by: lurkalot on February 23, 2016, 06:18:24 PM
Quote from: Jade Elizabeth on February 23, 2016, 04:30:10 PM
Quote from: lurkalot on February 23, 2016, 12:34:18 PM
Is this relevant to your problem? http://www.simplemachines.org/community/index.php?topic=422210.msg3159370#msg3159370

No unfortunately. Meta are fine and forum name is blah blah forum. It's showing this way in forum, in Google, in social media too.

Subs and languages fine too. TP is the only other mod that might handle titles I can think of.

TP shouldn't mess with the title at all.  There is a custom title setting TP Admin > Settings > Use a custom frontpage title:

This is usually empty by default, but only controls the title shown on the browser tab, nowhere else.

Got a link to the site please?
Title: Re: TinyPortal
Post by: Jade Elizabeth on February 23, 2016, 06:51:48 PM
I will send via PM :)
Title: Re: TinyPortal
Post by: Peach85 on February 24, 2016, 05:38:47 PM

I lost the tiny portal.  the files are in Cpanel.  Just need instruction on how to install tiny portal.   Hoping someone will please advise me
Modify message



Title: Re: TinyPortal
Post by: lurkalot on February 24, 2016, 06:43:03 PM
Quote from: Peach85 on February 24, 2016, 05:38:47 PM

I lost the tiny portal.  the files are in Cpanel.  Just need instruction on how to install tiny portal.   Hoping someone will please advise me
Modify message


You lost Tinyportal ?  What exactly happened for you to lose it.  What version of SMF and Tinyportal were you running when you "lost" it??

I see from your other post that your forum crashed, so what have you done so far to get you forum back online.  Did you rebuild it, fresh files etc?

Please give us a bit of background info to enable us to help you.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 24, 2016, 10:18:36 PM
Just tried installing TP v1.2 on a 2.0.11 forum recently upgraded from 1.1.4.  No errors, updates database, but board index is borked in Curve and Dilber MC.  Tried it twice.  Uninstalls cleanly.
Title: Re: TinyPortal
Post by: lurkalot on February 25, 2016, 03:03:20 AM
Quote from: Sir Osis of Liver on February 24, 2016, 10:18:36 PM
Just tried installing TP v1.2 on a 2.0.11 forum recently upgraded from 1.1.4.  No errors, updates database, but board index is borked in Curve and Dilber MC.  Tried it twice.  Uninstalls cleanly.


Were you running TP before you upgraded SMF?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 25, 2016, 01:28:34 PM
I didn't do the upgrade, but yes, I believe TP was installed when upgrade was done.
Title: Re: TinyPortal
Post by: lurkalot on February 25, 2016, 01:58:00 PM
Quote from: Sir Osis of Liver on February 25, 2016, 01:28:34 PM
I didn't do the upgrade, but yes, I believe TP was installed when upgrade was done.


Ok, can you try turning off any custom blocks one by one until your front page (hopefully) comes back.  Then if it does the offending block will need to be updated to run on SMF 2.0.xx
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 25, 2016, 02:03:18 PM
Ok, will give it a try.  Unfortunately I didn't see the 1.1.x install, so no idea how it was configured, but I do get access to TP admin panel.

Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 25, 2016, 02:27:45 PM
No go.  If I disable all blocks, board index completely disappears.  If I enable Recent Posts blocked, I get full width Recent Posts where board index should be (still no board index).  Enable Links and I get a page of raw code under Links header, below Recent Posts.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 25, 2016, 04:15:24 PM
Deleted the forum, did clean 2.0.11 install, installed TP.  I get Recent Posts and Links one over the other full width.  Board Index is completely gone.  Only improvement is Links are displayed correctly, no longer showing raw code.  Would have to guess the problem's in the database.

Any ideas?

Title: Re: TinyPortal
Post by: sangham.net on March 02, 2016, 12:28:10 AM
Greatings Lurkalot,
and IchBin and the rest of the team,

Atma (my person) just came across here to share and answer that he quested for some many month ago and thought to congratulate you that you made a need update.

"Sadly", since the personal capacities are less, Atma is not able to update (no possibility to make a suggested safety copy) Hoe ever, since the old works pretty great enough Atma would like to ask in regard of the shoutbox.

Would it work, if simply the shoutbox.php is replaced? Or does it have more changes, so that a simply new blockcode would not work in this case?

So in short, old Tinyportal installed, if wanting to replace simply the old to the new shoutbox, is it possible by just replacing the single blockcode file?

Thanks in advanced and one again, sympathetic joy with your good works and gains.
Title: Re: TinyPortal
Post by: lurkalot on March 02, 2016, 03:02:09 AM
Quote from: sangham.net on March 02, 2016, 12:28:10 AM
Quote from: sangham.net on March 02, 2016, 12:28:10 AM
Greatings Lurkalot,
and IchBin and the rest of the team,

Atma (my person) just came across here to share and answer that he quested for some many month ago and thought to congratulate you that you made a need update.

"Sadly", since the personal capacities are less, Atma is not able to update (no possibility to make a suggested safety copy) Hoe ever, since the old works pretty great enough Atma would like to ask in regard of the shoutbox.

Would it work, if simply the shoutbox.php is replaced? Or does it have more changes, so that a simply new blockcode would not work in this case?

So in short, old Tinyportal installed, if wanting to replace simply the old to the new shoutbox, is it possible by just replacing the single blockcode file?

Thanks in advanced and one again, sympathetic joy with your good works and gains.

Thanks in advanced and one again, sympathetic joy with your good works and gains.

Pretty sure it's more than one file that would need replacing.  But to be honest, I'm not even sure what version of SMF and Tinyportal you're running, as you've left out that important info.  I'm assuming your username is your website address, and if that's the case (SMF 2.0.10 and Tinyportal 1.0) you really need to update your version of SMF and you might as well update to TP 1.2 at the same time. If you get stuck drop a support post over at http://www.tinyportal.net
Title: Re: TinyPortal
Post by: sangham.net on March 02, 2016, 03:06:47 AM
Thanks for your kind suggestion, Lurkalot. Not sure if Atma (my person) should risk without safety copy. And for sure Atma would maybe costs others a lot of time with questioning. Lets see.

metta & mudita
Samana Johann
Title: Re: TinyPortal
Post by: lurkalot on March 02, 2016, 03:26:37 AM
Quote from: sangham.net on March 02, 2016, 03:06:47 AM
Thanks for your kind suggestion, Lurkalot. Not sure if Atma (my person) should risk without safety copy. And for sure Atma would maybe costs others a lot of time with questioning. Lets see.

metta & mudita
Samana Johann

I personally wouldn't do anything like this without a backup of database and files tbh.  You really need to do that first.
Title: Re: TinyPortal
Post by: sangham.net on March 02, 2016, 06:39:12 AM
No possibility. Either enough download speed nor space to store at least.
Title: Re: TinyPortal
Post by: skb on April 14, 2016, 12:05:58 AM
Hello,

I'm using SMF 2.0.11 & installed the latest TP version. I've noticed some malfunctioning in the PM system for the past two days. It wasn't so when installed (maybe 5 days ago). Does TP have any clashes / issues with 2 PM mods that I have installed (earlier). These are
PM Informer 4.0.1
Enhanced PM System 3.5

The problems encountered are (1) Some members are showing more number of messages (at the bottom of their screen) than they actually have in their Inbox (2) Some messages just won't open up. For instance, if there are 6 messages in the Inbox, clicking on message #4 will open up the last message only. The message that won't open up is received after installing TP. I also noticed the "Preferences" button in the messages menu. Some setting needs to be done there I think ?

Thanks.

(Note :- I'm just an ordinary guy without any IT training. Just learn & do things on my own. And I just cannot thank enough, all the Open Source people in the world)
Title: Re: TinyPortal
Post by: Steve on April 14, 2016, 07:55:45 AM
Do things go back to normal if you uninstall TP?
Title: Re: TinyPortal
Post by: skb on April 15, 2016, 04:48:50 AM
I tried that. Still didn't work. Some check boxes in the Messages / Preferences / Settings somehow got unchecked, whether by TP or some other Mod (I'm not sure which). But I checked them again and things are now working fine. Thanks.
Title: Re: TinyPortal
Post by: Steve on April 15, 2016, 09:36:32 AM
Cool. Glad you got it figured out. :)
Title: Re: TinyPortal
Post by: lurkalot on June 06, 2016, 06:00:53 AM
Just a quick heads up for Tinyportal fans.

The Tinyportal team is pleased to announce the first public beta test of Tinyportal 1.2R.  This version has many improvements over the original version.

What's new in this version.


Check it out here, http://www.tinyportal.net/index.php?topic=35780.0
Title: Re: TinyPortal
Post by: forumside on June 06, 2016, 06:32:42 PM
Thanks for update.
I am glad to see you are removing outdated tabled layout!
Hope you will release it finally soon for production use!
Title: Re: TinyPortal
Post by: Biology Forums on June 09, 2016, 09:16:15 AM
Is this version loaded on the TinyPortal website already?
Title: Re: TinyPortal
Post by: lurkalot on June 09, 2016, 12:56:22 PM
Quote from: Stylus on June 09, 2016, 09:16:15 AM
Is this version loaded on the TinyPortal website already?
If you mean the beta? no not at the moment.  It's here on my testsite though, http://cctestsite.info/testsite2/index.php
Title: Re: TinyPortal
Post by: Biology Forums on June 09, 2016, 01:44:09 PM
Works nicely
Title: Re: TinyPortal
Post by: lurkalot on June 09, 2016, 01:50:44 PM
Thanks, Glad you think so.  Forgot to say, also installed here, http://guitaristguild.com/
Title: Re: TinyPortal
Post by: Ken. on June 09, 2016, 07:45:00 PM
And HERE!  8)  (http://www.ourfamilyforum.org/FamilyForum/index.php?action=forum)
Title: Re: TinyPortal
Post by: cyberpunk20 on June 28, 2016, 11:51:39 AM
I just installed TP in my new forum but I have some problem, it seems the icons are not showing. I attached a screenshot. Hope you could help me thanks!
Title: Re: TinyPortal
Post by: Apllicmz on June 29, 2016, 01:50:02 AM
Yes try puty default themes...
that problems is themes not TP
Title: Re: TinyPortal
Post by: uamsameter on August 21, 2016, 01:10:19 PM
hi there,
i use tinyportal on my forum, so i have a frontpage. however, i'm looking for a way to display my boards in a block on the frontpage.
i'd really appreciate any help with a mod or any other way to go about it.
thanks.

i want something similar to the image attached.
thanks.
Title: Re: TinyPortal
Post by: Arantor on August 21, 2016, 03:03:13 PM
You want to copy Nairaland, a site that hasn't used SMF in years? Copying Nairaland won't make your site popular, either.
Title: Re: TinyPortal
Post by: uamsameter on August 21, 2016, 03:40:36 PM
Quote from: Arantor on August 21, 2016, 03:03:13 PM
You want to copy Nairaland, a site that hasn't used SMF in years? Copying Nairaland won't make your site popular, either.

Cmon man, I'm not trying to copy. Check my forum to confirm: unibujachat.netne.net

It is a new forum as you can see. I just want to display the categories to help users navigate easily. I know my target community will appreciate it better. I want to get it all together before getting a domain and launching formally.

I tried using the menu editor in the tinyportal but the problem I have with it are:
1. It is a cumbersome task to add all those links to the menu
2. The menu arranges vertically and doesn't look good at the top of the page.

I'd appreciate any help please.
Title: Re: TinyPortal
Post by: Arantor on August 21, 2016, 04:32:24 PM
That's just been my experience that anyone who wants to copy Nairaland's layout does so because they feel it will boost their forum... and in 7 years I've yet to see anyone who actually wants to copy Nairaland's layout without that in mind.

Nairaland does it that way because they have many, many, many boards and even more topics in those boards. Doing it on a forum that has almost no content would actually discourage people going there.
Title: Re: TinyPortal
Post by: uamsameter on August 21, 2016, 04:53:42 PM
@Arantor Well bruv, I didn't ask whether to use it or not.
Ifyou got help, please give.
Thanks
Title: Re: TinyPortal
Post by: uamsameter on August 22, 2016, 01:42:12 PM
Hello people,
Is there a way I can have a title for my front page links which is actually different from the original topic?
I need this in order to catch users attention with more captivating titles.
Thanks
Title: Re: TinyPortal
Post by: uamsameter on September 04, 2016, 11:03:25 AM
Hello people.
I guess this is not the place for this question but I hope I can get help.

I use tinyportal which allows me to add selected topics to the frontpage.
I'm looking for a way to edit the topics of posts before adding it to the frontpage while retaining the original topic in the forum.

The aim is to put a more captivating topic on frontpage to encourage users read it.


Please reply if you have help to offer. There's no help in the TP thread, so no need to redirect me there.

Thanks
Title: Re: TinyPortal
Post by: Irisado on September 04, 2016, 11:42:09 AM
Your post has been merged into the correct topic and split from the topic you posted it in.  Please avoid hijacking the topics of others in the future.
Title: Re: TinyPortal
Post by: uamsameter on September 07, 2016, 02:52:57 AM
Hello people.
I have another issue. Hopefully this one is a lot easier but I'm a newbie and cant find a way to solve it.

I created a block on my top panel using tinyportal.  In this block, I added links using BBCode. I noticed these links open in new tabs/window when clicked.

Can someone, please, tell me how to make the links open in the same window and not in a new tab.
Title: Re: TinyPortal
Post by: Shambles on September 07, 2016, 03:36:01 AM
Try using the [iurl][/iurl] bbcode rather than the [url][/url] bbcode
Title: Re: TinyPortal
Post by: @rjen on September 07, 2016, 03:52:58 AM
Note for the TinyPortal crew: the TP support forum @ http://tinyportal.net/ is not reachable?

QuoteNotice: This domain name expired on 08/31/16 and is pending renewal or deletion
Title: Re: TinyPortal
Post by: skb on September 07, 2016, 04:35:56 AM
Correct. I get the same message. Time for renewal I guess.
Title: Re: TinyPortal
Post by: uamsameter on September 07, 2016, 04:52:06 AM
Thanks Shambles.. I appreciate
Title: Re: TinyPortal
Post by: lurkalot on September 07, 2016, 01:23:29 PM
Quote from: @rjen on September 07, 2016, 03:52:58 AM
Note for the TinyPortal crew: the TP support forum @ http://tinyportal.net/ is not reachable?

QuoteNotice: This domain name expired on 08/31/16 and is pending renewal or deletion

Quote from: skb on September 07, 2016, 04:35:56 AM
Correct. I get the same message. Time for renewal I guess.

Sorry everyone, I failed to keep an eye on the renewal date.  :-[ It should be sorted tomorrow. (Touches wood).
Title: Re: TinyPortal
Post by: uamsameter on September 11, 2016, 03:13:46 AM
hi there,
i am looking for a way to centralise the link on my tinyportal frontpage. i tried using "inspect elements" on google chrome and i did it successfully but after downloading the tp-style.css file and uploading it, the links still align to the left.

please tell me the way to do it. thanks.
Title: Re: TinyPortal
Post by: Shambles on September 11, 2016, 03:48:23 AM
^ when you inspect the element, is the console showing that the styling is coming from tp-style.css or some other .css file (it also shows you the line number in whatever file)?

Also, remember you may have to refresh your browser's cache to see an updated stylesheet ;)
Title: Re: TinyPortal
Post by: uamsameter on September 11, 2016, 04:37:14 AM
thanks for your reply.
it highlights "user agent stylesheet" but i cant find a way to edit that.
so i i just did edit as HTML to the "tp_container" and after adding align= "center" and width="100%". the links got centralised.

i dont know exactly if the edit was tp-style.css.

where is user agent stylesheet located?
Title: Re: TinyPortal
Post by: uamsameter on September 11, 2016, 04:51:16 AM
better still, please tell me which file to save and replace.
i saved the index.css, tp-style.css, webkit.css, responsive.css after making the edit and replaced them through ftp but still the links align left.
Title: Re: TinyPortal
Post by: d3vcho on September 11, 2016, 06:01:59 AM
Can you leave an URL to your site so we can have a better look at it?

Also, please tell us which element you want to change.

Regards :)
Title: Re: TinyPortal
Post by: uamsameter on September 11, 2016, 06:17:18 AM
Okay dv3cho this is the link (http://www.unibujaforum.com)

You will find a list of links on the frontpage which are aligned left.
I would like to have these links centralised. Thanks
Title: Re: TinyPortal
Post by: d3vcho on September 11, 2016, 06:22:52 AM
Alright, there are many links xD

Are these links?
(https://i.gyazo.com/85cd682fb0e4e28189d76f66d51224e1.png)

If so, go to tp-style.css and search for .blockbody - Should be around line 1634
Then, add text-align: center;

Regards :)
Title: Re: TinyPortal
Post by: uamsameter on September 11, 2016, 06:59:26 AM
Thanks d3vcho.
  I will do this.
I also want the links below this... the "featured post" links to align centrally.  Thanks
Title: Re: TinyPortal
Post by: d3vcho on September 11, 2016, 07:04:03 AM
Great!

Again in tp-style.css around line 17, search for .tp_container and add the same - text-align: center;

Regards :)
Title: Re: TinyPortal
Post by: uamsameter on September 11, 2016, 07:23:29 AM
Thanks d3vcho.
worked perfectly!
You seem to have the solution to my css issues.

Can I send u a PM?
Title: Re: TinyPortal
Post by: d3vcho on September 11, 2016, 07:28:25 AM
I prefer you to post them here if the issue is related to TinyPortal, or in the right section if it's related with any aspect of the forum.

That's better because I may have not the solution or I make a mistake, so other users can correct me and give you a more accurate solution.

Also, I just used the Inspect Element option to help you. It's very easy to use.

I hope you understand :)
Title: Re: TinyPortal
Post by: lurkalot on September 11, 2016, 07:29:26 AM
Quote from: uamsameter on September 11, 2016, 03:13:46 AM
hi there,
i am looking for a way to centralise the link on my tinyportal frontpage. i tried using "inspect elements" on google chrome and i did it successfully but after downloading the tp-style.css file and uploading it, the links still align to the left.

please tell me the way to do it. thanks.

As you're using the Unordered list in that BBCode block you can use the center tags on each of those lines, between the list tags like this,

[li][center]your links will be here[/center][/li]

That will save you having to edit any css files manually. ;)
Title: Re: TinyPortal
Post by: uamsameter on September 11, 2016, 07:30:25 AM
My other request is not tinyportal-related hence my pm request.

My unsolved TP request is.....

Those links you see are topics from forum boards. I want a way to edit the title on the frontpage link while maintaining the topic titles unchanged.
That way, I could put a more captivating title to attract attention.

Any help?
Title: Re: TinyPortal
Post by: stog on March 15, 2017, 06:28:56 AM
hi -- i have a smf 2.0.13 with tp 1.2 and after disabling template eval.i am getting errors 8: Undefined variable: modSettings
Apply Filter: Only show the errors from this file
File: /home/--------/htdocs/Themes/default/TPsubs.template.php(127) : eval()'d code
Line: 42


any ideas

thx in advance
Title: Re: TinyPortal
Post by: Shambles on March 15, 2017, 06:31:57 AM
^ the error you quoted suggests that you haven't disabled template evaluation (see the "eval()'d code" in the message?)
Title: Re: TinyPortal
Post by: Illori on March 15, 2017, 07:29:01 AM
unless the error is coming from a portal block, not always does the eval go away from that.
Title: Re: TinyPortal
Post by: Kindred on March 15, 2017, 08:42:34 AM
When the error is.  The tpsubs file, it is almost always due to a badly coded portal block
Title: Re: TinyPortal
Post by: stog on March 15, 2017, 06:45:07 PM
thx all

yes i have now unchecked the 'evaluate templates' and now get

http://www.xxx.com/index.php?
8: Undefined variable: modSettings
File: /home/xxx/user/htdocs/Themes/default/languages/GoogleMap.english.php (tp_below sub template - eval?)
Line: 42


looking at member map -- it seems to be working fine

line 42 is $txt['googleMap_DefaultZoom'] = 'The default Zoom Level';

any ideas thx so far
appreciated
Title: Re: TinyPortal
Post by: Illori on March 15, 2017, 06:57:28 PM
that is from a different mod, you would need to post in that mods support topic.
Title: Re: TinyPortal
Post by: stog on March 16, 2017, 10:21:09 AM
ok i have just turned off a few php code blocks that i had been playing with, and sure enough the error has gone so it seems that it is indeed a dodgy code block that is causing this ; i wonder if someone can spot what the problem is with the php code  thx again

the code is for top posters of the month (was week), and i was trying to prevent the user's profile name link from duplicating the domain when clicked.
ie www.xx.com/profile/... was linking as www.xx.com/http://www.xx.com/profile/..

global $smcFunc, $scripturl, $context, $settings;

// Top 10 Posters so far this week  (starts sunday)
$starttime = mktime() - 30 * 3600 * 24; 
// Offset based on forum time
$starttime = forum_time(false, $starttime);
// Limit of top posters
$limit = 8;
// Height and width of avatar

$width = '40px';
$height = '40px';

$request = $smcFunc['db_query']('', '
SELECT mem.id_member, mem.real_name, COUNT(*) as count_posts, mem.avatar, a.id_attach, a.attachment_type, a.filename
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE m.poster_time > {int:start_time}
AND m.id_member != 0
AND mem.show_online = 1
GROUP BY mem.id_member
ORDER BY count_posts DESC
LIMIT {int:limit}',
array(
'start_time' => $starttime,
'limit' => $limit
)
);

$context['top_posters'] = array();
$max_num_posts = 1;
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$context['top_posters'][] = array(
'name' => $row['real_name'],
'id' => $row['id_member'],
'num_posts' => $row['count_posts'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="http://www.fibsboard.com/' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'image' => empty($row['avatar']) ? ($row['id_attach'] > 0 ? 'src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" border="0" width="'.$width.'" height="'.$height.'" title="'.$row['real_name'].'" />' : '') : (stristr($row['avatar'], 'http://') ? 'src="' . $row['avatar'] . '" alt="" border="0" width="'.$width.'" height="'.$height.'" title="'.$row['real_name'].'" />' : 'src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" border="0" width="'.$width.'" height="'.$height.'" title="'.$row['real_name'].'" />'),
),
);

if ($max_num_posts < $row['count_posts'])
$max_num_posts = $row['count_posts'];
}
$smcFunc['db_free_result']($request);

foreach ($context['top_posters'] as $i => $j)
$context['top_posters'][$i]['post_percent'] = round(($j['num_posts'] * 100) / $max_num_posts);

// Tidy up
unset($max_num_posts, $row, $j, $i);

// Output our array of users with avatar, posts, and name
echo '
<table cellpadding="0" cellspacing="8">';

foreach ($context['top_posters'] as $user)
{
echo '
<tr>
<td>',empty($user['avatar']['image']) ? '<a href="http://www.xx.com/'.$user['href'].'"><img src="'.$settings['images_url'].'/noavatar.gif" width="'.$width.'" height="'.$height.'" alt="" title="' . $user['name'] . '" /></a>' : '<a href="http://www.xx.com/' . $user['href'] . '"><img ' . $user['avatar']['image']. '</a>';
echo '
</td>
<td><h5 style="margin: 4px;">' . $user['link'] . '</h5><h5 style="margin: 4px;">' . $user['num_posts'] . '</h5></td>
</tr>';
}

echo '
</table>';


i tried removing the link at href, but after saving it would re-appear

<td>',empty($user['avatar']['image']) ? '<a href="'.$user['href'].'"><img src="'.$settings['images_url'].'/noavatar.gif" width="'.$width.'" height="'.$height.'" alt="" title="' . $user['name'] . '" /></a>' : '<a href="' . $user['href'] . '"><img ' . $user['avatar']['image']. '</a>';

either way the block is causing the error?

any help appreciated

many thx
Title: Re: TinyPortal
Post by: Shambles on March 16, 2017, 10:27:07 AM
Well, the answer is in the code block you posted. You didn't globalise $modSettings.

Code (Find & Replace) Select
global $smcFunc, $scripturl, $context, $settings, $modSettings;
Title: Re: TinyPortal
Post by: stog on March 16, 2017, 10:29:15 AM
thx very much! sorted errors gone (the trials of a copy/paste php newbie!)

thx again  -- wierd how when template error was unchecked -- the error  pointed to membermap? -->answer perhaps (Shambles noticed "$modSettings isn't globalised in add_settings.php (not that it matters at runtime)".

also any ideas how i can get the poster to link to the poster profile correctly in my code block btw

sry about this
Title: Re: TinyPortal
Post by: Shambles on March 16, 2017, 10:42:20 AM
You already have the linkages set up... just delete some spurious stuff

Code (replace) Select
global $smcFunc, $scripturl, $context, $settings, $modSettings;

// Top 10 Posters so far this week  (starts sunday)
$starttime = mktime() - 30 * 3600 * 24; 
// Offset based on forum time
$starttime = forum_time(false, $starttime);
// Limit of top posters
$limit = 8;
// Height and width of avatar

$width = '40px';
$height = '40px';

$request = $smcFunc['db_query']('', '
SELECT mem.id_member, mem.real_name, COUNT(*) as count_posts, mem.avatar, a.id_attach, a.attachment_type, a.filename
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE m.poster_time > {int:start_time}
AND m.id_member != 0
AND mem.show_online = 1
GROUP BY mem.id_member
ORDER BY count_posts DESC
LIMIT {int:limit}',
array(
'start_time' => $starttime,
'limit' => $limit
)
);

$context['top_posters'] = array();
$max_num_posts = 1;
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$context['top_posters'][] = array(
'name' => $row['real_name'],
'id' => $row['id_member'],
'num_posts' => $row['count_posts'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'image' => empty($row['avatar']) ? ($row['id_attach'] > 0 ? 'src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" border="0" width="'.$width.'" height="'.$height.'" title="'.$row['real_name'].'" />' : '') : (stristr($row['avatar'], 'http://') ? 'src="' . $row['avatar'] . '" alt="" border="0" width="'.$width.'" height="'.$height.'" title="'.$row['real_name'].'" />' : 'src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" border="0" width="'.$width.'" height="'.$height.'" title="'.$row['real_name'].'" />'),
),
);

if ($max_num_posts < $row['count_posts'])
$max_num_posts = $row['count_posts'];
}
$smcFunc['db_free_result']($request);

foreach ($context['top_posters'] as $i => $j)
$context['top_posters'][$i]['post_percent'] = round(($j['num_posts'] * 100) / $max_num_posts);

// Tidy up
unset($max_num_posts, $row, $j, $i);

// Output our array of users with avatar, posts, and name
echo '
<table cellpadding="0" cellspacing="8">';

foreach ($context['top_posters'] as $user)
{
echo '
<tr>
<td>',empty($user['avatar']['image']) ? '<a href="'.$user['href'].'"><img src="'.$settings['images_url'].'/noavatar.gif" width="'.$width.'" height="'.$height.'" alt="" title="' . $user['name'] . '" /></a>' : '<a href="' . $user['href'] . '"><img ' . $user['avatar']['image']. '</a>';
echo '
</td>
<td><h5 style="margin: 4px;">' . $user['link'] . '</h5><h5 style="margin: 4px;">' . $user['num_posts'] . '</h5></td>
</tr>';
}

echo '
</table>';
Title: Re: TinyPortal
Post by: stog on March 16, 2017, 10:48:32 AM
brill really appreciate your help and everyone else's too

smf ---> giving software a good name cheers
Title: Re: TinyPortal
Post by: Nory on April 17, 2017, 08:09:34 PM
Hello,

Little question, Is it possible to disable tinyportal on smartphones?
Title: Re: TinyPortal
Post by: landyvlad on April 18, 2017, 08:39:00 AM
Nory - why? 

Have you tried the responsive beta version of TP ?
(more info on this on the TP forum)
I am running that, it seems very stable, and looks good on the mobile.
Title: Re: TinyPortal
Post by: Nory on April 20, 2017, 05:53:19 PM
Hello,

QuoteHave you tried the responsive beta version of TP ?
I don't know that!

I don't find link, could you give me?
Title: Re: TinyPortal
Post by: landyvlad on May 18, 2017, 08:01:35 PM
Sorry Nory I didn't see your post earlier.  Hopefully someone has let you know by now, but if not:

the setting to access the public beta should be found under your profile.

For full details on how to go about it, have a read of this thread: 
http://www.tinyportal.net/index.php?topic=35780.0

Cheers  :)
Title: Re: TinyPortal
Post by: Nory on May 20, 2017, 09:02:43 AM
Hello,

Thank you, it's very good version.
Title: Re: TinyPortal
Post by: ATAG on August 11, 2017, 05:34:37 PM
It works! Thank you very mutch! I've used this mod for 8 years... excellent =)
Title: Re: TinyPortal
Post by: SaltedWeb on November 26, 2017, 10:55:11 PM
Hi there, I have tried about 8 times to access support on your site and even tried three browsers.
I read the article " blart " etc and it keeps saying they are the wrong answers.
I get having those questions its yours site I get it, but wow how annoying that is to do this 8 times and
have it not working properly. Trying to find some directions on the portal.
Any help getting to that information would be appreciated.
SW
Title: Re: TinyPortal
Post by: lurkalot on November 27, 2017, 01:24:00 AM
Quote from: SaltedWeb on November 26, 2017, 10:55:11 PM
Hi there, I have tried about 8 times to access support on your site and even tried three browsers.
I read the article " blart " etc and it keeps saying they are the wrong answers.
I get having those questions its yours site I get it, but wow how annoying that is to do this 8 times and
have it not working properly. Trying to find some directions on the portal.
Any help getting to that information would be appreciated.
SW

Apologies for the problem.  I have sent you a PM, hopefully it should help you.
Title: Re: TinyPortal
Post by: pepa on November 28, 2017, 11:49:44 PM
If I have a donate button on another website (not SMF) can I use this portal to display that same button in a SMF?  If so, how do I do that?
Title: Re: TinyPortal
Post by: -Rock Lee- on November 29, 2017, 05:29:10 AM
Quote from: pepa on November 28, 2017, 11:49:44 PM
If I have a donate button on another website (not SMF) can I use this portal to display that same button in a SMF?  If so, how do I do that?

What you need to do is create a custom block and add the line of the button to use it, generally paypal comes a php that works without problems (the times you use the clear method).


Regards!
Title: Re: TinyPortal
Post by: lurkalot on November 29, 2017, 01:40:47 PM
Quote from: pepa on November 28, 2017, 11:49:44 PM
If I have a donate button on another website (not SMF) can I use this portal to display that same button in a SMF?  If so, how do I do that?

If I remember correctly, you should be able to grab the paypal donate button code which they provide, and dump it in a HTML / JavaScript block.

The one I have at the bottom of my photography site works ok.  ;)
Title: Re: TinyPortal
Post by: SaltedWeb on November 29, 2017, 05:36:08 PM
Quote from: pepa on November 28, 2017, 11:49:44 PM
If I have a donate button on another website (not SMF) can I use this portal to display that same button in a SMF?  If so, how do I do that?
Didn't see a PM in my Box waited a few days, ended up going with a different Portal , thanks though.
Title: Re: TinyPortal
Post by: lurkalot on November 29, 2017, 06:21:31 PM
Quote from: SaltedWeb on November 29, 2017, 05:36:08 PM
Quote from: pepa on November 28, 2017, 11:49:44 PM
If I have a donate button on another website (not SMF) can I use this portal to display that same button in a SMF?  If so, how do I do that?
Didn't see a PM in my Box waited a few days, ended up going with a different Portal , thanks though.

Not a problem.  Regarding the donation button the same applies though.  Just add the code to a block.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on December 02, 2017, 01:18:46 AM
Trying to remove the TP menu button from profile.  This looks like the code, but has no effect when I change it -

TPSubs.php



$context['profile_areas']['tinyportal'] = array(
'title' => $txt['tp-profilesection'],
'areas' => array()
);



Also has no effect when I change this -

TPortal.english.php



$txt['tp-profilesection'] = 'TinyPortal';



  (http://www.thekrashsite.com/pics/idk.gif)
Title: Re: TinyPortal
Post by: lurkalot on December 02, 2017, 05:13:58 AM
Quote from: Sir Osis of Liver on December 02, 2017, 01:18:46 AM

Trying to remove the TP menu button from profile.  This looks like the code, but has no effect when I change it -


Take a look in /sources/TPassimilate.php

Comment out this code, (Make backup first, just in case).


function tpAddProfileMenu(&$profile_areas)
{
global $txt;

$profile_areas['tp'] = array(
'title' => 'Tinyportal',
'areas' => array(),
);

$profile_areas['tp']['areas']['tpsummary'] = array(
'label' => $txt['tpsummary'],
'file' => 'TPmodules.php',
'function' => 'tp_summary',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);

$profile_areas['tp']['areas']['tparticles'] = array(
'label' => $txt['articlesprofile'],
'file' => 'TPmodules.php',
'function' => 'tp_articles',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
'subsections' => array(
'articles' => array($txt['tp-articles'], array('profile_view_own', 'profile_view_any')),
'settings' => array($txt['tp-settings'], array('profile_view_own', 'profile_view_any')),
),
);

$profile_areas['tp']['areas']['tpdownload'] = array(
'label' => $txt['downloadprofile'],
'file' => 'TPmodules.php',
'function' => 'tp_download',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);

$profile_areas['tp']['areas']['tpshoutbox'] = array(
'label' => $txt['shoutboxprofile'],
'file' => 'TPmodules.php',
'function' => 'tp_shoutb',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);
}
Title: Re: TinyPortal
Post by: Sir Osis of Liver on December 02, 2017, 02:59:15 PM
Thanks, my guy saw your post before I got on today, took care of it.  First look I'm getting at TP, running on a test install.  Will play with it a bit when I have time.
Title: Re: TinyPortal
Post by: SaltedWeb on December 30, 2017, 10:41:34 PM
Having not used the portal for a very long time, I am clueless the sitting for the portal not to show in the forum and only show of the front.
I didnt see it in settings or I am just not understanding which it is. I see to direct to forum or front page upon log in but didnt see where that setting was??
Thanks

Title: Re: TinyPortal
Post by: DarkAngel612 on December 30, 2017, 11:24:34 PM
Quote from: SaltedWeb on December 30, 2017, 10:41:34 PM
Having not used the portal for a very long time, I am clueless the sitting for the portal not to show in the forum and only show of the front.
I didnt see it in settings or I am just not understanding which it is. I see to direct to forum or front page upon log in but didnt see where that setting was??
Thanks

Since I don't have it set to just the home page...I think....you go to TinyPortal tab/blocks then ONLY in the frontpage area create your block(s) in there. You should then be able to choose in its creation to show it only on the front page by checking the button/radio dot then saving it. Don't forget to also go into panels and tell it what width and where to let it show. This may take several tries to get it where you want it.
Title: Re: TinyPortal
Post by: SaltedWeb on December 30, 2017, 11:40:33 PM
Awwww, that makes sense.... thank you for the quick response.
I had forgot like 10 years ago or more I used this portal, thought id giver er a go as was not happy how
SP affected some of my stuff this one seems to have allot of power but a small footprint.
Again thanks for the fast response....

SW
Title: Re: TinyPortal
Post by: DarkAngel612 on December 31, 2017, 02:03:16 AM
no problem. I use this portal (yes did try others but they I did not like) and once I tried this one I was hooked. I just have not changed the way the blocks look since I started with it about8 years ago...so did not really remember if that was how.
Title: Re: TinyPortal
Post by: thomp4pal on December 31, 2017, 02:13:53 AM
Weird current position in forum link after installing TinyPortal editing TPBlockLayout.template.php

I wanted a postpage under boards, sitting on top of info centre, so i requested support.
Sir Osis of Liver was kind enough to provide code to modify BoardIndex.template.php and TPBlockLayout.template.php

Code for BoardIndex.template.php
// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '<div class="mark_read">', template_button_strip($mark_read_button, 'right'), '</div>';
}
else
{
echo '
<div id="posting_icons" class="flow_hidden">
<ul class="reset">
<li class="floatleft"><img src="', $settings['images_url'], '/new_none.png" alt="" /> ', $txt['old_posts'], '</li>
<li class="floatleft"><img src="', $settings['images_url'], '/new_redirect.png" alt="" /> ', $txt['redirect_board'], '</li>
</ul>
</div>';
}

/// TP recent posts

echo '

<div id="tptopbarHeader" style="' , in_array('tptopbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , 'clear: both;">
' , TPortal_panel('top') , '
</div>

<div id="tplowerbarHeader" style="' , in_array('tplowerbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '">
' , TPortal_panel('lower') , '</div>';


template_info_center();
}



code for TPBlockLayout.template.php:


function template_tp_below()
{
global $context;

if($context['TPortal']['lowerpanel']!=1)
echo '
<div id="tplowerbarHeader" style="' , in_array('tplowerbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '">
' , TPortal_panel('lower') , '</div>';


Now after fusing in these codes my goals was achieved but something weird came up...
In Current position of forum link (Breadcrumb) 'Forum' seems to appear Twice before link of post...
I have attached a pic indicating this iss.

How can i get this double 'Forum' off Breadcrumb, Could it be a conflict between PrettyUrl mod. and TPortal mod.? I have both mods running in forum...
Thanks.
Title: Re: TinyPortal
Post by: lurkalot on December 31, 2017, 05:30:47 PM
Quote from: thomp4pal on December 31, 2017, 02:13:53 AM

Now after fusing in these codes my goals was achieved but something weird came up...
In Current position of forum link (Breadcrumb) 'Forum' seems to appear Twice before link of post...
I have attached a pic indicating this iss.

How can i get this double 'Forum' off Breadcrumb, Could it be a conflict between PrettyUrl mod. and TPortal mod.? I have both mods running in forum...
Thanks.

Just tried these edits myself, and all seems fine, so yes something else in your setup must be causing the double forum button. 
Title: Re: TinyPortal
Post by: thomp4pal on December 31, 2017, 07:21:26 PM
Thanks for the reply, from experience can you give any pointer on where i should be looking at for a fix in code?

Oh... Happy brand New 2018 year to you  8) 8)
Title: Re: TinyPortal
Post by: lurkalot on December 31, 2017, 07:28:39 PM
Quote from: thomp4pal on December 31, 2017, 07:21:26 PM
Thanks for the reply, from experience can you give any pointer on where i should be looking at for a fix in code?

Oh... Happy brand New 2018 year to you  8) 8)

Thanks, and Happy new year to you too.

Probably a really daft question.   Are you absolutely sure the problem started when those two edits were made?  Have you tried restoring those two files from your backup, to see if things go back to normal?
Title: Re: TinyPortal
Post by: thomp4pal on January 02, 2018, 08:36:33 AM
must you spit venom off your mouth?, You should have asked steps taken before rating it a probably daft Q... wonder how relevant this makes your questions now...  :-\
Title: Re: TinyPortal
Post by: Arantor on January 02, 2018, 08:47:07 AM
It wasn't meant venomously. Lurkalot is British and does that thing we do where we are self deprecating a lot and can phrase things weirdly as a result.

It isn't really a daft question but he didn't want to ask it because some people get very angry when asked about the simplest of things.
Title: Re: TinyPortal
Post by: thomp4pal on January 02, 2018, 09:21:54 AM
Off course it was the simplest thing to do, restore backups when things gets broken after mod. which I did but still same, once i've done the modifications the only way the double 'Forum' goes out is if i uninstall Tportal Mod. entirely
If i install again it reappears in current forum position link ...
Notice in my first post i indicated that, could this be a conflict between Tportal and Pretty Url mod.?
Thanks for the reply @Arantor.
Title: Re: TinyPortal
Post by: lurkalot on January 02, 2018, 01:42:11 PM
Quote from: thomp4pal on January 02, 2018, 08:36:33 AM
must you spit venom off your mouth?, You should have asked steps taken before rating it a probably daft Q... wonder how relevant this makes your questions now...  :-\

As Arantor pointed out, I was suggesting that I (myself) might be asking a daft question, I wasn't suggesting it was you at all.

Back to your problem.  The reason you are seeing the double Forum is because you have the category named Forum.  All your boards are in that category called Forum.  That's why it shows in the "Breadcrumb" like it does.
Title: Re: TinyPortal
Post by: thomp4pal on January 02, 2018, 02:49:22 PM
My Bad Lurkalot, I Misunderstood you, my apologies please... and yeah that was the fix  8)
Thanks
Title: Re: TinyPortal
Post by: İerdogan on January 02, 2018, 04:50:13 PM
I have a question about the blocks. Im trying to put my wordpress posts in there (like a last 3 or 5 posts). Ive found 2(both versions using a blog query.php file and iframe in the block) and both times I get a syntax error. Then I found one on Feed2JS that actually works but if I go back in the block to modify it, the code duplicates itself and I start getting double the output.Come to think of it, Ive the same issue when I tried putting the facebook fan box on my page too.I love TP(so sad to see the actual site go) so hopefully theres something out there that can help.Thank so see the actual site go) so hopefully theres something out there that can help.Thanks
Title: Re: TinyPortal
Post by: Arantor on January 02, 2018, 05:16:02 PM
TP or SP? TP's site is perfectly fine, SP's site is the one that's down...
Title: Re: TinyPortal
Post by: lurkalot on January 02, 2018, 05:19:11 PM
Quote from: İerdogan on January 02, 2018, 04:50:13 PM
I have a question about the blocks. Im trying to put my wordpress posts in there (like a last 3 or 5 posts). Ive found 2(both versions using a blog query.php file and iframe in the block) and both times I get a syntax error. Then I found one on Feed2JS that actually works but if I go back in the block to modify it, the code duplicates itself and I start getting double the output.Come to think of it, Ive the same issue when I tried putting the facebook fan box on my page too.I love TP(so sad to see the actual site go) so hopefully theres something out there that can help.Thank so see the actual site go) so hopefully theres something out there that can help.Thanks

Click the Tinyportal tab from your main menu.  Then click the article settings button.   Turn off the Use the WYSIWYG editor, and save.  Then go and add your code to a HTML / JavaScript block.

Hopefully that will resolve your problem.
Title: Re: TinyPortal
Post by: Arantor on January 02, 2018, 05:22:16 PM
@lurkalot - not convinced the poster is using TP given the reference to the site going away (because SP's site has disappeared lately, not TP's)
Title: Re: TinyPortal
Post by: lurkalot on January 02, 2018, 05:30:21 PM
Quote from: Arantor on January 02, 2018, 05:22:16 PM
@lurkalot - not convinced the poster is using TP given the reference to the site going away (because SP's site has disappeared lately, not TP's)

Thanks Arantor.  You could well be right there.   ;)
Title: Re: TinyPortal
Post by: djkimmel on January 07, 2018, 12:37:57 AM
I just updated a small website to Tiny Portal 1.3 that I haven't added much or new content to in a while. It is a niche and also kind of a test site for me for things like portals though I've run TP on it for quite a while now. It has the latest SMF version 2.0.15 on it with PHP 5.6.

When I picked TP I did so because I thought it could show a front page that showed BOTH TP articles and forum posts. Now that I'm actually trying to do that I cannot make it happen. I've just spent almost 5 frustrating hours searching the Internet as to whether it can do this (still unclear?) and how to make it actually work. I've tried a ton of combinations of settings.

I assumed "What to display on frontpage: Forum-posts and articles - sorted on date would do exactly that but instead depending on other settings I choose I get either 1 article on 'page 1' and 1 article on 'page 2' or 2 articles on 1 page and sometimes an empty page 2?

I only have 2 articles set right now to show on frontpage and none featured because that seemed to cause me even more problems. Even though I've tried several combinations of 'Display forum-posts on frontpage from:' set I get no forum posts displaying. Depending on which boards I choose I get odd variations with the 2 articles and still no forum posts. If I set 'Number of posts/articles to display on frontpage:' to 5 or less I get 2 pages with 1 article only on each. If I set this number to 8-10 I get the 2 articles only on 1 page. I get really odd results if I set this number even higher??

Either I've misunderstood and TP cannot show BOTH TP articles and forum posts on the frontpage, or maybe I have a fundamental misunderstanding of some or several settings somewhere causing this problem though I'm not sure there is a combination of settings I haven't already tried 3 times...? I tried the core theme and that didn't cause anything better to happen. I do have 4 other mods I believe on this site. I have not tried uninstalling any of them. Frankly, lately, I have less and less luck with clean installs and uninstalls on SMF as more and more mods seem to be stepping on each other's toes so I often have to do manual adjustments to get this to work which I don't enjoy much. I had a heck of a time uninstalling the old TP 1.107 before I could even try 1.3 that finally came down to modifying the old TP package to look for the new code in Source QueryString.php. I was so glad that TP 1.3 was looking for this new code already at least so I didn't have to modify that package.

The website I'm trying to get BOTH TP articles and forum posts to show on the frontpage is kentuckylakebass dot com. Does anyone know for sure can TP 1.3 even do this, or did I completely misunderstand how it can work and waste almost 5 hours for nothing...?? If it should actually do this does anyone have any suggestions as to why it might not be doing this for me? Maybe a common issue(s) or some little piece of need to know to make it work? I've already spent a bunch of time on tinyportal.net without success and it doesn't appear super lively over there. I guess if I don't have success here with this huge community I can ask afterwards over there. It looks a lot less busy over there.

If this is something that can be done with lots of hacking I probably won't do it. I have enough to keep track of already and would use my limited brainpower for other higher priority things.
Title: Re: TinyPortal
Post by: lurkalot on January 07, 2018, 02:41:08 PM
Quote from: djkimmel on January 07, 2018, 12:37:57 AM

The website I'm trying to get BOTH TP articles and forum posts to show on the frontpage is kentuckylakebass dot com. Does anyone know for sure can TP 1.3 even do this, or did I completely misunderstand how it can work and waste almost 5 hours for nothing...?? If it should actually do this does anyone have any suggestions as to why it might not be doing this for me? Maybe a common issue(s) or some little piece of need to know to make it work?


Are you actually running TP on there now? can't see it in the copyright.

You have spotted a bug which seems to have been introduced when the php7 fixes were applied, and this wasn't apparent when testing.  It's not a function that I use myself, but that's no excuse I should have tested it.  Sorry.

Quote from: djkimmel on January 07, 2018, 12:37:57 AM

I've already spent a bunch of time on tinyportal.net without success and it doesn't appear super lively over there. I guess if I don't have success here with this huge community I can ask afterwards over there. It looks a lot less busy over there.


Not lively = good to be honest.  Did you post over there? ;)  If you're running PHP 5.6. you could probably get away with running TP 1.2 with a slight edit to the user block login form.

Title: Re: TinyPortal
Post by: Steve on January 08, 2018, 10:13:22 AM
Quote from: lurkalot on January 07, 2018, 02:41:08 PMAre you actually running TP on there now? can't see it in the copyright.

Unless it was put on since you posted I see the TinyPortal copyright.

Title: Re: TinyPortal
Post by: Ewap on January 15, 2018, 03:30:53 AM
Hi, can this be implemented in your next updated?
Like a stickied thread in frontpage. Like in the list of recent or selected posts or articles in the frontpage, there would be one thread that never goes down. It will always remain at the top as seen with that of announcements for vanillaforums.
Thanks
Title: Re: TinyPortal
Post by: djkimmel on January 17, 2018, 09:15:05 PM
I don't remember turning it off or disabling it after I posted this? That doesn't mean I did and forgot, but it would have been a momentary thing. It is running still.

I guess I'm glad it should work without the bug. Just wish I would have asked sooner... ;D

I can post on the Tiny Portal website to see if and when this bug might be fixed. I have a problem remembering all the websites I have to go back to and check for replies on so I don't immediately go to additional websites to all the ones I already try to keep track of. I will be using PHP 5.6 for a few months at least though I'm thinking it is about time to upgrade to a new server later this year and I imagine that will have me moving everything to PHP 7.

Thanks for you reply.
Title: Re: TinyPortal
Post by: lurkalot on January 18, 2018, 01:52:07 AM
Quote from: djkimmel on January 17, 2018, 09:15:05 PM
I don't remember turning it off or disabling it after I posted this? That doesn't mean I did and forgot, but it would have been a momentary thing. It is running still.

I guess I'm glad it should work without the bug. Just wish I would have asked sooner... ;D

I can post on the Tiny Portal website to see if and when this bug might be fixed. I have a problem remembering all the websites I have to go back to and check for replies on so I don't immediately go to additional websites to all the ones I already try to keep track of. I will be using PHP 5.6 for a few months at least though I'm thinking it is about time to upgrade to a new server later this year and I imagine that will have me moving everything to PHP 7.

Thanks for you reply.

Unfortunately and after a bit of investigation, this problem was introduced after updating to SMF 2.0.14 / 15 I so even installing the older version of TP won't cure it.  Until we can find a answer we are very much stuck atm.  Sorry.
Title: Re: TinyPortal
Post by: lurkalot on February 04, 2018, 05:28:38 PM
OK, here's a quick update regarding Tinyportal

Just wanted to let you  know, we are currently testing our next release, Tinyportal 1.4R  At the moment testing as a beta version, but if all goes well and no major hiccups, then it'll be released as the next version very soon.

This is where you come in.  If you're willing, we'd like you to test it for us, and give feedback on anything you find, good or bad, we need to know so we can fix it.

If you want to give it a go, check out the news board, where you'll find a list of new features and bug fixes in Tinyportal 1.4R   https://www.tinyportal.net/index.php?topic=35967.0

While your there, I'm sure there's something you always thought could be improved, or a feature you would love to see incorporated into the portal, so here's your chance, Drop your ideas or suggestions in this topic, https://www.tinyportal.net/index.php?topic=35975.0  and they will be looked at for consideration in future versions.

Thank you.
Title: Re: TinyPortal
Post by: lurkalot on February 13, 2018, 05:14:17 PM
The TinyPortal Team is pleased to announce the released of TinyPortal 1.4R http://custom.simplemachines.org/mods/index.php?mod=97

Lots of fixes and one or two new features in this one.  ;)
Title: Re: TinyPortal
Post by: Bigguy on February 13, 2018, 06:50:03 PM
Nice to see this. I might just have to install it. :)
Title: Re: TinyPortal
Post by: -Rock Lee- on February 26, 2018, 09:35:25 AM
I had converted version 1.2 at the time and that's why now I translated the 1.4R I attached to Spanish. As there are many files I decided to put everything in a zip, anything you tell me.


Regards!
Title: Re: TinyPortal
Post by: lurkalot on February 26, 2018, 01:38:23 PM
Quote from: Rock Lee on February 26, 2018, 09:35:25 AM
I had converted version 1.2 at the time and that's why now I translated the 1.4R I attached to Spanish. As there are many files I decided to put everything in a zip, anything you tell me.


Regards!

Rock Lee

Thank you, this is much appreciated.  I'll add them to our downloads.
Title: Re: TinyPortal
Post by: -Rock Lee- on February 26, 2018, 01:53:39 PM
Quote from: lurkalot on February 26, 2018, 01:38:23 PM
Rock Lee

Thank you, this is much appreciated.  I'll add them to our downloads.

I am very happy if you need something more to report it to help in what you require :).


Regards!
Title: Re: TinyPortal
Post by: lurkalot on February 26, 2018, 01:57:41 PM
Quote from: Rock Lee on February 26, 2018, 01:53:39 PM
Quote from: lurkalot on February 26, 2018, 01:38:23 PM
Rock Lee

Thank you, this is much appreciated.  I'll add them to our downloads.

I am very happy if you need something more to report it to help in what you require :).


Regards!

Thank you.  I will do.  8)
Title: Re: TinyPortal
Post by: lurkalot on March 03, 2018, 11:21:03 AM
The Tinyportal team is pleased to announce the release of, Tinyportal v1.4.1 (https://custom.simplemachines.org/mods/index.php?mod=97)

TP 1.4.1 is a bug fix release for TP1.4R, If you're upgrading from anything other than TP1.4R please see the changes in the changelog for 1.4R below. *

For the bugs fixed in this release,
What's new in TP 1.4.1

changelog for 1.4.1
• Inserting images from quicklist does not work in new editor.
• Avatar by URL not working in Article Comments.
• Avatars In recent topics block are stretched to 'square'.
• Added max width / height to images in quicklist.
• Code tidy up, and minor bug fixes.

For reference,
changelog for 1.4R *
• Fixed promoted Posts + Articles being displayed on front page.
• Added image proxy logic for Avatars and Articles.
• Stopped visible refresh of Shoutbox.
• Added new ctrl/cmd + enter option for Shoutbox.
• Added The option to turn of the final check for images. * (Important: Read notes above).
• Corrected http/https Avatars showing when adding avatar by url.
• Switched wysiwyg editor to SCEditor. * (Important: Read notes above).
• Added RSS Feed Limit to RSS Block
• Responsive layout. Portal now responsive, as long as you're using a responsive theme.
• Switched recent posts to use SSI function rather than tp version.
• Altered css for Avatar so height and width is set.
• Removed wysiwyg editor option for html & javascript blocks.
• Many more bug fixes.
Title: Re: TinyPortal
Post by: -Rock Lee- on April 06, 2018, 06:39:43 PM
@lurkalot Looking at this version 1.4.1 :P I wonder if there is any new line to translate - whistling -


Regards!
Title: Re: TinyPortal
Post by: lurkalot on April 06, 2018, 07:16:29 PM
Quote from: Rock Lee on April 06, 2018, 06:39:43 PM
@lurkalot Looking at this version 1.4.1 :P I wonder if there is any new line to translate - whistling -


Regards!

Rock Lee, thanks for asking.  I don't think there was anything added since 1.4R.   TP 1.4.1 was released quite soon after to fix some bugs we missed.  Therefore those language files you translated should be good for both TP 1.4R and TP 1.4.1   ;)

Title: Re: TinyPortal
Post by: -Rock Lee- on April 06, 2018, 07:38:16 PM
Great then I'll also try to be aware if you need new translations or something ;)
Title: Re: TinyPortal
Post by: Drakkon on April 15, 2018, 07:01:23 AM
How do I make "Home" link to the front page of my website? Right now "Home" and "Forum" link to the index page of the forum.
Title: Re: TinyPortal
Post by: lurkalot on April 15, 2018, 08:14:24 AM
Quote from: Drakkon on April 15, 2018, 07:01:23 AM
How do I make "Home" link to the front page of my website? Right now "Home" and "Forum" link to the index page of the forum.

Please provide a link, either here or if you prefer by PM.

Edit:  Just noticed you had Simpleportal installed, and had the very same problem with that. https://www.simplemachines.org/community/index.php?topic=559763.0
Title: Re: TinyPortal
Post by: Drakkon on April 15, 2018, 01:43:15 PM
Thank you for your help. I just reinstalled and got it to work.
Title: Re: TinyPortal
Post by: lurkalot on May 07, 2018, 01:37:16 PM
The TinyPortal Team is pleased to announce the released of TinyPortal 1.5.0 http://custom.simplemachines.org/mods/index.php?mod=97

Changelog; TP 1.5.0

Drag and Drop added for Images, enabled via a Setting
Float Left and Float Right for images or text to restore functionality lost from old wysiwyg
Fix to show copyright correctly and not rewrite when Simple Machines Simple Machines
TinyPortal © 2005-2018 is put in a post.
Bug fix for posts and articles on front page where variable wasn't cleared before use.
Fix for embedding youtube videos in responsive mode
Title: Re: TinyPortal
Post by: Apllicmz on May 09, 2018, 03:02:14 PM
Yes Nice Work
thank you
Title: Re: TinyPortal
Post by: jafonseca on May 12, 2018, 03:35:27 PM
Error installing mod could y help me?

Error en la Base de Datos

Field 'description' doesn't have a default value
Archivo: /home/uhdcl/public_html/Packages/temp/install.php
Línea: 915

Nota: Parece que tu base de datos puede necesitar una actualización. La versión de los archivos de tu foro están en la versión SMF 2.0.15, mientras que tu base de datos está en la versión de SMF 2.0.4. Este error probablemente desaparecerá si ejecutas la última versión de upgrade.php.



SMF 2.0.15 | SMF © 2013, Simple Machines
­
Title: Re: TinyPortal
Post by: tinoest on May 12, 2018, 05:00:45 PM
What version of php and MySQL?
Title: Re: TinyPortal
Post by: jafonseca on May 12, 2018, 05:37:39 PM
Quote from: tinoest on May 12, 2018, 05:00:45 PM
What version of php and MySQL?
Server: Localhost via UNIX socket
Server type: MySQL
Server version: 5.7.22-0ubuntu0.16.04.1 - (Ubuntu)
Protocol version: 10
User: root@localhost
Server charset: UTF-8 Unicode (utf8)
Web server
root
Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
PHP version: 7.1.9
phpMyAdmin
Version information: 4.6.3 , latest stable version: 4.8.0.1


RUn with ZESLE panel,  have php 5.6 and php 7.1
Title: Re: TinyPortal
Post by: tinoest on May 12, 2018, 05:46:04 PM
Change line 177 in install.php to

array('name' => 'description', 'type' => 'text', 'default' => '',),

I think there will be loads more though..
Title: Re: TinyPortal
Post by: jafonseca on May 12, 2018, 06:34:39 PM
Quote from: tinoest on May 12, 2018, 05:46:04 PM
Change line 177 in install.php to

array('name' => 'description', 'type' => 'text', 'default' => '',),

I think there will be loads more though..

Thanks, but another error


Error en la Base de Datos
BLOB, TEXT, GEOMETRY or JSON column 'description' can't have a default value
Archivo: /home/uhdcl/public_html/Packages/temp/install.php
Line: 329
Title: Re: TinyPortal
Post by: tinoest on May 13, 2018, 02:58:25 AM
Hmmm ok, I'll look in to this later today.

Not near a pc atm. Should be able to reply about 12hours from now.

It's your version of MySQL that's not happy with the format.
Title: Re: TinyPortal
Post by: tinoest on May 13, 2018, 04:12:58 PM
Can you provide me with the output of

select @@GLOBAL.sql_mode

either run that in phpmyadmin or in a mysql shell.

Thanks,
Title: Re: TinyPortal
Post by: jafonseca on May 14, 2018, 04:13:30 PM
Quote from: tinoest on May 13, 2018, 04:12:58 PM
Can you provide me with the output of

select @@GLOBAL.sql_mode

either run that in phpmyadmin or in a mysql shell.

Thanks,

(http://i66.tinypic.com/ny5x93.png)
Title: Re: TinyPortal
Post by: tinoest on May 14, 2018, 04:28:46 PM
Thanks is there a way you can edit your sql_mode to not include STRICT_TRANS_TABLES? It will probably be set in your my.cnf

I can't copy and paste the string in your image but you could add this to the start of install.php if you can't remove it from the config.

$smcFunc['db_query']('', '
set session sql_mode = \'NO_ENGINE_SUBSTITUTION\';
                ',
            );


Replacing NO_ENGINE_SUBSTITUTION with all the settings there excluding the STRICT_TRANS_MODE

I'll raise a error on GitHub for it.

Undo the other change for the db table I suggested above as that won't work.
Title: Re: TinyPortal
Post by: delta5 on June 19, 2018, 12:44:53 PM
 Lots of bugs, updated php7.1 to 7.2. Even more errors. See my posts in 2.0.15 support. Tried to uninstall, crashed the forum. Nice mod, but I don't have time to deal with bugs and conflicts.
Title: Re: TinyPortal
Post by: Arantor on June 19, 2018, 01:00:06 PM
Firstly, are you running the current version? Your other posts suggest you are not.

Secondly, SMF doesn't even support PHP 7.2, which means it may well be a PHP problem, not a TinyPortal problem.
Title: Re: TinyPortal
Post by: -Rock Lee- on June 19, 2018, 01:11:31 PM
Quote from: delta5 on June 19, 2018, 12:44:53 PM
Lots of bugs, updated php7.1 to 7.2. Even more errors. See my posts in 2.0.15 support. Tried to uninstall, crashed the forum. Nice mod, but I don't have time to deal with bugs and conflicts.

Is it necessary to change the version? since SMF still gives problems with the branch 7.2 that in next versions it was tried to make compatible for that moment recimienda 7.0 or 7.1 where there are some solutions for the problem of compatabilidad.


Regards!
Title: Re: TinyPortal
Post by: MamaTea on June 26, 2018, 11:04:44 AM
I am wondering if maybe I am missing something?

I am working on getting my articles set up on my frontpage. (for now, just experimenting)

I have yet to find out what purpose the Intro Text serves, as I have not been able to find any trace of it outside of the article editor.

I would like to use the Intro Text on my front page, instead of showing the entire article.  I would like the entire article to only show on it's own page.

I have tried messing with the layout code on the frontpage editor, though whatever I do to it, is done to the actual article.  If I take the article text or ratings off of the frontpage article layout, the actual article page will not display any text or ratings either. -- I hope you can see what I am getting at here

Any ideas?
Title: Re: TinyPortal
Post by: lurkalot on June 26, 2018, 01:34:47 PM
Quote from: MamaTea on June 26, 2018, 11:04:44 AM

I have yet to find out what purpose the Intro Text serves, as I have not been able to find any trace of it outside of the article editor.

I would like to use the Intro Text on my front page, instead of showing the entire article.  I would like the entire article to only show on it's own page.


Article intro is just that, it's a intro, a sample of the main article, which should at the bottom of it have a link to the full article.

The intro can be shown on the front page, and the article on its own page.  To get them to show on the front page you need to set in the front page settings to either,  "Selected topics + articles" or "Forum-posts and articles - sorted on date"

On the settings for the article you need to select
Status: Toggle show on front page. (button).
Use intro:  Yes
Approved: Yes
Article is active

Save.
Title: Re: TinyPortal
Post by: MamaTea on June 26, 2018, 02:33:04 PM
Quote from: lurkalot on June 26, 2018, 01:34:47 PM

Article intro is just that, it's a intro, a sample of the main article, which should at the bottom of it have a link to the full article.

The intro can be shown on the front page, and the article on its own page.  To get them to show on the front page you need to set in the front page settings to either,  "Selected topics + articles" or "Forum-posts and articles - sorted on date"

On the settings for the article you need to select
Status: Toggle show on front page. (button).
Use intro:  Yes
Approved: Yes
Article is active

Save.


Awesome, thanks!  I knew I was missing some sort of step there.  Thank you!

Now that I know which settings I need to have it under for the intro, I'll try this again.
Title: Re: TinyPortal
Post by: MamaTea on June 26, 2018, 04:11:08 PM
Is there an easy way to get rid of the icon when viewing the article?  (I actually am not planning to use it at all)

when I select not to use an icon, the default one pops up.  I would just rather the article to take up the entire width of the page.

Thanks.
Title: Re: TinyPortal
Post by: njtweb on June 26, 2018, 04:40:05 PM
Quote from: MamaTea on June 26, 2018, 04:11:08 PM
Is there an easy way to get rid of the icon when viewing the article?  (I actually am not planning to use it at all)

when I select not to use an icon, the default one pops up.  I would just rather the article to take up the entire width of the page.

Thanks.

I turned everything off, I don't think you can turn "print" off though.

https://www.youthhockeyinfo.com/index.php?page=rink-directory
Title: Re: TinyPortal
Post by: lurkalot on June 26, 2018, 04:45:43 PM
Quote from: MamaTea on June 26, 2018, 04:11:08 PM
Is there an easy way to get rid of the icon when viewing the article?  (I actually am not planning to use it at all)

when I select not to use an icon, the default one pops up.  I would just rather the article to take up the entire width of the page.

Thanks.
Title: Re: TinyPortal
Post by: lurkalot on June 26, 2018, 04:48:02 PM
Quote from: njtweb on June 26, 2018, 04:40:05 PM

I turned everything off, I don't think you can turn "print" off though.

https://www.youthhockeyinfo.com/index.php?page=rink-directory

TP Admin > Article Settings > Display print link in articles?  Yes  No
Title: Re: TinyPortal
Post by: GigaWatt on June 26, 2018, 08:25:04 PM
https://www.simplemachines.org/community/index.php?topic=27642.msg3977552#msg3977552

Just a mistake a guess ???.
Title: Re: TinyPortal
Post by: MamaTea on June 26, 2018, 10:26:49 PM
Quote from: GigaWatt on June 26, 2018, 08:25:04 PM
https://www.simplemachines.org/community/index.php?topic=27642.msg3977552#msg3977552

Just a mistake a guess ???.


Yeah, I guess so.. :o


While I'm at it..  anyone have a good direction to point me in for editing that "about the author" section?  I like that it is there but I want to include stuff that isn't forum-oriented :D

Thanks!
Title: Re: TinyPortal
Post by: lurkalot on June 27, 2018, 12:53:32 AM
Quote from: GigaWatt on June 26, 2018, 08:25:04 PM
https://www.simplemachines.org/community/index.php?topic=27642.msg3977552#msg3977552

Just a mistake a guess ???.

Oops, yes it was , sorry I don't know what happened there.  :-[

Quote from: lurkalot on June 26, 2018, 04:45:43 PM
Quote from: MamaTea on June 26, 2018, 04:11:08 PM
Is there an easy way to get rid of the icon when viewing the article?  (I actually am not planning to use it at all)

when I select not to use an icon, the default one pops up.  I would just rather the article to take up the entire width of the page.

Thanks.

You should be able to alter the look in either the Frontpage settings: Layout Types.  Or Category settings > Layout
Title: Re: TinyPortal
Post by: njtweb on June 27, 2018, 09:02:45 AM
Quote from: lurkalot on June 26, 2018, 04:48:02 PM
Quote from: njtweb on June 26, 2018, 04:40:05 PM

I turned everything off, I don't think you can turn "print" off though.

https://www.youthhockeyinfo.com/index.php?page=rink-directory

TP Admin > Article Settings > Display print link in articles?  Yes  No

Thanks, didn't know to look there, obviously LOL  ;D
Title: Re: TinyPortal
Post by: Biology Forums on June 27, 2018, 08:28:38 PM
General question:

What's the URL to access all article categories, the index URL?
Title: Re: TinyPortal
Post by: njtweb on June 28, 2018, 07:01:30 AM
Quote from: Study Force on June 27, 2018, 08:28:38 PM
General question:

What's the URL to access all article categories, the index URL?

All articles are created with a page number ie. http://www.website.com/index.php/page=1

But you can declare a name for the page which will replace the page number in the article settings, if that is what you would like to do. ie. http://www.website.com/index.php/page=my-page


***NOTICE, if you have the mod "OPTIMUS" installed and hard code your meta data it plays havoc with social media posts.

- If you post an article on FB it will by default use the site index URL, Title, Description and Logo
- If you post an article on Twitter it will change the page name back to page=1 in the URL but will post the article Title and URL, but will use the site description.
- If you post an article to G+, it'll act the same as Twitter.

For some reason facebook doesn't see the meta data the same way Twitter and G+ do
Title: Re: TinyPortal
Post by: Biology Forums on June 28, 2018, 09:32:42 PM
I was going to use the articles feature for the first time yesterday, but I found it had limitations to what I needed. I was looking to create something of this nature: https://wordpress.org/plugins/learnpress/ using the articles system.
Title: Re: TinyPortal
Post by: tinoest on June 29, 2018, 03:53:31 AM
Quote from: Study Force on June 28, 2018, 09:32:42 PM
I was going to use the articles feature for the first time yesterday, but I found it had limitations to what I needed. I was looking to create something of this nature: https://wordpress.org/plugins/learnpress/ using the articles system.

I can't see TinyPortal in your credits, so assume you are doing it on a test site. It should be possible to do something very similar in the latest version of TinyPortal.
Title: Re: TinyPortal
Post by: mattizzy on June 29, 2018, 04:19:26 AM
I don't understand the article part of this mod. I'm seeing create categories. What about the inbuilt forum categories I.e General Discussion e.t.c
Title: Re: TinyPortal
Post by: lurkalot on June 29, 2018, 01:35:52 PM
Quote from: mattizzy on June 29, 2018, 04:19:26 AM
I don't understand the article part of this mod. I'm seeing create categories. What about the inbuilt forum categories I.e General Discussion e.t.c

In Tinyportal you can create categories to contain your articles / pages.  Same applies to the Tinyportal downloads system, that can have it's own categories as well.   They have nothing to do with the forum categories. 
Title: Re: TinyPortal
Post by: Biology Forums on June 29, 2018, 03:45:58 PM
As long as the articles are ordered by date of publish, rather than custom-ordered, you'd have to rewrite the fundamentals of this mod to make it work in such a way.
Title: Re: TinyPortal
Post by: @rjen on June 29, 2018, 06:44:13 PM
Quote from: Study Force on June 29, 2018, 03:45:58 PM
As long as the articles are ordered by date of publish, rather than custom-ordered, you'd have to rewrite the fundamentals of this mod to make it work in such a way.

You can order articles as you wish
Title: Re: TinyPortal
Post by: Biology Forums on June 30, 2018, 01:43:34 AM
so if I have 10 articles 1 through 10, I can display article 8, 7, 2, 1, ... 10 in that order? I didn't come across that option
Title: Re: TinyPortal
Post by: lurkalot on June 30, 2018, 02:07:06 AM
Quote from: Study Force on June 30, 2018, 01:43:34 AM
so if I have 10 articles 1 through 10, I can display article 8, 7, 2, 1, ... 10 in that order? I didn't come across that option

How Do I Sort My Articles?  https://www.tinyportal.net/docs/index.php?topic=201
Title: Re: TinyPortal
Post by: Bloc on July 03, 2018, 03:53:28 PM
If you have the time and interest, a little poll: https://www.simplemachines.org/community/index.php?topic=561058.0
Title: Re: TinyPortal
Post by: lurkalot on July 09, 2018, 04:56:14 PM
The TinyPortal Team is pleased to announce the released of TinyPortal 1.5.1

TP 1.5.1 Changelog

1.Fix Subject lines not showing correctly with a " in them.
2.Fix Permission to view articles being restricted and the incorrect error showing.
3.Updated SCEditor to latest version.
4.Fix to Numeric Error Bugs with PHP 7.1
5.Fix for third article being set as Featured on an install.

Added Features in 1.5.1
1.Basic support added for SMF 2.1 Beta.
2.Option to remove copyright with a key.

Enjoy.  ;)

Title: Re: TinyPortal
Post by: d3vcho on July 09, 2018, 04:59:37 PM
Much appreciated your work. Keep it up :)
Title: Re: TinyPortal
Post by: mattizzy on July 11, 2018, 01:49:44 PM
How can I customise header like your official site. Not really like it. I just want to know the methods implemented in the site https://www.tinyportal.net/index.php?PHPSESSID=5gc27op7828kudmqt5ivorjfb7;wwwRedirect
Title: Re: TinyPortal
Post by: mayheptad on July 18, 2018, 09:21:17 AM
Can somebody pls give me a good tutorial / documentation
About tinyportal and how to use it simple and advace features.
If possible a video.
I have search trough youtube i found none
Title: Re: TinyPortal
Post by: Tonyvic on July 18, 2018, 09:40:20 AM
Have you checked the TinyPortal website?
Title: Re: TinyPortal
Post by: njtweb on July 18, 2018, 10:39:07 AM
Quote from: mattizzy on July 11, 2018, 01:49:44 PM
How can I customise header like your official site. Not really like it. I just want to know the methods implemented in the site https://www.tinyportal.net/index.php?PHPSESSID=5gc27op7828kudmqt5ivorjfb7;wwwRedirect

That's a theme, AlphaCentauri



Quote from: mayheptad on July 18, 2018, 09:21:17 AM
Can somebody pls give me a good tutorial / documentation
About tinyportal and how to use it simple and advace features.
If possible a video.
I have search trough youtube i found none

https://www.tinyportal.net/docs/index.php
Title: Re: TinyPortal
Post by: lurkalot on July 18, 2018, 12:35:13 PM
Quote from: njtweb on July 18, 2018, 10:39:07 AM

Quote from: mayheptad on July 18, 2018, 09:21:17 AM
Can somebody pls give me a good tutorial / documentation
About tinyportal and how to use it simple and advace features.
If possible a video.
I have search trough youtube i found none

https://www.tinyportal.net/docs/index.php

Thanks njtweb

mayheptad  The docs should get you started, although I'll be the first to say the docs need updating, they have been neglected in the last couple of years, things have changed somewhat.  But if you get stuck or need walking through something then you can always ask over at our support site, we'll be glad to help.
Title: Re: TinyPortal
Post by: Arnox on July 29, 2018, 08:21:19 PM
Sooo... This is working but not very well at all. It tried to redirect me to the admin page of TP and... It dumps me back to the regular homepage instead. Menu options for any of the TP settings don't work at all either and continue to dump me at the regular sub-forum listings page.

Getting "Parameter 1 to addTPActions() expected to be a reference, value given" in my error log. This is indicative of old PHP code that hasn't been updated to work with PHP 7.x. But the mod page says it's for 2.0.15?
Title: Re: TinyPortal
Post by: Arnox on July 29, 2018, 09:04:36 PM
Found the exact issue. TPassimilate.php in Sources has two big issues. For one, the file references the actionArray as "&$actionArray" without quotes when it should be just "$actionArray". This will spam people's error logs like no tomorrow.

The second issue (probably directly linked to the first issue on mod install) is that the mod did not actually add entries to the actionArray in index.php. This of course causes completely broken links on the top bar.
Title: Re: TinyPortal
Post by: tinoest on July 30, 2018, 02:14:07 AM
Thanks for the report, what version of php are you running? It doesn't do this for me on php 5.6,7.0 or 7.1 so I'd like to find out how I can break it to fix it.

I'll add this to the list for fixes for the next release.
Title: Re: TinyPortal
Post by: Arnox on July 30, 2018, 03:29:15 AM
Quote from: tinoest on July 30, 2018, 02:14:07 AM
Thanks for the report, what version of php are you running? It doesn't do this for me on php 5.6,7.0 or 7.1 so I'd like to find out how I can break it to fix it.

I'll add this to the list for fixes for the next release.

Right now, we're running PHP 7.0 or 7.0.30 to be exact.

Still not sure why it didn't add any of the lines to the actionArray. After adding the lines in manually though, it works beautifully.
Title: Re: TinyPortal
Post by: Arantor on July 30, 2018, 03:35:39 AM
Probably because you changed the code so it only added them to a copy of actionArray, not the real actionArray.
Title: Re: TinyPortal
Post by: tinoest on July 30, 2018, 03:07:50 PM
Quote from: Arnox on July 29, 2018, 09:04:36 PM
Found the exact issue. TPassimilate.php in Sources has two big issues. For one, the file references the actionArray as "&$actionArray" without quotes when it should be just "$actionArray". This will spam people's error logs like no tomorrow.

The second issue (probably directly linked to the first issue on mod install) is that the mod did not actually add entries to the actionArray in index.php. This of course causes completely broken links on the top bar.

That's not the issue, your error is this;

Quote from: Arnox on July 29, 2018, 08:21:19 PM
Getting "Parameter 1 to addTPActions() expected to be a reference, value given" in my error log. This is indicative of old PHP code that hasn't been updated to work with PHP 7.x. But the mod page says it's for 2.0.15?

Which is the opposite of what you did.

What other mods do you have installed? Something is modifying your integrate_actions call incorrectly, or its changed in the SMF 2.0 Source Code.

Arantor is right in that it's not working as you're not changing the real actionArray anymore.
Title: Re: TinyPortal
Post by: tinoest on July 30, 2018, 03:19:16 PM
Quote from: Arnox on July 30, 2018, 03:29:15 AM
Quote from: tinoest on July 30, 2018, 02:14:07 AM
Thanks for the report, what version of php are you running? It doesn't do this for me on php 5.6,7.0 or 7.1 so I'd like to find out how I can break it to fix it.

I'll add this to the list for fixes for the next release.

Right now, we're running PHP 7.0 or 7.0.30 to be exact.

Still not sure why it didn't add any of the lines to the actionArray. After adding the lines in manually though, it works beautifully.

Can you post your index.php, I would guess that's the cause of your issues.
Title: Re: TinyPortal
Post by: Arnox on August 05, 2018, 08:05:48 AM
Quote from: Arantor on July 30, 2018, 03:35:39 AM
Probably because you changed the code so it only added them to a copy of actionArray, not the real actionArray.

Sorry this is so late.

The code of the TPAssimilate file? I didn't change that until after I did a normal install. Several times. Although that's only what fixed the mod spamming errors in the error log. I actually had to manually add entries in the actionArray to get the TinyPortal menu options to work.

If it's adding the entries on install to a copy of the actionArray then it's not in the index.php file because there's only one actionArray there.

Here's my index.php:

<?php

/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines http://www.simplemachines.org
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.15
 */

/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version 'SMF 2.0.15';
@
ini_set('memory_limit''128M');

// Get everything started up...
define('SMF'1);
if (
function_exists('set_magic_quotes_runtime'))
@set_magic_quotes_runtime(0);
error_reporting(defined('E_STRICT') ? E_ALL E_STRICT E_ALL);
$time_start microtime();

// This makes it so headers can be sent!
ob_start();

// Do some cleaning, just in case.
foreach (array('db_character_set''cachedir') as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable], $GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

// Make absolutely sure the cache directory is defined.
if ((empty($cachedir) || !file_exists($cachedir)) && file_exists($boarddir '/cache'))
$cachedir $boarddir '/cache';

// And important includes.
require_once($sourcedir '/QueryString.php');
require_once(
$sourcedir '/Subs.php');
require_once(
$sourcedir '/Errors.php');
require_once(
$sourcedir '/Load.php');
require_once(
$sourcedir '/Security.php');
require_once(
$sourcedir '/Subs-Shoutbox.php');

// Using an pre-PHP 5.1 version?
if (@version_compare(PHP_VERSION'5.1') == -1)
require_once($sourcedir '/Subs-Compat.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();

// Create a variable to store some SMF specific functions in.
$smcFunc = array();

// Initate the database connection and define some database functions to use.
loadDatabase();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Seed the random generator.
if (empty($modSettings['rand_seed']) || mt_rand(1250) == 69)
smf_seed_generator();

// Before we get carried away, are we doing a scheduled task? If so save CPU cycles by jumping out!
if (isset($_GET['scheduled']))
{
require_once($sourcedir '/ScheduledTasks.php');
AutoTask();
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent())
{
// If zlib is being used, turn off output compression.
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION'4.2.0') == -1)
$modSettings['enableCompressedOutput'] = '0';
else
{
ob_end_clean();
ob_start('ob_gzhandler');
}
}

// Emit some headers for some modicum of protection against nasties.
if (!headers_sent())
{
// Future versions will make some of this configurable. This is primarily a 'safe' configuration for most cases for now.
header('X-Frame-Options: SAMEORIGIN');
header('X-XSS-Protection: 1');
header('X-Content-Type-Options: nosniff');
}

// Register an error handler.
set_error_handler('error_handler');

// Quickly catch random exceptions.
set_exception_handler(function ($e) use ($db_show_debug)
{
if (isset($db_show_debug) && $db_show_debug === true && allowedTo('admin_forum'))
fatal_error(nl2br($e), false);
else
fatal_error($e->getMessage(), false);
});

// Start the session. (assuming it hasn't already been.)
loadSession();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))
unset($_SESSION['nowap']);
elseif (isset(
$_REQUEST['nowap']))
$_SESSION['nowap'] = true;
elseif (!isset(
$_SESSION['nowap']))
{
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}
}

if (!
defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' '')));

// Some cellphones can't handle output compression...
$modSettings['enableCompressedOutput'] = '0';
// !!! Do we want these hard coded?
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;

// Wireless protocol header.
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}

// Restore post data if we are revalidating OpenID.
if (isset($_GET['openid_restore_post']) && !empty($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post']) && empty($_POST))
{
$_POST $_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post'];
unset($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]);
}

// What function shall we execute? (done like this for memory's sake.)
// SMFPacks Shoutbox
call_user_func(Shoutbox_Load(smf_main()));

// Call obExit specially; we're coming from the main area ;).
obExit(nullnulltrue);

// The main controlling function.
function smf_main()
{
global $modSettings$settings$user_info$board$topic$board_info$maintenance$sourcedir;

// Special case: session keep-alive, output a transparent pixel.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
{
header('Content-Type: image/gif');
die("\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x21\xF9\x04\x01\x00\x00\x00\x00\x2C\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3B");
}

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current user's permissions.
loadPermissions();

// Attachments don't require the entire theme to be loaded.
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && (!empty($modSettings['allow_guestAccess']) && $user_info['is_guest']))
detectBrowser();
// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
else
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// If we are in a topic and don't have permission to approve it then duck out now.
if (!empty($topic) && empty($board_info['cur_topic_approved']) && !allowedTo('approve_posts') && ($user_info['id'] != $board_info['cur_topic_starter'] || $user_info['is_guest']))
fatal_lang_error('not_a_topic'false);

// Do some logging, unless this is an attachment, avatar, toggle of editor buttons, theme option, XML feed etc.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach''findmember''jseditor''jsoption''requestmembers''smstats''.xml''xmlhttp''verificationcode''viewquery''viewsmfile''shoutbox')))
{
// Log this user as online.
writeLog();

// Track forum statistics and hits...?
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}

// TinyPortal
TPortal_init();

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
// You can only login.... otherwise, you're getting the "maintenance mode" display.
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
{
require_once($sourcedir '/LogInOut.php');
return $_REQUEST['action'] == 'login2' 'Login2' 'Logout';
}
// Don't even try it, sonny.
else
{
require_once($sourcedir '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa''login''login2''register''register2''reminder''activate''help''smstats''mailq''verificationcode''openidreturn'))))
{
require_once($sourcedir '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
$tpAction whichTPAction();
if (!empty($tpAction))
return $tpAction;

// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir '/Display.php');
return 'Display';
}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php''Activate'),
'admin' => array('Admin.php''AdminMain'),
'announce' => array('Post.php''AnnounceTopic'),
'attachapprove' => array('ManageAttachments.php''ApproveAttach'),
'banlist' => array('ManageBans.php''BanListView'),
'buddy' => array('Subs-Members.php''BuddyListToggle'),
'calendar' => array('Calendar.php''CalendarMain'),
'clock' => array('Calendar.php''clock'),
'collapse' => array('BoardIndex.php''CollapseCategory'),
'coppa' => array('Register.php''CoppaForm'),
'credits' => array('Who.php''Credits'),
'deletemsg' => array('RemoveTopic.php''DeleteMessage'),
'display' => array('Display.php''Display'),
'dlattach' => array('Display.php''Download'),
'editpoll' => array('Poll.php''EditPoll'),
'editpoll2' => array('Poll.php''EditPoll2'),
'emailuser' => array('SendTopic.php''EmailUser'),
'forum' => array('BoardIndex.php''BoardIndex'),
'findmember' => array('Subs-Auth.php''JSMembers'),
'groups' => array('Groups.php''Groups'),
'help' => array('Help.php''ShowHelp'),
'helpadmin' => array('Help.php''ShowAdminHelp'),
'im' => array('PersonalMessage.php''MessageMain'),
'jseditor' => array('Subs-Editor.php''EditorMain'),
'jsmodify' => array('Post.php''JavaScriptModify'),
'jsoption' => array('Themes.php''SetJavaScript'),
'lock' => array('LockTopic.php''LockTopic'),
'lockvoting' => array('Poll.php''LockVoting'),
'login' => array('LogInOut.php''Login'),
'login2' => array('LogInOut.php''Login2'),
'logout' => array('LogInOut.php''Logout'),
'markasread' => array('Subs-Boards.php''MarkRead'),
'mergetopics' => array('SplitTopics.php''MergeTopics'),
'mlist' => array('Memberlist.php''Memberlist'),
'moderate' => array('ModerationCenter.php''ModerationMain'),
'modifycat' => array('ManageBoards.php''ModifyCat'),
'modifykarma' => array('Karma.php''ModifyKarma'),
'movetopic' => array('MoveTopic.php''MoveTopic'),
'movetopic2' => array('MoveTopic.php''MoveTopic2'),
'notify' => array('Notify.php''Notify'),
'notifyboard' => array('Notify.php''BoardNotify'),
'openidreturn' => array('Subs-OpenID.php''smf_openID_return'),
'pm' => array('PersonalMessage.php''MessageMain'),
'post' => array('Post.php''Post'),
'post2' => array('Post.php''Post2'),
'posthistory' => array('PostHistory.php''PostHistory'),
'printpage' => array('Printpage.php''PrintTopic'),
'profile' => array('Profile.php''ModifyProfile'),
'quotefast' => array('Post.php''QuoteFast'),
'quickmod' => array('MessageIndex.php''QuickModeration'),
'quickmod2' => array('Display.php''QuickInTopicModeration'),
'recent' => array('Recent.php''RecentPosts'),
'register' => array('Register.php''Register'),
'register2' => array('Register.php''Register2'),
'reminder' => array('Reminder.php''RemindMe'),
'removepoll' => array('Poll.php''RemovePoll'),
'removetopic2' => array('RemoveTopic.php''RemoveTopic2'),
'reporttm' => array('SendTopic.php''ReportToModerator'),
'requestmembers' => array('Subs-Auth.php''RequestMembers'),
'restoretopic' => array('RemoveTopic.php''RestoreTopic'),
'search' => array('Search.php''PlushSearch1'),
'search2' => array('Search.php''PlushSearch2'),
'sendtopic' => array('SendTopic.php''EmailUser'),
// SMFPacks Shoutbox
'shoutbox' => array('Shoutbox.php''Shoutbox'),
'smstats' => array('Stats.php''SMStats'),
'suggest' => array('Subs-Editor.php''AutoSuggestHandler'),
'spellcheck' => array('Subs-Post.php''SpellCheck'),
'splittopics' => array('SplitTopics.php''SplitTopics'),
'stats' => array('Stats.php''DisplayStats'),
'sticky' => array('LockTopic.php''Sticky'),
'theme' => array('Themes.php''ThemesMain'),
'tpadmin' => array('TPortalAdmin.php''TPortalAdmin'),
'tpmod' => array('TPmodules.php''TPmodules'),
'trackip' => array('Profile-View.php''trackIP'),
'about:mozilla' => array('Karma.php''BookOfUnknown'),
'about:unknown' => array('Karma.php''BookOfUnknown'),
'unread' => array('Recent.php''UnreadTopics'),
'unreadreplies' => array('Recent.php''UnreadTopics'),
'verificationcode' => array('Register.php''VerificationCode'),
'viewprofile' => array('Profile.php''ModifyProfile'),
'vote' => array('Poll.php''Vote'),
'viewquery' => array('ViewQuery.php''ViewQuery'),
'viewsmfile' => array('Admin.php''DisplayAdminFile'),
'who' => array('Who.php''Who'),
'.xml' => array('News.php''ShowXmlFeed'),
'xmlhttp' => array('Xml.php''XMLhttpMain'),
);

// Allow modifying $actionArray easily.
call_integration_hook('integrate_actions', array($actionArray));

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
// Catch the action with the theme?
if (!empty($settings['catch_action']))
{
require_once($sourcedir '/Themes.php');
return 'WrapAction';
}

// Fall through to the board index then...
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir '/' $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}

?>
Title: Re: TinyPortal
Post by: Arantor on August 05, 2018, 08:11:47 AM
QuoteIf it's adding the entries on install to a copy of the actionArray then it's not in the index.php file because there's only one actionArray there.

Correct, that's the point.

Let me draw your attention to a very, very important line:

call_integration_hook('integrate_actions', array($actionArray));

In your version, this sends a copy of the $actionArray out to a mod to be modified - TinyPortal then modifies the copy of $actionArray and PHP promptly discards it.

In the stock SMF version, this sends the actual $actionArray itself to be modified, TinyPortal then modifies the actual array and sends it back.

So, like I said, you broke your SMF to the point where you've prevented TinyPortal doing anything about it.
Title: Re: TinyPortal
Post by: Arnox on August 06, 2018, 06:50:34 PM
Quote from: Arantor on August 05, 2018, 08:11:47 AM
QuoteIf it's adding the entries on install to a copy of the actionArray then it's not in the index.php file because there's only one actionArray there.

Correct, that's the point.

Let me draw your attention to a very, very important line:

call_integration_hook('integrate_actions', array($actionArray));

In your version, this sends a copy of the $actionArray out to a mod to be modified - TinyPortal then modifies the copy of $actionArray and PHP promptly discards it.

In the stock SMF version, this sends the actual $actionArray itself to be modified, TinyPortal then modifies the actual array and sends it back.

So, like I said, you broke your SMF to the point where you've prevented TinyPortal doing anything about it.

But I never modified the call_integration_hook line. I mean, yeah, it's clearly different from stock in that it uses $actionArray instead of &$actionArray. But is this simply a left-over from from an old SMF installation? I originally started out with 2.0.7 by the way.
Title: Re: TinyPortal
Post by: tinoest on August 07, 2018, 02:07:46 PM
It's always been &$actionArray. That's your issue though changing that should make TinyPortal work as expected, along with your other mods which access that hook.
Title: Re: TinyPortal
Post by: Kindred on August 07, 2018, 02:13:38 PM
right... by removing the ampersand, you screwed things up...
http://php.net/manual/en/language.references.pass.php
Title: Re: TinyPortal
Post by: njtweb on August 11, 2018, 06:24:44 PM
Thank you for the new version!
Title: Re: TinyPortal
Post by: lurkalot on August 12, 2018, 05:19:36 AM
Quote from: njtweb on August 11, 2018, 06:24:44 PM
Thank you for the new version!

You're welcome, glad it's doing the job, and the upgrade went smoothly.  8)
Title: Re: TinyPortal
Post by: Sir Osis of Liver on September 18, 2018, 05:50:43 PM
Trying to hide portal panels/blocks everywhere on forum except frontpage.  If I set 'Hide panels when in custom actions' to 'forum', they're only hidden on board index.
Title: Re: TinyPortal
Post by: lurkalot on September 18, 2018, 06:21:57 PM
Quote from: Sir Osis of Liver on September 18, 2018, 05:50:43 PM
Trying to hide portal panels/blocks everywhere on forum except frontpage.  If I set 'Hide panels when in custom actions' to 'forum', they're only hidden on board index.

Down the page on each panel you'll see a setting, example, "Hide left panel when in forum?   Yes  No"

Set them there and save, that should sort that.

You can also go to each block in a panel and set them to show where you want, such as Frontpage.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on September 18, 2018, 07:07:12 PM
Missed that, thanks.
Title: Re: TinyPortal
Post by: @rjen on September 19, 2018, 01:37:13 AM
Just use the setting 'hide panel in forum' . Set it for each panel...
Title: Re: TinyPortal
Post by: lurkalot on September 19, 2018, 02:00:40 AM
Quote from: lurkalot on September 18, 2018, 06:21:57 PM
Quote from: Sir Osis of Liver on September 18, 2018, 05:50:43 PM
Trying to hide portal panels/blocks everywhere on forum except frontpage.  If I set 'Hide panels when in custom actions' to 'forum', they're only hidden on board index.

Down the page on each panel you'll see a setting, example, "Hide left panel when in forum?   Yes  No"

Set them there and save, that should sort that.

You can also go to each block in a panel and set them to show where you want, such as Frontpage.

Quote from: @rjen on September 19, 2018, 01:37:13 AM
Just use the setting 'hide panel in forum' . Set it for each panel...

That's what I would do too in this case, but mentioned the each block method (as well) just in case someone wants to show a panel in certain parts of the forum rather than turning them off completely all over the forum.

I think the panels "custom actions" has a bug though, it should stop them showing in the forum completely. We need to check that tbh.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on September 19, 2018, 11:44:05 AM
Quote from: lurkalot on September 19, 2018, 02:00:40 AM
I think the panels "custom actions" has a bug though, it should stop them showing in the forum completely. We need to check that tbh.

That's how I would expect it to work, not much point in hiding panels just on board index, but we're good with Plan B.
Title: Re: TinyPortal
Post by: diegolyanky on October 03, 2018, 10:08:28 AM
Hi guys:

Is there any way to have the left blocks fixed ? ... I mean, "Always show left blocks", and without chance of hidding it.

I'm using SMF 1.1.21 with Helios Multi Theme running under PHP 7.1 ( Easy Apache 4 ) ...

Thanks a lot for helping me
Title: Re: TinyPortal
Post by: Arantor on October 03, 2018, 11:32:22 AM
I'm amazed your site even works without major security issues.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on October 03, 2018, 12:17:31 PM
Error log must be huge. :P

https://www.simplemachines.org/community/index.php?topic=534915.0
Title: Re: TinyPortal
Post by: vbgamer45 on October 03, 2018, 12:21:31 PM
In this case no. I helped with the upgrade to support PHP7. He has a lot of custom work done to the site and wanted to preserve it on a budget.
Title: Re: TinyPortal
Post by: diegolyanky on October 03, 2018, 12:22:36 PM
Quote from: Arantor on October 03, 2018, 11:32:22 AM
I'm amazed your site even works without major security issues.

Yeah... Thanks to a friend, who modified some files of my forum in order to make it secure and compatible with PHP 7.1

That's my friend ( While responding, he responded ) :)
Title: Re: TinyPortal
Post by: diegolyanky on October 03, 2018, 12:25:50 PM
Quote from: vbgamer45 on October 03, 2018, 12:21:31 PM
In this case no. I helped with the upgrade to support PHP7. He has a lot of custom work done to the site and wanted to preserve it on a budget.

You don't "helped" ... You DID IT !!!
Title: Re: TinyPortal
Post by: lurkalot on October 04, 2018, 03:06:35 AM
Not ignoring you, just as you posted at the TP support site as well it's being handled there.

I really think you should consider upgrading though, these old versions are no longer supported, and no doubt you'll have to do it eventually.
Title: Re: TinyPortal
Post by: lurkalot on October 15, 2018, 03:26:23 PM
The TinyPortal Team is pleased to announce the released of TinyPortal 1.6.0

Changelog; TP 1.6.0

Bugs Fixed:
1. Strict MySQL Mode
2. sprintf(): Too few arguments, when viewing as a guest TPsubs.template.php (Line 432)
3. TP blocks no longer showing while in Maintenance mode
4. Block style 1 is no longer overwritten by Panel style
5. Url's in menu manager no longer overflowing into other fields
6. New articles are no longer set to show on frontpage by default
7. Removed obsolete setting for TinyPortal fixed width
8. Removed obsolete settings for category icons
9. Extended Custom Actions on blocks to include url past the action
10. TPShout Admin showing panels incorrectly

Features Added:
1. Menu Manager now allows addition of single menu options to the SMF menu.
2. Improved menu manager user interface showing only fields relevant to the chosen menu item type.
3. TinyPortal now shows who's online and what article they are viewing.
4. Complete redesign of the layout on all admin pages to fit in with more modern designs
5. Improved Panel / Block style handling
6. Included new Code snippets for php blocks
7. Code snippets sorted for easier browsing
8. New admin setting to choose which social media buttons to use in articles
9. FullText Search added to Article Searching
10. New module TPlistimages provides functionality to remove images uploaded by TinyPortal

Improved support for SMF2.1:
1. No Source Code Edits in SMF 2.1
2. Added menu icons for TP menu options in profile area and main menu
3. Panel / block styles adapted for SMF2.1 use
4. Copyright location updated
5. All images converted from gif to png
6. Most TP error messages set to not write to error logs
Title: Re: TinyPortal
Post by: Arantor on October 15, 2018, 03:34:01 PM
Nice going :)
Title: Re: TinyPortal
Post by: lurkalot on October 15, 2018, 03:48:09 PM
Quote from: Arantor on October 15, 2018, 03:34:01 PM
Nice going :)

Thank you Arantor.

Very lucky to have tinoest and @rjen on board, they put a lot of work into this version, really can't thank them enough.
Title: Re: TinyPortal
Post by: Hatshepsut on October 16, 2018, 12:00:26 AM
If I try to install TinyPortal 1.6 on SMF 2.1 beta 4, I get error message:

Database Error
The used table type doesn't support FULLTEXT indexes
File: /home/bulataka/public_html/test/Packages/temp/install.php
Line: 327

Version Information:
Forum version: SMF 2.1 Beta 4 (more detailed)
Current SMF version: SMF 2.1 Beta 3
GD version: bundled (2.1.0 compatible)
MySQLi engine: MySQL
MySQLi version: 5.5.59-cll
PHP: 7.2.0 (more detailed)
Server version: Apache
Title: Re: TinyPortal
Post by: vbgamer45 on October 16, 2018, 12:13:00 AM
Due innodb tables more than likely.
Title: Re: TinyPortal
Post by: tinoest on October 16, 2018, 03:26:16 AM
Quote from: vbgamer45 on October 16, 2018, 12:13:00 AM
Due innodb tables more than likely.

Correct, I'll raise a bug and get it fixed for the next release. Probably sometime next week to allow people to raise any other bugs with this release.
Title: Re: TinyPortal
Post by: landyvlad on October 16, 2018, 08:44:05 PM
Great to see this ticking along.  I'll wait for the next iteration and then upgrade mine from 1.5.1

Cheers
Title: Re: TinyPortal
Post by: Plus on October 26, 2018, 01:17:15 PM
help please

Field 'description' doesn't have a default value
Dosya: /home/xxx/public_html/Packages/temp/install.php
Satır: 947
Title: Re: TinyPortal
Post by: @rjen on October 26, 2018, 01:57:43 PM
Quote from: Plus on October 26, 2018, 01:17:15 PM
help please

Field 'description' doesn't have a default value
Dosya: /home/xxx/public_html/Packages/temp/install.php
Satır: 947

Can you give a bit more details please?

What SMF version are you running?
What TP version are you trying to install?
Is this a first TP install or did you use TP before?
Title: Re: TinyPortal
Post by: Plus on October 26, 2018, 05:12:22 PM
2.0.15 smf
and lates tiny portal
Title: Re: TinyPortal
Post by: lurkalot on October 26, 2018, 05:31:30 PM
Quote from: Plus on October 26, 2018, 05:12:22 PM
2.0.15 smf
and lates tiny portal

Strange.  Can you post the version information from Admin > Main > Support and Credits
Title: Re: TinyPortal
Post by: tinoest on October 26, 2018, 07:07:58 PM
Quote from: Plus on October 26, 2018, 05:12:22 PM
2.0.15 smf
and lates tiny portal

What version of MySQL? I will guess its 5.7
Title: Re: TinyPortal
Post by: tinoest on October 27, 2018, 01:53:44 PM
Quote from: tinoest on October 16, 2018, 03:26:16 AM
Correct, I'll raise a bug and get it fixed for the next release. Probably sometime next week to allow people to raise any other bugs with this release.

To update on this, the release is scheduled for the end of November you can track it here along with what issues are outstanding

https://github.com/Tinyportal/TinyPortal/milestone/2


Title: Re: TinyPortal
Post by: Hatshepsut on October 28, 2018, 01:20:21 AM
I have succesfully install Tinyportal 1.6.1 on my SMF 2.1 Beta 4 forum!
The problem described in my previous posting was solved  8)

Quote from: Hatshepsut on October 16, 2018, 12:00:26 AM
If I try to install TinyPortal 1.6 on SMF 2.1 beta 4, I get error message:

Database Error
The used table type doesn't support FULLTEXT indexes
File: /home/bulataka/public_html/test/Packages/temp/install.php
Line: 327

Version Information:
Forum version: SMF 2.1 Beta 4 (more detailed)
Current SMF version: SMF 2.1 Beta 3
GD version: bundled (2.1.0 compatible)
MySQLi engine: MySQL
MySQLi version: 5.5.59-cll
PHP: 7.2.0 (more detailed)
Server version: Apache
Title: Re: TinyPortal
Post by: lurkalot on October 28, 2018, 05:31:41 AM
Quote from: Hatshepsut on October 28, 2018, 01:20:21 AM
I have succesfully install Tinyportal 1.6.1 on my SMF 2.1 Beta 4 forum!
The problem described in my previous posting was solved  8)

Quote from: Hatshepsut on October 16, 2018, 12:00:26 AM
If I try to install TinyPortal 1.6 on SMF 2.1 beta 4, I get error message:

Database Error
The used table type doesn't support FULLTEXT indexes
File: /home/bulataka/public_html/test/Packages/temp/install.php
Line: 327

Version Information:
Forum version: SMF 2.1 Beta 4 (more detailed)
Current SMF version: SMF 2.1 Beta 3
GD version: bundled (2.1.0 compatible)
MySQLi engine: MySQL
MySQLi version: 5.5.59-cll
PHP: 7.2.0 (more detailed)
Server version: Apache

Thanks for letting us know. Glad it sorted the issue.  ;)
Title: Re: TinyPortal
Post by: tinoest on October 28, 2018, 05:38:51 AM
Quote from: Hatshepsut on October 28, 2018, 01:20:21 AM
I have succesfully install Tinyportal 1.6.1 on my SMF 2.1 Beta 4 forum!
The problem described in my previous posting was solved  8)

Quote from: Hatshepsut on October 16, 2018, 12:00:26 AM
If I try to install TinyPortal 1.6 on SMF 2.1 beta 4, I get error message:

Database Error
The used table type doesn't support FULLTEXT indexes
File: /home/bulataka/public_html/test/Packages/temp/install.php
Line: 327

Version Information:
Forum version: SMF 2.1 Beta 4 (more detailed)
Current SMF version: SMF 2.1 Beta 3
GD version: bundled (2.1.0 compatible)
MySQLi engine: MySQL
MySQLi version: 5.5.59-cll
PHP: 7.2.0 (more detailed)
Server version: Apache

Glad to hear it's fixed, 1.6.1 isn't a official release yet. It shouldn't have any issues but we are still testing it so I'd suggest you install the release version of 1.6.1 when we release it on here.
Title: Re: TinyPortal
Post by: dcantwell on November 29, 2018, 08:29:59 AM
Having a problem with adding blocks to a panel.
I get a database error
"Field 'var3' doesn't have a default value
File: /var/www/vhosts/105/1058535/webspace/httpdocs/wargog.me/Sources/TPortalAdmin.php
Line: 2968"

SMF version 2.0.15
TP version 1.6.0
PHP version 5.5.38
Title: Re: TinyPortal
Post by: @rjen on November 29, 2018, 12:09:54 PM
Fixed in TP 161. To be released shortly...

Title: Re: TinyPortal
Post by: lurkalot on November 30, 2018, 01:38:50 PM
The TinyPortal Team is pleased to announce the released of TinyPortal 1.6.1

Note: You must uninstall any previous version of TinyPortal before you can install TP 1.6.1 for SMF2.0.x or SMF 2.1. Make a backup of all your SMF and TP files before you uninstall. A previous version of TP 1.0 removed the downloads and images directory which will remove needed files for your site.

What's new in TP 1.6.1.

Bugs Fixed (2.0.x and 2.1):Bugs Fixed (2.1 only):Features Added:


Download:

https://custom.simplemachines.org/mods/index.php?mod=97
https://www.tinyportal.net/index.php?action=tpmod;dl=item127
Title: Re: TinyPortal
Post by: Bigguy on December 02, 2018, 01:22:54 PM
I gotta say. I just installed this with SMF 2.1 and it's very awesome. Clean install, works great and functions perfectly so far. Thanks to all involved in the project for your hard work. Awesome job guys.  :)
Title: Re: TinyPortal
Post by: lurkalot on December 02, 2018, 06:37:54 PM
Quote from: Bigguy on December 02, 2018, 01:22:54 PM
I gotta say. I just installed this with SMF 2.1 and it's very awesome. Clean install, works great and functions perfectly so far. Thanks to all involved in the project for your hard work. Awesome job guys.  :)

Bigguy, glad you like it, and thanks for the kind feedback..  ;)
Title: Re: TinyPortal
Post by: Hatshepsut on December 04, 2018, 10:52:49 PM
There is a bug in the new version (it exists and in previous version 1.5.1).
The bottom links in frontpage's postings are broken.
Displayed link text is correct, but it presents only part of path, you can see it in the browser status bar:

Click => (https://i.postimg.cc/ppBSFqWC/tinyportalfront1.jpg) (https://postimg.cc/ppBSFqWC)

When I follow that link, I receive error message "The page does not exists".

But links in title bars are correct, for example, see the screenshot of the same posting:

Click => (https://i.postimg.cc/Y4TDHPRr/tinyportalfront2.jpg) (https://postimg.cc/Y4TDHPRr)

Version Information:
Forum version: SMF 2.1 Beta 4 (more detailed)
Current SMF version: SMF 2.1 Beta 3
GD version: bundled (2.1.0 compatible)
MySQLi engine: MySQL
MySQLi version: 5.5.59-cll
PHP: 7.2.0 (more detailed)
Server version: Apache
Title: Re: TinyPortal
Post by: @rjen on December 05, 2018, 01:39:09 AM
Thanks for the report. It has been fixed in 1.6.2
Title: Re: TinyPortal
Post by: lurkalot on December 05, 2018, 02:35:47 AM
Quote from: Hatshepsut on December 04, 2018, 10:52:49 PM
There is a bug in the new version (it exists and in previous version 1.5.1).
The bottom links in frontpage's postings are broken.
Displayed link text is correct, but it presents only part of path, you can see it in the browser status bar:


Quote from: @rjen on December 05, 2018, 01:39:09 AM
Thanks for the report. It has been fixed in 1.6.2

Just to add to this.  This issue will only appear if you run TP 1.5.1 - TP 1.6.1 on SMF 2.1  People running it on SMF 2.0.15 should be fine, and won't have this problem.

We only have a small number of beta testers, not enough to be honest hence why these bugs go unnoticed until it's too late.  So if your interested in helping out with testing, or you spotted something broken, give us a shout over at https://www.tinyportal.net

Sorry for any inconvenience, like @rjen just mentioned TP 1.6.2 is on the way.
Title: Re: TinyPortal
Post by: @rjen on December 05, 2018, 03:36:43 AM
There is temporary fix possible by changing Tportal.php file, lines 1542 and 1753...
It is not the complete fix, which is more complex, but this can help you get along till 1.6.2 is released...

Find:

$row['body'] .= '... <p><strong><a href="'. $scripturl. '?topic='. $row['id']. '">'. $txt['tp-readmore']. '</a></strong></p>';


Replace by:

$row['body'] .= '... <p><strong>'.$smcFunc['htmlspecialchars']('<a href="'. $scripturl. '?topic='. $row['id']. '">'. $txt['tp-readmore']. '</a>').'</strong></p>';
Title: Re: TinyPortal
Post by: Hatshepsut on December 06, 2018, 08:24:55 AM
Quote from: @rjen on December 05, 2018, 03:36:43 AM
There is temporary fix possible by changing Tportal.php file, lines 1542 and 1753...
It is not the complete fix, which is more complex, but this can help you get along till 1.6.2 is released...

Find:

$row['body'] .= '... <p><strong><a href="'. $scripturl. '?topic='. $row['id']. '">'. $txt['tp-readmore']. '</a></strong></p>';


Replace by:

$row['body'] .= '... <p><strong>'.$smcFunc['htmlspecialchars']('<a href="'. $scripturl. '?topic='. $row['id']. '">'. $txt['tp-readmore']. '</a>').'</strong></p>';


Yes, this fix works, thanks  :)
Title: Re: TinyPortal
Post by: Nati9 on December 08, 2018, 06:59:33 AM
I'm having a few small questions regarding my TinyPortal, but couldn't register to TinyPortal.net, whenever I try I just don't get the activation mail.

I want to change this texts to match my language, but cant find where to.
I only installed TP for it's sidebar function, so I made the front page redirect to the forum index, meaning when I enter a forum, the navigation bar shows: "Website Name > Forum > Category Name > Forum Name",
but my forum is in Hebrew, so I had to translate the word "Forum" to hebrew, and though I changed the word in the language file it still didn't change, couldn't find any other line that says 'Forum' to translate to make it work...

Picture:
http://oi66.tinypic.com/343hxs2.jpg

Also, it changed the author of last topic back to english. Couldn't figure that one either, no "by" in the language files...
Title: Re: TinyPortal
Post by: lurkalot on December 08, 2018, 07:13:04 AM
Did you change it in both versions of the TPortal.english.php  file ? Depending on the one you are using.

Should be line 25 in these files.
TPortal.english
TPortal.english-utf8

And not sure why you're not getting your activation emails, sorry.  I have activated your account for you over there, hopefully the right one, Nati9
Title: Re: TinyPortal
Post by: Nati9 on December 08, 2018, 07:28:12 AM
Quote from: lurkalot on December 08, 2018, 07:13:04 AM
Did you change it in both versions of the TPortal.english.php  file ? Depending on the one you are using.

Should be line 25 in these files.
TPortal.english
TPortal.english-utf8

And not sure why you're not getting your activation emails, sorry.  I have activated your account for you over there, hopefully the right one, Nati9
Yes, tried changing in both of them, other words do change, the 'Forum' stays the same regardless.
Title: Re: TinyPortal
Post by: lurkalot on December 08, 2018, 09:57:10 AM
OK, reading your original post again it seems I was getting confused.  So it's the linktree you're asking about.  At the moment I don't have a clue how or where to change that, so might be best for you to ask over at tinyportal.net and see if one of the other team members, or developers can help you with this.
Title: Re: TinyPortal
Post by: Nati9 on December 08, 2018, 12:06:00 PM
Quote from: lurkalot on December 08, 2018, 09:57:10 AM
OK, reading your original post again it seems I was getting confused.  So it's the linktree you're asking about.  At the moment I don't have a clue how or where to change that, so might be best for you to ask over at tinyportal.net and see if one of the other team members, or developers can help you with this.
I'll do that.
Thanks a lot!
Title: Re: TinyPortal
Post by: tinoest on December 13, 2018, 04:52:11 PM
Quote from: Nati9 on December 08, 2018, 12:06:00 PM
Quote from: lurkalot on December 08, 2018, 09:57:10 AM
OK, reading your original post again it seems I was getting confused.  So it's the linktree you're asking about.  At the moment I don't have a clue how or where to change that, so might be best for you to ask over at tinyportal.net and see if one of the other team members, or developers can help you with this.
I'll do that.
Thanks a lot!

The word forum is in the TPassimulate file in the function called tpAddMenuItems

https://github.com/TinyPortal/TinyPortal/blob/master/Sources/TPassimilate.php#L221

That should be changed, it should also be a language string not hardcoded so I'll get it changed.
Title: Re: TinyPortal
Post by: @rjen on December 14, 2018, 03:20:39 PM
That's only applicable for 2.1 I think...
Title: Re: TinyPortal
Post by: nemovet on December 26, 2018, 11:58:13 AM
i have installed tp 1.6.1 to my website with smf 2.0.13, no other modification installed and this it the error

Parse error: syntax error, unexpected '[' in /storage/content/******/public_html/forum/Sources/TPortal.php on line 450

don't know what to do.
Title: Re: TinyPortal
Post by: @rjen on December 26, 2018, 12:03:58 PM
Can you attach tportal.php from you site here?
Title: Re: TinyPortal
Post by: nemovet on December 26, 2018, 12:06:21 PM
attach is the file...
thank you
Title: Re: TinyPortal
Post by: @rjen on December 26, 2018, 12:46:15 PM
File looks OK to me,

you mentioned in another topic that you recovered an old backup (2016?) to build this forum.
What was the state of that forum?

was TP installed before? if so, what version?
And was this version completely uninstalled when you installed 1.6.1?
Title: Re: TinyPortal
Post by: tinoest on December 26, 2018, 12:55:12 PM
What version of php are you using? Why haven't you upgraded to SMF 2.0.15
Title: Re: TinyPortal
Post by: Shambles on December 26, 2018, 01:03:11 PM
PHP 5.3.* will produce the reported error.
Title: Re: TinyPortal
Post by: @rjen on December 26, 2018, 01:24:42 PM
That's another option, though I thought that actually gives more serious issues, but yeah, if you are on 5.3 consider changing up to 5.6
Title: Re: TinyPortal
Post by: nemovet on December 26, 2018, 01:30:37 PM
i am at 5.3 php  does it mean if i upgraded to 5.6 it will be fine?

@rjen the backup is just the database  of  smf  1.1.7 so i full install a smf 1.1.15 connected my database it is working then  upgraded to 1.1.18 then 1.1.21 then 2.0.13. i remember i have atp 0.96 back then but i am not sure whethere the database have remnants of tp.

do i have to just change to php 5.6 with any otherthings to do ?

Title: Re: TinyPortal
Post by: @rjen on December 26, 2018, 01:34:46 PM
First switch to 5.6 , that should work. Then report back if the issue is solved pls
Title: Re: TinyPortal
Post by: nemovet on December 26, 2018, 01:35:51 PM
ok will do that ASAP. thank you
Title: Re: TinyPortal
Post by: nemovet on December 26, 2018, 01:40:52 PM
YOU PEOPLE ARE HEAVEN-SENT!!!

It works!!!

My site is now ok with TP.
Title: Re: TinyPortal
Post by: @rjen on December 26, 2018, 01:43:18 PM
Good!
Title: Re: TinyPortal
Post by: njtweb on December 28, 2018, 08:31:18 AM
Quote from: nemovet on December 26, 2018, 01:40:52 PM
YOU PEOPLE ARE HEAVEN-SENT!!!

It works!!!

My site is now ok with TP.

Agree, all of the TP team members are awesome.
Title: Re: TinyPortal
Post by: @rjen on December 28, 2018, 08:54:18 AM
Just an FYI: from TinyPortal 1.5.0 the effective minimum PHP version is 5.4.

From Tinyportal 1.6.2 onwards the install will also check this, so you will not be able to install in the PHP version is incorrect...
Title: Re: TinyPortal
Post by: lurkalot on February 05, 2019, 05:37:11 PM
In line with the very welcome release of SMF 2.1 RC1.  The TinyPortal Team is pleased to announce the release of TinyPortal 1.6.2

Changelog: TinyPortal 1.6.2

This release includes the following fixes:

Relevant to SMF 2.0 only:
- Wysiwyg editor working again in 2.0.15 for members creating html articles
- check for minimum PHP version added to install.php

Relevant to SMF 2.0 and 2.1:
- sanitised text strings 'upper panel' and 'center panel' to always state upper panel
- 'Forum' text in linktree converted to text string
- discontinued Google+ social button per April 2019
- frontpage settings 'what to show' updated descriptions for promoted posts
- topics only showing 'Promote to frontpage' button when frontpage setting is relevant
- fixed frontpage setting 'Use first post attachment preview as illustration'
- frontpage icon layout updated to show the first attached image for posts without cropping
- fixed issue Lower blocks showing on articles even when turned off via article
- fixed small layout issue with mini calendar blockcode
- copyright updated to 2019

Relevant to SMF 2.1 only:
- fixed the 'Read more' links for frontpage articles or posts not showing correctly 
- fixed the themes block, where the thumbnail wasn't showing
- panel collapse icons repositioned
- fixed the category and frontpage layouts to be more compatible with 2.1
- fix for 'Undefined index:' url messages for calendar
- fix for linktree showing a forum link even when turned off via article
- fix for 'Undefined index:' errors in shoutbox due to changed text strings for RC1
- fix for TP menu icons not showing in RC1
- adapted smiley logic to follow RC1 adaptations.

Download  http://custom.simplemachines.org/mods/index.php?mod=97
Download  https://www.tinyportal.net/index.php?action=tpmod;dl=item129
TinyPortal Support Forum https://www.tinyportal.net/index.php?action=forum
TinyPortal Documentation https://www.tinyportal.net/docs/index.php
Title: Re: TinyPortal
Post by: Bigguy on February 06, 2019, 12:07:23 PM
Great to see this out. Thanks for all the hard work. :)
Title: Re: TinyPortal
Post by: Hero2019 on February 14, 2019, 05:43:50 PM
Would it be possible to build sounds into the shoutbox? If someone writes that a sound is coming.
Title: Re: TinyPortal
Post by: lurkalot on February 14, 2019, 06:49:07 PM
Quote from: Hero2019 on February 14, 2019, 05:43:50 PM
Would it be possible to build sounds into the shoutbox? If someone writes that a sound is coming.

I did put this idea in our feature requests board some time back.  There is plans to add some more features to the shoutbox  but not sure if this one of them.  That said, I agree it would be a good idea.


Title: Re: TinyPortal
Post by: Hero2019 on February 14, 2019, 06:55:05 PM
ok thx.  ;)
Title: Re: TinyPortal
Post by: DarkAngel612 on February 14, 2019, 07:15:32 PM
YES please at least a tiny ching, beep, glass breaking to let us know there is a new shout.
Another thing about the articles....last I heard (which is why I have not gotten newer version) I think it was stated that the articles and blocks that are html/javascript may need to be redone and the original ones would not work right. Is this still that way or is that what the statement saying the blocks are now working means, no more needing to redo them from scratch?
Title: Re: TinyPortal
Post by: lurkalot on February 14, 2019, 07:34:55 PM
Quote from: DarkAngel612 on February 14, 2019, 07:15:32 PM
YES please at least a tiny ching, beep, glass breaking to let us know there is a new shout.
Another thing about the articles....last I heard (which is why I have not gotten newer version) I think it was stated that the articles and blocks that are html/javascript may need to be redone and the original ones would not work right. Is this still that way or is that what the statement saying the blocks are now working means, no more needing to redo them from scratch?

Just turn off the editor before editing, or resaving any of your existing articles, as it might change the layout.  Newly created articles using the editor shouldn't be a problem.
Title: Re: TinyPortal
Post by: lurkalot on February 14, 2019, 07:44:09 PM
I would also recommend, if there's a feature you'd like to see added to TinyPortal, then please post it over at our support site, in the "Tinyportal Feature Requests" board.  It will have a better chance of getting seen. ;)
Title: Re: TinyPortal
Post by: RML on February 19, 2019, 10:07:58 AM
Hello. I have a question. Is there a special reason why the user block looks different on SMF 2.1 than 2.0? I mean the guest view with login and register. I miss that login form in the block.
Title: Re: TinyPortal
Post by: @rjen on February 19, 2019, 11:12:51 AM
Can you post a link where it is missing? It works for me....
Title: Re: TinyPortal
Post by: @rjen on February 19, 2019, 11:20:48 AM
Never mind: I see what you mean.

And no, that's not intentional, need to check
Title: Re: TinyPortal
Post by: lurkalot on February 19, 2019, 12:35:12 PM
Quote from: @rjen on February 19, 2019, 11:12:51 AM
Can you post a link where it is missing? It works for me....

I'd like to see the link also, as it works for me. Shows the same as it does at the very top of SMF 2.1 when not logged in. As seen here down the left hand side, https://cctestsite.info/testsite3/index.php

"Welcome to Test Site Three. Please login or sign up."
Title: Re: TinyPortal
Post by: @rjen on February 19, 2019, 12:44:21 PM
It is not the link, but the login box below that is missing.

I'll post a fix in a minute...
Title: Re: TinyPortal
Post by: @rjen on February 19, 2019, 12:47:25 PM
It is bug in the template, not working quite correctly in 2.1.

I will submit a fix for TP.

In the meantime, if you are OK to fix a file yourself, apply the fix below: to TPsubs.template.php

Find:

// Otherwise they're a guest - so politely ask them to register or login.
else if(strpos($forum_version, '2.1') !== false) {
    echo '
<ul class="floatleft welcome">
<li>', sprintf($txt[$context['can_register'] ? 'welcome_guest_register' : 'welcome_guest'], $txt['guest_title'], $context['forum_name_html_safe'], $scripturl . '?action=login', 'return reqOverlayDiv(this.href, ' . JavaScriptEscape($txt['login']) . ');', $scripturl . '?action=signup'), '</li>
</ul>';
    }
    else {
echo '
<div style="line-height: 1.4em;">', $bullet , sprintf($txt['welcome_guest'], $txt['guest_title']), '<br>', $bullet2, $context['current_time'], '</div>
<form style="margin-top: 5px;" action="', $scripturl, '?action=login2" method="post" >
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" /><br>
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="302400">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" value="', $txt['login'], '" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
<div style="line-height: 1.4em;">', $txt['quick_login_dec'], '</div>
<br>';
}
echo '
</div>';


and replace by

// Otherwise they're a guest - so politely ask them to register or login.
else {
if(strpos($forum_version, '2.1') !== false) {
echo '
<div style="line-height: 1.4em;">', sprintf($txt[$context['can_register'] ? 'welcome_guest_register' : 'welcome_guest'], $txt['guest_title'], $context['forum_name_html_safe'], $scripturl . '?action=login', 'return reqOverlayDiv(this.href, ' . JavaScriptEscape($txt['login']) . ');', $scripturl . '?action=signup'), '<br><br>', $context['current_time'], '</div>';
}
else {
echo '
<div style="line-height: 1.4em;">', sprintf($txt['welcome_guest'], $txt['guest_title']), '<br><br>', $context['current_time'], '</div>';
}
echo '
<form style="margin-top: 5px;" action="', $scripturl, '?action=login2" method="post" >
<input type="text" name="user" size="10" class="input_text" style="max-width: 45%!important;"/> <input type="password" name="passwrd" size="10" class="input_password" style="max-width: 45%!important;"/><br>
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="302400">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" class="button_submit" value="', $txt['login'], '" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
<div style="line-height: 1.4em;" class="middletext">', $txt['quick_login_dec'], '</div>';
}
echo '
</div>';


That works for both 2.0 and 2.1...
Title: Re: TinyPortal
Post by: lurkalot on February 19, 2019, 12:57:34 PM
Quote from: @rjen on February 19, 2019, 12:44:21 PM
It is not the link, but the login box below that is missing.

I'll post a fix in a minute...

Oops.  :-[ Yes I didn't even notice that was missing. Shows how often I use it. lol..

Thanks for the fix though, it can go into TP 1.6.3  ;)
Title: Re: TinyPortal
Post by: RML on February 19, 2019, 12:59:37 PM
Thanks a lot @rjen, it worked, the login box is back. :D
Title: Re: TinyPortal
Post by: @rjen on February 19, 2019, 01:04:48 PM
You're welcome.

As you can see there may still be some small issues with 2.1 support that we have not found yet: so let us know if you run into anything else...
Title: Re: TinyPortal
Post by: RML on February 20, 2019, 08:14:39 AM
There is one other thing I noticed so far, not a big problem but still... When I change the theme in the Tehemes box it takes me to the forum after the change instead of staying on the portal. ("How to redirect after login" is set to "Redirect to frontpage" if it matters.)
Title: Re: TinyPortal
Post by: RML on February 21, 2019, 09:09:37 AM
Sorry, it's me again. I found another problem, shoutbox doesn't work for members. I have enabled it for all membergroups but only admin can write message for the others there is no textarea to write although they can see the shoutbox.
Title: Re: TinyPortal
Post by: lurkalot on February 21, 2019, 09:24:39 AM
Go:  Admin > Members > Permissions >> Regular members > Modify.  Tick the box "Can Post Shouts" and save.
Title: Re: TinyPortal
Post by: @rjen on February 21, 2019, 09:28:31 AM
Beat me to it...
Title: Re: TinyPortal
Post by: RML on February 21, 2019, 09:53:21 AM
Oops, sorry, I didn't notice it, I used Simple Portal before and there was no option for shoutbox in permisson settings so I didn't even think of it. Thanks.
Title: Re: TinyPortal
Post by: @rjen on February 23, 2019, 08:02:53 AM
Quote from: RML on February 20, 2019, 08:14:39 AM
There is one other thing I noticed so far, not a big problem but still... When I change the theme in the Tehemes box it takes me to the forum after the change instead of staying on the portal. ("How to redirect after login" is set to "Redirect to frontpage" if it matters.)

There is a fix for this in Tportal.php...

  loadLanguage('TPortal', 'english');
44 44  
45 45     $context['TPortal'] = array();
46 $context['TPortal']['querystring'] = $_SERVER['QUERY_STRING'];
47 46  
48 47     if(!isset($context['forum_name']))
49 48     $context['forum_name'] = '';
... ... @@ -53,6 +52,8 @@ function TPortal_init()
53 52  
54 53     // Add all the TP settings into ['TPortal']
55 54     setupTPsettings();
55 +      // Setup querystring
56 $context['TPortal']['querystring'] = $_SERVER['QUERY_STRING'];
56 57  
57 58     // go back on showing attachments..
58 59     if(isset($_GET['action']) && $_GET['action'] == 'dlattach')
Title: Re: TinyPortal
Post by: RML on February 23, 2019, 11:09:06 AM
Thanks a lot @rjen.
Title: Re: TinyPortal
Post by: ufolog100 on March 04, 2019, 03:58:06 PM
 Setting -  Frontpage - Forum-posts and articles - sorted on date - this does not work correctly. Shows the topics instead of the posts on the first page. How do I fix it? I want to see the last Forum posts on the first page.
Title: Re: TinyPortal
Post by: CGF on March 04, 2019, 11:32:10 PM
I need some help guys, i just installed the mod, but when i try to add an article i get error Forbidden, u are not allowed to modify index.php

So help please :)
Title: Re: TinyPortal
Post by: @rjen on March 05, 2019, 01:14:40 AM
Quote from: CGF on March 04, 2019, 11:32:10 PM
I need some help guys, i just installed the mod, but when i try to add an article i get error Forbidden, u are not allowed to modify index.php

So help please :)

Can you please provide more information , like forum version, is it a new forum, what mods are installed? Did TP install withou errors? What errors did you get if any?
And HOW are you trying to add an article?
There is nothing in Tinyportal that would try to edit index.php... (as far as I know)
Title: Re: TinyPortal
Post by: CGF on March 05, 2019, 01:43:23 AM
Quote from: @rjen on March 05, 2019, 01:14:40 AM
Quote from: CGF on March 04, 2019, 11:32:10 PM
I need some help guys, i just installed the mod, but when i try to add an article i get error Forbidden, u are not allowed to modify index.php

So help please :)

Can you please provide more information , like forum version, is it a new forum, what mods are installed? Did TP install withou errors? What errors did you get if any?
And HOW are you trying to add an article?
There is nothing in Tinyportal that would try to edit index.php... (as far as I know)

forum is fresh installed, with latest version of TP too
smf version 2.0.15

i try to add an article from the TP menu, articles, HTML

thanks in advance for help
Title: Re: TinyPortal
Post by: lurkalot on March 05, 2019, 01:53:51 AM
Quote from: CGF on March 04, 2019, 11:32:10 PM
I need some help guys, i just installed the mod, but when i try to add an article i get error Forbidden, u are not allowed to modify index.php

So help please :)

Sounds more like a mod security issue to me.  Ask your host if they are running it on your server, then politely ask them to disable it for you.
Title: Re: TinyPortal
Post by: @rjen on March 05, 2019, 02:03:14 AM
Quote from: ufolog100 on March 04, 2019, 03:58:06 PM
Setting -  Frontpage - Forum-posts and articles - sorted on date - this does not work correctly. Shows the topics instead of the posts on the first page. How do I fix it? I want to see the last Forum posts on the first page.

The functionality is, that the frontpage shows indeed the topics and articles sorted on date (create date of the topic, not date of last reply to the topic). I can see that the description may suggest otherwise, buit it works as designed.

Unfortunately there is no simple change to make it work that way you want...
Title: Re: TinyPortal
Post by: lurkalot on March 05, 2019, 03:41:33 AM
Quote from: @rjen on March 05, 2019, 02:03:14 AM
Quote from: ufolog100 on March 04, 2019, 03:58:06 PM
Setting -  Frontpage - Forum-posts and articles - sorted on date - this does not work correctly. Shows the topics instead of the posts on the first page. How do I fix it? I want to see the last Forum posts on the first page.

The functionality is, that the frontpage shows indeed the topics and articles sorted on date (create date of the topic, not date of last reply to the topic). I can see that the description may suggest otherwise, buit it works as designed.

Unfortunately there is no simple change to make it work that way you want...

@rjen, think maybe we should reword that setting for the next version. It's been like that for a long time and never questioned before,  which surprises me some what now it's been brought to attention.
Title: Re: TinyPortal
Post by: @rjen on March 05, 2019, 04:29:43 AM
You are right, we can update that to prevent confusion.

On another note: I am just wondering how the OP imagines it would work if the frontpage would really show the posts?

Just show the last post? or show the topics as they do now but reorder them based on the most recent post added instead of the topic creation?
Title: Re: TinyPortal
Post by: ufolog100 on March 05, 2019, 01:35:55 PM
How can I change the language of the user Module?



Show unread
Show replies
Show own posts
Show latest comments
Total Logged In:
Write HTML article
Write BBC article


My articles
Upload file
Manage settings
Manage blocks
Manage articles
Manage TPdownloads

I want to translate it into which file these meanings are recorded?

Title: Re: TinyPortal
Post by: @rjen on March 05, 2019, 05:10:52 PM
They are from multiple language files...

TPortal.english.php:
$txt['tp-loggedintime'] = 'Total Logged In:';

TPmodules.english-utf8.php:
$txt['tp-submitarticle'] ='Write HTML article';

TPortal.english.php:
$txt['permissionname_tp_blocks'] = 'Manage blocks';

so you need to hunt through a number of files... better get a translation pack from the support site (if available in your language) ...

https://www.tinyportal.net

Title: Re: TinyPortal
Post by: ufolog100 on March 05, 2019, 11:59:15 PM
Quote from: @rjen on March 05, 2019, 05:10:52 PM
They are from multiple language files...

TPortal.english.php:
$txt['tp-loggedintime'] = 'Total Logged In:';

TPmodules.english-utf8.php:
$txt['tp-submitarticle'] ='Write HTML article';

TPortal.english.php:
$txt['permissionname_tp_blocks'] = 'Manage blocks';

so you need to hunt through a number of files... better get a translation pack from the support site (if available in your language) ...

https://www.tinyportal.net
thank you
Title: Re: TinyPortal
Post by: njtweb on March 06, 2019, 01:26:49 PM
Mick, I got a new workstation and have forgotten my pw. I don't even remember the email I used to sign up.

I have a bug to report. I am currently running TP 1.6.0 When I or a member post a new topic with an attachment the "Read More" link goes away on the front page.
Title: Re: TinyPortal
Post by: lurkalot on March 06, 2019, 02:17:27 PM
Quote from: njtweb on March 06, 2019, 01:26:49 PM
Mick, I got a new workstation and have forgotten my pw. I don't even remember the email I used to sign up.

I have a bug to report. I am currently running TP 1.6.0 When I or a member post a new topic with an attachment the "Read More" link goes away on the front page.

Ok, not sure why that is, but firstly upgrade to TP 1.6.2 and see if that cures your problem, you are a couple of versions behind.

Secondly I'll sort your login over at tinyportal.net, and get back to you.  ;)
Title: Re: TinyPortal
Post by: Antes on March 30, 2019, 10:30:38 AM
I just noticed, TP has an extra empty div. This is blocking core css definition on cat_bar+windowbg to work.
Title: Re: TinyPortal
Post by: @rjen on March 30, 2019, 10:44:08 AM
It may be that it's there on purpose to overrule the windowbg layout in 2.1.

How is it blocking you, and where exactly? Link?
Title: Re: TinyPortal
Post by: Antes on March 30, 2019, 10:59:54 AM
Its not blocking me, its blocking itself. https://github.com/SimpleMachines/SMF2.1/blob/release-2.1/Themes/default/css/index.css#L3535-L3539
Title: Re: TinyPortal
Post by: 4everBlue on March 30, 2019, 12:04:08 PM
Where do we find the translations for old and new versions now?
Title: Re: TinyPortal
Post by: @rjen on March 30, 2019, 05:09:23 PM
Quote from: 4everBlue on March 30, 2019, 12:04:08 PM
Where do we find the translations for old and new versions now?

Here...

https://www.tinyportal.net/index.php?action=tpmod;dl=cat1

And we could use some help updating...
Title: Re: TinyPortal
Post by: @rjen on March 30, 2019, 05:57:51 PM
Quote from: Antes on March 30, 2019, 10:30:38 AM
I just noticed, TP has an extra empty div. This is blocking core css definition on cat_bar+windowbg to work.

There are multiple place where there are empty divs used in TP, without more detail where exactly you are running into this problem it is looking for a needle in a haystack...
Title: Re: TinyPortal
Post by: Hatshepsut on April 03, 2019, 01:23:57 AM
Is the new version 1.6.3 compatible with PHP 7.3 ?
Title: Re: TinyPortal
Post by: Arantor on April 03, 2019, 01:43:16 AM
Hope you're on SMF 2.1 RC2, the only version of SMF that might work properly on 7.3...
Title: Re: TinyPortal
Post by: @rjen on April 03, 2019, 02:50:37 AM
Quote from: Hatshepsut on April 03, 2019, 01:23:57 AM
Is the new version 1.6.3 compatible with PHP 7.3 ?

I have just installed TP 163 (which is not yet released by the way) on RC2 with PHP 7.3.3.
(so far I was testing on 7.2).

All working fine without problems and errors, so yes, I guess it is compatible.
Mind you: without more testing we cannot be 100% sure atm
Title: Re: TinyPortal
Post by: Hatshepsut on April 03, 2019, 05:26:57 AM
Quote from: Arantor on April 03, 2019, 01:43:16 AM
Hope you're on SMF 2.1 RC2, the only version of SMF that might work properly on 7.3...

Yes, my forum is on SMF 2.1 RC2. With PHP 7.2 all works fine, but with PHP 7.3 I cannot access the forum and I get error messages

Forum index page:

Click => (https://i.postimg.cc/7J8CTCsS/php73.jpg) (https://postimg.cc/7J8CTCsS)

Tinyportal Download section:

Click => (https://i.postimg.cc/dZ2hRqpp/php73-2.jpg) (https://postimg.cc/dZ2hRqpp)

If Tinyportal is compatible with PHP 7.3, probably some of other installed mods generates these errors.
Title: Re: TinyPortal
Post by: SychO on April 03, 2019, 05:49:28 AM
Might be Auto Embed Media Pro 2
Title: Re: TinyPortal
Post by: Hatshepsut on April 03, 2019, 11:06:42 AM
Quote from: SychO on April 03, 2019, 05:49:28 AM
Might be Auto Embed Media Pro 2

I use Simple Audio Video Embedder (version 4.5.3), maybe this mod is incompatible with PHP 7.3
Title: Re: TinyPortal
Post by: 4everBlue on April 07, 2019, 07:33:22 AM
Quote from: @rjen on March 30, 2019, 05:09:23 PM
Quote from: 4everBlue on March 30, 2019, 12:04:08 PM
Where do we find the translations for old and new versions now?

Here...

https://www.tinyportal.net/index.php?action=tpmod;dl=cat1

And we could use some help updating...

Thank you.
Title: Re: TinyPortal
Post by: lurkalot on April 07, 2019, 02:24:42 PM
The TinyPortal Team is pleased to announce the release of TinyPortal 1.6.3

Changelog;
This release includes the following fixes:

Relevant to 2.0 and 2.1:
- removed Google+ social button function
- fixed the theme switcher not staying on current page when switching themes
- fixed 'Invalid argument supplied for foreach()' error in menumanager after clean install
- updated text strings for frontpage settings to state 'forum-topics' and not 'posts'
- fixed menu options for articles showing even when not authorized
- fixed border styles to be more suitable for dark themes
- fixed SCEditor not showing language specific tooltips
- fixed TPadmin link for non-admins ending in an empty admin screen
- various fixes and updates to download manager screens
- standardized TPdownloads icon sizes
- fixed Tinyportal menu option not showing to users when TPdownloads is active
- fixed - empty item - string being incorrectly cleared in downloads without file

Relevant to 2.1 only:
- added option to assign menu icons in the menu manager
- fixed the user block not showing the login fields to guests
- fixed list styles in HTML articles not showing bullits
- fixed bottom margin for blocks and frontpage articles
- fixed layout issue with catbg + windowbg styling Curve2
Title: Re: TinyPortal
Post by: njtweb on April 07, 2019, 02:52:49 PM
On your RC2 test site, how did you do those 3 blocks at the top? Can that be done in 2.0.15?
Title: Re: TinyPortal
Post by: @rjen on April 07, 2019, 03:18:45 PM
Quote from: njtweb on April 07, 2019, 02:52:49 PM
On your RC2 test site, how did you do those 3 blocks at the top? Can that be done in 2.0.15?

It is derived from a block code that can be found on the support site...

https://www.tinyportal.net/index.php?topic=36222.0

and yes, anything is possible with blocks, also on 2.0.15
Title: Re: TinyPortal
Post by: njtweb on April 07, 2019, 03:23:30 PM
Quote from: @rjen on April 07, 2019, 03:18:45 PM
Quote from: njtweb on April 07, 2019, 02:52:49 PM
On your RC2 test site, how did you do those 3 blocks at the top? Can that be done in 2.0.15?

It is derived from a block code that can be found on the support site...

https://www.tinyportal.net/index.php?topic=36222.0

and yes, anything is possible with blocks, also on 2.0.15

Thank you @rjen

Is the code to use, @Bigguy's? I see you guys went back and forth for a few pages, I want to make sure I use the correct code that is responsive.

EDIT....

That's the code I used but it's not responsive. So, can't use it anyway. Thanks!
Title: Re: TinyPortal
Post by: lurkalot on April 07, 2019, 03:34:34 PM
In answer to your first question.  yes.  https://cctestsite.info/forums/index.php

The block code can be found over at the TP support site, there's two versions of it.
Title: Re: TinyPortal
Post by: @rjen on April 07, 2019, 03:35:36 PM
Yep, I made it responsive, that code is in a different topic...
Title: Re: TinyPortal
Post by: njtweb on April 07, 2019, 03:37:45 PM
Quote from: @rjen on April 07, 2019, 03:35:36 PM
Yep, I made it responsive, that code is in a different topic...

Ok, which topic, I'd like to try it out if it's ok.
Title: Re: TinyPortal
Post by: @rjen on April 07, 2019, 03:45:41 PM
I believe this is it

https://www.tinyportal.net/index.php?topic=36222.msg295862#msg295862

But It may need some tweaking for 2.0.15
Title: Re: TinyPortal
Post by: njtweb on April 07, 2019, 03:47:48 PM
The link takes me to the post to modify it. Like I have permission to make changes to the post. And yes, that works great. Cool. thank you
Title: Re: TinyPortal
Post by: @rjen on April 07, 2019, 03:56:59 PM
I fixed the link. You're welcome
Title: Re: TinyPortal
Post by: Pinch42O on April 24, 2019, 02:52:14 PM
I installed TinyPortal (http://custom.simplemachines.org/mods/index.php?mod=97) because I was using this mod before and now its all laggy, I mean I need to wait like 2sec for each sub-forum to load, before installation it was normal, I uninstalled it and problem is still present, I've tested this on Manas v1 and on Manas v2 and same problem on both themes...
I mean, I really do not want to reinstall whole web and everything if this can be fixed...
Yes, it is 000webhost until I don't buy domain and web space but I'm sure it isn't issue here...
SMF 2.0.15 and for some reason in theme versions it says 2.0.14
Title: Re: TinyPortal
Post by: @rjen on April 24, 2019, 02:58:55 PM
Does not sound familiair. Assuming you installed version 1.6.3?

There are no similar reports that I know of. When uninstalling TP uninstalls completely, so there is no reason it should affect your forum after uninstalling.

What other Mods are you using ? Link to your forum?
Title: Re: TinyPortal
Post by: Pinch42O on April 24, 2019, 03:05:14 PM
Quote from: @rjen on April 24, 2019, 02:58:55 PM
Does not sound familiair. Assuming you installed version 1.6.3?

There are no similar reports that I know of. When uninstalling TP uninstalls completely, so there is no reason it should affect your forum after uninstalling.

What other Mods are you using ? Link to your forum?
https://pawn-overflow.000webhostapp.com/index.php // Url should go here but some reason its blocked....
It onlly happens after installing TP mod, I use only that MOD because forum is in developemnt...
I can PM you my Profile login/pass if needed...
Title: Re: TinyPortal
Post by: @rjen on April 24, 2019, 03:34:14 PM
Just visited your forum: TP is not installed and as far as I can see no TP related elements showing.

I cannot judge the performance (you are not showing the load times). But it seems a bit slow to me.
Not much more I can say. What mods are you using?
And how is the performance with the default theme?
Title: Re: TinyPortal
Post by: Pinch42O on April 24, 2019, 03:46:27 PM
Quote from: @rjen on April 24, 2019, 03:34:14 PM
Just visited your forum: TP is not installed and as far as I can see no TP related elements showing.

I cannot judge the performance (you are not showing the load times). But it seems a bit slow to me.
Not much more I can say. What mods are you using?
And how is the performance with the default theme?
Same on default...
I'll create a backup of theme and reinstall everything I suppose...
Title: Re: TinyPortal
Post by: @rjen on April 24, 2019, 03:56:38 PM
You can try... curious to hear if it helps...
Title: Re: TinyPortal
Post by: lurkalot on April 24, 2019, 05:42:59 PM
Quote from: Pinch42O on April 24, 2019, 02:52:14 PM

Yes, it is 000webhost until I don't buy domain and web space but I'm sure it isn't issue here...


Could be a coincidence, server playing up at that particular time.  But as @rjen said, we've not had anyone else report this problem, and not noticed it ourselves. 

Quote from: Pinch42O on April 24, 2019, 02:52:14 PM

SMF 2.0.15 and for some reason in theme versions it says 2.0.14


So assuming that must have been like this before you installed TinyPortal
Title: Re: TinyPortal
Post by: Sverige on July 20, 2019, 06:00:21 AM
just installed tinyportal 1.6.3 and now my forum is dead. cant access it. getting an error code HTTP 500-error. i have 2.0.15
i have a theme installed can it be the theme that is causing this problem?

also this is coming up "An Error Has Occurred! Call to undefined function loadCSSFile()"

please help cant access the forum :)

edit: its the same with all themes, seems that my chrome window is the only one working, and im afraid to close it! no other webbrowser works!

edit2: managed to uninstall it and now my forum is working! does anyone know how to fix this so i can use it?

edit3: running PHP 7.3
Title: Re: TinyPortal
Post by: lurkalot on July 20, 2019, 06:41:43 AM
Quote from: Sverige on July 20, 2019, 06:00:21 AM

edit3: running PHP 7.3


SMF 2.0.15 doesn't support PHP 7.3 which is probably why you're having issues. https://wiki.simplemachines.org/smf/SMF2.0:Requirements_and_recommendations
Title: Re: TinyPortal
Post by: Sverige on July 20, 2019, 07:11:02 AM
Quote from: lurkalot on July 20, 2019, 06:41:43 AM
Quote from: Sverige on July 20, 2019, 06:00:21 AM

edit3: running PHP 7.3


SMF 2.0.15 doesn't support PHP 7.3 which is probably why you're having issues. https://wiki.simplemachines.org/smf/SMF2.0:Requirements_and_recommendations

So if im using 2.0.15 what php should i use?
Title: Re: TinyPortal
Post by: @rjen on July 20, 2019, 07:24:42 AM
Max 7.1.

By the way TinyPortal 163 works fine on 7.3 when using SMF 2.1
Title: Re: TinyPortal
Post by: lurkalot on July 20, 2019, 07:24:42 AM
I did post a link to the requirements above, but it says

SMF from 2.0.14 onwards require a version of PHP between 5.4 and 7.1
Title: Re: TinyPortal
Post by: Sverige on July 21, 2019, 08:07:15 AM
im on PHP 7.1 now and still get the "An Error Has Occurred! Call to undefined function loadCSSFile()" error.


Title: Re: TinyPortal
Post by: Arantor on July 21, 2019, 08:19:05 AM
loadCSSFile is, as far as I remember, a 2.1 only function?
Title: Re: TinyPortal
Post by: lurkalot on July 21, 2019, 08:23:30 AM
Quote from: Arantor on July 21, 2019, 08:19:05 AM
loadCSSFile is, as far as I remember, a 2.1 only function?

Pete, I was just reading that here, https://www.simplemachines.org/community/index.php?topic=530264.msg3936470#msg3936470

The OP also implied a theme was added, now makes me wonder what theme would have been installed on 2.1 if it is 2.1  ;)
Title: Re: TinyPortal
Post by: Antechinus on July 23, 2019, 07:46:19 PM
Just for the heck of it, I tried installing TP 1.6.3 on the latest nightly build of SMF 2.1. No problems at all. :)

I does have 56 HTML validation errors, but they're pretty trivial. Would be easy to fix if you want to.

(I'm on the lookout for a good forum/cms combination that has a solid articles system)
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 02:36:49 AM
Good to hear. We can look into the validation errors for the next version.

Atm TP is pretty stable on 2.1. There are one or two minor bug fixes waiting release but that may wait for RC3 to be released.
Title: Re: TinyPortal
Post by: lurkalot on July 24, 2019, 03:09:48 AM
Quote from: Antechinus on July 23, 2019, 07:46:19 PM
Just for the heck of it, I tried installing TP 1.6.3 on the latest nightly build of SMF 2.1. No problems at all. :)

I does have 56 HTML validation errors, but they're pretty trivial. Would be easy to fix if you want to.

(I'm on the lookout for a good forum/cms combination that has a solid articles system)

Pleased your giving it a test, more the merrier.  We're pretty pleased with how TP sits in 2.1 right now seems to work really nicely. 

Thanks for pointing out the validation errors, that's something that obviously needs work, hopefully the team will be able to work this out for the next version or two.  Like @rjen mentioned we are currently working on TP 1.6.4 which contains a few bug fixes etc. And we'll hopefully release this shortly after testing on RC3.

Quote from: @rjen on July 24, 2019, 02:36:49 AM

Good to hear. We can look into the validation errors for the next version.


Glad you read this, I was going to mention it to you over at TPHQ.  ;)

Thanks guys.
Title: Re: TinyPortal
Post by: Antechinus on July 24, 2019, 03:48:58 AM
Reminds me of the old TP 0.9.8. That had validation errors too. :D

Most of them are just due to the changes for HTML5 doctype. Stuff like js file calls not requiring crud they used to require. Won't break anything, but comes up as a validation error anyway.

The only one that really caught my eye was your upshrink icon spans being shoved directly into a ul (in the bar which has the breadcrumbs and unread posts in 2.1). I'm not sure of everything in use these days, but I can see how that might break layout with some browsers and/or OS's. It'd be easy enough to just change the spans to li's. Might need a little extra CSS, but would be fine for validation.
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 04:23:58 AM
I'll look into that in a few weeks (holidays now).

As for the icons, we moved them there for a reason: the 2.1 theme did not leave us many options . Need to see what you mean with the ul stuff, but I need a laptop for that...

The validation stuff has been there a long time indeed but, as you say, it is only information nothing is broken afaik. I would welcome any tips on fixing what can be fixed...
Title: Re: TinyPortal
Post by: Antechinus on July 24, 2019, 04:49:42 AM
Well, on 2.1 the breadcrumbs bar (Home>Forum>ZOMG.................................................Unread Stuffz Lynx) is one ul all the way across. TP puts its upshrinks there, which is fine, except that they are in a span.

Code ends up looking like this:
<div class="navigate_section">
<ul>
<span class="tp_upshrink21">
<a title="Left Panel" style="cursor: pointer;" name="toggle_tpleftbarHeader" onclick="togglepanel('tpleftbarHeader');togglepanel('tpleftbarContainer')">
<img id="toggle_tpleftbarHeader" src="http://127.0.0.1/SMF_21x/Themes/default/images/tinyportal/TPupshrink.png" alt="*">
</a>
<a title="Right Panel" style="cursor: pointer;" name="toggle_tprightbarHeader" onclick="togglepanel('tprightbarHeader');togglepanel('tprightbarContainer')">
<img id="toggle_tprightbarHeader" src="http://127.0.0.1/SMF_21x/Themes/default/images/tinyportal/TPupshrink.png" alt="*">
</a>
<a title="Top Panel" style="cursor: pointer;" name="toggle_tptopbarHeader" onclick="togglepanel('tptopbarHeader');togglepanel('')">
<img id="toggle_tptopbarHeader" src="http://127.0.0.1/SMF_21x/Themes/default/images/tinyportal/TPupshrink.png" alt="*">
</a>
<a title="Upper Panel" style="cursor: pointer;" name="toggle_tpcenterbarHeader" onclick="togglepanel('tpcenterbarHeader');togglepanel('')">
<img id="toggle_tpcenterbarHeader" src="http://127.0.0.1/SMF_21x/Themes/default/images/tinyportal/TPupshrink.png" alt="*">
</a>
</span>
<li class="unread_links">
<a href="http://127.0.0.1/SMF_21x/index.php?action=unread" title="Show unread posts since last visit.">Unread Posts</a>
<a href="http://127.0.0.1/SMF_21x/index.php?action=unreadreplies" title="Show new replies to your posts.">Updated Topics</a>
</li>
<li class="last">
<a href="http://127.0.0.1/SMF_21x/index.php"><span>SMF 2.1 Testing</span></a>
</li>
</ul>
</div>


Like I said, it's an easy one to fix. For 2.1 you just change span to li. Sorted. :)
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 05:14:43 AM
Not so easy to fix I think: in 2.1 TP is all hooks. This is added by adding a string in the buffer; making the span a li element may require a template change. We do not want that...
Title: Re: TinyPortal
Post by: Antechinus on July 24, 2019, 05:38:07 AM
Can't see why it would. It'd be bonkers for SMF to force a span directly inside a ul tag, so if SMF isn't doing it then it must be coming straight from TP. In which case you just edit the TP code and it should be fine. Or if SMF is doing it then that's a bug in 2.1 anyway, so should be fixed. Either way it should be fixable without too much drama, AFAICT.
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 05:55:14 AM
Like I said: no pc atm so I will look into into it later... thanks for the tip though
Title: Re: TinyPortal
Post by: Sverige on July 24, 2019, 10:18:04 AM
So now i'm on PHP 7.1 and SMF Default Theme Curve  version 2.0.15 TP version 1.6.3 and i still get this error:

Call to undefined function loadCSSFile()

any help how i can get this to work? or can i use another version of TP?

edit: 1.6.2 do not work either!
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 12:17:13 PM
Why the shouting?

Have never heard of this issue before. Another TP version is most likely not going to change anything...
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 12:19:31 PM
What mods do you have installed apart from TinyPortal?
Title: Re: TinyPortal
Post by: vbgamer45 on July 24, 2019, 12:22:25 PM
loadcssfile is par of SMF 2.1
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 12:37:49 PM
It may be that the OP has a certain mod running that removes SMF version. Since tp uses the variable to determine if it is running on 2.0 or 2.1 that may cause the code to incorrectly call a 2.1 function.

To know that we need to know what other mods he is running
Title: Re: TinyPortal
Post by: lurkalot on July 24, 2019, 12:44:39 PM
Quote from: @rjen on July 24, 2019, 12:37:49 PM
It may be that the OP has a certain mod running that removes SMF version. Since tp uses the variable to determine if it is running on 2.0 or 2.1 that may cause the code to incorrectly call a 2.1 function.

To know that we need to know what other mods he is running

That is exactly what's happening then, because the OP is using a mod to hide the SMF version. ;)
Title: Re: TinyPortal
Post by: Arantor on July 24, 2019, 12:48:43 PM
And this is fixable on TP's side by changing whatever "is this 2.1?" test to look if loadCSSFile exists or not ;)
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 12:49:32 PM
Quote from: lurkalot on July 24, 2019, 12:44:39 PM
Quote from: @rjen on July 24, 2019, 12:37:49 PM
It may be that the OP has a certain mod running that removes SMF version. Since tp uses the variable to determine if it is running on 2.0 or 2.1 that may cause the code to incorrectly call a 2.1 function.

To know that we need to know what other mods he is running

That is exactly what's happening then, because the OP is using a mod to hide the SMF version. ;)

How do you know that? Did he post a link to his site somewhere?
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 12:51:01 PM
Quote from: Arantor on July 24, 2019, 12:48:43 PM
And this is fixable on TP's side by changing whatever "is this 2.1?" test to look if loadCSSFile exists or not ;)

Probably, but the version check is used a lot more often, also for many other things...
Title: Re: TinyPortal
Post by: Arantor on July 24, 2019, 12:54:35 PM
Quote from: @rjen on July 24, 2019, 12:51:01 PM
Quote from: Arantor on July 24, 2019, 12:48:43 PM
And this is fixable on TP's side by changing whatever "is this 2.1?" test to look if loadCSSFile exists or not ;)

Probably, but the version check is used a lot more often, also for many other things...

Version checking is why Windows skipped Windows 9. It is honestly far more trouble than doing feature detection.
Title: Re: TinyPortal
Post by: lurkalot on July 24, 2019, 12:57:32 PM
Quote from: @rjen on July 24, 2019, 12:49:32 PM
Quote from: lurkalot on July 24, 2019, 12:44:39 PM
Quote from: @rjen on July 24, 2019, 12:37:49 PM
It may be that the OP has a certain mod running that removes SMF version. Since tp uses the variable to determine if it is running on 2.0 or 2.1 that may cause the code to incorrectly call a 2.1 function.

To know that we need to know what other mods he is running

That is exactly what's happening then, because the OP is using a mod to hide the SMF version. ;)

How do you know that? Did he post a link to his site somewhere?

I asked for a link, so we could ascertain what version of SMF was running and noticed the SMF version was missing from the copyright, and the TP copyright. Was told a mod is being used to hide the SMF version.
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 01:14:18 PM
Guess it is this one then: https://custom.simplemachines.org/mods/index.php?mod=1046

That mod and TP cannot be used together...
Title: Re: TinyPortal
Post by: lurkalot on July 24, 2019, 01:23:44 PM
Quote from: @rjen on July 24, 2019, 01:14:18 PM
Guess it is this one then: https://custom.simplemachines.org/mods/index.php?mod=1046

That mod and TP cannot be used together...

Wasn't told exactly what mod it was, all I know it was downloaded from here, and it hides the SMF version.  Maybe Sverige will come back and confirm.   I'm big and ugly enough to confess I didn't even think about the version check causing the problem. 
Title: Re: TinyPortal
Post by: Arantor on July 24, 2019, 01:28:30 PM
I'd forgotten the version hide mod even existed, because it doesn't do anything for security whatsoever, it just breaks things elsewhere like why TP is trying to use a 2.1 only function on 2.0 because it doesn't know it's 2.0.
Title: Re: TinyPortal
Post by: lurkalot on July 24, 2019, 01:32:58 PM
Quote from: Arantor on July 24, 2019, 01:28:30 PM
I'd forgotten the version hide mod even existed, because it doesn't do anything for security whatsoever, it just breaks things elsewhere like why TP is trying to use a 2.1 only function on 2.0 because it doesn't know it's 2.0.

I'll raise you.  ;) I didn't know it existed at all, and also didn't know it would cause this problem.  It's the first time I have come across this particular scenario involving TP.
Title: Re: TinyPortal
Post by: Arantor on July 24, 2019, 01:46:32 PM
I ran into something like this during LevGal's development when I first added 2.1 support to it since I had to solve the same problem - and I think I even ended up using loadCSSFile as my guinea pig.
Title: Re: TinyPortal
Post by: @rjen on July 24, 2019, 02:29:20 PM
Quote from: lurkalot on July 24, 2019, 01:32:58 PM
Quote from: Arantor on July 24, 2019, 01:28:30 PM
I'd forgotten the version hide mod even existed, because it doesn't do anything for security whatsoever, it just breaks things elsewhere like why TP is trying to use a 2.1 only function on 2.0 because it doesn't know it's 2.0.

I'll raise you.  ;) I didn't know it existed at all, and also didn't know it would cause this problem.  It's the first time I have come across this particular scenario involving TP.

Actually, we had one report before on this TinyPortal.net.
Problem was similar, but not with Loadcssfile.. funny that it seems to give different errors...
Title: Re: TinyPortal
Post by: vbgamer45 on July 24, 2019, 04:46:35 PM
For my mods I do a function exists check to tell whether I am using SMF 2.0.x or SMF 2.1.x then load code based on that.
Title: Re: TinyPortal
Post by: Sverige on July 24, 2019, 05:37:52 PM
hello guys, did't see the answers ive got, sorry about that!

you were right about the hiding of the version, and by stop hiding the version number it worked instantly!

so now i got alot of exploring to do tonight and check all the cool functions TP has to offer  :)
Title: Re: TinyPortal
Post by: lurkalot on July 24, 2019, 06:06:06 PM
Quote from: Sverige on July 24, 2019, 05:37:52 PM
hello guys, did't see the answers ive got, sorry about that!

you were right about the hiding of the version, and by stop hiding the version number it worked instantly!

so now i got alot of exploring to do tonight and check all the cool functions TP has to offer  :)

Cool.  I can only apologise for not spotting the problem when you told me about the SMF version.  Glad you got it installed.  We live and learn.  ;)
Title: Re: TinyPortal
Post by: Antechinus on July 24, 2019, 09:21:48 PM
Ok peeps, I found your buggy spans in 1.6.3. The problem is in Sources/TPassimilate.php, on Line 59.
*insert obvious Borg jokes here*

Code (Sources/TPassimilate.php) Select
// add upshrink buttons
if( ( strpos($forum_version, '2.1') !== false ) && array_key_exists('TPortal', $context) && !empty($context['TPortal']['upshrinkpanel']) ) {
$buffer = preg_replace('~<div class="navigate_section">\s*<ul>~', '<div class="navigate_section"><ul><span class="tp_upshrink21">'.$context['TPortal']['upshrinkpanel'].'</span>', $buffer, 1);
}


This fixes it:

Code (Sources/TPassimilate.php) Select
// add upshrink buttons
if( ( strpos($forum_version, '2.1') !== false ) && array_key_exists('TPortal', $context) && !empty($context['TPortal']['upshrinkpanel']) ) {
$buffer = preg_replace('~<div class="navigate_section">\s*<ul>~', '<div class="navigate_section"><ul><li class="tp_upshrink21">'.$context['TPortal']['upshrinkpanel'].'</li>', $buffer, 1);
}


And you need a small CSS tweak to go with it. This is on Line 1841:

Code (css/tp-style.css) Select
.tp_upshrink21, .navigate_section .tp_upshrink21 {
float: right;
margin-top:6px;
padding-left:10px;
}


Have tested it live on local. Seems to be fine. :)

And just so you know, the deprecated type="text/css" and type="text/javascript" calls for yesterday's 2.1 nightly, and for TP 1.6.3, are shown in the attached images. This is only part of the validation glitches. Will take a look at some of the rest later.
Title: Re: TinyPortal
Post by: lurkalot on July 25, 2019, 02:02:19 PM
Thank you Antechinus, that's very helpful.   ;)  Hopefully we'll get some of this stuff sorted in the next release.
Title: Re: TinyPortal
Post by: Antechinus on July 25, 2019, 07:31:48 PM
Here's a  couple more: for align, valign, border and frameborder.
TBH I don't know if (or which) browsers still give legacy support for these or not, but the HTML5 gods reckon they're kaput.

Note that there is one SMF 2.1 file listed (Subs-Editor.php) which is not your problem as such.

Since divs, etc naturally put text at the top anyway, my guess is that you could simply delete all instances of valign without noticing the difference. I think this is just a leftover from back when table cells for layout was a thing.

There seem to be quite a few instances of... style="width:15%;" align="center" ...which could be mass replaced with... style="width:15%; text-align:center" ...if you want to do it the easy way and leave the CSS files alone. Naturally this is evil, and will result in eternal damnation, but being good all the time is a PITA anyway. Personally I think just throwing in a class or two would make more sense, but it may be more frigging around.
Title: Re: TinyPortal
Post by: Bloc on July 26, 2019, 08:34:28 AM
Those are from a different time lol :)

Probably TP should focus on using css classes for its widths etc. instead of relying on tables. Not to mention utilizing native CSS grids instead of home-brewn grids or *gasp* tables for layout/panels.

Major rewrite though, I would imagine. (I haven't been following so well what changes have been made in its templates past years)
Title: Re: TinyPortal
Post by: @rjen on July 26, 2019, 08:49:40 AM
TinyPortal is not using tables anymore for some time now (I believe those were taken out in version 1.4R) but yes, a lot of the css stuff still dates from those days...  ;)

We already removed a lot of inline css in the last versions, but there still is a lot left to be done.
Good news is that it all still works fine in the current browsers and apart from the purists among us and the html5 validators no-one notices... 
Title: Re: TinyPortal
Post by: Bloc on July 26, 2019, 09:12:56 AM
Oh, I am not against that lol, just that the way it was implemented all those years ago - with precise placements of blocks and pixel-perfect widths etc. - is of less use today, since there are so many different resolutions that will always some way or the other, mess this up. :)

Thats why I've fallen in love with CSS grid styling lol, I mean whats not to love with a single CSS rule that puts all child containers - with gaps, you know, actual gaps that do not need special attention for first and last item and do not impact on widths/paddings/margins - in perfect thirds(of total width) without breaking a sweat? Not to mention it can place an unforeseen number of same width items on any width, make sure they never go below a set minimum width but otherwise expand to use all available space at any time? I wish this was possible when I wrote up all those layout options in TP wayback when. :)

Title: Re: TinyPortal
Post by: @rjen on July 27, 2019, 12:59:44 PM
Quote from: Antechinus on July 24, 2019, 09:21:48 PM
And just so you know, the deprecated type="text/css" and type="text/javascript" calls for yesterday's 2.1 nightly, and for TP 1.6.3, are shown in the attached images. This is only part of the validation glitches. Will take a look at some of the rest later.

Hi Antechinus, I have done some cleanup on the TP code for HTML5 compliance. Thanks for the hints..

One issue comes to mind: TP 1.6.4 has a common codebase for 2.0 and 2.1. Validating the changes I find that the 2.0 branch has doctype : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" and 2.1 has doctype: <!DOCTYPE html>

As a result removing the types for the scripts actually causes errors in the validation on the 2.0.x installation with TP.

All scripts seem to work fine still on the old doctype even with removing the type. Is there a compelling reason not to do this yet?
If so we may have to included a version dependent access for all these occurrences, but I would rather not go through the trouble...
Title: Re: TinyPortal
Post by: Antechinus on July 27, 2019, 08:55:52 PM
Fair point about the 2.0.x doctype, and I can't see the deprecated file types being a problem. They don't seem to break anything. If it's a drama to get rid of them I'd say just leave them for now. It'll give the Purple Peeps something to grumble about, and they like a good grumble. :)
Title: Re: TinyPortal
Post by: gfa-skyranger on August 04, 2019, 04:05:51 PM
How to show x numbers of posts from a specified board on a block?


i want to show 4 topics on a two column-block from my info-board.

and under this i want to show recent topics of selected boards.

How can i do that?

Title: Re: TinyPortal
Post by: Kindred on August 06, 2019, 03:17:45 AM
you would have to build your own block using a php tinyportal block, then using SSI.php, call recentposts as an array

e.g. MyBlock=ssi_recentPosts(4,NULL,NULL,'array');

and then output the specific recentPosts information in the format that you want...
Title: Re: TinyPortal
Post by: lurkalot on August 06, 2019, 03:41:13 AM
Quote from: gfa-skyranger on August 04, 2019, 04:05:51 PM
How to show x numbers of posts from a specified board on a block?


i want to show 4 topics on a two column-block from my info-board.

and under this i want to show recent topics of selected boards.

How can i do that?

Quote from: Kindred on August 06, 2019, 03:17:45 AM
you would have to build your own block using a php tinyportal block, then using SSI.php, call recentposts as an array

e.g. MyBlock=ssi_recentPosts(4,NULL,NULL,'array');

and then output the specific recentPosts information in the format that you want...

I wasn't quite sure how this was supposed to look to be honest, is this to fill a whole page, or just fit in a block amongst other content on the page.  You could have posts showing from certain board as done for example here, https://www.smfhelper.com/index.php

A sketch, of the layout would be useful..   As would experimenting on a test site.
Title: Re: TinyPortal
Post by: Kindred on August 06, 2019, 04:03:41 AM
for example, tweak the html output section as you see below



<?php
require_once('SSI.php');
$MyTopics=ssi_recentTopics(4,NULL,NULL,'array');
$MyPosts=ssi_recentPosts(4,NULL,NULL,'array');

echo '
<table border="0" class="ssi_table">'
;
foreach ($MyTopics as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">
['
$post['board']['link'], ']
</td>
<td valign="top">
<a href="'
$post['href'], '">'$post['subject'], '</a>
'
$txt['by'], ' '$post['poster']['link'], '
'
, !$post['is_new'] ? '' '<a href="' $scripturl '?topic=' $post['topic'] . '.msg' $post['new_from'] . ';topicseen#new" rel="nofollow"><img src="' $settings['lang_images_url'] . '/new.gif" alt="' $txt['new'] . '" /></a>''
</td>
<td align="right" nowrap="nowrap">
'
$post['time'], '
</td>
</tr>'
;
echo '
</table>'
;


echo '
<table border="0" class="ssi_table">'
;
foreach ($MyPosts as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">
['
$post['board']['link'], ']
</td>
<td valign="top">
<a href="'
$post['href'], '">'$post['subject'], '</a>
'
$txt['by'], ' '$post['poster']['link'], '
'
$post['is_new'] ? '<a href="' $scripturl '?topic=' $post['topic'] . '.msg' $post['new_from'] . ';topicseen#new" rel="nofollow"><img src="' $settings['lang_images_url'] . '/new.gif" alt="' $txt['new'] . '" /></a>' '''
</td>
<td align="right" nowrap="nowrap">
'
$post['time'], '
</td>
</tr>'
;
echo '
</table>'
;



?>



Title: Re: TinyPortal
Post by: gfa-skyranger on August 06, 2019, 10:05:04 AM
Thank you for the answers.

They'll certainly help me out, I copied and pasted the example, and it works.

Unfortunately, it shows me ALL boards, but I only want to display one board, I have a bit of experimenting with the example, but without an explanation it is quite difficult.
(Got it, how it works... thx)

Anyway, I'll try to do that with Tinyportal.

If I fail then, I better try my time work in Portamx to stick,
there is already completely available, what your heart desires.

Unfortunately, this no longer works with the new php and mysql versions.
If I can make this work, I would certainly be happier.


But I think it makes more sense to fix something that was perfect than to mend something that is not really out of its own.


Well, thanks again, i will try to do my best with tinyportal for now.
Title: Re: TinyPortal
Post by: Kindred on August 06, 2019, 10:15:44 AM
to include only one board, change the first NULL in the call to the BoardID (e.g. 12)

to include multiple boards ass a line right after require_once $incl_board= array(12,14,15);
then  change the NULL to $incl_boards

the same can be done with the second NULL to exclude specific boards.


Side note: the SSI functions all respect the existing permissions...   so, as an admin, you can see everything, but normal users will not see info from a board which they can not actually access
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 12:42:32 AM
Working on a forum running TP 1.6.3 in 2.0.15, just did clean install and owner installed/configed TP.  Main menu is a bit wonky, TinyPortal menu button is visible to guests, shouldn't be (doesn't work), and there is no Forum button.  Don't see any settings for these.
Title: Re: TinyPortal
Post by: @rjen on August 08, 2019, 01:11:11 AM
TinyPortal button is visible to users that have permissions for the download manager (sub-menu button to TPdownloads should be functional): if you do not want users to see the menu option and the sub-menu to Tpdownloads, don't give them permissions for the download manager and the button will not show...

Not sure why there would not be a forum button: it should be there... link to the forum?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 01:25:05 AM
https://www.ancientgreecereloaded.com/files/ancient_greece_reloaded_website/forum/index.php

The Downloads link does nothing when user is not logged in.
Title: Re: TinyPortal
Post by: @rjen on August 08, 2019, 01:33:02 AM
Hmm I see what you mean.

Can you check what happens if you allow guests to see the forum (SMF setting)?
Title: Re: TinyPortal
Post by: lurkalot on August 08, 2019, 01:42:31 AM
Quote from: Sir Osis of Liver on August 08, 2019, 12:42:32 AM
Working on a forum running TP 1.6.3 in 2.0.15, just did clean install and owner installed/configed TP.  Main menu is a bit wonky, TinyPortal menu button is visible to guests, shouldn't be (doesn't work), and there is no Forum button.  Don't see any settings for these.

Forum button not showing probably due to front page setting = Go directly to forum index.  Change that to something else and it should come back.

Downloads not doing anything because guests don't have permission to view anything by the looks of it.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 01:55:19 AM
Yeah, got the button back.  I'd like to have portal blocks display only on front page, Forum link to display forum without blocks.

Guests have no permissions (well, just one, to view staff list).  Are there additional permissions for TP?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 02:01:02 AM
Quote from: @rjen on August 08, 2019, 01:33:02 AM
Can you check what happens if you allow guests to see the forum (SMF setting)?

If I allow guests to browse forum, they don't see board index, just info center.  TP Downloads link allows them to view downloads.
Title: Re: TinyPortal
Post by: @rjen on August 08, 2019, 02:04:49 AM
Quote from: Sir Osis of Liver on August 08, 2019, 01:55:19 AM
Yeah, got the button back.  I'd like to have portal blocks display only on front page, Forum link to display forum without blocks

That's easy: suppress the panels on the forum index

Quote
Guests have no permissions (well, just one, to view staff list).  Are there additional permissions for TP?

Check the permissions : TP adds permissions: guests are allowed to view downloads by default
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 02:14:28 AM
Quote from: @rjen on August 08, 2019, 02:04:49 AM
That's easy: suppress the panels on the forum index

Ok, got that.

Quote
Check the permissions : TP adds permissions: guests are allowed to view downloads by default

Not seeing that, only permissions for Downloads System mod.
Title: Re: TinyPortal
Post by: lurkalot on August 08, 2019, 02:28:04 AM
Go to that downloads "General" category and edit the permission for it. (Untick Guests).
Title: Re: TinyPortal
Post by: @rjen on August 08, 2019, 02:30:44 AM
You are right , sorry it's early... there are no guest permissions (they are on the categories, but that may not solve your problem)

Need to look into that. For the time being (if you are not using the Tpdowloads module) switching it off in the TP modules setting should remove the unwanted menu option...
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 02:46:07 AM
I'm beat, it's getting to be 0300 here and eyes are shot.  Don't see any way to disable TP downloads.  The board index is broken in guest view, nothing to do with TP.  Think I'll dump this install tomorrow and start clean (again), install TP first.
Title: Re: TinyPortal
Post by: @rjen on August 08, 2019, 02:50:07 AM
TinyPortal > modules > download manager : switch to Off
Title: Re: TinyPortal
Post by: lurkalot on August 08, 2019, 02:52:14 AM
Quote from: Sir Osis of Liver on August 08, 2019, 02:46:07 AM
I'm beat, it's getting to be 0300 here and eyes are shot.  Don't see any way to disable TP downloads.  The board index is broken in guest view, nothing to do with TP.  Think I'll dump this install tomorrow and start clean (again), install TP first.

Ok, hopefully we'll get you there eventually.  As a last resort you could give one of us TP team admin access, and we'll see if we can point you in the right direction.

Quote from: @rjen on August 08, 2019, 02:50:07 AM
TinyPortal > modules > download manager : switch to Off

Should do it.  ;)
Title: Re: TinyPortal
Post by: lurkalot on August 08, 2019, 02:56:47 AM
Quote from: Sir Osis of Liver on August 08, 2019, 01:55:19 AM
Yeah, got the button back.  I'd like to have portal blocks display only on front page, Forum link to display forum without blocks.

Guests have no permissions (well, just one, to view staff list).  Are there additional permissions for TP?

In addition. If you don't want blocks showing on the staff list.  Go TP Admin > Panels

In the "Hide panels when in custom actions:" box type the word staff

And save.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 03:55:51 PM
Quote from: @rjen on August 08, 2019, 02:50:07 AM
TinyPortal > modules > download manager : switch to Off

Ok, got that.  How to remove TP drop item from Help button for guests?
Title: Re: TinyPortal
Post by: @rjen on August 08, 2019, 03:59:28 PM
Only by changing code
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 04:07:03 PM
<sigh>  Where's the code?
Title: Re: TinyPortal
Post by: @rjen on August 08, 2019, 04:20:47 PM
<Yawn> I will tell you when I have a pc available. This will not be before Saturday.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 04:39:53 PM
Ok, no big rush.  I'm dumping the install and redoing everything from scratch.  Some of the glitches are due to leftover stuff in the database, I'm trying to get access to clean it up.  Biggest problem is getting forum owner to decide what he wants.  Thanks.
Title: Re: TinyPortal
Post by: lurkalot on August 08, 2019, 04:52:57 PM
Remove TP from the help tab.  If I've got this right, it's in Sources\TPassimilate.php

Look for, and change true, to false at the bottom.

    // Add the help

    if(array_key_exists('help', $buttons)) {

        $buttons['help']['sub_buttons'] = array(

            'tphelp' => array(

                'title' => $txt['tp-tphelp'],

                'href' => $scripturl.'?action=tpmod;sa=help',

                'show' => true,

            ),

        );

    }
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 08, 2019, 05:29:17 PM
Ok, that got it.  Also changed Forum button so it shows for all frontpage settings.
Title: Re: TinyPortal
Post by: lurkalot on August 09, 2019, 02:34:11 AM
Quote from: Sir Osis of Liver on August 08, 2019, 05:29:17 PM
Ok, that got it.  Also changed Forum button so it shows for all frontpage settings.

Glad that sorted the help tab.   Not sure what you mean regarding the Forum button though, that should show anyway unless you've got it set in Frontpage settings > "Go directly to forum index"
Title: Re: TinyPortal
Post by: @rjen on August 09, 2019, 04:23:31 AM
I guess he wants to see it all the time, even when it has no added value over the home button..
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 09, 2019, 12:13:19 PM
Basically, yes.  "Go directly to forum index" displays index with portal blocks, I prefer to have an option to view the forum without the portal.  It's less cluttered, and removes a lot of stuff you only need to see when you first arrive at the forum. 
Title: Re: TinyPortal
Post by: lurkalot on August 09, 2019, 12:52:55 PM
For that all you had to do is select "Go directly to forum index" Then tell TP not to display panels on the forum index.  Or better still, and the way I would do it, is tell each block where to show or not show.  That way you can have certain blocks on certain pages as required. 
Title: Re: TinyPortal
Post by: @rjen on August 09, 2019, 03:38:13 PM
Quote from: Sir Osis of Liver on August 09, 2019, 12:13:19 PM
Basically, yes.  "Go directly to forum index" displays index with portal blocks, I prefer to have an option to view the forum without the portal.  It's less cluttered, and removes a lot of stuff you only need to see when you first arrive at the forum.

That's what the 'frontpanel only' option is for. No need to immediately start changing php code if you do not understand the available functionality.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 09, 2019, 10:03:53 PM
Tried that, but I get blank screen between left/right portal blocks.
Title: Re: TinyPortal
Post by: Antechinus on August 10, 2019, 01:47:36 AM
*****/index.php?action=tpadmin;sa=panels

QuoteLeft Panel

Width of this panel: ****

Use left panel?    On/ Off

Hide left panel when in forum?    Yes/No

See that last one? Wanna guess what it does? :D
Same deal for all the other panels.
Title: Re: TinyPortal
Post by: @rjen on August 10, 2019, 03:01:22 AM
Quote from: Sir Osis of Liver on August 09, 2019, 10:03:53 PM
Tried that, but I get blank screen between left/right portal blocks.

Interesting approach. I checked your test site, and now you actually have two boardindex pages showing: on the Home page it now shows the index page with the side panels and on the forum page it now the index page without the side panels. The home page is showing the infocenter in the central block. Is that what the user wants?
It's OK by me, I have just never seen this approach before...

I understand you don't want the forum pages 'cluttered' by the side panels: I do the same think in my forum...

But leaving the leftover Infopanel on the homepage gives me somehow the feeling that the page is 'not finished'. That's why most put some content in the central area: that's where you get the 'blank screen': that is the front panel area. Creating one or more blocks with content is the more common way to fill that area. A simple welcome block introducing the forum and it's purpose is usually a nice start.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on August 10, 2019, 05:05:29 PM
I'm still working through the forum config, there are over 130 boards, and all are set not visible to guests, that's why you only see info center (took me a while to figure that out).  We'll probably use one of the other options for center panel, I'll leave that to the owner.  Getting a better idea how TP works, right now that's not the major problem.

Title: Re: TinyPortal
Post by: @rjen on August 11, 2019, 03:34:10 PM
Quote from: Antechinus on July 27, 2019, 08:55:52 PM
Fair point about the 2.0.x doctype, and I can't see the deprecated file types being a problem. They don't seem to break anything. If it's a drama to get rid of them I'd say just leave them for now. It'll give the Purple Peeps something to grumble about, and they like a good grumble. :)

FYI: all known html5 issues fixed for the next TP release (1.6.4), now let's hope the RC3 will come soon: we plan to release 1.6.4 when we are sure it works with RC3 as well...
Title: Re: TinyPortal
Post by: Antechinus on August 11, 2019, 05:52:20 PM
Makes sense. No point doing it twice.
Title: Re: TinyPortal
Post by: lurkalot on September 21, 2019, 09:01:52 AM
The TinyPortal Team is pleased to announce the release of TinyPortal 1.6.4

Note: You must uninstall any previous version of TinyPortal before you can install TP 1.6.4 for SMF2.0.x or SMF 2.1. Make a backup of all your SMF and TP files before you uninstall.

Changelog;
This release includes the following fixes:

Relevant to 2.0 and 2.1:

- added functionality for social buttons to use 'query title' for article links
- updated menu manager to use 'query titles' for articles and 'short names' for categories
- added language visibility functionality to frontpage blocks
- added extra layout option to articles: 'Use frame style, but not title style'. This allows for removal of title bar for articles without titles
- updated source code and templates for better html5 compliance
- fixed error '8: Undefined variable: count' due to function art_recentitems
- fixed language visibility for blocks not working correctly
- fixed do_hooks.php function not running to manually add/remove hooks
- fixed error with constant SMF_FULL_VERSION when using SSI.php
- fixed Icon for 'General' category TPdownloads not correctly set on install
- fixed incorrect responsive behaviour Quickreply area
- fixed error 'undefined index: locked' for article authors on Category page
- fixed shoutbox creating double shouts on some forums

Thank you both Tino and @rjen for all the hard work you put into this release.  ;)
Title: Re: TinyPortal
Post by: nidec on September 30, 2019, 04:15:44 PM
Hi,
I've added tinyportal to my site notthenoobs.com,  really useful.
One question,  do I have to have a Tinyportal tab at the menu (home, forum, login, etc)?
I don't really want visitors to see it, I don't see what use it is for them. Is there a way to hide it?
Thanks
Title: Re: TinyPortal
Post by: Arantor on September 30, 2019, 04:40:32 PM
Think you'll find it only shows for people who have permissions to be in the configuration area.
Title: Re: TinyPortal
Post by: lurkalot on September 30, 2019, 05:06:52 PM
Quote from: nidec on September 30, 2019, 04:15:44 PM
Hi,
I've added tinyportal to my site notthenoobs.com,  really useful.
One question,  do I have to have a Tinyportal tab at the menu (home, forum, login, etc)?
I don't really want visitors to see it, I don't see what use it is for them. Is there a way to hide it?
Thanks

Ok, a couple of questions so we can help you. 

1: When you say visitors, do you mean guest visitors, or logged in members?
2: Are you going to use the built in downloads system in TinyPortal?

If you want to hide TinyPortal tab from visitors and you're not going to use the downloads system, the you can turn the tab off in TP Admin > Modules > Downloads Manager - Downloads Admin.  turn that option off and save.
Title: Re: TinyPortal
Post by: nidec on October 01, 2019, 09:52:34 AM
Thats perfect Lurkalot,  thanks
Title: Re: TinyPortal
Post by: Antechinus on October 05, 2019, 03:30:27 AM
Bit of code for you guys. Was checking out something Rjen mentioned, and noticed your avatars in side blocks throw scrollbars in Chrome and Opera. Easy to fix, and you can even do it with less code than you have now.

Code (Find) Select
span.tpavatar
{
float: left;
margin-top: 2px;
margin-right: 10px;
padding: 1px;
display: block;
overflow: auto;
}
span.tpavatar img
{
width: 40px;
height: auto;
border-radius: 2px;
}


Code (Replace) Select
.tpavatar {
float: left;
padding: 3px 11px 0 0;
}
.tpavatar img
{
width: 40px;
height: auto;
border-radius: 2px;
}


Explanation: no need for the tag names, so good to drop those. No need to declare display: block either. One thing a lot of people don't seem to know is that floating any element automatically makes it block display. :)

The auto overflow is obviously what was causing the scroll bars, but the span will wrap the image anyway if you just leave overflow at the default setting of visible, so that's easy. And no point declaring margin and padding in this case, since one or the other can handle the requirements.

Not that I expect you to do a whole new release for something this trivial, but the code might be handy for someone.
Title: Re: TinyPortal
Post by: @rjen on October 05, 2019, 03:34:55 AM
Thanks. I noticed the same in your theme and was planning to fix that. No hurry since it does not do this in Curve (and variants) .
This saves me sorting it myself  ;)

Note: There still is a lot of redundant styling and css in the code from the old days.. we hope to deal with a lot of that in the upcoming 2.0.0 version of TP.
Title: Re: TinyPortal
Post by: Antechinus on October 05, 2019, 03:38:11 AM
That's odd, because there's nothing in my one that would make it go wonky, as far as I know. Your css was resizing the image anyway, and mine wasn't overriding that. It couldn't, since your sheet is loaded last, so I have NFI why it would be different to vanilla Curve in that respect.

Oh yeah while I think of it: also did some code to remove my paddings from windowbg 1& 2. Not sure if I will put it in my theme, as trying to include css for every mod under the sun rapidly becomes bonkers, so I'll put it here for now.

#tptopbarHeader div[class~="windowbg"],
#tpcenterbarHeader div[class~="windowbg"],
#tpleftbarContainer div[class~="windowbg"],
#tprightbarContainer div[class~="windowbg"],
#tplowerbarHeader div[class~="windowbg"],
#tpbottombarHeader div[class~="windowbg"] {
padding: 0;
}


That sets padding in all TP panels back to vanilla Curve equivalent, while not touching anything else. Could be handy for  range of custom themes, depending on what their authors get up to.
Title: Re: TinyPortal
Post by: @rjen on October 05, 2019, 03:45:34 AM
I find it odd too, but it is what it is.
Title: Re: TinyPortal
Post by: wylekk on December 28, 2019, 10:32:33 AM
Hi!
When editing an article by moderators, this error always appears on version 1.6.3-1.6.4  SMF2.1 RC2

Type of error: Undefined
8: Undefined index: locked
https://site.ru/index.php?https://site.ru/
/home/admin/web/site.ru/public_html/Themes/default/TPsubs.template.php (Line 1639)
Title: Re: TinyPortal
Post by: @rjen on December 28, 2019, 10:40:02 AM
That error was fixed in 164 ... https://www.tinyportal.net/index.php?topic=36398.0
what version are you using?
Title: Re: TinyPortal
Post by: lurkalot on December 28, 2019, 11:07:42 AM
Quote from: @rjen on December 28, 2019, 10:40:02 AM
That error was fixed in 164 ... https://www.tinyportal.net/index.php?topic=36398.0
what version are you using?

I remember that one, you found it and fixed it just before we released TP 1.6.4

I've just edited article as a Global Moderator, and Moderator and can't get it to throw a error.
Title: Re: TinyPortal
Post by: wylekk on December 28, 2019, 12:10:17 PM
Mod downloaded from your site, version 1.6.4. Error (Undefined index: locked - Line 1638) on both the working forum and the test forum.
Title: Re: TinyPortal
Post by: @rjen on December 29, 2019, 02:57:56 AM
Quote from: catyr on December 28, 2019, 12:10:17 PM
Mod downloaded from your site, version 1.6.4. Error (Undefined index: locked - Line 1638) on both the working forum and the test forum.

Can you attach your Tportal.php file here? I am looking for the code around line 1038 in that file...

A link to one on those sites would also be useful
Title: Re: TinyPortal
Post by: wylekk on December 29, 2019, 04:05:35 AM
Error code

elseif(allowedTo('tp_editownarticle') && !allowedTo('tp_articles') && $context['TPortal']['article']['authorID'] == $context['user']['id'] && $context['TPortal']['hide_editarticle_link'] == '0' && $context['TPortal']['article']['locked'] == '0')

If you prohibit the editing of an article by a moderator, there is no error.

Here is a working site h__s://wylek.ru
Here is a test site h__p://www.sub.wylek.ru
Title: Re: TinyPortal
Post by: @rjen on December 29, 2019, 06:08:32 AM
That is not the file I need to see..
Title: Re: TinyPortal
Post by: wylekk on December 29, 2019, 07:59:58 AM
File this - TPsubs.template.php
Title: Re: TinyPortal
Post by: @rjen on December 29, 2019, 08:17:47 AM
I really need to see the file I specified : Tportal.php
Even though the message states another file that's where the issue starts...

Please attach the file itself here...
Title: Re: TinyPortal
Post by: wylekk on December 29, 2019, 08:25:41 AM
File in attachment
Title: Re: TinyPortal
Post by: @rjen on December 29, 2019, 08:39:13 AM
Seriously? I asked for the file Tportal.php...
Title: Re: TinyPortal
Post by: wylekk on December 29, 2019, 09:05:07 AM
Wrong file attached :-\
Title: Re: TinyPortal
Post by: @rjen on December 29, 2019, 09:35:19 AM
Quote from: wylekk on December 29, 2019, 09:05:07 AM
Wrong file attached :-\

thanks for that one. I checked you file and indeed the fix I mentioned is already in there, so there must be another issue.
I will try to reproduce it first, will let you know my findings...
Title: Re: TinyPortal
Post by: @rjen on December 29, 2019, 10:06:50 AM
Quote from: wylekk on December 28, 2019, 10:32:33 AM
Hi!
When editing an article by moderators, this error always appears on version 1.6.4  SMF2.1 RC2

Type of error: Undefined
8: Undefined index: locked
https://site.ru/index.php?https://site.ru/
/home/admin/web/site.ru/public_html/Themes/default/TPsubs.template.php (Line 1639)


Ok, I tried to reproduce it using a user account that has the permission to manage articles, and then update a random article (from a different user). I get no errors.

Tried it on the frontpage, on a category page and on an article page, but all work fine.

Can you describe in detail which steps you take to get the error? 
Can you post the complete URL of the page you are accessing when getting the error?

You say a 'moderator' changes an article. How exactly is the user configured? SMF Moderators do not get extra permissions in Tinyportal, so I assume you have a user group with extra permissions. What exact TinyPortal permissions does that user group have?
Title: Re: TinyPortal
Post by: @rjen on December 29, 2019, 04:11:26 PM
Ok, found it, replace Tportal.php with the file attached: that should fix it...
Title: Re: TinyPortal
Post by: wylekk on December 30, 2019, 12:30:28 AM
Great! Now there are no errors  :)
Title: Re: TinyPortal
Post by: @rjen on December 30, 2019, 01:32:56 AM
You're welcome
Title: Re: TinyPortal
Post by: -Rock Lee- on December 30, 2019, 01:21:29 PM
I published it on the author's site but since I'm here I leave it here the attachment of the Spanish Latin translation of TP 1.6.4 8).


Regards!
Title: Re: TinyPortal
Post by: @rjen on December 30, 2019, 01:46:32 PM
Thanks. Translation is posted her...

https://www.tinyportal.net/index.php?action=tpmod;dl=item150
Title: Re: TinyPortal
Post by: lurkalot on December 30, 2019, 01:51:53 PM
Quote from: @rjen on December 30, 2019, 01:46:32 PM
Thanks. Translation is posted her...

https://www.tinyportal.net/index.php?action=tpmod;dl=item150

Thanks, Rock Lee.  Much appreciated. 8)

Title: Re: TinyPortal
Post by: Sir Osis of Liver on December 30, 2019, 10:34:28 PM
How to place google ads in block?  Have the ad code in lower panel, it's blank.  Test div displays, ads do not.
Title: Re: TinyPortal
Post by: lurkalot on December 31, 2019, 06:30:30 AM
Those ads can take a bit of time to show up, as you probably already know.  And make sure your browser isn't blocking them.

Just chuck the code in a HTML/JavaScript block and activate it. 

I would recommend you set the block:

Frame Options: Do not use title/frame styles
Allow block to collapse: Do not allow this block to collapse.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on December 31, 2019, 03:57:53 PM
Got it working in SP, but prefer to use TP.  Had to disable three layers of security to see the ads, including my AV.  Everything google does is just crawling with crap. >:(  Is there any way to resize the ads?  They're way too big.
Title: Re: TinyPortal
Post by: lurkalot on December 31, 2019, 04:22:36 PM
Quote from: Sir Osis of Liver on December 31, 2019, 03:57:53 PM
Got it working in SP, but prefer to use TP.  Had to disable three layers of security to see the ads, including my AV.  Everything google does is just crawling with crap. >:(  Is there any way to resize the ads?  They're way too big.

What add type of Google add units are you using?  Google Display adds are responsive by default.  Google In Feed adds and In Article.  And Google auto adds are ok, they are responsive, but can be a bit hit and miss where they display.

Title: Re: TinyPortal
Post by: Sir Osis of Liver on December 31, 2019, 04:55:03 PM
It's not responsiveness that's the problem, it's the size of the ads in pc view.  I have access to the client's adsense account, will take a look soon as I finish the migration I'm working on.
Title: Re: TinyPortal
Post by: dowhelp on January 11, 2020, 10:09:41 PM
Hi Lurkalot

Firstly great mod. Thank you

Secondly, I have an issue.

When I uninstall 1.6.3 and install 1.6.4. The blocks containing the mods are missing. If I restore 1.6.3 then all is as should be.

I am on 2.0.17 but this was same on 2.015/6

Any help appreciated.

Thank you.

Title: Re: TinyPortal
Post by: @rjen on January 12, 2020, 03:16:15 AM
In TinyPortal check the setting: Use language visibility option for blocks?

If it is set uncheck it. That will make the blocks show again.
If you leave it set to 'on' you can specify in the block settings for what languages the block will show. If no language is selected it will not show at all..

This feature was broken before 1.6.4. and is fixed now...
Title: Re: TinyPortal
Post by: dowhelp on January 12, 2020, 08:28:23 AM
@rjen thank you
Title: Re: TinyPortal
Post by: wylekk on January 14, 2020, 04:22:33 AM
Hi.
I have installed the SimpleSEF mod (https://github.com/dragomano/SimpleSEF).
For the SimpleSEF mod to work with Tinyportal.

SimpleSEF.php

Find
if (isset($sefstring3))
$sefstring .= $sefstring3;


Replace
if (empty($sefstring3))
$sefstring .= $sefstring3;

         
Find
$start = $data[1] ?: 0;

Replace
$start = isset($data[1]) ? $data[1] : 0;         


It is not possible to go to the Tinyportal menu via the Downloads link. This is how it works with the SimpleSEF mod and without it.

TPSubs.php

Find
'href' => $scripturl . '?action=tpmod;dl',

Replace
'href' => $scripturl . '?action=tpmod;dl=1',


TPdlmanager.template.php

Find
'frontdl' => array('text' => 'tp-downloadss1', 'lang' => true, 'url' => $scripturl . '?action=tpmod;dl' ),

Replace
'frontdl' => array('text' => 'tp-downloadss1', 'lang' => true, 'url' => $scripturl . '?action=tpmod;dl=1' ),
Title: Re: TinyPortal
Post by: d3vcho on January 28, 2020, 11:28:01 AM
I just installed TinyPortal 1.6.4 and this is how my homepage (/index.php) is showing:

Any ideas?

SMF 2.0.17, no other mods or themes, PHP 7.2.26.

Coming up from a 1.1.20 to 2.0.17 upgrade. The 1.1.20 install HAD a TinyPortal mod, but I don't know which one.
Title: Re: TinyPortal
Post by: @rjen on January 28, 2020, 11:38:47 AM
Mmm, looks a bit wonky.

Was the old Tinyportal uninstalled prior to upgrade?
Link to the forum?
Title: Re: TinyPortal
Post by: d3vcho on January 28, 2020, 12:07:31 PM
Quote from: @rjen on January 28, 2020, 11:38:47 AM
Mmm, looks a bit wonky.

Was the old Tinyportal uninstalled prior to upgrade?
Link to the forum?

No, it wasn't because prior upgrade the forum was unaccessible.

I'm guessing I would have to uninstall 1.6.4, drop the related tables and reinstall?

http://www.projumpforum.com/index.php
Title: Re: TinyPortal
Post by: @rjen on January 28, 2020, 12:28:30 PM
QuoteI'm guessing I would have to uninstall 1.6.4, drop the related tables and reinstall?

If you are not worried about loosing the content of blocks and articles from the old forum, that should work ok.
Can you still access the package manager?
Title: Re: TinyPortal
Post by: d3vcho on January 28, 2020, 12:39:21 PM
Quote from: @rjen on January 28, 2020, 12:28:30 PM
If you are not worried about loosing the content of blocks and articles from the old forum, that should work ok.
Can you still access the package manager?

Yes, I do have full access to the forum now, but I just had that issues reinstalling TinyPortal.

So the best course of actions is what I said or is there a better one?
Title: Re: TinyPortal
Post by: @rjen on January 28, 2020, 12:52:15 PM
If you are not worried about the content your plan is the best one...

If you are worried about the content then you should try to find the cause of the errors.

Cannot see from this error what the cause is:
Notice: Undefined variable: tab1 in /homepages/10/d107635368/htdocs/Forum/Themes/default/TPsubs.template.php(141) : eval()'d code on line 1

Have you checked the option "Disable evaluation of templates"?
Title: Re: TinyPortal
Post by: @rjen on January 28, 2020, 01:02:12 PM
Additional info: looking at the site code makes me suspect that there is code in the TinyPortal blocks that may be incorrect and may be causing the errors. You could try to go to TinyPortal admin and disable all blocks.

http://www.projumpforum.com/index.php?action=tpadmin;sa=blocks

I suspect that will fix the layout, then switch on the blocks one by one, and see which is causing the distortion of the page... that would be your culprit(s)
Title: Re: TinyPortal
Post by: d3vcho on January 28, 2020, 01:09:59 PM
That was it. When I disabled all the blocks the forum came back to normal. Now I'll have to figure out which block are causing issues and fix them, but I think I can do it myself.

Thanks for the help, much appreciated!
Title: Re: TinyPortal
Post by: @rjen on January 28, 2020, 01:15:45 PM
You're welcome  ;)

By the way: you have TP 1.6.3 installed, not 1.6.4...

not much difference, but 164 has a number of bugfixes..

Relevant to 2.0 and 2.1:
- added functionality for social buttons to use 'query title' for article links
- updated menu manager to use 'query titles' for articles and 'short names' for categories
- added language visibility functionality to frontpage blocks
- added extra layout option to articles: 'Use frame style, but not title style'. This allows for removal of title bar for articles without titles
- updated source code and templates for better html5 compliance
- fixed error '8: Undefined variable: count' due to function art_recentitems
- fixed language visibility for blocks not working correctly
- fixed do_hooks.php function not running to manually add/remove hooks
- fixed error with constant SMF_FULL_VERSION when using SSI.php
- fixed Icon for 'General' category TPdownloads not correctly set on install
- fixed incorrect responsive behaviour Quickreply area
- fixed error 'undefined index: locked' for article authors on Category page
- fixed shoutbox creating double shouts on some forums
Title: Re: TinyPortal
Post by: d3vcho on January 28, 2020, 01:21:56 PM
Ah yeah, I forgot I uninstalled 1.6.4 and installed 1.6.3 to check if it was a version problem. Thank you, I just installed 1.6.4 back :)
Title: Re: TinyPortal
Post by: lurkalot on January 28, 2020, 02:07:41 PM
Quote from: d3vcho(); on January 28, 2020, 01:21:56 PM
Ah yeah, I forgot I uninstalled 1.6.4 and installed 1.6.3 to check if it was a version problem. Thank you, I just installed 1.6.4 back :)

Turning off the offending block and recreating them will sort some of the issues. And some custom blocks no doubt were written with code not compatible with SMF 2.0 example, not using $smcFunc
Title: Re: TinyPortal
Post by: d3vcho on January 28, 2020, 05:10:57 PM
The articles are showing as plain HTML. I'm not really familiar with TinyPortal, there are a LOT of features. Am I missing something?

http://www.projumpforum.com/index.php?page=82
Title: Re: TinyPortal
Post by: lurkalot on January 28, 2020, 05:52:16 PM
Try hitting save on that article and see if it fixes the problem.
Title: Re: TinyPortal
Post by: d3vcho on January 29, 2020, 02:11:54 AM
Unfortunately that didn't make it.
Title: Re: TinyPortal
Post by: lurkalot on January 29, 2020, 03:16:58 AM
Hmm,  What happens if you create a new HTML article, does that display ok?
Title: Re: TinyPortal
Post by: @rjen on January 29, 2020, 04:01:59 AM
Remove the html bit at start and end ... that is the problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">

And the closing < html> tag
Title: Re: TinyPortal
Post by: d3vcho on January 29, 2020, 04:23:20 AM
Quote from: @rjen on January 29, 2020, 04:01:59 AM
Remove the html bit at start and end ... that is the problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">

And the closing < html> tag

Thanks for the fast answers. Sorry, that didn't make it either.
Title: Re: TinyPortal
Post by: @rjen on January 29, 2020, 04:27:24 AM
That's strange! It works for me... see attached...

Any chance you can give me an admin account for the site in question?
Title: Re: TinyPortal
Post by: d3vcho on January 29, 2020, 04:29:45 AM
Quote from: @rjen on January 29, 2020, 04:27:24 AM
That's strange! It works for me... see attached...

Any chance you can give me an admin account for the site in question?

Lurkalot PMed me like an hour ago and I gave him admin credentials. Let's see if he can figure it out.

Thanks a lot @rjen!
Title: Re: TinyPortal
Post by: @rjen on January 29, 2020, 04:41:56 AM
 8)

Mick knows where to find me if needed...
Title: Re: TinyPortal
Post by: @rjen on January 29, 2020, 08:24:11 AM
Had another look, and it may be that the article is created using the wysiwyg editor...
This adds styling to the code ( < p> elements ) breaking the layout.

Note: if you want to write pure HTML into a HTML article you should not use the wysiwyg editor, but maintain it in the Source view...
try this: go into the article, make sure that the wysiwyg editor is switched off: (View Source, Ctrl+Shift+S)

The entire HTML code should be pasted in there. You can leave all the < head> stuff in there too...

<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Tutorial Coming Soon</title> <style type="text/css"> <!-- .tutcont343rf3wr2reg32rg h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 36px; font-weight: 700; color: #cd3301; margin: 0px; } .tutcont343rf3wr2reg32rg p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .tutcont343rf3wr2reg32rg h2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #205c7e; font-style: normal; white-space: normal; text-indent: 0px; word-spacing: normal; line-height: normal; margin: 0px; } .tutcont343rf3wr2reg32rg h3 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #cd3301; } .tutcont343rf3wr2reg32rg .tutdisc { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 400; } .tutcont343rf3wr2reg32rg img { float: left; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; margin-top: 0px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; } .tutcont343rf3wr2reg32rg p img { display: block; border: 2px solid #000000; text-align: center; background-position: center; float: none; margin-right: auto; margin-left: auto; } .tutcont343rf3wr2reg32rg { width: 700px; } .tutcont343rf3wr2reg32rg object { text-align: center; } .tutcont343rf3wr2reg32rg a { color: #cc3301; font-weight: 700; } .tutcont343rf3wr2reg32rg1 { width: 700px; } --> </style> </head> <body> <div class="tutcont343rf3wr2reg32rg"> <h1><img src="http://www.pro-jump.co.uk/PJF09/PJF-tutotials.jpg" alt="Pro-Jump Forum Tutorials" width="200" height="200" /> <strong>Tutorial Coming Soon</strong></h1> <h2>By: Add your name here!<br /> </h2> <p>Have a bit of spare time?<br /> Can you make an awesome tutorial for this page?<br /> Dab hand with a video or camera?<br /> Then you're just the kind of person we need to help us make this site a great resource for the PowerBocking community.<br /> <br /> If you want to claim this page and become a PJF contributor then please contact <strong><a href="http://www.projumpforum.co.uk/index.php?action=profile;u=1" title="View the profile of webmaster">me</a></strong> via pm - Thank you :)</p></div> </body>

Title: Re: TinyPortal
Post by: d3vcho on January 29, 2020, 08:34:03 AM
Quote from: @rjen on January 29, 2020, 08:24:11 AM
Had another look, and it may be that the article is created using the wysiwyg editor...

try this:
go into the article, make sure that the wysiwyg editor is switched off: (View Source, CTRL_Shift+S)

The entire HTML code should be pasted in there...

<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Tutorial Coming Soon</title> <style type="text/css"> <!-- .tutcont343rf3wr2reg32rg h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 36px; font-weight: 700; color: #cd3301; margin: 0px; } .tutcont343rf3wr2reg32rg p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .tutcont343rf3wr2reg32rg h2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #205c7e; font-style: normal; white-space: normal; text-indent: 0px; word-spacing: normal; line-height: normal; margin: 0px; } .tutcont343rf3wr2reg32rg h3 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #cd3301; } .tutcont343rf3wr2reg32rg .tutdisc { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 400; } .tutcont343rf3wr2reg32rg img { float: left; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; margin-top: 0px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; } .tutcont343rf3wr2reg32rg p img { display: block; border: 2px solid #000000; text-align: center; background-position: center; float: none; margin-right: auto; margin-left: auto; } .tutcont343rf3wr2reg32rg { width: 700px; } .tutcont343rf3wr2reg32rg object { text-align: center; } .tutcont343rf3wr2reg32rg a { color: #cc3301; font-weight: 700; } .tutcont343rf3wr2reg32rg1 { width: 700px; } --> </style> </head> <body> <div class="tutcont343rf3wr2reg32rg"> <h1><img src="http://www.pro-jump.co.uk/PJF09/PJF-tutotials.jpg" alt="Pro-Jump Forum Tutorials" width="200" height="200" /> <strong>Tutorial Coming Soon</strong></h1> <h2>By: Add your name here!<br /> </h2> <p>Have a bit of spare time?<br /> Can you make an awesome tutorial for this page?<br /> Dab hand with a video or camera?<br /> Then you're just the kind of person we need to help us make this site a great resource for the PowerBocking community.<br /> <br /> If you want to claim this page and become a PJF contributor then please contact <strong><a href="http://www.projumpforum.co.uk/index.php?action=profile;u=1" title="View the profile of webmaster">me</a></strong> via pm - Thank you :)</p></div> </body>

It seems the code is pasted into the WYSIWYG editor. This adds styling to the code ( < p> elements ) breaking the layout.

Note: if you want to write pure HTML into a HTML article you should not use the wysiwyg editor, but maintain it in the Source view...

That was it. Thanks a lot @rjen!

Great support here :)
Title: Re: TinyPortal
Post by: d3vcho on January 29, 2020, 08:44:37 AM
One last thing. In the post I linked I saw a SMF editor. In the rest I'm not able to see those. Please see attached screenshot.

Title: Re: TinyPortal
Post by: @rjen on January 29, 2020, 09:14:36 AM
The editor is only applicable for HTML and BBC articles.

If your article is somehow not flagged as such, there is no WYSIWYG editor available.
I think Lurkalot suggested setting the first one to 'HTML' (which you tried) so that may explain it.

So somehow the articles in your forum seem to be incorrect in the database (perhaps due to changes from your unidentified old version of TP). Setting them to HTML while using the Source View mode seems to fix them...

If you want to check in the database, look in table smf_tp_articles and check the value for field 'type': it should contain the value 'html'. If it does not you may change it and see the result...
Title: Re: TinyPortal
Post by: d3vcho on January 29, 2020, 09:39:51 AM
Yeah, even though they're listed as HTML, they aren't. I have to change them to another i.e PHP and then change back to HTML and the editor displays. Thanks!
Title: Re: TinyPortal
Post by: lurkalot on January 29, 2020, 12:30:04 PM
Glad you got it sorted with @rjen's assistance.  8) 

I have only just returned home from my day job, so looks like you're all set.  If you get stuck on something please don't hesitate to ask.  ;)
Title: Re: TinyPortal
Post by: big red on February 07, 2020, 02:55:11 PM
Hello

Fresh install of SMF 2.0.17 in Xampp and Admin showing zero errors. Just installed the most up to date version of TP and now have several types of errors.

  Just read through the last 3 pages of posts and didn't see this reported. If the errors are minimal i can just probably leave as is.

8 Trying to access array offset on value of type nullApply Filter: Only show the errors from this fileFile: C:/xampp/htdocs/final/Sources/TPortal.php
Line: 2978


8192: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`Apply Filter: Only show the errors from this fileFile: C:/xampp/htdocs/final/Sources/TPassimilate.php
Line: 682


8192: Array and string offset access syntax with curly braces is deprecatedApply Filter: Only show the errors from this fileFile: C:/xampp/htdocs/final/Sources/Subs-Package.php
Line: 2820

Title: Re: TinyPortal
Post by: lurkalot on February 07, 2020, 03:36:24 PM
What PHP version is you XAMPP running?
Title: Re: TinyPortal
Post by: @rjen on February 07, 2020, 03:54:24 PM
I am guessing 7.4.1?

These are the errors we found with the latest php version, and we are testing TP165 for it.
If it is an earlier PHP version I would like to know which?
Title: Re: TinyPortal
Post by: big red on February 07, 2020, 03:55:13 PM
Quote from: lurkalot on February 07, 2020, 03:36:24 PM
What PHP version is you XAMPP running?

7.4.1
Title: Re: TinyPortal
Post by: @rjen on February 07, 2020, 03:59:16 PM
There you go...

I was not even aware the SMF 2.0.17 is tested on 7.4.1...
You may be one of the first trying it... it may be better to stay on 7.3 for now.
But if you want to go with 7.4, the next release of TP will address these errors...
Title: Re: TinyPortal
Post by: big red on February 07, 2020, 04:05:54 PM
Quote from: @rjen on February 07, 2020, 03:59:16 PM
There you go...

I was not even aware the SMF 2.0.17 is tested on 7.4.1...
You may be one of the first trying it... it may be better to stay on 7.3 for now.
But if you want to go with 7.4, the next release of TP will address these errors...

Sure - not noticing any forum problems with these errors so i'll just live with them until the next TP Release!

  Another question if i may - possible to have more that 1 TP Shoutbox? Would like to have 2 running separate from each other.
Title: Re: TinyPortal
Post by: @rjen on February 07, 2020, 04:12:49 PM
No, there is one shoutbox. You can display it in different blocks in different section of the forum, or for different user groups , but it will always show the same content...
Title: Re: TinyPortal
Post by: @rjen on February 07, 2020, 04:45:48 PM
By the way: the third error is an SMF error, not TinyPortal...
Title: Re: TinyPortal
Post by: big red on February 07, 2020, 07:09:53 PM
Alright - thank you for the heads up on the 3rd error!
Title: Re: TinyPortal
Post by: big red on February 09, 2020, 10:43:01 AM
 I have a permission problem using TP Shoutbox that i just cannot figure out. Works and looks just fine in Admin account but once i switch to a test account with normal Newbie and regular member permissions, i can only see the Shouts. The typing box for new shouts is not there :(

SMF 2.0.17
TP Latest Version
PHP 7.4.1
Title: Re: TinyPortal
Post by: lurkalot on February 09, 2020, 10:56:03 AM
Quote from: big red on February 09, 2020, 10:43:01 AM
I have a permission problem using TP Shoutbox that i just cannot figure out. Works and looks just fine in Admin account but once i switch to a test account with normal Newbie and regular member permissions, i can only see the Shouts. The typing box for new shouts is not there :(

SMF 2.0.17
TP Latest Version
PHP 7.4.1

In SMF permissions you'll need to set the permission for that Regular Member group to, "Can Post Shouts"

TinyPortal docs. https://www.tinyportal.net/docs/index.php?page=Settings-permissions
Title: Re: TinyPortal
Post by: jsx on February 10, 2020, 09:20:28 AM
First, I'll make a copy of the files and then uninstall TinyPortal 1.6.0 and next I'll install version 1.6.4, and all the content added in the menu blocks will not disappear? All settings will stay in place?
Title: Re: TinyPortal
Post by: @rjen on February 10, 2020, 10:07:58 AM
yes, that will work fine

But if you want to backup the data, copying the files will not help; you need to take a backup of the database tables named tp_xxx
Title: Re: TinyPortal
Post by: jsx on February 10, 2020, 12:08:13 PM
Done. Everything works fine. I had to set the language that I use as main in the forum for all the blocks because the blocks were not displayed.

On the Polish SMF support forum, one user has a issue with the proper functioning of TinyPortal 1.6.4. After entering his forum, the main page of the portal is not displayed. A white page is displayed. He stated that as he deleted TP's Polish language files, the portal was working properly, but Polish diacritical marks were not displayed. Polish language files are for TinyPortal 1.6.1, but they work properly with TinyPortal 1.6.4. I checked it out. So why is there such a issue in his forum?
Title: Re: TinyPortal
Post by: @rjen on February 10, 2020, 01:31:54 PM
Difficult to say without more info...

Is the forum working with 1.6.1 language files but not 1.6.4?
But they do work for you?
Title: Re: TinyPortal
Post by: @rjen on February 10, 2020, 02:56:54 PM
Quote from: jsx on February 10, 2020, 12:08:13 PM
I had to set the language that I use as main in the forum for all the blocks because the blocks were not displayed.

That is in fact a finding more forum owners have reported.
This is actually the result of a bugfix to  the setting in the TinyPortal > General settings: Use language visibility option for blocks

If you find after installing to 1.6.4 that your blocks are not showing, go to TinyPortal > Settings and uncheck this option.
With the option activated you must indeed set the language for each block in order for the block to be visible: very useful if you have language-specific blocks...

Title: Re: TinyPortal
Post by: jsx on February 11, 2020, 02:12:43 AM
Quote from: @rjen on February 10, 2020, 01:31:54 PM
Difficult to say without more info...

Is the forum working with 1.6.1 language files but not 1.6.4?
But they do work for you?

If the author of this issue writes more, I will let you know.

Quote from: @rjen on February 10, 2020, 02:56:54 PM
That is in fact a finding more forum owners have reported.
This is actually the result of a bugfix to  the setting in the TinyPortal > General settings: Use language visibility option for blocks

If you find after installing to 1.6.4 that your blocks are not showing, go to TinyPortal > Settings and uncheck this option.
With the option activated you must indeed set the language for each block in order for the block to be visible: very useful if you have language-specific blocks...

Thanks for the clarification. :)
Title: Re: TinyPortal
Post by: jsx on February 11, 2020, 10:20:42 AM
I would like to know where in the TP settings can I turn off the visibility of the TinyPortal tab?

(https://i.imgur.com/beg0fzG.png)
Title: Re: TinyPortal
Post by: @rjen on February 11, 2020, 10:31:46 AM
The tab will show if you have relevant TinyPortal features active.

In your example it shows the 'Downloads' options, because it is set active.
If you are not using the downloads, you can deactivate it in the TinyPortal settings: TinyPortal > Settings > Modules

Set the downloads Manager to 'Off' and save: the TinyPortal menu option will disappear for your users...

Title: Re: TinyPortal
Post by: jsx on February 11, 2020, 11:26:32 AM
Great. Thank you for the clarification.

I need help. There are 1754 avatar errors in logs:

Themes/default/languages/TPortal.english.php (eval?)

(https://i.imgur.com/IYIssmO.png)

These errors have occurred since using TinyPortal 1.6.4. I use Polish language on the forum, and Polish language is not updated with new lines for version TinyPortal 1.6.4. No language update can cause these errors? Or something else?
Title: Re: TinyPortal
Post by: big red on February 11, 2020, 06:49:08 PM
Quote from: lurkalot on February 09, 2020, 10:56:03 AM
Quote from: big red on February 09, 2020, 10:43:01 AM
I have a permission problem using TP Shoutbox that i just cannot figure out. Works and looks just fine in Admin account but once i switch to a test account with normal Newbie and regular member permissions, i can only see the Shouts. The typing box for new shouts is not there :(

SMF 2.0.17
TP Latest Version
PHP 7.4.1
In SMF permissions you'll need to set the permission for that Regular Member group to, "Can Post Shouts"

TinyPortal docs. https://www.tinyportal.net/docs/index.php?page=Settings-permissions

That did it - Thanks So Much  8)

  Next Problem   :( I've created a "Downloads" block by selecting the TP Module radio button and on the 2nd page after clicking save, check marked the download folders beside DL Manager.

  The block is created and showing but nothing is showing "In It". I have 3 folders all checked and 2 folders with test files in them. Still nothing in the block though  ???
Title: Re: TinyPortal
Post by: big red on February 11, 2020, 10:18:17 PM
Search isn't returning anything so thought i would ask

  I would like a "Newest Member Block" including the avatar but not seeing it in the available block list?
Title: Re: TinyPortal
Post by: lurkalot on February 12, 2020, 03:08:23 AM
Quote from: big red on February 11, 2020, 06:49:08 PM

Next Problem   :( I've created a "Downloads" block by selecting the TP Module radio button and on the 2nd page after clicking save, check marked the download folders beside DL Manager.

The block is created and showing but nothing is showing "In It". I have 3 folders all checked and 2 folders with test files in them. Still nothing in the block though  ???

Downloads block, you can create this buy adding a new Block, choose type "Article / Download Functions" Then in that block choose one of the required options,

Downloads: Show x New Files
Downloads: Top x Downloads
Downloads: Top x Views
Downloads: Latest File Uploaded
Downloads: Top File in Downloads
Downloads: Top File in Views
Articles: recently written
Articles: top views
Articles: top comments

As for the "Newest Member block"  Not sure on that one, you can use SSI to display the latest member, but not sure if we have a currently working code snippet for this with avatar.
Title: Re: TinyPortal
Post by: jsx on February 12, 2020, 03:32:55 AM
@lurkalot

Can you help me? Currently 2917 undefined errors have been generated. All undefined errors: index.php?action=dlattach;attach=23;type=avatar
Themes/default/languages/TPortal.english.php (eval?).
Title: Re: TinyPortal
Post by: lurkalot on February 12, 2020, 04:00:10 AM
Quote from: jsx on February 12, 2020, 03:32:55 AM
@lurkalot

Can you help me? Currently 2917 undefined errors have been generated. All undefined errors: index.php?action=dlattach;attach=23;type=avatar
Themes/default/languages/TPortal.english.php (eval?).

This might give you some clues as a workaround.  https://www.tinyportal.net/index.php?topic=35817.msg289344#msg289344
Title: Re: TinyPortal
Post by: jsx on February 12, 2020, 04:55:35 AM
In what file should I replace these lines? In the files TPortal.english.php and TPortal.english-utf8.php and TPortal.polish-utf8.php?
Title: Re: TinyPortal
Post by: @rjen on February 12, 2020, 06:56:31 AM
The English files already contain this fix: I see it it missing in the Polish file, so update that one...
Title: Re: TinyPortal
Post by: jsx on February 12, 2020, 09:28:06 AM
Thanks for the help. :)
Title: Re: TinyPortal
Post by: lurkalot on February 12, 2020, 12:34:31 PM
Quote from: jsx on February 12, 2020, 04:55:35 AM
In what file should I replace these lines? In the files TPortal.english.php and TPortal.english-utf8.php and TPortal.polish-utf8.php?

TPortal.english.php and TPortal.english-utf8.php should that code.  So, TPortal.polish-utf8.php
Title: Re: TinyPortal
Post by: @rjen on February 12, 2020, 04:45:31 PM
Quote from: big red on February 11, 2020, 10:18:17 PM
Search isn't returning anything so thought i would ask

  I would like a "Newest Member Block" including the avatar but not seeing it in the available block list?

You can create one using a PHP block. It is not available as a standard block...

Create a PHP block and put this in the code. It will show the newest user with avatar (if he/she has an avatar) or just the name if they don't...


global $memberContext;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<br>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">'.$context['common_stats']['latest_member']['link'].'</div>';


or (without avatar):

ssi_latestMember();
Title: Re: TinyPortal
Post by: big red on February 13, 2020, 01:26:18 PM
Quote from: lurkalot on February 12, 2020, 03:08:23 AM
Downloads block, you can create this buy adding a new Block, choose type "Article / Download Functions" Then in that block choose one of the required options,

Downloads: Show x New Files
Downloads: Top x Downloads
Downloads: Top x Views
Downloads: Latest File Uploaded
Downloads: Top File in Downloads
Downloads: Top File in Views
Articles: recently written
Articles: top views
Articles: top comments

  Yes - that one does work but is missing the option that i would like and that is to show my 3 download folders in a block.
Title: Re: TinyPortal
Post by: big red on February 13, 2020, 01:27:51 PM
Quote from: @rjen on February 12, 2020, 04:45:31 PM
Quote from: big red on February 11, 2020, 10:18:17 PM
Search isn't returning anything so thought i would ask

  I would like a "Newest Member Block" including the avatar but not seeing it in the available block list?

You can create one using a PHP block. It is not available as a standard block...

Create a PHP block and put this in the code. It will show the newest user with avatar (if he/she has an avatar) or just the name if they don't...


global $memberContext;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<br>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">'.$context['common_stats']['latest_member']['link'].'</div>';


or (without avatar):

ssi_latestMember();


  Working and so far showing No Errors. Thank You so much!  8)
Title: Re: TinyPortal
Post by: Antechinus on February 14, 2020, 05:54:21 PM
This isn't a TP support question as such, but is something I'm idly curious about. How difficult would it be to expand block placement options, to allow blocks between posts and categories?

The reason I'm curious is that TP is already close to being a comprehensive ad management system (if used for that purpose) so it occurred to me to wonder if it could be extended with the extra placement options. Has anyone ever considered this?
Title: Re: TinyPortal
Post by: lurkalot on February 14, 2020, 06:56:53 PM
Quote from: Antechinus on February 14, 2020, 05:54:21 PM

Has anyone ever considered this?


Considered , yes.  ;)  It's a good idea and would make use of this myself for that very purpose.  We already made the news block work interdependently from the SMF news, so even with the news deactivated from the theme header you can still display random news in the news block.  That's also a handy option for adding random banner ads.

But as for how difficult it would be to put blocks between posts etc, unfortunately I haven't a clue, and best answered by one of our Developers.

Title: Re: TinyPortal
Post by: big red on February 15, 2020, 02:24:14 PM
The "Help" tab on the menu doesn't provide much to users so would like to remove that help tab and have something like a "Quick Support Block"

  Would be something along the lines of a user can type in a few lines and then click "Send" which goes to the Admin Message Inbox. Or if that isn't possible, keep the help tab but change the TP Text to something else.

  Any thoughts on this?
Title: Re: TinyPortal
Post by: big red on February 16, 2020, 09:01:24 PM
I have the TP Shout to manual scroll but would like to reverse it and have the new shouts appear at the bottom and not the top. What would i change for this?
Title: Re: TinyPortal
Post by: @rjen on February 17, 2020, 01:17:02 AM
Quote from: big red on February 16, 2020, 09:01:24 PM
I have the TP Shout to manual scroll but would like to reverse it and have the new shouts appear at the bottom and not the top. What would i change for this?

There is no setting for that. Changing the shout order would require a code change..
Title: Re: TinyPortal
Post by: Antechinus on February 17, 2020, 02:18:26 AM
Just a thought: you could try display: flex; flex-direction: column-reverse; in the css. That might do the trick.

ETA: Just went over there and tried it. This works.

  .tp_shoutframe{
    display: flex;
    flex-direction: column-reverse;
  }
  {
  .tp_shoutframe>div{
    flex: 0 0 auto;
  }
Title: Re: TinyPortal
Post by: big red on February 17, 2020, 11:29:34 PM
Quote from: Antechinus on February 17, 2020, 02:18:26 AM
Just a thought: you could try display: flex; flex-direction: column-reverse; in the css. That might do the trick.

ETA: Just went over there and tried it. This works.

  .tp_shoutframe{
    display: flex;
    flex-direction: column-reverse;
  }
  {
  .tp_shoutframe>div{
    flex: 0 0 auto;
  }


  Awesome - which file exactly do i add this to please?
Title: Re: TinyPortal
Post by: Antechinus on February 17, 2020, 11:41:40 PM
index.css would work. Or any TP css file would also work. Just tack it on the end.
Title: Re: TinyPortal
Post by: big red on February 18, 2020, 12:00:33 AM
I added it at the end of the default theme index css as i couldn't find one for TP but didn't work. Could you see if i did it right?
Title: Re: TinyPortal
Post by: Antechinus on February 18, 2020, 02:17:13 AM
You added it inside the media query for print, so it will only be active if you fire up a printer.

Code (You have this) Select
/* Styles for print media.
------------------------------------------------------- */
@media print
{
#headerarea
{
display: none;
}

.tborder
{
border: none;
}
        .tp_shoutframe{
          display: flex;
          flex-direction: column-reverse;
        }
        {
        .tp_shoutframe>div{
          flex: 0 0 auto;
        }
}


See that last curly bracket? That closes the @media for print. You put it inside the brackets, which is causing the problem.

Do it like this, with the new code outside anyone else's curly brackets.

Code (You have this) Select
/* Styles for print media.
------------------------------------------------------- */
@media print
{
#headerarea
{
display: none;
}

.tborder
{
border: none;
}
}
/* Put your new code here.
------------------------------------------------------- */
.tp_shoutframe{
  display: flex;
  flex-direction: column-reverse;
}
{
.tp_shoutframe>div{
  flex: 0 0 auto;
}
Title: Re: TinyPortal
Post by: landyvlad on February 20, 2020, 10:59:09 PM
Quote from: big red on February 15, 2020, 02:24:14 PM
The "Help" tab on the menu doesn't provide much to users so would like to remove that help tab and have something like a "Quick Support Block"

  Would be something along the lines of a user can type in a few lines and then click "Send" which goes to the Admin Message Inbox. Or if that isn't possible, keep the help tab but change the TP Text to something else.

  Any thoughts on this?

Are you talking about the TinyPortal Help or the standard SMF help
The latter is https://www.simplemachines.org/community/index.php?action=help
Title: Re: TinyPortal
Post by: lurkalot on February 21, 2020, 02:59:26 AM
Quote from: big red on February 15, 2020, 02:24:14 PM
The "Help" tab on the menu doesn't provide much to users so would like to remove that help tab and have something like a "Quick Support Block"

  Would be something along the lines of a user can type in a few lines and then click "Send" which goes to the Admin Message Inbox. Or if that isn't possible, keep the help tab but change the TP Text to something else.

  Any thoughts on this?

You can remove TinyPortal from the help tab using the edit here, https://www.simplemachines.org/community/index.php?topic=27642.msg4026706#msg4026706
Title: Re: TinyPortal
Post by: big red on February 22, 2020, 08:50:29 PM
Busy work week so Sorry for the late reply. And Thank You for yours  ;)

The help tab i just decided to change true to false to have it disappear. As for the reverse scrolling of the shoutbox, i tried your last suggestion Antechinus in default theme index css and still the new posts start at the top.

  Also i would like the blocks to disappear if someone is viewing in "Mobile View". Can this be done as i don't see anything in the settings. As it stands, the blocks just get pushed to the bottom.
Title: Re: TinyPortal
Post by: Slonik :) on March 19, 2020, 10:04:46 AM
How can I add Key Tags (Hashtags or Global Tags) service to articles?

Maybe in the next versions of TP? :)

Title: Re: TinyPortal
Post by: @rjen on March 19, 2020, 10:36:52 AM
Quote from: Slonik :) on March 19, 2020, 10:04:46 AM
How can I add Key Tags (Hashtags or Global Tags) service to articles?

Maybe in the next versions of TP? :)

There are no plans to do that atm...
Title: Re: TinyPortal
Post by: njtweb on April 03, 2020, 07:10:35 AM
@rjen or @mick is there a problem with the tinyportal site? I can't login. I get this.

AN ERROR HAS OCCURRED!
Your session timed out while posting. Please go back and try again.
Title: Re: TinyPortal
Post by: lurkalot on April 03, 2020, 07:36:11 AM
Quote from: njtweb on April 03, 2020, 07:10:35 AM
@rjen or @mick is there a problem with the tinyportal site? I can't login. I get this.

AN ERROR HAS OCCURRED!
Your session timed out while posting. Please go back and try again.

Been fine for me, I'm on there now.   ???  Try clearing browser cache, or use a different browser and see if that helps.
Title: Re: TinyPortal
Post by: njtweb on April 03, 2020, 10:53:04 AM
Quote from: lurkalot on April 03, 2020, 07:36:11 AM
Quote from: njtweb on April 03, 2020, 07:10:35 AM
@rjen or @mick is there a problem with the tinyportal site? I can't login. I get this.

AN ERROR HAS OCCURRED!
Your session timed out while posting. Please go back and try again.

Been fine for me, I'm on there now.   ???  Try clearing browser cache, or use a different browser and see if that helps.

It won't let me do anything but 60 mins. They only way it let me login this time. I normally click the check box.
Title: Re: TinyPortal
Post by: lurkalot on May 09, 2020, 11:11:30 AM
TinyPortal 1.6.6 Security Release.

Users running versions of TinyPortal prior to 1.6.6 should update immediately by downloading the latest version

Changelog;
This release includes the following fixes:

Relevant to 2.0 and 2.1:

Fixes multiple security flaws allowing non admin access to admin areas.

Note: You must uninstall any previous version of TinyPortal before you can install TP 1.6.6 for SMF2.0.x. and SMF2.1 Make a backup of all your SMF and TP files before you uninstall.
Title: Re: TinyPortal
Post by: vbgamer45 on May 09, 2020, 11:15:03 AM
One typo to fix you can install TP 1.6.5 to you can install TP 1.6.6
Title: Re: TinyPortal
Post by: lurkalot on May 09, 2020, 11:21:40 AM
Quote from: vbgamer45 on May 09, 2020, 11:15:03 AM
One typo to fix you can install TP 1.6.5 to you can install TP 1.6.6

Thanks.  I blame the Covid-19 lock in, it's frazzled my head, don't even know what day it is atm....  ;)
Title: Re: TinyPortal
Post by: makuta_ii on May 13, 2020, 06:28:38 AM
Hi.
Firstly, I want to say thanks for your work.

I have three problems with the TinyPortal, I hope to solve them here.
1. If you enable Auto refresh greater than "0" in the TPShout module, then when viewing the statistics of "Who's Online"(index.php?action=who), all users display "Viewing TPmod" (attached a screen with Russian localization).
(https://forum.wabisabi.by/my_img/img/2020/05/13/107ea.png)
Is it possible to exclude the forum refresh by the TPShout module from showing in online statistics?

2. The button collapse of the panels (looks like plus or minus) causes an error in Chrome:
Uncaught TypeError: Cannot read property 'style' of null
    at togglepanel (index.php? action = forum: 100)
    at HTMLAnchorElement.onclick (index.php? action = forum: 233)


The same error occurs on the forum tinyportal.net/index.php?action=forum
Is there anything to do with this?

3. I wanted to ask these questions tinyportal.net, but I won't receive registration confirmation in my mail. :)

forum.wabisabi.by SMF 2.1 RC2, TinyPortal 1.6.5
Problems remain with the turned off all mods, so I don't indicate the list of connected mods.

Thanks.
Title: Re: TinyPortal
Post by: wylekk on May 13, 2020, 09:06:41 AM
Something was done wrong in version 1.6.6 :).

If you allow users to Manage articles, you get an error when editing the article

Sorry, you are not allowed to access TinyPortal admin pages.
Title: Re: TinyPortal
Post by: @rjen on May 13, 2020, 09:38:58 AM
Quote from: wylekk on May 13, 2020, 09:06:41 AM
Something was done wrong in version 1.6.6 :).

If you allow users to Manage articles, you get an error when editing the article

Sorry, you are not allowed to access TinyPortal admin pages.

It is working fine for me...

what exactly are the permissions set to for the user in question?
See attachment...

And Which action / sub action are you trying to access with that user? (whats the url?)
.../index.php?action=tpadmin;sa=editarticle;article=xx?

... and where in the process are you getting that error? Is it when accessing the page or when saving the article?


Title: Re: TinyPortal
Post by: @rjen on May 13, 2020, 09:48:12 AM
Quote from: makuta_ii on May 13, 2020, 06:28:38 AM
1. If you enable Auto refresh greater than "0" in the TPShout module, then when viewing the statistics of "Who's Online"(index.php?action=who), all users display "Viewing TPmod" (attached a screen with Russian localization).
(https://forum.wabisabi.by/my_img/img/2020/05/13/107ea.png)
Is it possible to exclude the forum refresh by the TPShout module from showing in online statistics?

I have never seen that before (and I am using the shoutbox with autorefresh set to 10)
Where have you placed the shoutbox exactly? On what page is the block, and what users may actually see it?


Quote from: makuta_ii on May 13, 2020, 06:28:38 AM
2. The button collapse of the panels (looks like plus or minus) causes an error in Chrome:
Uncaught TypeError: Cannot read property 'style' of null
    at togglepanel (index.php? action = forum: 100)
    at HTMLAnchorElement.onclick (index.php? action = forum: 233)


The same error occurs on the forum tinyportal.net/index.php?action=forum
Is there anything to do with this?

Maybe, will have a look...

Quote from: makuta_ii on May 13, 2020, 06:28:38 AM
3. I wanted to ask these questions tinyportal.net, but I won't receive registration confirmation in my mail.

Your registration was awaiting activation, cannot say where the mail went, It has now been activated for you...
Title: Re: TinyPortal
Post by: wylekk on May 13, 2020, 10:14:54 AM
This error occurs when another user is given article management rights. The administrator has no errors. And when you create an article and when you edit an article.

Title: Re: TinyPortal
Post by: @rjen on May 13, 2020, 11:02:05 AM
Quote from: wylekk on May 13, 2020, 10:14:54 AM
This error occurs when another user is given article management rights. The administrator has no errors. And when you create an article and when you edit an article.

Thats exactly what I tested: a non admin user with the permission to manage articles (see my screenshot).
Can you please answer my first quesntion: what are the exact permissions granted?
Is it the same as in my screenshot?

And can you describe exactly where in a page you press to edit the article (screenshot preferred) just before you get the error?

What type of article are you trying to edit ? HTML / BBC / PHP?

Just trying to narrow it down...
Title: Re: TinyPortal
Post by: wylekk on May 13, 2020, 03:49:26 PM
I did a rollback to version 1.6.5 - everything works as I need it. I will try to install 1.6.6 on the test site again
Title: Re: TinyPortal
Post by: @rjen on May 13, 2020, 04:52:00 PM
Quote from: wylekk on May 13, 2020, 03:49:26 PM
I did a rollback to version 1.6.5 - everything works as I need it. I will try to install 1.6.6 on the test site again

I can conform that there is an issue with the access to manage articles for members wth the 'manage articles' permission
The issue only affects SMF2.1.
In SMF2.0 this issue does not occur.

We're looking into it...
Title: Re: TinyPortal
Post by: makuta_ii on May 14, 2020, 05:26:56 AM
Quote from: @rjen on May 13, 2020, 09:48:12 AM
I have never seen that before (and I am using the shoutbox with autorefresh set to 10)
Where have you placed the shoutbox exactly? On what page is the block, and what users may actually see it?
I made screenshots, are you talking about this?
Even if you set autorefresh = 0 and manually update appears "Viewing TPmod".

Quote from: @rjen on May 13, 2020, 09:48:12 AM
Your registration was awaiting activation, cannot say where the mail went, It has now been activated for you...
Thanks
Title: Re: TinyPortal
Post by: @rjen on May 14, 2020, 06:30:20 AM
I am seeing what you reported as well: it only seems to happen in 2.1. In SMF 2.0 it all works as it should be.
We will follow up on that for the next release of TP.
Title: Re: TinyPortal
Post by: @rjen on May 14, 2020, 03:39:29 PM
Quote from: wylekk on May 13, 2020, 03:49:26 PM
I did a rollback to version 1.6.5 - everything works as I need it. I will try to install 1.6.6 on the test site again

Can you replace this file and test it again with TP 166?
Title: Re: TinyPortal
Post by: wylekk on May 15, 2020, 02:17:37 AM
I checked on the test site - everything is OK! Now can edit and create articles by users without errors. :)
Title: Re: TinyPortal
Post by: lurkalot on May 15, 2020, 02:49:59 AM
Quote from: wylekk on May 15, 2020, 02:17:37 AM
I checked on the test site - everything is OK! Now can edit and create articles by users without errors. :)

Thank you.   ;)
Title: Re: TinyPortal
Post by: @rjen on May 15, 2020, 02:02:42 PM
Quote from: makuta_ii on May 13, 2020, 06:28:38 AM
2. The button collapse of the panels (looks like plus or minus) causes an error in Chrome:
Uncaught TypeError: Cannot read property 'style' of null
    at togglepanel (index.php? action = forum: 100)
    at HTMLAnchorElement.onclick (index.php? action = forum: 233)


The same error occurs on the forum tinyportal.net/index.php?action=forum
Is there anything to do with this?

Looking for this, where exactly do you get this error? Probably by inspecting the webpage, put I cannot find it...
Title: Re: TinyPortal
Post by: makuta_ii on May 15, 2020, 03:25:51 PM
Quote from: @rjen on May 15, 2020, 02:02:42 PM
Looking for this, where exactly do you get this error? Probably by inspecting the webpage, put I cannot find it...
See screen)
Title: Re: TinyPortal
Post by: Maxxim on May 23, 2020, 09:50:59 AM
I tried googling, but the query is a bit difficult to formulate, and the search results I got were from many years ago, so I have to ask.

Is there (still) no way to run TinyPortal outside of the forum directory?
Similar to those who asked before me, my forum is at mysite.com/forum/ , and I'd very much like the portal home page to show at mysite.com

Is there an elegant solution for that or have I no other choice but to move the forum to the root directory of my website and run repair_settings.php ?
Title: Re: TinyPortal
Post by: lurkalot on May 23, 2020, 11:46:09 AM
Quote from: Maxxim on May 23, 2020, 09:50:59 AM
I tried googling, but the query is a bit difficult to formulate, and the search results I got were from many years ago, so I have to ask.

Is there (still) no way to run TinyPortal outside of the forum directory?
Similar to those who asked before me, my forum is at mysite.com/forum/ , and I'd very much like the portal home page to show at mysite.com

Is there an elegant solution for that or have I no other choice but to move the forum to the root directory of my website and run repair_settings.php ?

You can run the TP index page as Standalone.  Tino wrote some info in our resource boards on how to do so.  https://www.tinyportal.net/index.php?topic=36058.0

I haven't used it myself, so if you need ay assistance with it please drop in over at tinyportal.net and ask.   ;)
Title: Re: TinyPortal
Post by: Maxxim on May 24, 2020, 06:12:59 AM
Thank you very much @lurkalot, that solution worked!
It produced a PHP warning, however.
Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in <full path to www root>\index.php on line 15
As you suggested, I'll register and ask for assistance at tinyportal.net.
Title: Re: TinyPortal
Post by: cornflakes on May 26, 2020, 10:27:01 PM
Hi!  I'm new to SMF forums and just getting my feet wet with this stuff.
I love the options that TinyPortal offers and it's exactly what I was looking for.

I have one question about my index board layout.  I have it so that there is a small
preview of the topic along with a photo.   The problem is the text doesn't wrap around
the photo (like you see in newspapers to save space and minimize all the empty
space).  The text just starts underneath the photo but when I look at my home page
it looks like a waste of space as there are huge blank areas next to the photo.

Is there a way to wrap the text so that I can fill in the empty spaces?  Here is
a sample screenshot of what I mean and how it looks right now without text wrap:

Title: Re: TinyPortal
Post by: lurkalot on May 27, 2020, 02:37:14 AM
Quote from: cornflakes on May 26, 2020, 10:27:01 PM
Hi!  I'm new to SMF forums and just getting my feet wet with this stuff.
I love the options that TinyPortal offers and it's exactly what I was looking for.

I have one question about my index board layout.  I have it so that there is a small
preview of the topic along with a photo.   The problem is the text doesn't wrap around
the photo (like you see in newspapers to save space and minimize all the empty
space).  The text just starts underneath the photo but when I look at my home page
it looks like a waste of space as there are huge blank areas next to the photo.

Is there a way to wrap the text so that I can fill in the empty spaces?  Here is
a sample screenshot of what I mean and how it looks right now without text wrap:

Glad you like TP, thanks for giving it a go.  ;)

I'm assuming your image in the post is displaying in the same way, and that's why it's mimicking the output on the front page preview. If you were to float that image to the left in the actual topic then I'm pretty sure it would do the same in the preview.   I just tried this to check, albeit in SMF 2.1 which has the float left and right bbc built into the editor. Screenshots below.

I think there's a float image mod somewhere for SMF 2.0 somewhere on the mods site. This one perhaps, https://custom.simplemachines.org/mods/index.php?mod=2305
Title: Re: TinyPortal
Post by: cornflakes on May 27, 2020, 08:30:06 AM
Quote

Glad you like TP, thanks for giving it a go.  ;)

I'm assuming your image in the post is displaying in the same way, and that's why it's mimicking the output on the front page preview. If you were to float that image to the left in the actual topic then I'm pretty sure it would do the same in the preview.   I just tried this to check, albeit in SMF 2.1 which has the float left and right bbc built into the editor. Screenshots below.

I think there's a float image mod somewhere for SMF 2.0 somewhere on the mods site. This one perhaps, https://custom.simplemachines.org/mods/index.php?mod=2305

Thanks! I'll give that a try and see if I can get it to work.  Btw, I just joined a couple days ago and was SMF 2.1 available?  If that's a newer and better version of my current version SMF 2.0.17 then how can I upgrade to SMF 2.1?  Should I have just downloaded that from the beginning (unless it was just updated a day ago?). 

UPDATE: thanks, I got the text wrapping to work with that mod package
Title: Re: TinyPortal
Post by: lurkalot on May 27, 2020, 12:46:16 PM
Quote from: cornflakes on May 27, 2020, 08:30:06 AM

UPDATE: thanks, I got the text wrapping to work with that mod package


Glad that worked out ok. ;)

Quote from: cornflakes on May 27, 2020, 08:30:06 AM

Btw, I just joined a couple days ago and was SMF 2.1 available?  If that's a newer and better version of my current version SMF 2.0.17 then how can I upgrade to SMF 2.1?  Should I have just downloaded that from the beginning (unless it was just updated a day ago?). 


Regarding SMF 2.1 it's currently in RC status, and not actually recommended for use on production sites atm.  Nothing wrong with trying it out on a test site though.  ;)
Title: Re: TinyPortal
Post by: makuta_ii on May 27, 2020, 03:49:33 PM
Hi.
Now:
mysite.com/index.php - open a portal.
mysite.com/index.php?action=forum open a forum.

Is it possible to configure tiniporal so that the link
mysite.com/index.php open the forum,
and (as example):
mysite.com/index.php?action=portal or mysite.com/portal - open portal page?

If enable the option "Go directly to forum index" in frontpage settings, is it possible  somehow open the frontpage?

Thank.
Title: Re: TinyPortal
Post by: @rjen on May 28, 2020, 05:50:56 AM
No clue what you are asking.   :-\

Is the current forum and portal accessible?
Can you plase ehare a link? Maybe that way I understand what you want to achieve...
Title: Re: TinyPortal
Post by: MF30 on May 28, 2020, 02:23:29 PM
TinyPortal works with PHP 7.3?
Title: Re: TinyPortal
Post by: lurkalot on May 28, 2020, 02:46:38 PM
Quote from: MF30 on May 28, 2020, 02:23:29 PM
TinyPortal works with PHP 7.3?

Yes PHP 7.3 and should be compatible up to PHP 7.4
Title: Re: TinyPortal
Post by: cornflakes on June 01, 2020, 10:09:06 AM
Does anyone know what mod or theme this is?
https://www.youtube.com/watch?v=za2cECgExSc&lc=UgyRHi4UMtkzaAPz3hl4AaABAg.997Eqpz5ooB99LOmF3pwPy

I thought it might be a TinyPortal but I don't think it's exactly the same?
Title: Re: TinyPortal
Post by: Arantor on June 01, 2020, 10:28:06 AM
Looks like it's custom work by the creator, but he does a lot of custom dev so not surprising.
Title: Re: TinyPortal
Post by: Jade Elizabeth on June 01, 2020, 10:29:40 AM
Quote from: cornflakes on June 01, 2020, 10:09:06 AM
Does anyone know what mod or theme this is?
https://www.youtube.com/watch?v=za2cECgExSc&lc=UgyRHi4UMtkzaAPz3hl4AaABAg.997Eqpz5ooB99LOmF3pwPy

I thought it might be a TinyPortal but I don't think it's exactly the same?


The video links to their website: https://www.bordeglobal.com/design-smf.php
Title: Re: TinyPortal
Post by: jbridges87 on June 02, 2020, 12:30:44 AM
Is it possible to use Tiny Portal as your ad interface?

I was playing around with Tiny Portal, and got the idea that maybe there's a way to stick the provided code that advertisers give you, right into TinyPortal Panel Blocks?
There is the option for javascript afterall.

Has anyone used Tiny Portal in this way, and been happy with the result?
Title: Re: TinyPortal
Post by: cornflakes on June 02, 2020, 01:45:44 AM
Quote from: Jade Elizabeth on June 01, 2020, 10:29:40 AM
Quote from: cornflakes on June 01, 2020, 10:09:06 AM
Does anyone know what mod or theme this is?
https://www.youtube.com/watch?v=za2cECgExSc&lc=UgyRHi4UMtkzaAPz3hl4AaABAg.997Eqpz5ooB99LOmF3pwPy

I thought it might be a TinyPortal but I don't think it's exactly the same?


The video links to their website: https://www.bordeglobal.com/design-smf.php

Yes, I checked their website and all their templates but none of them were the template in the video that I like.
I like the options of having all those previews and boxes to show different articles, recent posts, a preview of the discussions
and photos ....looks really engaging!
Title: Re: TinyPortal
Post by: lurkalot on June 02, 2020, 03:17:24 AM
Quote from: jbridges87 on June 02, 2020, 12:30:44 AM
Is it possible to use Tiny Portal as your ad interface?

I was playing around with Tiny Portal, and got the idea that maybe there's a way to stick the provided code that advertisers give you, right into TinyPortal Panel Blocks?
There is the option for javascript afterall.

Has anyone used Tiny Portal in this way, and been happy with the result?

I run all my adsense code in TP blocks for example, and yes it works ok.    ;) 

Just turn off all the visual stuff from the blocks so nothing shows.

Use
Do not use title/frame styles
Do not allow block to collapse

Make sure it's viewable to Guests.
Make sure you have it displayed on all desired pages.
Title: Re: TinyPortal
Post by: @rjen on June 02, 2020, 03:47:11 AM
Quote from: cornflakes on June 02, 2020, 01:45:44 AM
Quote from: Jade Elizabeth on June 01, 2020, 10:29:40 AM
Quote from: cornflakes on June 01, 2020, 10:09:06 AM
Does anyone know what mod or theme this is?
https://www.youtube.com/watch?v=za2cECgExSc&lc=UgyRHi4UMtkzaAPz3hl4AaABAg.997Eqpz5ooB99LOmF3pwPy

I thought it might be a TinyPortal but I don't think it's exactly the same?


The video links to their website: https://www.bordeglobal.com/design-smf.php

Yes, I checked their website and all their templates but none of them were the template in the video that I like.
I like the options of having all those previews and boxes to show different articles, recent posts, a preview of the discussions
and photos ....looks really engaging!

You are right: that is not the same as TinyPortal.

TinyPortal is a Mod that adds blocks and pages to your existing theme. It is not a theme as such!
The video is showing a custom Theme, which is built in such a way that it also has some blocks and area's that are responsive, but it is not a portal Mod as such.

Now, If you can code a bit and manage css you may be able to built something that resembles the video in a TinyPortal site, but that's not out of the box: you will have to put effort into that...
Title: Re: TinyPortal
Post by: jbridges87 on June 02, 2020, 04:16:03 PM
Quote from: lurkalot on June 02, 2020, 03:17:24 AM
Quote from: jbridges87 on June 02, 2020, 12:30:44 AM
Is it possible to use Tiny Portal as your ad interface?

I was playing around with Tiny Portal, and got the idea that maybe there's a way to stick the provided code that advertisers give you, right into TinyPortal Panel Blocks?
There is the option for javascript afterall.

Has anyone used Tiny Portal in this way, and been happy with the result?

I run all my adsense code in TP blocks for example, and yes it works ok.    ;) 

Just turn off all the visual stuff from the blocks so nothing shows.

Use
Do not use title/frame styles
Do not allow block to collapse

Make sure it's viewable to Guests.
Make sure you have it displayed on all desired pages.
Awesome. If I ever get approved for ads, I will get it a try!  ;D
Thanks.
Title: Re: TinyPortal
Post by: jbridges87 on June 18, 2020, 11:25:22 PM
Hey guys, so I was recently approved for adsense, and started using tiny portal to display, and it's been great. I love the UI and layout.

I'm wondering what the differences are between regular forum posts and TP articles.
This seems like an incredibly powerful mod, and I was just hoping to maybe see someone using the full set of features on their forum, so I could get an idea of what it can do.

I'm going to install it on my test forum as well and play around, but if someone could link me to their site using multiple features of TP, I would love to check it out!
Title: Re: TinyPortal
Post by: Antechinus on June 19, 2020, 12:04:27 AM
Take at look at the TP site. It uses a pretty comprehensive set of the features.
Title: Re: TinyPortal
Post by: jbridges87 on June 19, 2020, 12:14:43 AM
Wow, don't I feel like a dork!  :o
I didn't even realize that their was a dedicated site for TP. I guess I need to clean my glasses!

Thanks!
Title: Re: TinyPortal
Post by: @rjen on June 19, 2020, 01:12:47 AM
Documentation too.....
https://www.tinyportal.net/docs/index.php

Title: Re: TinyPortal
Post by: lurkalot on June 19, 2020, 02:13:37 AM
Beta Testers Wanted

As it seems TinyPortal version 2.0.0 is now ready for beta testing.
Tino finished the updates he was planning to do, so it is now time to do some proper testing on the current package.

Below the changes made to the branch labeled 2.0.0

This includes the following updates and fixes:
Relevant to SMF 2.0 and 2.1:

Technical updates:
- major updates to codebase, cleaned up sources, templates and language files
- changes to database tables and fields
- removed the unused code sections for plugins and modules
- removed non-functional permission 'always approved'
- fixed a number of hard-coded language strings
- updated language string usage in for easier translation

New functionality:
- added setting to Disable the PHP eval function for templates
- added configurable paths for TinyPortal images, downloads and blockcodes
- added setting that allows the removal of Tinyportal menu option for all users but admins
- added setting to allow / disallow links in comments
- updated article comments display and added comments counters
- replaced 5-boards option with multi-select for news boards topics frontpage
- added 'include or exclude boards' option to recent topics block
- updated block sorting function to resolve issues when moving blocks up and down
- added extra css option for custom css
- allow for over 30 search results and pagination on article search
- replaced general settings with checkboxes instead of radio buttons
- updated TinyPortal menu option allowing direct access to settings pages
- added option in TPdownloads to create a downloadable item with a link to a file

Relevant to SMF 2.1 only:
- added Mentions to Shoutbox and article comments for SMF2.1

NOTICE!  because of the database changes in this version there's no going back to TP 1.x.x after installing version 2.0.0. You can install previous versions, but by doing that you WILL lose TP data and you will need to manually fix or recreate your content!!!

If you would like to help us test this version of TinyPortal please pop over to the official TinyPortal support site (https://www.tinyportal.net/index.php?action=forum) for assistance.

Thanks.
Title: Re: TinyPortal
Post by: Hatshepsut on June 19, 2020, 06:20:59 AM
I have installed Tinyportal 2.0 on my test forum:

https://bg-nacionalisti.org/test/index.php?action=forum

The calendar block does not appear properly  ::) The width of the panel is set to 230 pixels.
In my working forum with Tinyportal 1.6.6, the calendar is working properly, with width set to 220 pixels.
Title: Re: TinyPortal
Post by: @rjen on June 19, 2020, 10:38:29 AM
Quote from: Hatshepsut on June 19, 2020, 06:20:59 AM
I have installed Tinyportal 2.0 on my test forum:

https://bg-nacionalisti.org/test/index.php?action=forum

The calendar block does not appear properly  ::) The width of the panel is set to 230 pixels.
In my working forum with Tinyportal 1.6.6, the calendar is working properly, with width set to 220 pixels.

Try this blockcode:


global $scripturl, $smcFunc;

$now = time();
$today = date('j',$now);
$year = date("Y",$now);
$month = date("n",$now);
$days = array($today => array(NULL, NULL, '<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: white;" href="'.$scripturl.'?action=calendar;sa=view;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>'));

$day_name_length = 2;
$month_href = $scripturl . '?action=calendar';
$first_day = 1;
$pn = array();

$first_of_month = gmmktime(0,0,0,$month,1,$year);
//remember that mktime will automatically correct if invalid dates are entered
// for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
// this provides a built in "rounding" feature to generate_calendar()

$day_names = array(); //generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) //January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); //%A means full textual day name

list($month, $year, $month_name, $weekday) = explode(',', gmstrftime('%m,%Y,%B,%w', $first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$title   = $smcFunc['htmlspecialchars'](ucfirst($month_name)).' '.$year;  //note that some locales don't capitalize month and day names

//Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn);
@list($n, $nl) = each($pn); //previous and next links, if applicable
if($p)
$p = '<span class="smalltext">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
if($n)
$n = ' <span class="smalltext">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';
$calendar = '<table>'."\n".
'<caption >'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).$n."</caption>\n<tr>";

if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
//if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '<th class="smalltext" abbr="'.htmlentities($d).'" style="padding: 4px 2px;">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';

$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}

if($weekday > 0)
$calendar .= '<td class="smalltext" colspan="'.$weekday.'"> </td>'; //initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday   = 0; #start a new week
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if(isset($days[$day]) and is_array($days[$day])){
@list($link, $classes, $content) = $days[$day];
if(is_null($content)) 
$content  = $day;
$calendar .= '<td '.($classes ? ' class="'.htmlspecialchars($classes).'" style="padding:1px 6px 1px 1px;">' : ' style="padding:1px 6px 1px 1px;">').
($link ? '<a href="'.htmlspecialchars($link).'?">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= "<td class=\"smalltext\" style=\"padding:1px 5px 1px 4px;font-size: 0.85em;\"><a";
if(((($weekday+$first_day) % 7)==0)||((($weekday+$first_day) % 7)==6))
{
$calendar .= ' style="color:#C00000;"';
}
$calendar .= " href=\"".$scripturl."?action=calendar;sa=view;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7)
$calendar .= '<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; //remaining "empty" days

echo $calendar."</tr>\n</table>\n";
Title: Re: TinyPortal
Post by: wylekk on June 19, 2020, 10:41:00 AM
The test website here - http://www.sub.wylek.ru/
Did not find a preference to allow/deny links in comments :)
Title: Re: TinyPortal
Post by: Hatshepsut on June 19, 2020, 11:14:51 AM
Quote from: @rjen on June 19, 2020, 10:38:29 AM
Quote from: Hatshepsut on June 19, 2020, 06:20:59 AM
I have installed Tinyportal 2.0 on my test forum:

https://bg-nacionalisti.org/test/index.php?action=forum

The calendar block does not appear properly  ::) The width of the panel is set to 230 pixels.
In my working forum with Tinyportal 1.6.6, the calendar is working properly, with width set to 220 pixels.

Try this blockcode:


global $scripturl, $smcFunc;

$now = time();
$today = date('j',$now);
$year = date("Y",$now);
$month = date("n",$now);
$days = array($today => array(NULL, NULL, '<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: white;" href="'.$scripturl.'?action=calendar;sa=view;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>'));

$day_name_length = 2;
$month_href = $scripturl . '?action=calendar';
$first_day = 1;
$pn = array();

$first_of_month = gmmktime(0,0,0,$month,1,$year);
//remember that mktime will automatically correct if invalid dates are entered
// for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
// this provides a built in "rounding" feature to generate_calendar()

$day_names = array(); //generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) //January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); //%A means full textual day name

list($month, $year, $month_name, $weekday) = explode(',', gmstrftime('%m,%Y,%B,%w', $first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$title   = $smcFunc['htmlspecialchars'](ucfirst($month_name)).' '.$year;  //note that some locales don't capitalize month and day names

//Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn);
@list($n, $nl) = each($pn); //previous and next links, if applicable
if($p)
$p = '<span class="smalltext">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
if($n)
$n = ' <span class="smalltext">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';
$calendar = '<table>'."\n".
'<caption >'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).$n."</caption>\n<tr>";

if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
//if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '<th class="smalltext" abbr="'.htmlentities($d).'" style="padding: 4px 2px;">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';

$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}

if($weekday > 0)
$calendar .= '<td class="smalltext" colspan="'.$weekday.'"> </td>'; //initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday   = 0; #start a new week
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if(isset($days[$day]) and is_array($days[$day])){
@list($link, $classes, $content) = $days[$day];
if(is_null($content)) 
$content  = $day;
$calendar .= '<td '.($classes ? ' class="'.htmlspecialchars($classes).'" style="padding:1px 6px 1px 1px;">' : ' style="padding:1px 6px 1px 1px;">').
($link ? '<a href="'.htmlspecialchars($link).'?">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= "<td class=\"smalltext\" style=\"padding:1px 5px 1px 4px;font-size: 0.85em;\"><a";
if(((($weekday+$first_day) % 7)==0)||((($weekday+$first_day) % 7)==6))
{
$calendar .= ' style="color:#C00000;"';
}
$calendar .= " href=\"".$scripturl."?action=calendar;sa=view;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7)
$calendar .= '<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; //remaining "empty" days

echo $calendar."</tr>\n</table>\n";


Thanks, now the calendar block is displayed properly :)
Title: Re: TinyPortal
Post by: Hatshepsut on June 19, 2020, 11:20:34 AM
Quote from: wylekk on June 19, 2020, 10:41:00 AM
The test website here - http://www.sub.wylek.ru/
Did not find a preference to allow/deny links in comments :)

Look in TP admin panel => Articles => Settings

Click => (https://i.postimg.cc/4Y9M2Y17/2020-06-19.png) (https://postimg.cc/4Y9M2Y17)
Title: Re: TinyPortal
Post by: @rjen on June 19, 2020, 11:34:16 AM
Quote from: Hatshepsut on June 19, 2020, 11:14:51 AM
Thanks, now the calendar block is displayed properly :)

Th updated blockcode will be in 2.0.0
Title: Re: TinyPortal
Post by: wylekk on June 19, 2020, 01:50:20 PM
Errors in language files

$txt['tp-allow-links-article-comments'] = "Allow article comments to contain links";

$txt['tp-membergrouphelpdesc'] = 'Choose your membergroups that will able to see this block. Note that if none are chosen, it will only display it to admin.';$txt['tp-membergrouptext'] = 'Choose your membergroup access after the block is saved. Blocks are always set to OFF upon creation.';
Title: Re: TinyPortal
Post by: @rjen on June 19, 2020, 02:01:36 PM
Quote from: wylekk on June 19, 2020, 01:50:20 PM
Errors in language files

$txt['tp-allow-links-article-comments'] = "Allow article comments to contain links";

$txt['tp-membergrouphelpdesc'] = 'Choose your membergroups that will able to see this block. Note that if none are chosen, it will only display it to admin.';$txt['tp-membergrouptext'] = 'Choose your membergroup access after the block is saved. Blocks are always set to OFF upon creation.';

what errors are you finding? I cannot tell what's wrong from just the text strings...
Title: Re: TinyPortal
Post by: wylekk on June 19, 2020, 02:30:10 PM
double quotes

$txt['tp-allow-links-article-comments'] = "Allow article comments to contain links";

It is necessary so

$txt['tp-allow-links-article-comments'] = 'Allow article comments to contain links';

Here so

$txt['tp-membergrouphelpdesc'] = 'Choose your membergroups that will able to see this block. Note that if none are chosen, it will only display it to admin.';
$txt['tp-membergrouptext'] = 'Choose your membergroup access after the block is saved. Blocks are always set to OFF upon creation.';
Title: Re: TinyPortal
Post by: @rjen on June 19, 2020, 02:40:13 PM
Thanks, fixed
Title: Re: TinyPortal
Post by: jbridges87 on June 24, 2020, 08:50:07 PM
Is there a switch and/or setting to make URL links show up in articles?

For example, if I link a specific phrase to a URL, such as SMF Forums, the words don't change a different color, or underline, to show that there's a linked source.
I'm simply using the option 'insert a link', under the +HTML article.
Title: Re: TinyPortal
Post by: lurkalot on June 25, 2020, 02:08:39 AM
Quote from: jbridges87 on June 24, 2020, 08:50:07 PM
Is there a switch and/or setting to make URL links show up in articles?

For example, if I link a specific phrase to a URL, such as SMF Forums, the words don't change a different color, or underline, to show that there's a linked source.
I'm simply using the option 'insert a link', under the +HTML article.

It should really behave the same way it does if you post a link in the forum posts.  You could right click and inspect a link in your articles, and that will show you where to make the colour change etc in the css. 
Title: Re: TinyPortal
Post by: @rjen on June 25, 2020, 02:20:43 AM
In the forum SMF adds a special class to the urls: class="bbc_link". This adds the underlined style. TinyPortal articles do the exact same thing in BBC articles.
It does not do that in HTML articles though: you need to add that manually if you want it...

For a color change TP follows the style of your theme...
There will be something like this in the css, and it does that for all types of articles...


a:link, a:visited
{
color: #346;
text-decoration: none;
}
Title: Re: TinyPortal
Post by: jbridges87 on June 25, 2020, 11:09:48 AM
Ah okay, so it's a bbc vs html thing.
If I could just get the html articles in TP to show up the same as the bbc articles, that would be good.

Where exactly would I add the class=bbc_link, so that my html articles are shown the same way as bbc?
Title: Re: TinyPortal
Post by: @rjen on June 25, 2020, 11:43:10 AM
In an existing article: in the editor switch to 'Source' view and then add in the line just after the '<a'  before the 'href'  the 'class="bbc_link"'
Title: Re: TinyPortal
Post by: jbridges87 on June 25, 2020, 11:52:52 AM
Perfect.
Is there a way to make all future articles show like this as well?
Title: Re: TinyPortal
Post by: @rjen on June 25, 2020, 12:05:33 PM
If you want that default you can consider creating bbc articles . Changing the css is not an option cause that would cause every link in the forum to be underlined.
Title: Re: TinyPortal
Post by: Antechinus on June 25, 2020, 05:25:26 PM
You might be able to set this up as a permanent thing in the CSS, if the TP HTML articles have a usable identifier that distinguishes them from other articles and elements of the site. If they don't have one, it presumably wouldn't be hard to add a custom one to the Sources code. Something like:

Code (template) Select
<div class="html_article">********
Code (css) Select
.html_article a:link, .html_article a:visited {color: #whatever; text-decoration: dowotchalike;

I can see this being useful, since you could potentially set up a stylesheet to handle the bulk of the styling for any HTML article, without requiring typing a pile of classes every time you write one (although it could get a tad gnarly on descendants if you went overboard).

Not that I'm suggesting this be added to TP as a core feature at this stage, but if someone wants to do it on their own site it shouldn't be that difficult.
Title: Re: TinyPortal
Post by: @rjen on June 25, 2020, 05:34:02 PM
It's not available atm, but I agree that we can add it in a next release
Title: Re: TinyPortal
Post by: Antechinus on June 25, 2020, 05:38:37 PM
If someone wanted to do this for themselves, where would they add the class?
Title: Re: TinyPortal
Post by: Arantor on June 25, 2020, 05:47:12 PM
Looks like you could springboard this off .article-text ?
Title: Re: TinyPortal
Post by: Antechinus on June 25, 2020, 05:54:44 PM
Yes there are quite a few classes in the markup for the articles on the fjr-club front page, but I suspect those were written as BBC articles (inline styles for justify, etc make me think that).

ETA: Just taking a quick look. TPmodules.template has this:

if($mg['articletype']=='php')
echo '
<textarea name="tp_article_body'.$mg['id'].'" id="tp_article_body'.$mg['id'].'" wrap="auto">' , $mg['body'], '</textarea><br>';

elseif($mg['articletype']=='html' && $tp_use_wysiwyg > 0)
TPwysiwyg('tp_article_body'.$mg['id'], $mg['body'], true,'qup_tp_article_body', $tp_use_wysiwyg);

elseif($mg['articletype']=='html' && $tp_use_wysiwyg == 0 )
echo '
<textarea name="tp_article_body'.$mg['id'].'" id="tp_article_body" wrap="auto">' , $mg['body'], '</textarea><br>';

elseif($mg['articletype']=='bbc')


So it wouldn't be hard to use those in a suitable place (haven't found suitable place yet).
Title: Re: TinyPortal
Post by: Arantor on June 25, 2020, 06:01:33 PM
I found that also on the TP site but I found it on a page rather than necessarily on an article explicitly :/
Title: Re: TinyPortal
Post by: @rjen on June 26, 2020, 02:06:14 AM
It is already possible by using the article_inner class that holds the article body text: just add this to your .css at the end...

.article_inner a, a:visited {
    border-bottom: 1px solid #a8b6cf;
}
Title: Re: TinyPortal
Post by: @rjen on June 26, 2020, 02:12:41 AM
QuoteI can see this being useful, since you could potentially set up a stylesheet to handle the bulk of the styling for any HTML article, without requiring typing a pile of classes every time you write one (although it could get a tad gnarly on descendants if you went overboard).

Not that I'm suggesting this be added to TP as a core feature at this stage, but if someone wants to do it on their own site it shouldn't be that difficult.

FYI: in TP 2.0.0 we have introduced a custom css file in TinyPortal which I am using for exactly that:  it holds all styles that I setup to be used in my Articles. This tweak can also easily be added into that custom css file. Which is what I did here: https://test2.fjr-club.nl/index.php?page=FJR-club-Nederland
This is a html article by the way...
Title: Re: TinyPortal
Post by: Antechinus on June 26, 2020, 02:35:45 AM
Cool. That's sorted then. :)
Title: Re: TinyPortal
Post by: @rjen on June 26, 2020, 02:40:46 AM
Actually the better .css is this:


.article_inner a, .article_inner a:visited {
    border-bottom: 1px solid #a8b6cf;
text-decoration: none;
}
Title: Re: TinyPortal
Post by: Antechinus on June 26, 2020, 03:12:45 AM
I've gone off the bottom border for links, because it tends to look crap with linked images. There's another trick you can do these days:

/* Styling for BBC tags */
.bbc_link:link, .bbc_link:visited, .bbc_link:hover, .bbc_link:focus {
text-decoration: underline;
text-decoration-color: #463C31;
text-underline-position: under;
border-bottom: 0;
}
.bbc_link:hover, .bbc_link:focus {
text-decoration-color: #85735D;
}


That's from my dark theme for this site, so you'd obviously have to adjust the colours to suit your intended use. You also probably wouldn't need the override for the default bottom-border.

The good thing about this method is that since it's a text-decoration it isn't applied to linked images, so they look fine even if they have a transparent background around the central content, but the text-underline-position: under; makes the underline sit lower, like a bottom border. You get the same look with better functionality, and it has good support. IE (any version) won't support it, but who cares? Firefox on Android and Safari on iOS won't support it either, at least at the moment. They'll just fall back to standard underline. Anything else is good to go.
Title: Re: TinyPortal
Post by: @rjen on June 26, 2020, 03:15:49 AM
Haha, I was JUST looking into the same thing with the images...



Title: Re: TinyPortal
Post by: Antechinus on June 26, 2020, 03:29:39 AM
Yep. I originally wanted the bottom border because I find underlined text becomes a real PITA to scan if there's much of it. A paragraph full of underlined links is just a crap user experience, IMO. Linked images are definitely a problem though, so text-underline-position: under; is the better option*. Easy to read (especially since you can style the colour of the underline separately to the text) and no problems with images.

*Wasn't supported back in 2.0.x beta days.
Title: Re: TinyPortal
Post by: @rjen on June 26, 2020, 03:36:53 AM
Quote from: jbridges87 on June 25, 2020, 11:52:52 AM
Perfect.
Is there a way to make all future articles show like this as well?

well there you go.

Put this in your css and it should do the trick..
Colors are the SMF2.0 curve colors. If you are using another theme, you may have to adapt the colors...


/* Styling for Link tags */
.article_inner a, .article_inner a:visited, .article_inner a:link {
text-decoration: underline;
text-decoration-color: #a8b6cf;
text-underline-position: under;
border-bottom: 0;
}
.article_inner a:hover, .article_inner a:focus {
text-decoration-color: #334466;
}


[edit] just checked your site: default colors are ok...
Title: Re: TinyPortal
Post by: Antechinus on June 26, 2020, 04:00:42 AM
You don't need to declare hover and focus initially. Just having them picking up the color in the second chunk of code is enough. They'll automatically grab the rest due to being links. ;)
Title: Re: TinyPortal
Post by: @rjen on June 26, 2020, 04:14:00 AM
You are right, I updated my post accordingly.

That's what you get when doing som quick and dirty stuff...
Title: Re: TinyPortal
Post by: jbridges87 on June 27, 2020, 04:47:00 PM
I added the code to the bottom of my themes css, and then wrote a test article with some URL links, but there was no difference.

The linked text still shows up normally.

Edit - Looks like there may have just been a delay. They're showing underlined now.
I'm going to test a few more links out on a new article, and see the results. I'll report back.
Title: Re: TinyPortal
Post by: @rjen on June 27, 2020, 05:11:35 PM
It's a css change: you have to delete the browser cache first...
Title: Re: TinyPortal
Post by: jbridges87 on June 27, 2020, 06:21:17 PM
Alright, I just tested with a second article, and it's working good now.

Thanks folks!
Title: Re: TinyPortal
Post by: jbridges87 on June 27, 2020, 11:36:17 PM
Okay, so something just came up. and I'm not sure if it's related or not.

After making the change, the URL links are showing up ok, but using the horizontal rule, the spacing randomly just creates major gaps in between sentences/paragraphs.
I also just received a Google warning notification stating a forum board is not mobile friendly. The board doesn't even have any content, and none of the other boards popped up on the list, so I don't know what's up with that?

I attached a picture of the notification. Any ideas?
Title: Re: TinyPortal
Post by: Antechinus on June 28, 2020, 01:07:00 AM
At a guess I'd say it's related to your meta tags. That Google screenshot looks like it's not working. I know some meta tags don't work if you stick to much stuff in front of them, but don't know offhand if the viewport tag is one of them. You have two instances of it, anyway, and you should only have one.

Suggestion for first trial: put all your meta tags at the start of the head section rather than strewn throughout it. This should mean they all work, and will also mean you can easily spot when you've doubled up on one by mistake.

PS: And JFCOAB, how many stylesheets and scripts does it take to run one web page? There are millions of them.
Title: Re: TinyPortal
Post by: @rjen on June 28, 2020, 02:38:13 AM
Quote from: jbridges87 on June 27, 2020, 11:36:17 PM
Okay, so something just came up. and I'm not sure if it's related or not.

After making the change, the URL links are showing up ok, but using the horizontal rule, the spacing randomly just creates major gaps in between sentences/paragraphs.

Pretty sure this is unrelated, but just to be sure: link to the article where it happens?
Title: Re: TinyPortal
Post by: lurkalot on June 28, 2020, 03:01:19 AM
Quote from: @rjen on June 28, 2020, 02:38:13 AM
Quote from: jbridges87 on June 27, 2020, 11:36:17 PM
Okay, so something just came up. and I'm not sure if it's related or not.

After making the change, the URL links are showing up ok, but using the horizontal rule, the spacing randomly just creates major gaps in between sentences/paragraphs.

Pretty sure this is unrelated, but just to be sure: link to the article where it happens?

I agree.  It appears to fail the mobile friendly test on any page, including forum index.  https://crown-sports.com/index.php?action=forum

https://search.google.com/test/mobile-friendly

Also, content being blocked because of mixed content.   "Blocked loading mixed active content "http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff"

Due I think to the the insecure call in bootstrap.css

Title: Re: TinyPortal
Post by: lurkalot on June 28, 2020, 03:30:27 PM
The TinyPortal Team is pleased to announce the release of TinyPortal 1.6.7

Note: You must uninstall any previous version of TinyPortal before you can install TP 1.6.7 for SMF2.0.x or SMF2.1. Make a backup of all your SMF and TP files before you uninstall.

Changelog;
This release includes the following fixes:

Relevant to 2.0 and 2.1:
- fixed javascript errors: Uncaught TypeError: Cannot read property 'style' of null
- fixed who's online showing "Viewing TPmod" for shoutbox pages
- fixes for TPstandalone
- fix for frontpage showing forum posts with attachements multiple times
- fixed select options in admin not showing options in some themes

Relevant to 2.1 only:
- fixed issue with non-admins not getting access to manage articles even when permission exists

Download: direct from the SMF Mods site, https://custom.simplemachines.org/mods/index.php?mod=97
Download: from the official support site, https://www.tinyportal.net/index.php?action=tpmod;dl=item156

Users running any TinyPortal version prior to 1.6.6 should update to at least 1.6.6 or higher for security reasons.
Title: Re: TinyPortal
Post by: jbridges87 on June 28, 2020, 03:33:43 PM
@Antechinus - I wasn't sure if positioning of the meta tags mattered or not, so I didn't want to go ahead moving anything. I viewed the page source of the board, and did notice the duplicate entry of the viewport meta, but when looking in the index.template file, there was only 1 instance showing. Not sure where the 2nd one is coming from.

@rjen - I actually went in and cleaned up all the spaces already. I'll see if it happens again on the next article I write.

@lurkalot - The screenshot in the mobile friendly test seems to have a view issue, where the content isn't filling the size of the screen. Maybe that has something to do with what Antechinus mentioned regarding the double entry of the meta=viewport. I will look around and see if I can find out where the 2nd entry may be coming from.
Title: Re: TinyPortal
Post by: jbridges87 on June 29, 2020, 10:39:13 AM
I'm going to make a separate thread for the issue, so as not to throw this discussion off course.
Title: Re: TinyPortal
Post by: jbridges87 on July 03, 2020, 08:04:06 PM
Viewing other articles on the web, I see that authors are able to place ads within the content of the post.
Is TP able to achieve this?

Also, are TP articles indexed?
I setup a query title for a few articles, and they don't appear on google. I then tried searching them on the Search Console and receive an error stating:
"Something went wrong. If the issue persists, try again in a few hours"

I'm just wondering if this is a Google problem or TP just doesn't index articles.
Title: Re: TinyPortal
Post by: lurkalot on July 03, 2020, 08:29:40 PM
Quote from: jbridges87 on July 03, 2020, 08:04:06 PM
Viewing other articles on the web, I see that authors are able to place ads within the content of the post.
Is TP able to achieve this?


Not sure what you mean, Articles in TP are pages.  These pages you can add what you like in them, bbc, html/javascript, or php.  If you mean will TinyPortal place content within or between forum posts, then no it won't.

Quote from: jbridges87 on July 03, 2020, 08:04:06 PM

Also, are TP articles indexed?
I setup a query title for a few articles, and they don't appear on google. I then tried searching them on the Search Console and receive an error stating:
"Something went wrong. If the issue persists, try again in a few hours"

I'm just wondering if this is a Google problem or TP just doesn't index articles.

Google will index TP articles just fine.   You do need to have the linktree active on the articles or you'll probably get a breadcrumbs warning from Google.  Apart from that, yes Google will pick them up.
Title: Re: TinyPortal
Post by: jbridges87 on July 03, 2020, 10:24:35 PM
Is the linktree active by default?
I don't recall seeing that setting anywhere.

Lets say I write an html article in TP, and want to place ads within the article.
Can this be done?
Title: Re: TinyPortal
Post by: lurkalot on July 04, 2020, 04:25:36 AM
jbridges87,

Ads: yes you can, it's just like placing them anywhere else.

Linktree: If you edit an article, you'll see one of the settings when you scroll down to viewing options, "Display linktree"
Title: Re: TinyPortal
Post by: jbridges87 on July 04, 2020, 02:01:57 PM
Right now I just have an adcode within a TP block, so unless you can place blocks inside individual articles, within the content, then I'm not sure how to achieve this.

I see the linktree is turned on by default. So that shouldn't be an issue.
Title: Re: TinyPortal
Post by: lurkalot on July 04, 2020, 02:09:45 PM
Quote from: jbridges87 on July 04, 2020, 02:01:57 PM
Right now I just have an adcode within a TP block, so unless you can place blocks inside individual articles, within the content, then I'm not sure how to achieve this.

I see the linktree is turned on by default. So that shouldn't be an issue.

If it's a html type article just add the same code where you want within the content of the article, same as you would in a block.
Title: Re: TinyPortal
Post by: jbridges87 on July 06, 2020, 11:52:56 AM
Quote from: Antechinus on February 14, 2020, 05:54:21 PM
This isn't a TP support question as such, but is something I'm idly curious about. How difficult would it be to expand block placement options, to allow blocks between posts and categories?

The reason I'm curious is that TP is already close to being a comprehensive ad management system (if used for that purpose) so it occurred to me to wonder if it could be extended with the extra placement options. Has anyone ever considered this?

Was this ever looked into, and/or is it possible?
I'm incredibly interested in this feature.
Title: Re: TinyPortal
Post by: jbridges87 on July 09, 2020, 11:13:37 AM
bump*
Title: Re: TinyPortal
Post by: @rjen on July 09, 2020, 11:51:51 AM
Quote from: jbridges87 on July 06, 2020, 11:52:56 AM
Quote from: Antechinus on February 14, 2020, 05:54:21 PM
This isn't a TP support question as such, but is something I'm idly curious about. How difficult would it be to expand block placement options, to allow blocks between posts and categories?

The reason I'm curious is that TP is already close to being a comprehensive ad management system (if used for that purpose) so it occurred to me to wonder if it could be extended with the extra placement options. Has anyone ever considered this?

Was this ever looked into, and/or is it possible?
I'm incredibly interested in this feature.

Since there are no other responses I guess mine will have to do...

was it ever looked into?  > not that I am aware
is it possible? > with coding everything is possible, but there are no plans to do that in TinyPortal
Title: Re: TinyPortal
Post by: jbridges87 on July 09, 2020, 10:36:25 PM
What would it take to put this together?
I would be willing to put together a fundraiser for the feature. Although, I'm not sure how much time/effort the mod would require.

Are there any members that could handle this task, and would be willing to take it on?
Title: Re: TinyPortal
Post by: lurkalot on July 10, 2020, 03:20:20 PM
Quote from: jbridges87 on July 06, 2020, 11:52:56 AM
Quote from: Antechinus on February 14, 2020, 05:54:21 PM
This isn't a TP support question as such, but is something I'm idly curious about. How difficult would it be to expand block placement options, to allow blocks between posts and categories?

The reason I'm curious is that TP is already close to being a comprehensive ad management system (if used for that purpose) so it occurred to me to wonder if it could be extended with the extra placement options. Has anyone ever considered this?

Was this ever looked into, and/or is it possible?
I'm incredibly interested in this feature.

It has been mentioned some time ago, though I can't find the post, at the moment, and it was never followed up.   

Your best bet when requesting features for TP is to post your ideas over at the TinyPortal support site, in the Tinyportal Feature Requests (https://www.tinyportal.net/index.php?board=246.0) board.  As already mentioned there's not any plans on the table to add this feature atm, but never say never.
Title: Re: TinyPortal
Post by: shadav on August 13, 2020, 04:14:26 AM
where can I edit the user panel block?
what file?
Title: Re: TinyPortal
Post by: @rjen on August 13, 2020, 12:33:52 PM
Quote from: shadav on August 13, 2020, 04:14:26 AM
where can I edit the user panel block?
what file?

TPsubs.template.php

function TPortal_userbox()
Title: Re: TinyPortal
Post by: lurkalot on August 13, 2020, 01:08:35 PM
Quote from: shadav on August 13, 2020, 04:14:26 AM
where can I edit the user panel block?
what file?

Or just add this to a php block and play with that.  ssi_login();
Title: Re: TinyPortal
Post by: shadav on August 13, 2020, 06:17:39 PM
Quote from: @rjen on August 13, 2020, 12:33:52 PM
Quote from: shadav on August 13, 2020, 04:14:26 AM
where can I edit the user panel block?
what file?

TPsubs.template.php

function TPortal_userbox()

Thank you

Quote from: lurkalot on August 13, 2020, 01:08:35 PM
Quote from: shadav on August 13, 2020, 04:14:26 AM
where can I edit the user panel block?
what file?

Or just add this to a php block and play with that.  ssi_login();
thank you, I may play with that later
Title: Re: TinyPortal
Post by: lurkalot on August 22, 2020, 08:09:43 AM
The TinyPortal Team is pleased to announce the release of TinyPortal 2.0.0 RC1

Note: You must uninstall any previous version of TinyPortal before you can install TP 2.0.0 RC1 for SMF2.0.x or SMF2.1. Make a backup of all your SMF and TP files before you uninstall.

Changelog: TinyPortal 2.0.0 RC1

Relevant to SMF 2.0 and 2.1:

Technical updates:

major updates to codebase, cleaned up sources, templates and language files
changes to database tables and fields
removed the unused code sections for plugins and modules
fixed a number of hard-coded language strings
updated language string usage in multiple locations for easier translation
updated block sorting function to resolve issues when moving blocks up and down
updated category layouts and fixed issues with just links layout
and many more....


New functionality:

updated admin pages for a more logical layout including checkboxes instead of radio buttons and tooltips
added setting to disable the PHP eval function
added setting that allows the removal of TinyPortal menu option for all users but admins
updated TinyPortal menu option allowing direct access to settings pages
added functionality to allow / disallow links in comments
updated article comments display and added comments counters
replaced 5-boards option with multi-select for news boards topics frontpage
added 'include or exclude boards' option to recent topics block
added extra css file tp-custom.css for maintaining extra css styles for use in articles
allow for over 30 search results and pagination on article search
added option in TPdownloads to create a downloadable item with a link to a file
added additional article category layout

Relevant to SMF 2.1 only:

added Mentions to Shoutbox and article comments for SMF2.1


NOTICE! because of the database changes in this version there's no going back to TP 1.x.x after installing version 2.0.0. You can install previous versions, but by doing that you WILL lose TP data and you will need to manually fix or recreate your content!!! For these reasons it's advised to backup your database and files before proceeding.

A huge thankyou to tino and @rjen, and all our beta testers for all their hard work, and making this release possible.

Download: SMF Mods site, http://custom.simplemachines.org/mods/index.php?mod=97

Download: https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item159
Title: Re: TinyPortal
Post by: shadav on August 29, 2020, 06:12:17 PM
installed the update...still playing with it

found an extra } in tp-style.css
.tp_col8 {

float: left;

width: 50%;

}

}
Title: Re: TinyPortal
Post by: lurkalot on August 29, 2020, 06:31:21 PM
Quote from: shadav on August 29, 2020, 06:12:17 PM
installed the update...still playing with it

found an extra } in tp-style.css
.tp_col8 {

float: left;

width: 50%;

}

}


Thank you shadav.   ;)
Title: Re: TinyPortal
Post by: njtweb on August 31, 2020, 01:47:26 PM
I'm SO EXCITED! Great news guys, thank you so much!
Title: Re: TinyPortal
Post by: njtweb on September 25, 2020, 10:57:25 AM
Unable to browse to TP site. Says unable to find IP.

This site can't be reachedwww.tinyportal.net's server IP address could not be found.
Try running Windows Network Diagnostics.
DNS_PROBE_FINISHED_NXDOMAIN
Title: Re: TinyPortal
Post by: vbgamer45 on September 25, 2020, 11:09:55 AM
Down for me as well.
Title: Re: TinyPortal
Post by: lesmond on September 25, 2020, 12:00:51 PM
It been down since 09:55 (UK Time) :(
Title: Re: TinyPortal
Post by: lurkalot on September 25, 2020, 12:52:36 PM
Quote from: njtweb on September 25, 2020, 10:57:25 AM
Unable to browse to TP site. Says unable to find IP.

This site can%u2019t be reachedwww.tinyportal.net%u2019s server IP address could not be found.
Try running Windows Network Diagnostics.
DNS_PROBE_FINISHED_NXDOMAIN

Quote from: vbgamer45 on September 25, 2020, 11:09:55 AM
Down for me as well.

Quote from: lesmond on September 25, 2020, 12:00:51 PM
It been down since 09:55 (UK Time) :(


Yep, caused by this, https://www.simplemachines.org/community/index.php?topic=490462.msg4069020#msg4069020

Sorry for the inconvenience.
Title: Re: TinyPortal
Post by: lurkalot on October 05, 2020, 06:00:27 PM
The TinyPortal Team is pleased to announce the release of TinyPortal 2.0.0

TinyPortal 2.0.0 can be used on SMF 2.0 and 2.1
Minimum required PHP version : 5.6.0
Highest supported PHP version (tested) 7.4.11

Changelog: TinyPortal 2.0.0

Technical updates (2.0.0):
- fix for frontpage layouts: 'Promoted topics only' and 'Only forum-topics' not showing images and 'Promoted topics + articles' and 'Forum-topics and articles' not showing the comments links for topics
- fix for topics on frontpage not being shortened
- fixed frontpage showing less forum topics then set
- fix for frontpage not showing guestnews when using Forum-topics and articles - sorted on date
- fixed Block collapse option
- fixed setting 'Use first post attachment preview as icon'
- fixed 'create article' links in User block not working for non-admins
- restored missing "Posted in" links in articles
- fixed the collapse function on article comments
- fixed TPdownloads error for empty items
- changed Hide edit link in articles to Display edit link in articles

New functionality (2.0.0 RC1 and 2.0.0):
- added Mentions to Shoutbox and article comments (for SMF2.1 only)
- updated admin pages for a more logical layout including tooltips
- added setting to disable the PHP eval function
- added setting allows removal of TinyPortal menu option for all users but admins
- updated TinyPortal menu option allowing direct access to settings pages
- added functionality to allow / disallow links in article comments
- updated article comments display and added comments counters
- replaced 5-boards option with multi-select for news boards topics Frontpage
- added 'include or exclude boards' option to recent topics block
- added extra css file tp-custom.css for maintaining styles for use in articles
- allow for over 30 search results and pagination on article search
- added option in TPdownloads to create a downloadable item with a link to a file
- added additional article category layout
- new setting in Article settings to control Icon upload size and display size
- new setting that allows selection of header and frame styles for forum topics on the Frontpage
- include Comments and New comment link in Simple article layout
- updated Edit and Comments link in articles
- added article setting that allows control over 'Posted in category' link

NOTICE! because of the database changes in this version there's no going back to TP 1.x.x after installing version 2.0.0. You can install previous versions, but by doing that you WILL lose TP data and you will need to manually fix or recreate your content!!! For these reasons it's advised to backup your database and files before proceeding.
Title: Re: TinyPortal
Post by: jsx on October 06, 2020, 01:09:04 PM
lurkalot,

Previously, I had TinyPortal 1.6.7 installed on the forum and everything was fine, now after installing version 2.0.0 there was an incorrect display of content in the shoutbox from SMFPacks Shoutbox. The date is not displayed in the correct place. Now the date is showing on the right side but the date should be display after the avatar on the left.

(https://i.imgur.com/0eSCrge.png)

And there is something wrong with the correct text displayed on the home page. Look at this screen:

(https://i.imgur.com/MmZfP0u.png)

The smile icon and text are next to each other. There is a space in the text:

(https://i.imgur.com/n52W0sr.png)
Title: Re: TinyPortal
Post by: @rjen on October 06, 2020, 01:46:07 PM
First question: did you clear your browser cache?

Second question: link to the forum please?
Title: Re: TinyPortal
Post by: jsx on October 07, 2020, 04:35:03 AM
Yes, even on the new test forum, the date in SMFPacks Shoutbox is incorrectly displayed after installing TinyPortal 2.0.0

I sent you a private message.
Title: Re: TinyPortal
Post by: @rjen on October 07, 2020, 05:07:35 AM
I'll look at it tonight.
Title: Re: TinyPortal
Post by: @rjen on October 07, 2020, 05:25:19 AM
Well, I looked at it already. I see the cause: the TinyPortal shoutbox is actually using the same class names as the SMF Pack shoutbox, hence the conflict: class .shoutbox_time is the issue.

I can put it on the worklist for TP make the class names in the TinyPortal shoutbox specific (change the class to tp_shoutbox_time would be the most obvious).
We have actually done this in 2.0.0 for a  number of classes, but not this one...

You have two options now:

option 1. : switch to the standard TP shoutbox, which has layouts similar to the one you are using now

option 2. : change the tp-shout.css file
Line: 139: .shoutbox_time
comment out that section


.shoutbox_time {
display: block;
float: right;
padding-left: 5px;
}
Title: Re: TinyPortal
Post by: jsx on October 07, 2020, 09:10:47 AM
@rjen,

Thank you for your help. Unfortunately, I can't install TinyPortal 2.0.0 right now because this information appears:

Database Error

Duplicate column name 'content'
File: /home/xxx/xxx/xxx/Packages/temp/install.php
Line: 884

$smcFunc['db_change_column']('{db_prefix}tp_shoutbox', 'value1', array( 'name' => 'content', 'type' => 'text', 'default' => ($db_type == 'mysql' ? null : '' )));

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0.15. The above error might possibly go away if you execute the latest version of upgrade.php.

Please help me again.
Title: Re: TinyPortal
Post by: tinoest on October 07, 2020, 09:25:10 AM
Quote from: jsx on October 07, 2020, 09:10:47 AM
@rjen,

Thank you for your help. Unfortunately, I can't install TinyPortal 2.0.0 right now because this information appears:

Database Error

Duplicate column name 'content'
File: /home/xxx/xxx/xxx/Packages/temp/install.php
Line: 884

$smcFunc['db_change_column']('{db_prefix}tp_shoutbox', 'value1', array( 'name' => 'content', 'type' => 'text', 'default' => ($db_type == 'mysql' ? null : '' )));

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0.15. The above error might possibly go away if you execute the latest version of upgrade.php.

Please help me again.

Did you install 1.6.7 after you had installed 2.0.0?

If so you will have to drop some columns manually in the database. Otherwise the upgrade won't work.
Title: Re: TinyPortal
Post by: jsx on October 07, 2020, 09:42:10 AM
Yes, first I had version 1.6.7 installed, then I uninstalled it and installed version 2.0.0, then I uninstalled version 2.0.0 and reinstalled version 1.6.7. I know I made a mistake.

QuoteNOTICE! because of the database changes in this version there's no going back to TP 1.x.x after installing version 2.0.0. You can install previous versions, but by doing that you WILL lose TP data and you will need to manually fix or recreate your content!!! For these reasons it's advised to backup your database and files before proceeding.

@tinoest

I uninstalled version 1.6.7 without using this function "Remove all data associated with this modification". The database includes such tables from TP:

(https://i.imgur.com/en0pm9T.png)

However, should I delete all these tables before installing version 2.0.0? Which tables do I need to delete for version 2.0.0 to install properly? I want to keep the menu blocks settings.
Title: Re: TinyPortal
Post by: tinoest on October 07, 2020, 09:51:49 AM
You will lose all your data if you do that.

Do you have access to the database via phpmyadmin or another similar tool? Are you comfortable removing columns from a database?
Title: Re: TinyPortal
Post by: jsx on October 07, 2020, 09:54:26 AM
I have access to phpmyadmin. I can try to do this operation.
Title: Re: TinyPortal
Post by: tinoest on October 07, 2020, 11:05:07 AM
In the tp_shoutbox table you want to drop all columns starting with the word value followed by a number.

If you click on structure for the database table, you will see the word drop at the end click this to remove each column individually.

You should see a command similar to the following;

ALTER TABLE `smf_tp_shoutbox` DROP `value6`;
Title: Re: TinyPortal
Post by: marcosbr on October 07, 2020, 11:52:08 AM

I have the same problem in 2.1.
The difference is:
"Remove all data associated with this modification".
I removed it when I uninstalled it. My forum is for testing.
I get the same error installing the new version!
Can I follow these tips in 2.1, or not?
Title: Re: TinyPortal
Post by: tinoest on October 07, 2020, 12:17:28 PM
You should only get there error's if you installed TinyPortal 2.0.0 then decided to remove 2.0.0 and install TinyPortal 1.6.7 again.

Can you confirm this is the case? 
Title: Re: TinyPortal
Post by: marcosbr on October 07, 2020, 12:40:46 PM

Yes, I did!
The "Test" forum knows how it is...
All identical to JSX.
So the problem was the return to a previous version!
But I only did it because it's a specific forum for testing!
Title: Re: TinyPortal
Post by: @rjen on October 07, 2020, 12:47:15 PM
NOTICE! because of the database changes in this version there's no going back to TP 1.x.x after installing version 2.0.0. You can install previous versions, but by doing that you WILL lose TP data and you will need to manually fix or recreate your content!!! For these reasons it's advised to backup your database and files before proceeding.


That also applies to test fora...
Title: Re: TinyPortal
Post by: jsx on October 07, 2020, 12:57:24 PM
@rjen

After removing this code in tp-shout.css from 139 lines, now shoutbox date in SMFPacks Shoutbox is displayed correctly. Thanks a lot for your help.

@tinoest

In the tp_shoutbox table, after entering the structure, I deleted all items from value1 to value8 and now TinyPortal 2.0.0 has been installed correctly. Thanks a lot for your help.

(https://i.imgur.com/e4HSPlc.png)
Title: Re: TinyPortal
Post by: @rjen on October 07, 2020, 12:58:09 PM
You're welcome
Title: Re: TinyPortal
Post by: marcosbr on October 07, 2020, 01:09:01 PM

Thanks.
And I hadn't read it. That's why I always tested "everything" outside the official website!
Just a suggestion...
This forum doesn't answer. Increase this font a bit or put it in red!
Thanks a lot for the explanation!



Title: Re: TinyPortal
Post by: @rjen on October 07, 2020, 01:12:21 PM
Quote from: marcosbr on October 07, 2020, 01:09:01 PM

Thanks.
And I hadn't read it. That's why I always tested "everything" outside the official website!
Just a suggestion...
This forum doesn't answer. Increase this font a bit or put it in red!
Thanks a lot for the explanation!

I seriously doubt if that will make a difference TBH..
Attached text is there in RED... did you make a backup?

Being a man I tend to read the manual only after the fact...  ;)
Title: Re: TinyPortal
Post by: marcosbr on October 07, 2020, 01:27:36 PM

I agree. But reinforce the warning!
I am referring to this passage:
"WARNING! due to the changes in the database in this version, there is no way back to TP 1.x.x after the installation of version 2.0.0."
The red one draws attention, but in reality nobody reads much.
That's why women are better than men!  :'( :laugh: :laugh: :laugh:
Title: Re: TinyPortal
Post by: MoreBloodWine on October 14, 2020, 02:03:14 AM
Finally getting around to updating an old site after fixing an EXTREMELY old WSOD.

Did that by upgrade, anyway...

Old TP was of the 1.1x branch.

DL'd and then UL'd the 2.0.0 version for the 2.1RC2 version of SMF.

It seems to look fine on the cursory check before installing. But after I click Install Now, I'm greeted with this.

Please assist, Ty ;-)

Unknown column 'var5' in 'field list'
File: /*removed*/Packages/temp/install.php
Line: 1156
Title: Re: TinyPortal
Post by: tinoest on October 16, 2020, 11:50:19 AM
Apologies for the late reply, what version of TinyPortal were you using?

I think if you go to TinyPortal 1.6.8 or similar then TinyPortal 2.0.0 you should be ok.
Title: Re: TinyPortal
Post by: MoreBloodWine on October 16, 2020, 03:40:06 PM
Quote from: tinoest on October 16, 2020, 11:50:19 AM
Apologies for the late reply, what version of TinyPortal were you using?

I think if you go to TinyPortal 1.6.8 or similar then TinyPortal 2.0.0 you should be ok.
If the last two digits really make that much of a diff beside the 1.1x. It's 1.107, or was... but forum is already om the previously named RC.

That being said, as far as I can tell. Whatever that error / bug is. I can't be the only one whos come up with it which means whether I do 1.6.8 or similar, the bug if we're gonna call it that will still be un the 2x branch until patched.

Now granted there may be something I'm not aware of. But I kind of feel like backtracking, even if it works. Is the equivalent of a band aid on a slow drip faucet.

This site hasn't been touched in years short of the upgrade which worked, so I want to be as current as possible on packages.
Title: Re: TinyPortal
Post by: tinoest on October 17, 2020, 04:09:30 AM
TinyPortal hasn't supported SMF 1.1 since 2015, so what I'm asking is you go to an interim release before going to the latest.

Although looking at the change you will probably need something from the 1.4.0 release or similar which was released in 2018; https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item115

As you are the first person to raise this issue in 2 years. I think you probably are going to be the only one who comes up with it. I also don't see how that is a bandaid on a slow drip faucet. Finally I don't see why the latest upgrader should handle something which hasn't been supported for five years in the latest version when you can go to an intermediate release first.
Title: Re: TinyPortal
Post by: minormike on October 17, 2020, 08:03:45 AM
My complete forum is borked after checking an option to display articles in the portal top block, I got the message Database error, given array of integer values is empty. (cat) and now no pages load at all - every page displays that error. Even deleting the whole TinyPortal folder via FTP hasn't made a difference - the forum simply won't load
Title: Re: TinyPortal
Post by: lurkalot on October 17, 2020, 08:22:04 AM
Quote from: MoreBloodWine on October 14, 2020, 02:03:14 AM
Finally getting around to updating an old site after fixing an EXTREMELY old WSOD.

Did that by upgrade, anyway...

Old TP was of the 1.1x branch.

DL'd and then UL'd the 2.0.0 version for the 2.1RC2 version of SMF.

It seems to look fine on the cursory check before installing. But after I click Install Now, I'm greeted with this.

Please assist, Ty ;-)

Unknown column 'var5' in 'field list'
File: /*removed*/Packages/temp/install.php
Line: 1156


Think we need to back track a little.

So this was an old SMF forum you have upgraded, from what version of SMF to what version? 

And you were running a really old TinyPortal version 1.107 and want to upgrade to the latest. Did you try installing TP1.6.8 first before going to TP2.0.0 as suggested?
Title: Re: TinyPortal
Post by: lurkalot on October 17, 2020, 08:28:18 AM
Quote from: minormike on October 17, 2020, 08:03:45 AM
My complete forum is borked after checking an option to display articles in the portal top block, I got the message Database error, given array of integer values is empty. (cat) and now no pages load at all - every page displays that error. Even deleting the whole TinyPortal folder via FTP hasn't made a difference - the forum simply won't load

Deleting stuff without uninstalling will surely make matters worse, please don't do that without seeking support first. 

What version of SMF are you running, and what version of TinyPortal??

Firstly reinstate the TinyPortal folder you deleted, then add this to the end of your site url,  ?action=tpadmin;sa=panels;noblocks and see if that will let you change the setting back so you can use your forum again.
Title: Re: TinyPortal
Post by: minormike on October 17, 2020, 08:35:16 AM
I'm using SMF 2.0.17 and TT 2.0.0
Adding that piece at the end still generates the error unfortunately. It occurred when I created an article and set an area to display it and hit Save
Title: Re: TinyPortal
Post by: @rjen on October 17, 2020, 09:39:58 AM
Trying to understand what exactly lead to the error.

You created and article and set an area to display it?

How exactly did you do that:

1. As an admin or as a user with extra permissions?

2. You mention that you tries adding an article in the portal top panel

QuoteMy complete forum is borked after checking an option to display articles in the portal top block

So I assume you created the article itself just fine, but the error started when you included the article in a block? Is that a correct assessment? Articles themselves do not contain a setting where to display them....

3. Then how did you go about that: I assume you created a new block of type Article: Single or Articles in a category?

Please help narrow it down, because I cannot reproduce it...
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 10:50:24 AM
Quote from: tinoest on October 17, 2020, 04:09:30 AM
Finally I don't see why the latest upgrader should handle something which hasn't been supported for five years in the latest version when you can go to an intermediate release first.
So you missed where I said I brought the site current the the 2.1 RC2 branch of SMF which as I understand it should be supported by the TP 2.0 I'm trying to install ?!? But am instead being told to use an older ver ? That about right ?

But I'll chalk that up to miscommunications... since I can see where the following may have confused you or anyone for that matter by me indicating in a not so direct way that I fixed the WSOD by upgrading the forum to be current on it's underlying software....

QuoteFinally getting around to updating an old site after fixing an EXTREMELY old WSOD.

Did that by upgrade, anyway..



Quote from: lurkalot on October 17, 2020, 08:22:04 AM
Quote from: MoreBloodWine on October 14, 2020, 02:03:14 AM
Finally getting around to updating an old site after fixing an EXTREMELY old WSOD.

Did that by upgrade, anyway...

Old TP was of the 1.1x branch.

DL'd and then UL'd the 2.0.0 version for the 2.1RC2 version of SMF.

It seems to look fine on the cursory check before installing. But after I click Install Now, I'm greeted with this.

Please assist, Ty ;-)

Unknown column 'var5' in 'field list'
File: /*removed*/Packages/temp/install.php
Line: 1156


Think we need to back track a little.

So this was an old SMF forum you have upgraded, from what version of SMF to what version? 

And you were running a really old TinyPortal version 1.107 and want to upgrade to the latest. Did you try installing TP1.6.8 first before going to TP2.0.0 as suggested?

Yes, it probably is best to start over.......

2015/16 is probably accurate for when I last gave a damn about fixing the site. It was an old one that wasn't really going anywhere. But I started feeling a bit nostalgic and brought it back in a manner of speaking.

I don't recall the version number I previously had installed for SMF, I want to say maybe 2.0.9. But the previously named version of TP I do believe to be accurate.

But without citing more potentially confusing history etc.

I upgraded an old forum of the 2015/16 era to the 2.1 RC2 of SMF. This, unless I am missing something... means my site is now current.

So, starting with packages I would always do TP first before even adding a Theme.

Well, me being on SMF 2.1 RC2 now means my database has already been modified.

But yes, I do have an old DB copy & file copy made before the upgrade. So I can go back to a WSOD if needed. But as of this minute without touching anything else...

This is where I currently stand...

2015/16 era forum upgraded to 2.1 RC2 of SMF, me now trying to install TP 2.0 on the now current forum software stuck at the install.php error I originally mentioned.

Ty, lukalot.

As a final answer, no I haven't tried to reinstall old packages since past experience have taught that that never works out too well if at all.

I can manually patch lines of code getting a package to install that otherwise wont for parse errors where something needs to fit between say lines 3 and 8 but wont because of a stray comma or something. That's like riding a bike I hope... but I only posted here bec I never attempt to solo something I don't recall seeing before.
Title: Re: TinyPortal
Post by: Arantor on October 17, 2020, 10:55:05 AM
The only miscommunication here is the part where you missed that you can't go from 1.107 direct to 2.0.0 of TP - no matter what version of SMF you're basing it on.

You upgraded SMF, sure, but TP can't go from TP 1.107 to TP 2.0.0 because the stuff required to upgrade it was ditched years ago.
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 10:59:28 AM
Quote from: Arantor on October 17, 2020, 10:55:05 AM
The only miscommunication here is the part where you missed that you can't go from 1.107 direct to 2.0.0 of TP - no matter what version of SMF you're basing it on.

You upgraded SMF, sure, but TP can't go from TP 1.107 to TP 2.0.0 because the stuff required to upgrade it was ditched years ago.
Ok, then the middle ground of a TP install is warranted and I will go DL and try I think the suggested 1.6.8 and post back accordingly...
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 11:04:05 AM
Going to go make my morning coffee but this is what I'm now getting... Ty.

Install Error: - please install a version of TinyPortal greater than or equal to 2.0.0

Edit: To be clear, that's what I get trying to install 1.6.8 on an upgraded 2.1 RC2 forum.
Title: Re: TinyPortal
Post by: lurkalot on October 17, 2020, 11:16:11 AM
Quote from: minormike on October 17, 2020, 08:35:16 AM
I'm using SMF 2.0.17 and TT 2.0.0
Adding that piece at the end still generates the error unfortunately. It occurred when I created an article and set an area to display it and hit Save

OK, hopefully you should be able to get back in on your forum, I've turned that block off for you .  Let me know if that isn't the case.

And please, it would be useful to have the info @rjen requested above so we can narrow down the cause of the issue.
Title: Re: TinyPortal
Post by: @rjen on October 17, 2020, 11:18:05 AM
Quote from: MoreBloodWine on October 17, 2020, 11:04:05 AM
Going to go make my morning coffee but this is what I'm now getting... Ty.

Install Error: - please install a version of TinyPortal greater than or equal to 2.0.0

Edit: To be clear, that's what I get trying to install 1.6.8 on a upgraded 2.1 RC2 forum.

That means that the Install of TP 2.0.0 seems to have partially completed. Due to the database changes in 2.0.0 compared to 1.6.x you cannot go back.

Since you said it was 2015 since you gave a damn about fixing the site, you may not have that much Tinyportal history to salvage? If so, you better start fresh...

Mind you: you will lose any articles and blocks that way...

step 1: go into PhPMyadmin and download the TinyPortal tables from the database: these are all the tables with a _tp_ prefix.  If you are up for it you could try to salvage the content of articles from there later
If it is old and you do not mind: skip this step

step 2: Uninstall whatever is left of TinyPortal

step 3: go into PhPMyadmin and delete the TinyPortal tables from the database: these are all the tables with a _tp_ prefix.

step 4: in the TinyPortal 2.0.0 package find the do_hooks.php file, upload this to the root of your forum and execute.
Manual with instructions found here: https://www.tinyportal.net/docs/index.php?page=87

step 5: Install TinyPortal 2.0.0
This will give you a clean install with the default blocks and you can go from there...
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 11:21:33 AM
Quote from: @rjen on October 17, 2020, 11:18:05 AM
Quote from: MoreBloodWine on October 17, 2020, 11:04:05 AM
Going to go make my morning coffee but this is what I'm now getting... Ty.

Install Error: - please install a version of TinyPortal greater than or equal to 2.0.0

Edit: To be clear, that's what I get trying to install 1.6.8 on a upgraded 2.1 RC2 forum.

That means that the Install of TP 2.0.0 seems to have partially completed. Due to the database changes in 2.0.0 compared to 1.6.x you cannot go back.

Since you said it was 2015 since you gave a damn about fixing the site, you may not have that much Tinyportal history to salvage? If so, you better start fresh...

Mind you: you will lose any articles and blocks that way...

step 1: go into PhPMyadmin and download the TinyPortal tables from the database: these are all the tables with a _tp_ prefix.  If you are up for it you could try to salvage the content of articles from there later
If it is old and you do not mind: skip this step

step 2: Uninstall whatever is left of TinyPortal

step 3: go into PhPMyadmin and delete the TinyPortal tables from the database: these are all the tables with a _tp_ prefix.

step 4: in the TinyPortal 2.0.0 package find the do_hooks.php file, upload this to the root of your forum and execute.
Manual with instructions found here: https://www.tinyportal.net/docs/index.php?page=87

step 5: Install TinyPortal 2.0.0
This will give you a clean install with the default blocks and you can go from there...
I said I didn't giove a damn about it then but it's a site with substantial data.

Also, what was there to complete when I never got to install it,  ?the 2.0 of TP

That said, I also mentioned that I still have the old files and DB stuff.

So if I were to reinstall a WSOD site in a manner of speaking. Do the same thing but sans 2.0 and go directly to attempting 1.6.8 after the "new" 2.1 RC2 upgrade, then you're saying it will work ?
Title: Re: TinyPortal
Post by: @rjen on October 17, 2020, 11:34:26 AM
Quote from: MoreBloodWine on October 14, 2020, 02:03:14 AM
Finally getting around to updating an old site after fixing an EXTREMELY old WSOD.

Did that by upgrade, anyway...

Old TP was of the 1.1x branch.

DL'd and then UL'd the 2.0.0 version for the 2.1RC2 version of SMF.

It seems to look fine on the cursory check before installing. But after I click Install Now, I'm greeted with this.

Please assist, Ty ;-)

Unknown column 'var5' in 'field list'
File: /*removed*/Packages/temp/install.php
Line: 1156


You say that you clicked Install for TinyPortal 2.0.0 before you got the error: that means that the installer started to install. Somewhere in the process the install choked on the very old TP1.x table structure so the TP2.0.0 installer did not complete it's work.

I understand your site will have substantial data, but that does not necessarily mean that involves much TinyPortal data...
I am only suggesting to drop the tinyportal data, that will leave the rest of your forum (members, posts and all) intact

QuoteSo if I were to reinstall a WSOD site in a manner of speaking. Do the same thing but sans 2.0 and go directly to attempting 1.6.8 after the "new" 2.1 RC2 upgrade and then you're saying it will work ?

That's not what I said, that's a completely different approach, like tinoest suggested. But if I remember correctly he suggested the start with 1.4.0

QuoteAlthough looking at the change you will probably need something from the 1.4.0 release or similar which was released in 2018; https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item115

But if I am honest: you are now in the Twilight zone, since the first TinyPortal that has support for SMF2.1 was version 1.5.1...
Title: Re: TinyPortal
Post by: Arantor on October 17, 2020, 11:38:14 AM
Me personally I'd go back to the backup taken before upgrading to 2.1, then off the top of my head I'd probably to SMF 1.x to SMF 2.0, TP to TP 1.4.0 then TP to TP 1.6.8, then SMF to SMF 2.1 then TP to SMF 2.0.
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 11:45:50 AM
Quote from: Arantor on October 17, 2020, 11:38:14 AM
Me personally I'd go back to the backup taken before upgrading to 2.1, then off the top of my head I'd probably to SMF 1.x to SMF 2.0, TP to TP 1.4.0 then TP to TP 1.6.8, then SMF to SMF 2.1 then TP to SMF 2.0.
Thats a long approach to what I said and probably best. Since I do have the old data and tables, unlike some. I have room to play with. So I'll try a direct jump to 2.1 RC2 again, try 1.6.8 then 2.0

If that fails, then I'll take this longer approach.

As for the other reply regarding substantial data, you're not necessarily wrong rjen, but I do have a bunch of custom TP blocks that tie into other things that just can't be as easily produced as they were then.

I'll take the approach suggested by arantor that's pretty much inline with what I was thinking at this point. So I'll go that route and post back if needed for more support or just to say, thank god that ******s over lol
Title: Re: TinyPortal
Post by: @rjen on October 17, 2020, 11:54:18 AM
Sounds like a plan..,
Title: Re: TinyPortal
Post by: lurkalot on October 17, 2020, 11:56:33 AM
Quote from: MoreBloodWine on October 17, 2020, 11:45:50 AM
Quote from: Arantor on October 17, 2020, 11:38:14 AM
Me personally I'd go back to the backup taken before upgrading to 2.1, then off the top of my head I'd probably to SMF 1.x to SMF 2.0, TP to TP 1.4.0 then TP to TP 1.6.8, then SMF to SMF 2.1 then TP to SMF 2.0.
Thats a long approach to what I said and probably best. Since I do have the old data and tables, unlike some. I have room to play with. So I'll try a direct jump to 2.1 RC2 again, try 1.6.8 then 2.0

If that fails, then I'll take this longer approach.

As for the other reply regarding substantial data, you're not necessarily wrong rjen, but I do have a bunch of custom TP blocks that tie into other things that just can't be as easily produced as they were then.

I'll take the approach suggested by arantor that's pretty much inline with what I was thinking at this point. So I'll go that route and post back if needed for more support or just to say, thank god that ******s over lol

Can I make another suggestion while you go through this process.  It might be wise to turn off blocks while you can, just in case they contain any conflicting code.  You can then re enable them one by one,  once everything is stable.
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 12:12:27 PM
Quote from: lurkalot on October 17, 2020, 11:56:33 AM
Quote from: MoreBloodWine on October 17, 2020, 11:45:50 AM
Quote from: Arantor on October 17, 2020, 11:38:14 AM
Me personally I'd go back to the backup taken before upgrading to 2.1, then off the top of my head I'd probably to SMF 1.x to SMF 2.0, TP to TP 1.4.0 then TP to TP 1.6.8, then SMF to SMF 2.1 then TP to SMF 2.0.
Thats a long approach to what I said and probably best. Since I do have the old data and tables, unlike some. I have room to play with. So I'll try a direct jump to 2.1 RC2 again, try 1.6.8 then 2.0

If that fails, then I'll take this longer approach.

As for the other reply regarding substantial data, you're not necessarily wrong rjen, but I do have a bunch of custom TP blocks that tie into other things that just can't be as easily produced as they were then.

I'll take the approach suggested by arantor that's pretty much inline with what I was thinking at this point. So I'll go that route and post back if needed for more support or just to say, thank god that ******s over lol

Can I make another suggestion while you go through this process.  It might be wise to turn off blocks while you can, just in case they contain any conflicting code.  You can then re enable them one by one,  once everything is stable.
How would I do this via an SQL command after I restore the old DB ? But before trying to "upgrade" TP through the PM ?

The old ver in said DB is I think I had said 1.0.7 if that changes any commands used via the DB run command thing.
Title: Re: TinyPortal
Post by: lurkalot on October 17, 2020, 12:30:38 PM
Quote from: MoreBloodWine on October 17, 2020, 12:12:27 PM
Quote from: lurkalot on October 17, 2020, 11:56:33 AM

Can I make another suggestion while you go through this process.  It might be wise to turn off blocks while you can, just in case they contain any conflicting code.  You can then re enable them one by one,  once everything is stable.
How would I do this via an SQL command after I restore the old DB ? But before trying to "upgrade" TP through the PM ?

The old ver in said DB is I think I had said 1.0.7 if that changes any commands used via the DB run command thing.

I meant through the TP admin panel before you go for the upgrade, assuming it's in a state where you can get to it.   It was just an extra precaution just in case there's some very old code in some of the blocks, especially if they were prior to using smfunc 
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 12:45:04 PM
Quote from: lurkalot on October 17, 2020, 12:30:38 PM
Quote from: MoreBloodWine on October 17, 2020, 12:12:27 PM
Quote from: lurkalot on October 17, 2020, 11:56:33 AM

Can I make another suggestion while you go through this process.  It might be wise to turn off blocks while you can, just in case they contain any conflicting code.  You can then re enable them one by one,  once everything is stable.
How would I do this via an SQL command after I restore the old DB ? But before trying to "upgrade" TP through the PM ?

The old ver in said DB is I think I had said 1.0.7 if that changes any commands used via the DB run command thing.

I meant through the TP admin panel before you go for the upgrade, assuming it's in a state where you can get to it.   It was just an extra precaution just in case there's some very old code in some of the blocks, especially if they were prior to using smfunc
An old WSOD is what started this process so that's a no go.

I have an idea though, any errors shouldn't show with blocks on while in admin. So i should be able to disable after upgrade.

Then i can enable one by one.

This assumes the WSOD isn't just the home page.

What's the url for tp admin ?
Title: Re: TinyPortal
Post by: lurkalot on October 17, 2020, 12:49:39 PM
Quote from: MoreBloodWine on October 17, 2020, 12:45:04 PM
Quote from: lurkalot on October 17, 2020, 12:30:38 PM
Quote from: MoreBloodWine on October 17, 2020, 12:12:27 PM
Quote from: lurkalot on October 17, 2020, 11:56:33 AM

Can I make another suggestion while you go through this process.  It might be wise to turn off blocks while you can, just in case they contain any conflicting code.  You can then re enable them one by one,  once everything is stable.
How would I do this via an SQL command after I restore the old DB ? But before trying to "upgrade" TP through the PM ?

The old ver in said DB is I think I had said 1.0.7 if that changes any commands used via the DB run command thing.

I meant through the TP admin panel before you go for the upgrade, assuming it's in a state where you can get to it.   It was just an extra precaution just in case there's some very old code in some of the blocks, especially if they were prior to using smfunc
An old WSOD is what started this process so that's a no go.

I have an idea though, any errors shouldn't show with blocks on while in admin. So i should be able to disable after upgrade.

Then i can enable one by one.

This assumes the WSOD isn't just the home page.

What's the url for tp admin ?

You could try adding this to the end of your site url and see if you can get there.   ?action=tpadmin;sa=panels;noblocks
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 01:16:14 PM
Quote from: lurkalot on October 17, 2020, 12:49:39 PM
Quote from: MoreBloodWine on October 17, 2020, 12:45:04 PM
Quote from: lurkalot on October 17, 2020, 12:30:38 PM
Quote from: MoreBloodWine on October 17, 2020, 12:12:27 PM
Quote from: lurkalot on October 17, 2020, 11:56:33 AM

Can I make another suggestion while you go through this process.  It might be wise to turn off blocks while you can, just in case they contain any conflicting code.  You can then re enable them one by one,  once everything is stable.
How would I do this via an SQL command after I restore the old DB ? But before trying to "upgrade" TP through the PM ?

The old ver in said DB is I think I had said 1.0.7 if that changes any commands used via the DB run command thing.

I meant through the TP admin panel before you go for the upgrade, assuming it's in a state where you can get to it.   It was just an extra precaution just in case there's some very old code in some of the blocks, especially if they were prior to using smfunc
An old WSOD is what started this process so that's a no go.

I have an idea though, any errors shouldn't show with blocks on while in admin. So i should be able to disable after upgrade.

Then i can enable one by one.

This assumes the WSOD isn't just the home page.

What's the url for tp admin ?

You could try adding this to the end of your site url and see if you can get there.   ?action=tpadmin;sa=panels;noblocks
Didn't work, was worth trying, but I'm now back to the WSOD site, so fingers crossed on everything else...
Title: Re: TinyPortal
Post by: MoreBloodWine on October 17, 2020, 01:44:51 PM
Not that I need to post this, but I may be ok just doing 2.0.17 and waiting for 2.1 to become final before worrying about bringing TP completely current.

https://www.simplemachines.org/community/index.php?topic=575261.msg4071313#msg4071313

This will be my only remarks here regarding non TP stuff. But will post back in a while if I need more help regarding TP to which I haven't touched yet, but will after this.

But for now, at least until 2.1 is final which should be soon if we're on RC3.

It looks like I can still use TP 1.0.7 on SMF 2.0.17... for a short while anyway.

But at least on 2.0.17 it might still be prudent to try 1.6.8 and do 2.0 when SMF 2.1 is final.
Title: Re: TinyPortal
Post by: minormike on October 17, 2020, 02:16:00 PM
Quote from: @rjen on October 17, 2020, 09:39:58 AM
Trying to understand what exactly lead to the error.

You created and article and set an area to display it?

How exactly did you do that:

1. As an admin or as a user with extra permissions?

2. You mention that you tries adding an article in the portal top panel

QuoteMy complete forum is borked after checking an option to display articles in the portal top block

So I assume you created the article itself just fine, but the error started when you included the article in a block? Is that a correct assessment? Articles themselves do not contain a setting where to display them....

3. Then how did you go about that: I assume you created a new block of type Article: Single or Articles in a category?

Please help narrow it down, because I cannot reproduce it...

I was on this page, forum.xxxx.xxx/index.php?action=tpadmin;sa=blocks , and having some trouble getting an article I'd created to show up on the forum. It was in Top Panel Blocks. For some reason the type 'Article: Single' hadn't shown my article, so on the blocks page I changed the type to 'Articles in a category' and then hit the Save icon on that line. That's when the error occurred
Title: Re: TinyPortal
Post by: @rjen on October 17, 2020, 02:28:10 PM
Quote from: minormike on October 17, 2020, 02:16:00 PM
I was on this page, forum.xxxx.xxx/index.php?action=tpadmin;sa=blocks , and having some trouble getting an article I'd created to show up on the forum. It was in Top Panel Blocks. For some reason the type 'Article: Single' hadn't shown my article, so on the blocks page I changed the type to 'Articles in a category' and then hit the Save icon on that line. That's when the error occurred

Thanks, I managed to reproduce it with the info Lurkalot provided...
It is a bug, a rare one, and you need to do something specific to trigger it..

The error: Database error, given array of integer values is empty. (cat)
Is given if a block of type 19 - Articles in a category has an empty value in the field tp_blocks-body.

Changing a block in the block overview can do this, but it happens in rare situations where the block does not yet have a value in the body field. In the reported example it has happened because a new article block has been created without choosing the article itself: I guess you did not press 'save' on the block a second time when you created the new block, thinking the default article showing was selected.

Result: no valid selection in the article block. The article block is fine with no ID in the block field, it just shows an empty block.

But then changing to Articles in a Category does not fill the block field. The articles in a category block does NOT like the empty field.

So how to fix:

go to tp_blocks table in the database and find any block of type 19 where the body field is empty. Then either
1. set off to 1, or
2. edit that line and put a 1 in the body...

We are looking into a fix...that prevents it...
Title: Re: TinyPortal
Post by: minormike on October 17, 2020, 04:40:15 PM
Hey, I'm happy I managed to remember enough of what I'd done wrong, so that you guys were able to reproduce it and hopefully eradicate it in a future release! Thanks to Lurkalot and yourself for the info to fix
Title: Re: TinyPortal
Post by: tinoest on October 17, 2020, 05:38:53 PM
Quote from: MoreBloodWine on October 17, 2020, 01:44:51 PM
Not that I need to post this, but I may be ok just doing 2.0.17 and waiting for 2.1 to become final before worrying about bringing TP completely current.

https://www.simplemachines.org/community/index.php?topic=575261.msg4071313#msg4071313

This will be my only remarks here regarding non TP stuff. But will post back in a while if I need more help regarding TP to which I haven't touched yet, but will after this.

But for now, at least until 2.1 is final which should be soon if we're on RC3.

It looks like I can still use TP 1.0.7 on SMF 2.0.17... for a short while anyway.

But at least on 2.0.17 it might still be prudent to try 1.6.8 and do 2.0 when SMF 2.1 is final.

Sure other than the version of TinyPortal you are running has known security flaws which have been patched in later releases.
Title: Re: TinyPortal
Post by: Mark S on October 19, 2020, 08:16:09 PM
Is it safe to install Tiny Portal while still having Simple Portal installed?

I want to replace SP, but I'd like to keep it for now so I can reproduce the blocks and content in TP easier before removing SP.
Title: Re: TinyPortal
Post by: Bigguy on October 19, 2020, 08:28:26 PM
They might both install fine but I would think it's better not to do this. If I remember I did it once, it worked but there were some underlying issues. This was awhile ago though so things may have changed.
Title: Re: TinyPortal
Post by: Mark S on October 20, 2020, 01:05:46 PM
Thanks. "Underlying issues" is what I'm afraid of lol!

Think I'll take a whole lot of screenshots of my SP block details, delete it, and manually rebuild them in TP.
Title: Re: TinyPortal
Post by: lurkalot on October 20, 2020, 02:20:53 PM
Quote from: Mark S on October 20, 2020, 01:05:46 PM
Thanks. "Underlying issues" is what I'm afraid of lol!

Think I'll take a whole lot of screenshots of my SP block details, delete it, and manually rebuild them in TP.

Mark, if you want access to a test site running TP so you can test your blocks, or get them ready to copy and past across, then drop me a PM, and I'll sort it for you.  ;)
Title: Re: TinyPortal
Post by: Mark S on October 20, 2020, 07:45:18 PM
Being able to put the blocks and content somewhere else would save me a ton of time totally recreating them by hand in TP from SP screenshots!

Title: Re: TinyPortal
Post by: lurkalot on October 21, 2020, 02:09:34 PM
Quote from: Mark S on October 20, 2020, 07:45:18 PM
Being able to put the blocks and content somewhere else would save me a ton of time totally recreating them by hand in TP from SP screenshots!

Mark  S, I have sent you a PM regarding this. ;)
Title: Re: TinyPortal
Post by: PoML on October 26, 2020, 04:39:04 PM
Hi!

Just upgraded my forum to SMF 2.1 RC3 and TP 2.0.0.
Everything seems fine except that the articles when viewed on a smartphone suddenly are wider than the screen and cut.
The same thing happens in Chrome when I view the page using the developer tools to set size of screen to any smartphone size.
Previously, this looked perfect.

Is there a setting somewhere that is wrong, or is this a part of testing versions ending in double zeros?

See screenshot attached.
Title: Re: TinyPortal
Post by: @rjen on October 26, 2020, 04:48:31 PM
Did you clear the browser cache?

Please try that first. If it does not help please share a link to the forum..
Title: Re: TinyPortal
Post by: PoML on October 26, 2020, 09:50:25 PM
Quote from: @rjen on October 26, 2020, 04:48:31 PM
Did you clear the browser cache?

Please try that first. If it does not help please share a link to the forum..

I tested some more...
It seems that only logged-in users get too wide articles - articles available to guests seems to behave better...
Forum address is : https://smbergen.org/medlemmer/forum

PS: tested it also with the "Potato" theme, and that had similar results.
Title: Re: TinyPortal
Post by: @rjen on October 27, 2020, 02:17:46 AM
I just registered and visit your forum from my iPhone : articles fit on screen
Title: Re: TinyPortal
Post by: @rjen on October 27, 2020, 02:55:22 AM
First of all, there's something funny with the Copyright showing in all your frontpage topics. I am pretty sure that has something to do with the Norwegian language pack, because when I switch to English it's OK

Secondly I notice a scroll bar appearing in your forum-policy

I think the cause is the use of the <pre > tags in your articles.

QuoteText in a <pre > element is displayed in a fixed-width font, and the text preserves both spaces and line breaks. The text will be displayed exactly as written in the HTML source code.

That will probably cause the issue...

Now, to find exactly why that did work before I will need to see the full / exact body text of an article that has this.
Given the content of your forum I have deleted my account again, and I am not interested to access your site.

Not sure how to analyze this further...
Title: Re: TinyPortal
Post by: PoML on October 27, 2020, 06:00:07 AM
Quote from: @rjen on October 27, 2020, 02:55:22 AM
First of all, there's something funny with the Copyright showing in all your frontpage topics. I am pretty sure that has something to do with the Norwegian language pack, because when I switch to English it's OK

Secondly I notice a scroll bar appearing in your forum-policy

I think the cause is the use of the <pre > tags in your articles.
[...]Not sure how to analyze this further...

Thanks - that was very helpful.
I believe I can investigate from here.
Title: Re: TinyPortal
Post by: PoML on October 28, 2020, 07:11:35 PM
Quick update:

There were two different issues in play here - both may be helpful for others to know about:

1) A user have used MS Word to write posts in, and then copy-pasted the text into SMF.  Result: lots of codes that the forum do not like together with the CSS that TinyPortal uses.

2) The Copyright language string $forum_copyright has a different format in RC3. That change was not captured in any of my language files, resulting in an overflow.  Copy of the $forum_copyright from the main index file into all supported languages did the trick.
Title: Re: TinyPortal
Post by: @rjen on October 29, 2020, 02:48:31 AM
Thanks PoML,

As for copying and pasting from Word: that is something that indeed can cause issues: pretty hard to prevent. I am curious why that did not give the same issues in previous versions though...

As for the copyright: we 'append' the TP copyright to the SMF string. If that (SMF) string has changed that needs our attention too, thanks for reporting it.

Then a request: I see that you have created your own translation to Norwegian for the TinyPortal language files. Would you be willing to share those with other users via the TinyPortal support site?
Title: Re: TinyPortal
Post by: PoML on October 29, 2020, 08:42:35 AM
Quote from: @rjen on October 29, 2020, 02:48:31 AM
Then a request: I see that you have created your own translation to Norwegian for the TinyPortal language files. Would you be willing to share those with other users via the TinyPortal support site?

Sure - there are some duplicates in there, as you have done a thorough clean-up since the last version.
I have extended the language strings that I found without removing much, so it is not a translation that I am 100% sure will not have some glitches.

I have uploaded the files here :  https://www.tinyportal.net/index.php?topic=31219.msg300449#msg300449
(don't be scared by the subject - it seems that the thread on norwegian has been subject to several conversions of character set on your site between ISO8859 and UTF8 over the years since people requested norwegian the first time  :-D


Title: Re: TinyPortal
Post by: Aleksi "Lex" Kilpinen on October 30, 2020, 11:23:20 AM
@PoML - Just wanted to mention, publishing what looks like an email address on a publicly viewable board might not be the best of ideas. If you want, we can edit it out - just report the post and ask for it.
Title: Re: TinyPortal
Post by: jsx on November 22, 2020, 01:31:54 PM
The user added photos in the post, the photo under the photo without spaces. His article was added to the home page of the portal. I edited this post and separated the links from each other so that the gaps between the photos were kept. And unfortunately in this article the photos are still displayed without spacing on the home page of the portal. I cleared the forum cache and it doesn't work. I am using TP 2.0 in the forum, everything was fine on earlier TP versions.
Title: Re: TinyPortal
Post by: lurkalot on November 23, 2020, 02:23:34 AM
Quote from: jsx on November 22, 2020, 01:31:54 PM
The user added photos in the post, the photo under the photo without spaces. His article was added to the home page of the portal. I edited this post and separated the links from each other so that the gaps between the photos were kept. And unfortunately in this article the photos are still displayed without spacing on the home page of the portal. I cleared the forum cache and it doesn't work. I am using TP 2.0 in the forum, everything was fine on earlier TP versions.

Sorry for delay in responding. 

What front page settings are you using? and what version of SMF? just so we can check.  A link to the page would also be handy, via PM if you don't want it posted here.
Title: Re: TinyPortal
Post by: jsx on November 23, 2020, 05:27:39 AM
Quote from: lurkalot on November 23, 2020, 02:23:34 AM
What front page settings are you using? and what version of SMF? just so we can check.  A link to the page would also be handy, via PM if you don't want it posted here.

You mean this setting? I use this setting:

What to display on frontpage: Promoted topics + articles - sorted on date

The forum runs on SMF 2.0.17

I sent you a private message.
Title: Re: TinyPortal
Post by: jsx on December 20, 2020, 03:08:19 AM
Could it be possible to insert the code from this modification into the TinyPortal block?

Google Translate for SMF 2.0

https://custom.simplemachines.org/mods/index.php?mod=3213

// Google Translate Mod
if (!empty($modSettings['enable_google_translate']))
{
echo '
<table border="0" width="100%" height="55px">
<tr>
<td>
<div align="' . $modSettings['google_translate_location'] . '"><div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
pageLanguage: \''. $modSettings['google_translate_language'] . '\',
autoDisplay: \'' . $modSettings['google_translate_autodisplay'] . '\',
multilanguagePage: \'' . $modSettings['google_translate_multilanguage'] . '\',
gaTrack: \'' . $modSettings['google_translate_analytics'] . '\',
gaId: \'' . $modSettings['google_translate_analytics_id'] . '\',
layout: google.translate.TranslateElement.InlineLayout.' . $modSettings['google_translate_style'] . '
  }, \'google_translate_element\');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></div><br />
</td>
</tr>
</table>';
}
Title: Re: TinyPortal
Post by: @rjen on December 20, 2020, 03:11:11 AM
Did you try?
Title: Re: TinyPortal
Post by: jsx on December 20, 2020, 04:12:55 AM
Yes, but this menu does not appear in the block. The block is empty. When PHP block type is set. When I set the type of HTML & JavaScript block, only this is displayed in the block:

// Google Translate Mod if (!empty($modSettings['enable_google_translate'])) { echo '

'; }


Title: Re: TinyPortal
Post by: @rjen on December 20, 2020, 04:17:08 AM
What kind of block did you try? I should be php...

May need some variables set...
I can have a look at it tonight
Title: Re: TinyPortal
Post by: jsx on December 20, 2020, 04:23:10 AM
When PHP block type is set then the block is empty. Translator is not displayed.

It would be nice if you could help me with that.
Title: Re: TinyPortal
Post by: @rjen on December 20, 2020, 04:50:36 AM
Just to be sure. Did you actually install the mod? The code you provided looks for the enable_google_translate setting, so you will still need to install that mod for the code to work!

Perhaps you can explain what you want to accomplish... because there may be easier ways than trying to implement half a mod in a block.
Title: Re: TinyPortal
Post by: jsx on December 20, 2020, 05:36:01 AM
Yes, the modification is installed. When installing this modification, I was informed that this code must be added to the index.template.php file for the theme I'm using.

I would like a Google translator to be embedded in the TP block.

I mean it:

(https://i.imgur.com/tQUEDwM.png)
Title: Re: TinyPortal
Post by: lurkalot on December 20, 2020, 05:43:42 AM
Quote from: jsx on December 20, 2020, 05:36:01 AM
Yes, the modification is installed. When installing this modification, I was informed that this code must be added to the index.template.php file for the theme I'm using.

I would like a Google translator to be embedded in the TP block.

I mean it:

(https://i.imgur.com/tQUEDwM.png)

Then you don't need a mod at all, just add the google translate code to a html block,

<div id="google_translate_element3"></div>

<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script>

<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
Title: Re: TinyPortal
Post by: @rjen on December 20, 2020, 09:35:08 AM
Thats what I thought
Title: Re: TinyPortal
Post by: jsx on December 20, 2020, 03:22:36 PM
@lurkalot

Thanks for your help, but after adding this code to the HTML & Javascript block, the google translate does not display. The block is empty.
Title: Re: TinyPortal
Post by: lurkalot on December 20, 2020, 03:46:41 PM
Quote from: jsx on December 20, 2020, 03:22:36 PM
@lurkalot

Thanks for your help, but after adding this code to the HTML & Javascript block, the google translate does not display. The block is empty.

Using the code I posted?  Strange it works fine on all my sites.  :o
Title: Re: TinyPortal
Post by: jsx on December 20, 2020, 04:02:22 PM
Quote from: lurkalot on December 20, 2020, 03:46:41 PM
Quote from: jsx on December 20, 2020, 03:22:36 PM
@lurkalot

Thanks for your help, but after adding this code to the HTML & Javascript block, the google translate does not display. The block is empty.

Using the code I posted?  Strange it works fine on all my sites.  :o

Yes, I used this code. For me it is also strange.
Title: Re: TinyPortal
Post by: @rjen on December 20, 2020, 04:16:22 PM
Try this...


<center><div id="google_translate_element" style="height:50px; overflow:hidden"></div><script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en'
  }, 'google_translate_element');
}
</script><script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></center>
Title: Re: TinyPortal
Post by: jsx on December 21, 2020, 02:29:40 AM
@rjen

Thanks for the code, this code works, the google translate is displayed. However, I have to use this modification because in the modification I can set the language that is used in the forum and I can enable the function: Automatically display the translation banner.

@lurkalot, @rjen

Thanks for the help. :)
Title: Re: TinyPortal
Post by: @rjen on December 21, 2020, 02:34:29 AM
You set the language in the code: change language: 'en' to your language.

What does 'automatically show the translation banner' do ?
Title: Re: TinyPortal
Post by: jsx on December 21, 2020, 07:25:48 AM
Thanks for the tip.

Quote from: @rjen on December 21, 2020, 02:34:29 AM
What does 'automatically show the translation banner' do ?

I thought this was the function that displayed this banner:

(https://i.imgur.com/kPalJQc.png)

But that's not it. I turned off this function and after entering the forum a banner from Google Translate appears (the one from the screen).

Google Chrome and Microsoft Edge automatically propose to translate the page content into the language used by the browser. So this modification that I have installed is unnecessary. But thank you for the code you gave me, because eg Opera does not offer to translate the content of the page, so embedded translator in the menu block is needed, always someone can manually choose to translate the content.

Would it be possible to change the style of Google Translate in the code to a drop-down menu that can be selected in this modification? Could you give me a code for this style of Google Translate?

(https://i.imgur.com/kdLsW3F.png)
Title: Re: TinyPortal
Post by: Nodaz on December 21, 2020, 11:13:27 AM
why do i keep getting notification of unread post for this topic?
I cannot figure out how to turn that off, its not listed anywhere in my notifivcation settings or otherwise
Title: Re: TinyPortal
Post by: Shambles on December 21, 2020, 12:23:23 PM
Quote from: Nodaz on December 21, 2020, 11:13:27 AM
why do i keep getting notification of unread post for this topic?
I cannot figure out how to turn that off,

(https://i.imgur.com/J7WcH7t.jpg)
Title: Re: TinyPortal
Post by: lurkalot on December 21, 2020, 03:30:24 PM
Quote from: jsx on December 21, 2020, 07:25:48 AM

Would it be possible to change the style of Google Translate in the code to a drop-down menu that can be selected in this modification? Could you give me a code for this style of Google Translate?


This has the codes and examples of the different layouts, https://www.w3schools.com/howto/howto_google_translate.asp
Title: Re: TinyPortal
Post by: Nodaz on December 21, 2020, 10:55:42 PM
Quote from: Shambles on December 21, 2020, 12:23:23 PM
Quote from: Nodaz on December 21, 2020, 11:13:27 AM
why do i keep getting notification of unread post for this topic?
I cannot figure out how to turn that off,

(https://i.imgur.com/J7WcH7t.jpg)
That is the problem, mine says "Notify", hence why i asked
I just re-enabled and then disabled, will see if it helps
Title: Re: TinyPortal
Post by: jsx on December 22, 2020, 03:01:15 AM
Quote from: lurkalot on December 21, 2020, 03:30:24 PM
This has the codes and examples of the different layouts, https://www.w3schools.com/howto/howto_google_translate.asp

Thank you for the information and help. This is the code:

<center><div id="google_translate_element" style="height:50px; overflow:hidden"></div><script>

function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></center>


(https://i.imgur.com/kdLsW3F.png)
Title: Re: TinyPortal
Post by: @rjen on January 08, 2021, 04:23:09 PM
Jsx,

I'll respond to your pm here... please do not mail me with support questions. That's what this forum is for...

Quote from: jsx on January 04, 2021, 01:15:59 PM
Do you remember how you helped me with Google Translate?

https://www.simplemachines.org/community/index.php?topic=27642.msg4076130#msg4076130

This translator from this code only translates the main page of the forum, but when I enter a topic, the translation doesn't work there anymore.

Do you know what could be the reason why the translator is not translating the content of the post?

When I had this modification installed on the forum, Google Translate translated the contents of the posts.

https://custom.simplemachines.org/mods/index.php?mod=3213

The code I provided works fine for me: it translates main page and topics...

See an example here:
https://test.fjr-club.nl/index.php?topic=13199.0
Title: Re: TinyPortal
Post by: lurkalot on January 09, 2021, 02:54:27 AM
Quote from: @rjen on January 08, 2021, 04:23:09 PM
Jsx,

I'll respond to your pm here... please do not mail me with support questions. That's what this forum is for...

Quote from: jsx on January 04, 2021, 01:15:59 PM
Do you remember how you helped me with Google Translate?

https://www.simplemachines.org/community/index.php?topic=27642.msg4076130#msg4076130

This translator from this code only translates the main page of the forum, but when I enter a topic, the translation doesn't work there anymore.

Do you know what could be the reason why the translator is not translating the content of the post?

When I had this modification installed on the forum, Google Translate translated the contents of the posts.

https://custom.simplemachines.org/mods/index.php?mod=3213

The code I provided works fine for me: it translates main page and topics...

See an example here:
https://test.fjr-club.nl/index.php?topic=13199.0

You'll need that block running on all pages that you want it to translate.  Think that's the issue here.
Title: Re: TinyPortal
Post by: jsx on January 09, 2021, 03:24:14 AM
Quote from: lurkalot on January 09, 2021, 02:54:27 AM
You'll need that block running on all pages that you want it to translate.  Think that's the issue here.

In the block with the Google Translate code I have this function turned on: Display on all pages and sections and Display on all boards

Unfortunately, the translator only works on the home page of the portal.
Title: Re: TinyPortal
Post by: lurkalot on January 09, 2021, 03:30:53 AM
Quote from: jsx on January 09, 2021, 03:24:14 AM
Quote from: lurkalot on January 09, 2021, 02:54:27 AM
You'll need that block running on all pages that you want it to translate.  Think that's the issue here.

In the block with the Google Translate code I have this function turned on: Display on all pages and sections and Display on all boards

Unfortunately, the translator only works on the home page of the portal.

I only see the translate block showing on your front page.  Open the other ones up to guests.
Title: Re: TinyPortal
Post by: @rjen on January 09, 2021, 05:01:06 AM
Difficult to see without a link to the actual forum
Title: Re: TinyPortal
Post by: lurkalot on January 09, 2021, 05:15:23 AM
Quote from: @rjen on January 09, 2021, 05:01:06 AM
Difficult to see without a link to the actual forum

Yep.  jsx PM'd me the link at my request a few posts back.  I see he has the translate code running in a side panel on the front page only, and no panels displayed in the forum, so not code running there.   I can only suggest leaving that code on the front page in the side panel and add it again to a bottom block and have that display only on the other pages such as forum and articles etc.  That should work just fine like that.  I have it set up like this on guitaristguild.com
Title: Re: TinyPortal
Post by: jsx on January 09, 2021, 11:08:14 AM
@lurkalot

Can you show me settings screen of this bottom panel? I think that I choose the wrong settings.
Title: Re: TinyPortal
Post by: lurkalot on January 09, 2021, 11:33:04 AM
Quote from: jsx on January 09, 2021, 11:08:14 AM
@lurkalot

Can you show me settings screen of this bottom panel? I think that I choose the wrong settings.

The bottom panel settings are as the first pic. 

And the block settings I'm using are in the next two images.
Title: Re: TinyPortal
Post by: jsx on January 10, 2021, 04:23:06 AM
@lurkalot

Thank you for your help. :)
Title: Re: TinyPortal
Post by: Sir Osis of Liver on January 10, 2021, 09:27:27 PM
TP 2.0.0 will not install in 2.0.17 -

Unknown column 'var5' in 'field list'
File: /home/thefanta/public_html/attic/Packages/temp/install.php
Line: 1156
Title: Re: TinyPortal
Post by: tinoest on January 10, 2021, 09:57:15 PM
Quote from: Sir Osis of Liver on January 10, 2021, 09:27:27 PM
TP 2.0.0 will not install in 2.0.17 -

Unknown column 'var5' in 'field list'
File: /home/thefanta/public_html/attic/Packages/temp/install.php
Line: 1156

What version of TinyPortal was previously installed?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on January 10, 2021, 10:03:13 PM
Only seeing TP 2.0.0 in old install.  This was a damaged forum, may have been an earlier version, but no way to know.
Title: Re: TinyPortal
Post by: tinoest on January 10, 2021, 10:09:18 PM
Quote from: Sir Osis of Liver on January 10, 2021, 10:03:13 PM
Only seeing TP 2.0.0 in old install.  This was a damaged forum, may have been an earlier version, but no way to know.

You need to be on at least 1.6.0 to upgrade to 2.0.0. You'll probably have to roll back the database to sort it. Or add the var5 column to the tp_blocks table which is missing. Then update to 2.0.0
Title: Re: TinyPortal
Post by: Sir Osis of Liver on January 10, 2021, 10:20:54 PM
Not trying to upgrade.  It's a clean 2.0.17 install, this is initial TP install.  We're running a 30 Nov database, later dumps were trashed.  There are TP tables in db, I'll drop them and retry install.

That worked, thanks.

Title: Re: TinyPortal
Post by: @rjen on January 11, 2021, 04:16:21 AM
Quote from: Sir Osis of Liver on January 10, 2021, 10:20:54 PM
Not trying to upgrade.  It's a clean 2.0.17 install, this is initial TP install.  We're running a 30 Nov database, later dumps were trashed.  There are TP tables in db, I'll drop them and retry install.

That worked, thanks.

Good that it is fixed now.

Just for the record: the tp-blocks-var5 column was introduced in TP version 1.4R, so if you are coming from an earlier version that may be the issue.
Title: Re: TinyPortal
Post by: @rjen on January 11, 2021, 04:19:05 AM
Quote from: Sir Osis of Liver on January 10, 2021, 10:03:13 PM
This was a damaged forum, may have been an earlier version, but no way to know.

There is a way to know by checking the database tables and the TinyPortal version stored there.

Either check the tp-settings table for the variable stored in 'settings' or check the tp-modules table for the module version. The latter option may be of use in older versions of TP (since the tp-modules table is removed in newer versions)
Title: Re: TinyPortal
Post by: tinoest on January 11, 2021, 04:36:00 PM
Quote from: Sir Osis of Liver on January 10, 2021, 10:20:54 PM
Not trying to upgrade.  It's a clean 2.0.17 install, this is initial TP install.  We're running a 30 Nov database, later dumps were trashed.  There are TP tables in db, I'll drop them and retry install.

That worked, thanks.

Well you were upgrading if you already had a database table there...
Title: Re: TinyPortal
Post by: Steve on January 17, 2021, 07:35:23 PM
I asked this when the version was 1.1 but I never upgraded. I'd like to upgrade now so I need to know if the current version will pick up the blocks I currently have.

Thanks. :)
Title: Re: TinyPortal
Post by: tinoest on January 18, 2021, 09:38:40 AM
Quote from: Steve on January 17, 2021, 07:35:23 PM
I asked this when the version was 1.1 but I never upgraded. I'd like to upgrade now so I need to know if the current version will pick up the blocks I currently have.

Thanks. :)

Yes they should still work. I don't know the changes between 1.1 and 1.3 as that was before I worked on the project.

But based on my knowledge you will need to go to TinyPortal 1.5.0 roughly first. That is available here; https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item119

Personally I would go 1.5.0 -> 1.6.7 -> 2.0.0
Title: Re: TinyPortal
Post by: Steve on January 18, 2021, 04:50:35 PM
Thanks tinoest. :)
Title: Re: TinyPortal
Post by: @rjen on January 18, 2021, 04:59:47 PM
Just an FYI on upgrading to TP2.0.0. Due to some version number changes in the past there are a few limitations when installing TP on a database that already has TP tables in it...

The install error 'Unknown column 'var5' in 'field list''is an indication of a TinyPortal versions older than 1.4R. If this error pops up, when installing 2.0.0 follow the instructions below for versions of 1.3 and before...

You can only go to 1.6.8 from version 1.6.3 and up, so the path Tinoest described is not feasible...

Recommended upgrade path to 2.0.0:
- if the old TP version in the database is 1.4R or higher: you can install 2.0.0 directly
- if the old TP version is 1.3 or before: you should install 1.6.7 first then uninstall and install TP 2.0.0
Title: Re: TinyPortal
Post by: Steve on January 18, 2021, 05:07:58 PM
Thank ya much. :)
Title: Re: TinyPortal
Post by: lurkalot on January 19, 2021, 06:13:39 PM
The TinyPortal Team is pleased to announce the release of TinyPortal 2.0.1

TinyPortal 2.0.1 can be used on SMF 2.0 and 2.1

Minimum required PHP version : 5.6.0
Highest supported PHP version (tested) 8.0.0

Changelog: TinyPortal 2.0.1

Relevant to SMF 2.0 and 2.1:

Technical updates:

fixed "Unable to load the 'main' template" errors for guests
fixed "Database error, given array of integer values is empty. (cat)"
fixed PHP7.4 issue "Trying to access array offset on value of type bool" when submitting an article
fixed "Undefined index: QUERY_STRING"
fixed bbc descriptions for downloads not being parsed in category page
fixed frontpage topics showing readmore link even when not shortened
fixed frontpage topics double line breaks being stripped
fixed error viewing recent comments page "Unable to load the 'main' template"
fixed article search error "preg_replace(): Unknown modifier"
updated admin section to not allow setting 0 frontpage topics
make news board selection a required field
standardized some field lengths in admin section
css fix for long text strings in articles not breaking on apple devices
fixed shoutbox refresh to allow the value '0'

Note: You must uninstall any previous version of TinyPortal before you can install TP 2.0.0 for SMF2.0.x or SMF2.1. Make a backup of all your SMF and TP files before you uninstall.

-------------------------------------------------------------------------------------

Also, TinyPortal 1.6.9

This is a bug fix only support for older php versions
Minimum required PHP version : 5.4.0

Changelog TinyPortal 1.6.9
This release includes the following fixes:

Relevant to 2.0 and 2.1:

- Fix search string not being correctly escaped when printing to the screen

Note: You must uninstall any previous version of TinyPortal before you can install TP 2.0.0 for SMF2.0.x or SMF2.1. Make a backup of all your SMF and TP files before you uninstall.
Title: Re: TinyPortal
Post by: tinoest on January 19, 2021, 07:34:32 PM

Quote from: @rjen on January 18, 2021, 04:59:47 PM
Recommended upgrade path to 2.0.0:
- if the old TP version in the database is 1.4R or higher: you can install 2.0.0 directly
- if the old TP version is 1.3 or before: you should install 1.6.7 first then uninstall and install TP 2.0.0

To update the above information.

Now we have released TinyPortal 2.0.1 you should be able to go from TinyPortal 1.3 or before to TinyPortal 2.0.1 without the intermediate step, along with it working from TinyPortal 1.4R or higher. If you want to go to TinyPortal 2.0.0 the above still applies although TinyPortal 2.0.1 does include some bug fixes and no known regressions, so there is no reason not to switch to it over TinyPortal 2.0.0.
Title: Re: TinyPortal
Post by: Steve on January 20, 2021, 06:26:07 AM
Thanks again. Will give it a spin. :)
Title: Re: TinyPortal
Post by: Sir Osis of Liver on January 27, 2021, 11:40:36 AM
Is TP fully responsive in responsive themes?
Title: Re: TinyPortal
Post by: lurkalot on January 27, 2021, 12:12:34 PM
Yes, but as you said only when running a responsive theme.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on January 27, 2021, 08:53:07 PM
That's what I need.  Don't suppose there's any easy way to import SP content into TP?
Title: Re: TinyPortal
Post by: @rjen on January 28, 2021, 01:05:16 AM
Quote from: Sir Osis of Liver on January 27, 2021, 08:53:07 PM
That's what I need.  Don't suppose there's any easy way to import SP content into TP?

At the moment , no.

An initial effort was made to create an import module, but that is not finished ...
Title: Re: TinyPortal
Post by: Sir Osis of Liver on January 28, 2021, 03:58:09 PM
I'll copy the block content from one to the other.  This one's turning into a real hairball. :P
Title: Re: TinyPortal
Post by: tinoest on January 28, 2021, 04:43:07 PM
Quote from: Sir Osis of Liver on January 28, 2021, 03:58:09 PM
I'll copy the block content from one to the other.  This one's turning into a real hairball. :P

Some of the block content is copied across. Same as some of the article data.

I stopped on the work as it was at a stage where it converted enough across, and the rest imo was easy enough to copy across or create new. Other's disagree, but it is a start.
Title: Re: TinyPortal
Post by: Steve on January 28, 2021, 07:37:54 PM
Quote from: Sir Osis of Liver on January 28, 2021, 03:58:09 PMThis one's turning into a real hairball. :P

Just don't cough it up ...
Title: Re: TinyPortal
Post by: jsx on February 02, 2021, 12:05:01 PM
On the modification page there is information about the latest version 2.0.0, it should be 2.0.1
Title: Re: TinyPortal
Post by: lurkalot on February 02, 2021, 12:34:31 PM
Quote from: jsx on February 02, 2021, 12:05:01 PM
On the modification page there is information about the latest version 2.0.0, it should be 2.0.1

Yep, sorry I missed that when I did the release, also added 2.0.18 to the "Compatible With:"

Thank you for the heads up.  ;)
,
Title: Re: TinyPortal
Post by: jsx on February 02, 2021, 12:55:47 PM
And here it should be 2021: TinyPortal 2.0.1 © 2005-2021
Title: Re: TinyPortal
Post by: lurkalot on February 02, 2021, 01:11:35 PM
Quote from: jsx on February 02, 2021, 12:55:47 PM
And here it should be 2021: TinyPortal 2.0.1 © 2005-2021

That's embarrassing. lol...  Yes we missed it in both 1.6.9 and 2.0.1
Title: Re: TinyPortal
Post by: woolly bugger on February 02, 2021, 03:48:57 PM
New TP user...

1.) Members can't see the input for the Shoutbox.... do i have to give them permissions to edit?

2) giffy mod doesn't work in mobile, it takes user back to top of message thread...


please advise....


2.1 RC3

Title: Re: TinyPortal
Post by: lurkalot on February 02, 2021, 03:58:22 PM
Yes, go to SMF permissions for the member groups you want to give access, and set "Can Post Shouts" and save.
Title: Re: TinyPortal
Post by: @rjen on February 02, 2021, 04:46:52 PM
What is a `giffy mod' ?

That's not tinyportal...
Title: Re: TinyPortal
Post by: lurkalot on February 02, 2021, 05:04:37 PM
Quote from: @rjen on February 02, 2021, 04:46:52 PM
What is a `giffy mod' ?

That's not tinyportal...

That threw me as well, I can only assume the OP means GIPHY mod,  https://custom.simplemachines.org/mods/index.php?mod=4275 but also not sure what that has to do with TP.
Title: Re: TinyPortal
Post by: woolly bugger on February 03, 2021, 03:24:51 PM
ok, got the shout box working for members, but the time is GMT, not the same a board time of -5 GMT

please advise....
Title: Re: TinyPortal
Post by: lurkalot on February 03, 2021, 07:20:26 PM
Quote from: woolly bugger on February 03, 2021, 03:24:51 PM
ok, got the shout box working for members, but the time is GMT, not the same a board time of -5 GMT

please advise....

Thanks for the report.  Looking into it.
Title: Re: TinyPortal
Post by: @rjen on February 04, 2021, 01:46:14 PM
Quote from: woolly bugger on February 03, 2021, 03:24:51 PM
ok, got the shout box working for members, but the time is GMT, not the same a board time of -5 GMT

please advise....

Confirmed, it's a bug. The shoutbox time does not take into account the Overall Time offset setting...
It is fixed for the next version of TinyPortal.
Title: Re: TinyPortal
Post by: shadav on February 10, 2021, 06:46:10 PM
so I just tired using the built in download center with tp

tried to upload an additional picture for screenshot with the download

and got
The database value you're trying to insert does not exist: screenshot

smf 2.0.18
tp 2.0.1
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 10, 2021, 09:41:44 PM
Is it possible to place SMFPacks shoutbox in TP block?
Title: Re: TinyPortal
Post by: @rjen on February 11, 2021, 12:53:32 AM
It used to be possible (I did that before the TP shoutbox offered the horizontal layouts) but that was a long time ago and have not tried it with the latest TP versions ...
Title: Re: TinyPortal
Post by: lurkalot on February 11, 2021, 03:13:45 AM
Quote from: shadav on February 10, 2021, 06:46:10 PM
so I just tired using the built in download center with tp

tried to upload an additional picture for screenshot with the download

and got
The database value you're trying to insert does not exist: screenshot

smf 2.0.18
tp 2.0.1

Strange, seems to be working fine for me on all my installs.  Did you manage to get this solved?
Title: Re: TinyPortal
Post by: shadav on February 11, 2021, 11:11:37 AM
Quote from: lurkalot on February 11, 2021, 03:13:45 AM
Quote from: shadav on February 10, 2021, 06:46:10 PM
so I just tired using the built in download center with tp

tried to upload an additional picture for screenshot with the download

and got
The database value you're trying to insert does not exist: screenshot

smf 2.0.18
tp 2.0.1

Strange, seems to be working fine for me on all my installs.  Did you manage to get this solved?

no not yet I haven't

just redownloaded the package to double check and it is listed in the install.php
just checked my db and in smf_tp_dlmanager
it's there
screenshot    text   utf8_general_ci      Yes   NULL   

so not sure why I'm getting that error
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 11, 2021, 03:37:23 PM
SMFPacks shoutbox is not responsive, so it's moot.
Title: Re: TinyPortal
Post by: @rjen on February 11, 2021, 04:14:13 PM
Quote from: Sir Osis of Liver on February 11, 2021, 03:37:23 PM
SMFPacks shoutbox is not responsive, so it's moot.

Believe it or not, there are still forums around using non-responsive themes...
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 11, 2021, 04:27:34 PM
Believe it.  I'm using non-responsive themes on my two prod forums, with a mod that displays a responsive theme on phones only. 
Title: Re: TinyPortal
Post by: lurkalot on February 12, 2021, 12:22:18 PM
Quote from: shadav on February 11, 2021, 11:11:37 AM
Quote from: lurkalot on February 11, 2021, 03:13:45 AM
Quote from: shadav on February 10, 2021, 06:46:10 PM
so I just tired using the built in download center with tp

tried to upload an additional picture for screenshot with the download

and got
The database value you're trying to insert does not exist: screenshot

smf 2.0.18
tp 2.0.1

Strange, seems to be working fine for me on all my installs.  Did you manage to get this solved?

no not yet I haven't

just redownloaded the package to double check and it is listed in the install.php
just checked my db and in smf_tp_dlmanager
it's there
screenshot    text   utf8_general_ci      Yes   NULL   

so not sure why I'm getting that error

Sorry, haven't forgotten about this, but have been trying to replicate that problem and haven't managed to do so atm. A couple of us have tested this an can't get it to fail.

Any errors in log?  Is anything actually getting uploaded to the server? 
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 12, 2021, 12:22:50 PM
Quote from: Sir Osis of Liver on February 10, 2021, 09:41:44 PM
Is it possible to place SMFPacks shoutbox in TP block?

Back to this again.  Trying to place shoutbox in top panel.  No luck with shoutbox support topic.  Closest I've gotten is with this -



<iframe src="https://playersprogramu.com/clone/index.php?action=shoutbox" width="100%" height="300"></iframe>



Shoutbox loads but it's wrapped in index template, header and footer are displayed. >:(


Also tried this -



call_user_func(Shoutbox_Load(smf_main()));



Nada. >:( >:(

Title: Re: TinyPortal
Post by: @rjen on February 12, 2021, 04:33:34 PM
I thought the question was 'moot'?

You do know the TinyPortal has its own shoutbox... Why not use that?
Title: Re: TinyPortal
Post by: @rjen on February 12, 2021, 05:19:57 PM
Quote from: Sir Osis of Liver on February 10, 2021, 09:41:44 PM
Is it possible to place SMFPacks shoutbox in TP block?

I went into my old archives and found the block code I used back in the days...

You have to set the shoutbox itself to a height of 140 (to fill the block nicely)
I used an upper panel block, and set the Frame options to: "Do not use title/frame styles"

Use this code...

<iframe id="shoutbox" width="99.9%" height="270" frameborder="0" scrolling="no" src="index.php?action=shoutbox" style="visibility: visible;" onload="document.getElementById(''ploinkbox'').style.visibility = ''visible'';"></iframe>
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 12, 2021, 09:05:28 PM
No go.  Loads index template in iframe. 

He wants to use SMFPacks because his members are accustomed to it and they post a lot of gifs.  It's actually somewhat responsive, width shrinks but it's still readable in large font he uses.
Title: Re: TinyPortal
Post by: @rjen on February 13, 2021, 02:43:05 AM
That's strange, I tested it with 2.0.18 yesterday and it works fine for me...

And it's even responsive , see attached... are we talking about the same shoutbox?
Title: Re: TinyPortal
Post by: cihancan on March 14, 2021, 07:14:52 AM
Friends, there are no options to hide / show on mobile for some blocks on TinyPortal? What kind of a path should we follow for the blocks that we do not want to appear on mobile?
Title: Re: TinyPortal
Post by: lurkalot on March 14, 2021, 09:32:42 AM
Quote from: cihancan on March 14, 2021, 07:14:52 AM
Friends, there are no options to hide / show on mobile for some blocks on TinyPortal? What kind of a path should we follow for the blocks that we do not want to appear on mobile?

Correct, there is no built in option for doing this, but as a workaround I believe this can be done by adding a little code to the end off the tp-style.css file.  Take a look here on our support forum, https://www.tinyportal.net/index.php?topic=36299.0

If you can't work it out from that please start a support topic over there and I'm sure someone will be able to help.
Title: Re: TinyPortal
Post by: tinoest on March 15, 2021, 01:39:11 PM
Lurkalot is correct you will need to use @media queries and hide/show div's, although I would add it to the tp-custom.css file as that isn't updated on upgrades (or shouldn't be) so will keep your custom modifications.

Title: Re: TinyPortal
Post by: shadav on March 17, 2021, 02:59:54 AM
not sure what happened....I moved to a new host today and now I have these errors

Notice: Undefined index: tp-adminheader1 in /Sources/Subs.php on line 4382

Notice: Undefined index: tp-myarticles in /Subs.php on line 4467

smf 2.0.18
php 7.3

[edit]nevermind  :P
still don't know why this showed up now and not before, but meh...it was my own doing ;) nothing to do with the mod...I was moving menu items around....just needed to add the lines from the mod's language files into the default modifications english file
Title: Re: TinyPortal
Post by: diegolyanky on March 28, 2021, 12:31:31 AM
Hi:

I was using TP 1.6.5 and I installed latest version (I uninstalled 1.6.5 first keeping database data) and now I have at index (frontpage) of my site this warning:

Warning
: mb_strpos(): Offset not contained in string in
/home/xxxxxxxxx/forum/TinyPortal/Util.php
on line
186

I am running SMF 2.0.17 under php 7.1 ...

Some idea about that?...

Thanks a lot ... I love Tinyportal :)
Title: Re: TinyPortal
Post by: @rjen on March 28, 2021, 05:15:58 AM
What are your frontpage settings?

Just as a check, mind going to the settings page and change a setting then save...
Title: Re: TinyPortal
Post by: diegolyanky on March 28, 2021, 07:02:31 AM
Quote from: @rjen on March 28, 2021, 05:15:58 AM
What are your frontpage settings?

Just as a check, mind going to the settings page and change a setting then save...

Thanks for your reply... I tried that, and nothing changed.

Tried modifing frontpage, and other settings and nothing, same warning always.

The weird thing, is that warning only appear on frontpage and not on forum or topics...

Title: Re: TinyPortal
Post by: @rjen on March 28, 2021, 07:10:18 AM
So what ARE the settings? Specifically the numbered characters to show for forum posts?

And what TP are you running now?
Title: Re: TinyPortal
Post by: diegolyanky on March 28, 2021, 07:12:10 AM
Quote from: @rjen on March 28, 2021, 07:10:18 AM
So what ARE the settings? Specifically the numbered characters to show for forum posts?

And what TP are you running now?

Solved! ... Thanks ! ...

Old value was 1200 ... I chaged to 120 and no more warnings

THANKS A LOT !!!!!
Title: Re: TinyPortal
Post by: @rjen on March 28, 2021, 07:26:31 AM
You still did not specify what version of TP you are using.

As for the errors: that setting should allow for 1200 without errors...
Title: Re: TinyPortal
Post by: PoML on March 28, 2021, 10:39:22 AM
I had never put a lot of thought into this, but I found today a need for removing some boards from the list on the frontpage, but still keep more than a handful...

In my installation, the setting for frontpage /forum/index.php?action=tpadmin;sa=frontpage  says:
"Display forum-topics on frontpage from"...  and instead of a tick-box style list, you have a non-scrollable text window where you can easily select 1, or all, but it is turning out to be hard to select all and remove 3-4...

I suppose this is an easy fix, and maybe there is already a solution somewhere?

I have TinyPortal 2.0.1 with SMF 2.1 RC3.

EDIT:  It actually work the way I want when I use my smartphone rather than Chrome on a Chromebook in desktop mode...  Strange.
Title: Re: TinyPortal
Post by: @rjen on March 29, 2021, 06:26:40 AM
Quote from: PoML on March 28, 2021, 10:39:22 AM
I had never put a lot of thought into this, but I found today a need for removing some boards from the list on the frontpage, but still keep more than a handful...

In my installation, the setting for frontpage /forum/index.php?action=tpadmin;sa=frontpage  says:
"Display forum-topics on frontpage from"...  and instead of a tick-box style list, you have a non-scrollable text window where you can easily select 1, or all, but it is turning out to be hard to select all and remove 3-4...

I suppose this is an easy fix, and maybe there is already a solution somewhere?

I have TinyPortal 2.0.1 with SMF 2.1 RC3.

EDIT:  It actually work the way I want when I use my smartphone rather than Chrome on a Chromebook in desktop mode...  Strange.

I just checked it on my test install on Chrome, and the list is scrollable and I can select multiple options without problem...

Did you upgrade recently?
Have you tried clearing your browser cache?
Title: Re: TinyPortal
Post by: PoML on April 06, 2021, 07:19:12 PM
It seems to be an issue only on a Chromebook - with Chromium version 87.0.4280.152. Reset, restart and even upgrade does not change it.

It works ok on my windows laptop.
Title: Re: TinyPortal
Post by: jsx on April 25, 2021, 07:11:51 AM
If this character & is included in the topic title, then on the block of recent posts this character is not displayed in the topic title, only &amp is displayed. This is a bug?
Title: Re: TinyPortal
Post by: @rjen on April 25, 2021, 07:19:21 AM
Quote from: jsx on April 25, 2021, 07:11:51 AM
If this character & is included in the topic title, then on the block of recent posts this character is not displayed in the topic title, only &amp is displayed. This is a bug?

Not sure, it works for me....

What TP version are you using?
If your forum UTF-8?
A link to the forum with the issue is always nice...
Title: Re: TinyPortal
Post by: jsx on April 25, 2021, 03:43:31 PM
Quote from: @rjen on April 25, 2021, 07:19:21 AM
What TP version are you using?
If your forum UTF-8?
A link to the forum with the issue is always nice...

TP 2.0.1
Yes, UTF8
Link to the forum in a PM.
Title: Re: TinyPortal
Post by: @rjen on April 25, 2021, 03:52:56 PM
Hmm, in my own forum this works fine, but in the Tinyportal support forum I see the thing you are reporting...

No clue what is the difference though..
Title: Re: TinyPortal
Post by: jsx on April 27, 2021, 02:18:09 PM
It's strange, since is not known what causes it.
Title: Re: TinyPortal
Post by: lurkalot on May 04, 2021, 02:42:34 AM
Quote from: jsx on April 27, 2021, 02:18:09 PM
It's strange, since is not known what causes it.

Seems like something in certain SMF 2.0.18 installs or the latest SMF 2.0.18 patch has broken the short_subject string, this is the cause of this issue.  So we're thinking it will break anything which uses ssi_recentPosts and echos the shortened subject variable.

Title: Re: TinyPortal
Post by: @rjen on May 08, 2021, 04:17:42 AM
Quote from: jsx on April 25, 2021, 07:11:51 AM
If this character & is included in the topic title, then on the block of recent posts this character is not displayed in the topic title, only &amp is displayed. This is a bug?

The cause is found, it is caused by a bug in SMF 2.0.18.
No problem in 2.0.17 and also no problem in SMF2.1

Issue reported here: https://www.simplemachines.org/community/index.php?topic=577637

The bug also affects the Frontpage topics (if these exceed the maximum number of characters set) and the TPDowloads descriptions on the category pages.

The fix for SMF 2.0.18 is in the Load.php file in the /sources folder:

Find:
'substr' => function($string, $start, $length = null) use ($utf8, $ent_check, $ent_list, $modSettings)
{
$ent_arr = preg_split('~(' . $ent_list . '|.)~' . ($utf8 ? 'u' : '') . '', $ent_check($string), -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
return $length === null ? implode('', array_slice($ent_arr, $start)) : implode('', array_slice($ent_arr, $start, $length));
},


Replace by:

'substr' => function($string, $start, $length = null) use ($utf8, $ent_check, $ent_list, $modSettings)
{
$ent_arr = preg_split('~(&#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . ';|&quot;|&amp;|&lt;|&gt;|&nbsp;|.)~' . ($utf8 ? 'u' : '') . '', $ent_check($string), -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
return $length === null ? implode('', array_slice($ent_arr, $start)) : implode('', array_slice($ent_arr, $start, $length));
},
Title: Re: TinyPortal
Post by: jsx on May 14, 2021, 05:11:59 AM
rjen,

Thanks for the help.
Title: Re: TinyPortal
Post by: jsx on May 15, 2021, 03:49:53 AM
Where exactly in the TP settings can I disable the display of these buttons to collapse the panels?

(https://i.imgur.com/YQjWRWH.png)

These are the buttons:

Left Panel, Right Panel, Upper Panel
Title: Re: TinyPortal
Post by: @rjen on May 15, 2021, 03:51:45 AM
Tinyportal- settings and Frontpage : allow panels to be collapsed
Title: Re: TinyPortal
Post by: jsx on May 15, 2021, 06:39:55 AM
Thanks for your help.
Title: Re: TinyPortal
Post by: cihancan on July 12, 2021, 09:59:52 AM
First of all, my apologies for not being good at English. It can be seen in the attached picture. How can I reduce the space between articles.

By the way my smf version is 2.1 RC4
Title: Re: TinyPortal
Post by: @rjen on July 12, 2021, 11:37:13 AM
Quote from: cihancan on July 12, 2021, 09:59:52 AM
First of all, my apologies for not being good at English. It can be seen in the attached picture. How can I reduce the space between articles.

By the way my smf version is 2.1 RC4

Yeah, that is a bit of a pain in the b...
We are trying to support both SMF2.0 and 2.1 with TinyPorttal, but some choices made in Curve2 make it difficult to work with...

If you are on SMF2.1 you can open the css file tp-style.css and adapt the style for .windowbg...

Find this section

.tparticle .windowbg, .tparticle .windowbg2, .tparticle .windowbg3, .tparticle .roundframe, .dl_container .windowbg {
margin-bottom: 6px !important;
}


and change the margin-bottom...

.tparticle .windowbg, .tparticle .windowbg2, .tparticle .windowbg3, .tparticle .roundframe, .dl_container .windowbg {
margin-bottom: 0px !important;
}
Title: Re: TinyPortal
Post by: cihancan on July 12, 2021, 02:47:58 PM
Quote from: @rjen on July 12, 2021, 11:37:13 AM
Quote from: cihancan on July 12, 2021, 09:59:52 AM
First of all, my apologies for not being good at English. It can be seen in the attached picture. How can I reduce the space between articles.

By the way my smf version is 2.1 RC4

Yeah, that is a bit of a pain in the b...
We are trying to support both SMF2.0 and 2.1 with TinyPorttal, but some choices made in Curve2 make it difficult to work with...

If you are on SMF2.1 you can open the css file tp-style.css and adapt the style for .windowbg...

Find this section

.tparticle .windowbg, .tparticle .windowbg2, .tparticle .windowbg3, .tparticle .roundframe, .dl_container .windowbg {
margin-bottom: 6px !important;
}


and change the margin-bottom...

.tparticle .windowbg, .tparticle .windowbg2, .tparticle .windowbg3, .tparticle .roundframe, .dl_container .windowbg {
margin-bottom: 0px !important;
}


Thank you very much. It works in both smf 2.0 and 2.1 versions.
Title: Re: TinyPortal
Post by: nubieteky on July 18, 2021, 10:13:11 PM
Hello Webmaster and Tech support.

I have installed TP on my smf forum. For admin no problem on chat, but for members they can only see box and cannot submit or write a post.

tiny portal version 2.0.1
smf v. 2.0.18
website : pinaypsp.com

hope for response . thank you .
Title: Re: TinyPortal
Post by: @rjen on July 19, 2021, 01:02:38 AM
Please check the permissions for the members: TP adds specific permissions for a number of functions such as a permission to use the shoutbox...

For more info see the documentation: https://www.tinyportal.net/docs/index.php?page=Settings-permissions
Title: Re: TinyPortal
Post by: nubieteky on July 19, 2021, 08:20:52 AM
Thank you!

That's why i opt again for SMF since my last forum i made way back 2011. The response here is fast straight forward.

Thank you SMF team and Members more power!
Title: Re: TinyPortal
Post by: lurkalot on August 10, 2021, 06:25:02 PM
The TinyPortal Team is pleased to announce the release of TinyPortal 2.1.0

TinyPortal 2.1.0 can be used on SMF 2.0 and 2.1

Minimum required PHP version : 7.2.0
Highest supported PHP version (tested) 8.0.0

Changelog: TinyPortal 2.1.0

Relevant to SMF 2.0 and 2.1:

**New functionality:**
- Updated the shoutbox functionality to allow for multiple shoutboxes
- Added setting to recent topics blocks allowing the admin to set the title length per block
- Recent topics block updated to not show topics to guests when forum setting does not allow guests to browse the forum

**Bugfixes:**
- added missing Image for Myarticles
- fixed upshrinks not working
- fixed some string shortening issues
- updated script handling to prevent errors
- remove HR elements from menu's to prevent W3C errors
- removed UTF8 english language files from the package
- fixed shoutbox time offset error and removed Save button on category list
- fixed shoutbox to allow shouts over 300 characters
- fixed incorrect text strings article options
- fixes article Show Comments Error
- updated article comments page to toggle between new comments and all comments
- updated Panel grids to CSS grid
- fixed panel settings in category overruling global panel setting
- updated user block to work with SMF2.1 RC4
- fix for RSS feed giving 403 errors
- fixed RSS width block setting (not allowing to enter width unit)
- fixed IMG width in RSS block: max-width 100% instead of width 100%
- fixed issue "Database error, given array of integer values is empty. (cat)" when switching to Articles in Category block without saving block settings
- fixed 'divsion by zero' error on downloads stats page
- fixed error '8: Trying to access array offset on value of type null' in TPlistimages
- fixed marquee issue for scrolling shoutbox

**Note:**
_when updating from TinyPortal versions older than 2.1.0, shoutbox blocks are enhanced with a new block setting: "Characters to display in titles".
Due to this change any pre-existing shoutbox blocks 'may' have a changed title length after installing the new version of TP. Please check any shoutbox blocks and adjust the block setting "Characters to display in titles" to the desired length..._

NOTICE! because of the database changes in TP 2.x.x versions there's no going back to TP 1.x.x after installing version 2.0.1 or 2.1.0. You can install previous versions, but by doing that you WILL lose TP data and you will need to manually fix or recreate your content!!! For these reasons it's advised to backup your database and files before proceeding.

A huge thankyou to tino and @rjen, and all our beta testers for all their hard work, and making this release possible.
Title: Re: TinyPortal
Post by: Bigguy on August 13, 2021, 08:48:03 AM
Nice, glad to see it's out.
Title: Re: TinyPortal
Post by: Antechinus on August 13, 2021, 06:24:56 PM
Nice work. :)
Title: Re: TinyPortal
Post by: landyvlad on September 07, 2021, 03:26:40 AM
I just upgraded my forum to PHP 7.4 and upgraded to TinyPortal  2.1.0

While the settings still seem to have carried over, those settings aren't displayed.

What do I mean?
Well I have the right panel activated
In that panel I have the recent topics block activated.

But as you can see here https://gsx1400owners.org/forum/index.php?action=forum
and here https://gsx1400owners.org/forum/index.php?board=1.0
The right hand sidebar with recent topics does not appear.

The same applies to the bottom panel which I have activated, and the bottom panel stats block is activated but that's also not visible.

Please help :)


lurkalot - you have forum access as you know :)
   
Title: Re: TinyPortal
Post by: @rjen on September 07, 2021, 03:43:51 AM
Impossible to answer without a bit more information on the settings.

But since you have a direct line to Lurkalot I'll leave it with him...
Title: Re: TinyPortal
Post by: lurkalot on September 07, 2021, 03:55:01 AM
Quote from: landyvlad on September 07, 2021, 03:26:40 AMlurkalot - you have forum access as you know :)
   

I'd be happy to take a look at the settings, but can't do this until this evening UK time as I'm at my day job.
Title: Re: TinyPortal
Post by: Steve on September 07, 2021, 07:58:23 AM
Wait, what? You have a life outside of SMF??  :o
Title: Re: TinyPortal
Post by: Mornagest on September 07, 2021, 01:04:17 PM
Hello,

I got a problem on my server since it is not configured with zlib support (PHP 7.4 has been compiled without that option). Since I cannot re-configure it myself, I wanted to manually upload TP 2.1.0 through FTP but I feel stupid : where should I put all those folders ?

I'm afraid of deleting some SMF core files by replacing them with the ones of TP...

I'm using SMF 2.1 RC4 with a fresh install (plus some test messages).

Thank you in advance for your answer!
Title: Re: TinyPortal
Post by: @rjen on September 07, 2021, 01:14:12 PM
You can upload the zip to the /packages folder. And install using the package manager.

Do not move the files into folders: you will not overwrite SMF files (as long as you put them in the correct folders) but you need to run the install script for it to work.

No guarantees if this proces may work: your own risk: take Backups!!
Title: Re: TinyPortal
Post by: Mornagest on September 07, 2021, 01:27:10 PM
Hello @rjen,

Thank you for your answer :)

I tried that but I have this error:

Sorry, your PHP configuration doesn't have support for "package_no_zlib". Without this, package_no_package_manager cannot function. Please contact your host about this for more information.

This is why I'm looking for a manual install of the mod (and maybe other mods; didn't try any other).
Title: Re: TinyPortal
Post by: @rjen on September 07, 2021, 01:30:13 PM
What version of SMF are you using?

Reason I am asking is that TinyPortal is hooks only for 2.1... in 2.0.x you will needs to make changes to SMF files...
Title: Re: TinyPortal
Post by: Mornagest on September 07, 2021, 01:53:18 PM
SMF 2.1 RC4 :)
Title: Re: TinyPortal
Post by: Arantor on September 07, 2021, 02:50:31 PM
I'd ask your host to install zlib. Mod installs without it will suck no matter what.
Title: Re: TinyPortal
Post by: Mornagest on September 07, 2021, 03:17:58 PM
Well, we manage our server by ourselves; problem is that the tech admin is very busy and I'm not used enough to manage a new compilation of PHP 7.4  :'(

The strange thing is that I was running this test forum with SMF 2.0.18 and mods could be installed, on the same server with same config.

Confusing...
Title: Re: TinyPortal
Post by: Arantor on September 07, 2021, 03:21:55 PM
New compilation? You manually compile PHP as opposed to using any of the server distributions that have it as just a package install?

In any case, the package manager functionality was overhauled in 2.1 so zlib is now a hard requirement to use the package manager, when it previously wasn't.
Title: Re: TinyPortal
Post by: Mornagest on September 07, 2021, 03:31:08 PM
OK I understand. So I'll have to wait his availability to go further.

Yes, we have to run different versions of PHP because we actually use vBulletin 4.2.3 which requires PHP 5.4, and we have to make several upgrades of vB then PHP then vB then PHP... until vB 4.2.5 and PHP 7.4. And only then we will be able to migrate from vB to SMF or phpBB (we are testing both simultaneously to see which one fits the best our needs).

Thank you for your answer, in any case :)
Title: Re: TinyPortal
Post by: njtweb on September 13, 2021, 01:33:56 PM
Is anybody else noticing the "Print" link when selected in TP settings for the latest version in SMF 2.17 isn't available for guest traffic? I only see it available for myself as admin.
Title: Re: TinyPortal
Post by: @rjen on September 14, 2021, 03:09:26 AM
Quote from: njtweb on September 13, 2021, 01:33:56 PMIs anybody else noticing the "Print" link when selected in TP settings for the latest version in SMF 2.17 isn't available for guest traffic? I only see it available for myself as admin.

Solution provided on the TP support forum..
https://www.tinyportal.net/index.php?topic=36670.0
Title: Re: TinyPortal
Post by: njtweb on September 14, 2021, 07:26:29 AM
You're the best! :)
Title: Re: TinyPortal
Post by: Speed King on September 18, 2021, 10:30:59 PM
Is it possible to change number format in Tinyportal blocks to match with default forum format?
Now Tinyportal format is without using of digit separator, for example, my Tinyportal stats block displays:

Total Posts: 23639
Total Topics: 1361

But I would to be set as default:

Total Posts: 23,639
Total Topics: 1,361
Title: Re: TinyPortal
Post by: tinoest on September 25, 2021, 10:48:46 AM
Quote from: Speed King on September 18, 2021, 10:30:59 PMIs it possible to change number format in Tinyportal blocks to match with default forum format?
Now Tinyportal format is without using of digit separator, for example, my Tinyportal stats block displays:

Total Posts: 23639
Total Topics: 1361

But I would to be set as default:

Total Posts: 23,639
Total Topics: 1,361

If you go to here https://github.com/Tinyportal/TinyPortal/blob/850b51dd9d1038450d70fdbc6053e5bf389b659c/Themes/default/TPsubs.template.php#L385 and change
$modSettings['totalMessages'] to
comma_format($modSettings['totalMessages'])
And the same again for totalTopics it should do what you want.
Title: Re: TinyPortal
Post by: Speed King on September 25, 2021, 01:35:23 PM
Thanks, fix applied and working :)
Title: Re: TinyPortal
Post by: mcsee on September 27, 2021, 06:20:31 AM
Hi All,
I have a question about Tiny Portal. I've never used it before today and I was hoping to set up the Shoutbox with nothing else visible - Can it be done. Once I'm comfortable with looking at how it works I'll most likely expand it.

I have a small forum just starting out and would like to try group chats between members.

mcsee
Title: Re: TinyPortal
Post by: @rjen on September 27, 2021, 06:41:48 AM
Yes that is possible: deactivate all other blocks and set the Frontpage setting to go directly to the forumindex
Title: Re: TinyPortal
Post by: mcsee on September 27, 2021, 07:10:05 AM
@rjen thank you so much for the reply, I shall see if I can do it.

Regards
mcsee
Title: Re: TinyPortal
Post by: Sir Osis of Liver on September 28, 2021, 07:03:44 PM
Reinstalled TP 2.1.0 in clean 2.0.18, retained previous settings.  Getting a lot of these -


https://www.breamalliance.com/index.php?topic=846.msg3405
8: Undefined index: TPortal
File: /home/breamall/public_html/TinyPortal/Integrate.php
Line: 837


TP appears to be working ok.  Can fudge out the error, but would prefer to know what's causing it.
Title: Re: TinyPortal
Post by: mcsee on September 29, 2021, 03:45:00 AM
I need to look at what I haven't done with trying to get Shoutbox to display on its own with blocks Deactivated and set the Frontpage to go directly to Forum Index. I'm still looking at what I need do to get the Shoutbox to display. Any pointers where I need to look. I have installed Tiny Portal and it installed incident free.
Title: Re: TinyPortal
Post by: lurkalot on September 29, 2021, 03:56:42 AM
You don't need to hide panels etc, just move the shoutbox to a top, or bottom panel and turn all the other blocks off in the blocks manager.  You'll need to choose layout 3 or 4 in shoutbox settings for the shoutbox to display across the page.

If that is the only active block none of the other panels will display.
Title: Re: TinyPortal
Post by: mcsee on September 29, 2021, 05:10:49 AM
Thanks lurkalot - It seems like getting this Shoutbox working is beyond me, so I'll put it in the too hard basket for now. I've tried different changes and no idea what I'm doing now. Thanks.
Title: Re: TinyPortal
Post by: mcsee on September 29, 2021, 06:28:56 AM
OK - I got what's show in attachment, but got it on all pages, so have now uninstalled Tiny Portal. Thanks, I'm doomed not to get it working. Thanks.
Title: Re: TinyPortal
Post by: @rjen on September 29, 2021, 11:49:15 AM
You got all settings right except the settings in the shoutbox block itself. That is where you can set the shoutbox layout in the block and on what pages the block is displayed.
Title: Re: TinyPortal
Post by: lurkalot on September 29, 2021, 03:29:35 PM
Quote from: mcsee on September 29, 2021, 06:28:56 AMOK - I got what's show in attachment, but got it on all pages, so have now uninstalled Tiny Portal. Thanks, I'm doomed not to get it working. Thanks.

Drop me a PM and I'll gladly set it for you or if preferred talk you through it if still interested.
Title: Re: TinyPortal
Post by: shadav on October 01, 2021, 02:48:23 PM
I haven't really played with the download section
is there a way to set each of the download categories to post into a specific board instead of all downloads posting into one board?

using smf 2.0.18 but even in future on 2.1.x
Title: Re: TinyPortal
Post by: lurkalot on October 01, 2021, 04:13:42 PM
If you go to TP Downloads > Settings, you can select "Boards to use for support topics:"

Then you can select any of those boards when you create a download.

Not sure if that's what you mean?
Title: Re: TinyPortal
Post by: shadav on October 01, 2021, 04:28:37 PM
sort of
what I would like is say ok I have a download category named mods and I have a board named mods I want to have downloads in that category to post to that board

then I have a download category named cas and I have a board named cas, I want to have downloads in that category to post to that board
Title: Re: TinyPortal
Post by: @rjen on October 01, 2021, 04:55:32 PM
It is up to the user uploading the file to choose what board to post in. The list of allowed boards is global: you cannot restrict one category to one board and the second category to another board .
Title: Re: TinyPortal
Post by: shadav on October 02, 2021, 07:31:23 PM
ok, I see how it works now...
I guess I can live with that, wish I could set it automatically in the admin so the user doesn't accidently select the wrong place to post as there's a lot of different boards

also would be nice if the upload button would realize what category you are in and populate it instead of having to go back through and find the correct category to upload to :)
Title: Re: TinyPortal
Post by: shadav on October 02, 2021, 08:30:07 PM
where is the code for the part that gets posted to a board? I'd like it to include the image for the download, if there is an image

I'm assuming it's somewhere in the TPdlmanager.template.php file but haven't found it yet, did find the layout for the download's page and playing with that :)
Title: Re: TinyPortal
Post by: shadav on October 02, 2021, 09:28:21 PM
 :laugh: sorry I'm being bothersome tonight  :P
um problem
it shows the same image on all the Recent files in the download (the last image uploaded)
Untitled.png
if you click on the listing/download on the download page the correct image shows up but on the recent listing it's not pulling the download number or whatever it needs to know which image goes to which recent listing
it's just using this for every image
tp-images/dlmanager/thumb/1uidpreview.png
Title: Re: TinyPortal
Post by: shadav on October 03, 2021, 06:11:10 PM
Quote from: shadav on October 02, 2021, 08:30:07 PMwhere is the code for the part that gets posted to a board? I'd like it to include the image for the download, if there is an image

I'm assuming it's somewhere in the TPdlmanager.template.php file but haven't found it yet, did find the layout for the download's page and playing with that :)
ok well I found in sources.tpsubs.php this bit of code
$smcFunc['db_insert']('insert',

'{db_prefix}tp_events',

array(

            'id_member'     => 'int',

            'date'          => 'int',

            'textvariable'  => 'string',

            'link'          => 'string',

            'description'   => 'string',

            'allowed'       => 'string',

            'eventid'       => 'int',

            'on'            => 'int',

),

I've tried
'{db_prefix}tp_events',

array(

            'id_member'     => 'int',

            'date'          => 'int',

            'textvariable'  => '<img class="lazyload" src="'.$dlitem['bigshot'].'" style="max-width: 100%;" alt="" /><br />'.$dlitem['description'].'',

            'link'          => 'string',

            'description'   => 'string',

            'allowed'       => 'string',

            'eventid'       => 'int',

            'on'            => 'int',

),
but that breaks the download, if you try to submit a download you get an error message of hacking attempt....
mehhhh
Title: Re: TinyPortal
Post by: landyvlad on October 04, 2021, 11:31:43 PM
Who has a site which uses the front page - with TinyPortal - to provide content that might replace a worpdress style cover page?

I'd like to see examples of what's possible.

So here's what I mean.
My wordpress: https://gsx1400owners.org/
My forum (frontpage): https://www.gsx1400owners.org/forum/

I'm looking to construct a front page - by whatever means is most effective - to replace the wordpress install and provide that information via TP panels and blocks.

I don't need the video (that's probably too much to ask anyway) using gallery images would be fine.  (SMF Gallery)
Title: Re: TinyPortal
Post by: @rjen on October 05, 2021, 02:08:33 AM
Quote from: shadav on October 02, 2021, 07:31:23 PMok, I see how it works now...
I guess I can live with that, wish I could set it automatically in the admin so the user doesn't accidently select the wrong place to post as there's a lot of different boards

also would be nice if the upload button would realize what category you are in and populate it instead of having to go back through and find the correct category to upload to :)

I'll look into that
Title: Re: TinyPortal
Post by: @rjen on October 05, 2021, 02:15:59 AM
Quote from: shadav on October 02, 2021, 09:28:21 PM:laugh: sorry I'm being bothersome tonight  :P
um problem
it shows the same image on all the Recent files in the download (the last image uploaded)
Untitled.png
if you click on the listing/download on the download page the correct image shows up but on the recent listing it's not pulling the download number or whatever it needs to know which image goes to which recent listing
it's just using this for every image
tp-images/dlmanager/thumb/1uidpreview.png

I am not able to reproduce that. Is this with unaltered TinyPortal code?
Title: Re: TinyPortal
Post by: shadav on October 05, 2021, 03:10:34 AM
Quote from: @rjen on October 05, 2021, 02:15:59 AMI am not able to reproduce that. Is this with unaltered TinyPortal code?
yes default 2.0.1 tp code on 2.0.18
Title: Re: TinyPortal
Post by: @rjen on October 05, 2021, 03:21:14 AM
The it is probably a very specific situation with the downloads being in different (sub?) categories?

Any chance you can explain exacly how you got this result?
Title: Re: TinyPortal
Post by: shadav on October 05, 2021, 03:35:57 AM
yes they are in different sub categories
created a download in sub category named tops
everything looked fine
created a download in sub category named bottoms
and well the recent list displayed as shown above

and I lied if I go back to the first download created the image is now the same as the second

I think I know the issue though
they were both named the same thing preview.png
so tp renamed them both to 1uidpreview.png so the second image overwrote the first image...i get the 1uid as that's my user id but should also add to the rename the number id of the download
Title: Re: TinyPortal
Post by: @rjen on October 05, 2021, 03:48:35 AM
Ah, that explains it. Hmm, not sure what do with it: TP adopts the Filenam and adds the uid thing. To prevent this from happening it should actually rewrite the filename as well....
Title: Re: TinyPortal
Post by: jsx on October 11, 2021, 02:18:23 AM
How to set up in TP so that forum topics that are published on the home page of the portal have content? One topic displays some content, but the other two topics that are posted to the home page do not display the content. Only topic titles are displayed.
Title: Re: TinyPortal
Post by: lurkalot on October 11, 2021, 02:32:13 AM
Quote from: jsx on October 11, 2021, 02:18:23 AMHow to set up in TP so that forum topics that are published on the home page of the portal have content? One topic displays some content, but the other two topics that are posted to the home page do not display the content. Only topic titles are displayed.

What versions of SMF and TinyPortal are you using? Also any other info such as front page settings etc would be helpful to narrow down the issue.
Title: Re: TinyPortal
Post by: jsx on October 11, 2021, 02:45:39 AM
SMF 2.0.18

TinyPortal 2.0.1

What to display on frontpage: Promoted topics + articles - sorted on date

How frontpanel will be shown with content: Hide frontpanel, unless otherwise selected.

Articles layout for the frontpage: A

Layout type: normal + links

Number of articles/topics to display on frontpage: (5)

Sorting order for articles on frontpage: Sort by date

Allow full display of forum-topics on the frontpage (enabled)

Display forum-topics on frontpage from: not assigned

Number of characters to display per forum-topic: 400

Header style for frontpage topics: cat_bar

Title style for frontpage topics: catbg

Frame style for frontpage topics: windowbg
Title: Re: TinyPortal
Post by: User Andrey on November 21, 2021, 09:22:06 AM
Bugreport: the smf 2.0.18 site becomes completely non-responsive if TinyPortal is installed and width of site is fixed (e.g. to 98%).

The mod is very useful. Thanks a lot.
Title: Re: TinyPortal
Post by: shadav on November 21, 2021, 10:43:52 AM
what do you mean site becomes completely non-responsive?
as in? something isn't working or as in it doesn't adjust to browser size?
what theme are you using, does this do this with the default theme or other themes?
Title: Re: TinyPortal
Post by: @rjen on November 21, 2021, 01:02:19 PM
Quote from: andreifrommsk on November 21, 2021, 09:22:06 AMBugreport: the smf 2.0.18 site becomes completely non-responsive if TinyPortal is installed and width of site is fixed (e.g. to 98%).

The mod is very useful. Thanks a lot.

No clue what you are reporting. Please provide more details if you require our assistance
Title: Re: TinyPortal
Post by: User Andrey on November 21, 2021, 02:00:25 PM
Bugreport: the smf 2.0.18 site becomes completely non-responsive if TinyPortal is installed and width of site is fixed (e.g. to 98%).

The mod is very useful. Thanks a lot.
Quote from: shadav on November 21, 2021, 10:43:52 AMwhat do you mean site becomes completely non-responsive?
as in? something isn't working or as in it doesn't adjust to browser size?
what theme are you using, does this do this with the default theme or other themes?

The site is 3 times wider than the screen of the iphone. So 2/3 of site content is out of the screen on the right. The theme is default Curve. Just try to set the width in the admin panel. The issue is also reproducible in the desktop browser when I'm trying to minimize the window size.
Title: Re: TinyPortal
Post by: @rjen on November 21, 2021, 02:10:59 PM
Quote from: andreifrommsk on November 21, 2021, 02:00:25 PMBugreport: the smf 2.0.18 site becomes completely non-responsive if TinyPortal is installed and width of site is fixed (e.g. to 98%).

The mod is very useful. Thanks a lot.
Quote from: shadav on November 21, 2021, 10:43:52 AMwhat do you mean site becomes completely non-responsive?
as in? something isn't working or as in it doesn't adjust to browser size?
what theme are you using, does this do this with the default theme or other themes?

The site is 3 times wider than the screen of the iphone. So 2/3 of site content is out of the screen on the right. The theme is default Curve. Just try to set the width in the admin panel. The issue is also reproducible in the desktop browser when I'm trying to minimize the window size.

TinyPortal is only responsive if the theme you use is responsive. Default curve is NOT responsive: TinyPortal will not make it so!

You need to find a responsive theme or install the responsive curve mod ...

If you have a responsive theme, then check the TinyPortal settings, and make sure the the theme is indeed marked as a responsive theme...
Title: Re: TinyPortal
Post by: shadav on November 21, 2021, 02:40:55 PM
Quote from: andreifrommsk on November 21, 2021, 02:00:25 PMBugreport: the smf 2.0.18 site becomes completely non-responsive if TinyPortal is installed and width of site is fixed (e.g. to 98%).

The mod is very useful. Thanks a lot.
Quote from: shadav on November 21, 2021, 10:43:52 AMwhat do you mean site becomes completely non-responsive?
as in? something isn't working or as in it doesn't adjust to browser size?
what theme are you using, does this do this with the default theme or other themes?

The site is 3 times wider than the screen of the iphone. So 2/3 of site content is out of the screen on the right. The theme is default Curve. Just try to set the width in the admin panel. The issue is also reproducible in the desktop browser when I'm trying to minimize the window size.
sorry that is nothing to do with the mod as arjen mentioned you'll need to install a mod to make the default theme (curve) responsive
you can install either the Responsive Curve (https://custom.simplemachines.org/index.php?mod=4040) mod or the Hilbert (https://custom.simplemachines.org/index.php?mod=4269) to do this
Title: Re: TinyPortal
Post by: User Andrey on November 21, 2021, 04:17:49 PM
Bugreport: the smf 2.0.18 site becomes completely non-responsive if TinyPortal is installed and width of site is fixed (e.g. to 98%).

The mod is very useful. Thanks a lot.
Quote from: shadav on November 21, 2021, 10:43:52 AMwhat do you mean site becomes completely non-responsive?
as in? something isn't working or as in it doesn't adjust to browser size?
what theme are you using, does this do this with the default theme or other themes?

The site is 3 times wider than the screen of the iphone. So 2/3 of site content is out of the screen on the right. The theme is default Curve. Just try to set the width in the admin panel. The issue is also reproducible in the desktop browser when I'm trying to minimize the window size.
Quote from: shadav on November 21, 2021, 02:40:55 PM
Quote from: andreifrommsk on November 21, 2021, 02:00:25 PMBugreport: the smf 2.0.18 site becomes completely non-responsive if TinyPortal is installed and width of site is fixed (e.g. to 98%).

The mod is very useful. Thanks a lot.
Quote from: shadav on November 21, 2021, 10:43:52 AMwhat do you mean site becomes completely non-responsive?
as in? something isn't working or as in it doesn't adjust to browser size?
what theme are you using, does this do this with the default theme or other themes?

The site is 3 times wider than the screen of the iphone. So 2/3 of site content is out of the screen on the right. The theme is default Curve. Just try to set the width in the admin panel. The issue is also reproducible in the desktop browser when I'm trying to minimize the window size.
sorry that is nothing to do with the mod as arjen mentioned you'll need to install a mod to make the default theme (curve) responsive
you can install either the Responsive Curve (https://custom.simplemachines.org/index.php?mod=4040) mod or the Hilbert (https://custom.simplemachines.org/index.php?mod=4269) to do this

Installing of Responsive Curve doesn't solve the issue (the same behaviour like described above). Only removal of site width in settings fixed the problem. But setting site width feature may be needed in some cases.
Title: Re: TinyPortal
Post by: lurkalot on November 21, 2021, 05:14:40 PM
Quote from: andreifrommsk on November 21, 2021, 04:17:49 PMInstalling of Responsive Curve doesn't solve the issue (the same behaviour like described above). Only removal of site width in settings fixed the problem. But setting site width feature may be needed in some cases.


Did you Deselect your theme from the TinyPortal settings page as mentioned above, and clear your browser cache?
Title: Re: TinyPortal
Post by: landyvlad on November 21, 2021, 07:07:17 PM
Q: I've installed TP on my forum which uses feather theme.
I don't need to use any of the blocks across the whole forum. These reason I am using TP on the site is for articles - something I'm not very familiar with.

Is there somewhere I can read a "how to" on those.

Use case: The extended forum rules and guidelines will be in an article.
How do I display that in a thread?
How do I display that on a page? (i.e. linked from header menu for example) 
Title: Re: TinyPortal
Post by: @rjen on November 22, 2021, 12:48:48 AM
Quote from: andreifrommsk on November 21, 2021, 04:17:49 PMInstalling of Responsive Curve doesn't solve the issue (the same behaviour like described above). Only removal of site width in settings fixed the problem. But setting site width feature may be needed in some cases.

Can you please provide a link to the forum where this is happening?
Title: Re: TinyPortal
Post by: shadav on November 22, 2021, 05:18:38 AM
Quote from: landyvlad on November 21, 2021, 07:07:17 PMQ: I've installed TP on my forum which uses feather theme.
I don't need to use any of the blocks across the whole forum. These reason I am using TP on the site is for articles - something I'm not very familiar with.

Is there somewhere I can read a "how to" on those.

Use case: The extended forum rules and guidelines will be in an article.
How do I display that in a thread?
How do I display that on a page? (i.e. linked from header menu for example) 

I can't answer any of your other questions  :laugh: but to add items to the menu I used this mod
https://custom.simplemachines.org/index.php?mod=2657
for example I have an article category called Contests
so I used the mod above to add that category link to my menu
and then did the same with one of the articles

I then also use this mod to arrange the menu items
https://custom.simplemachines.org/mods/?mod=2348

according to the download page here's a link to their docs (I should probably read through them as well at some point  :laugh:  ) https://www.tinyportal.net/docs/index.php
Title: Re: TinyPortal
Post by: landyvlad on November 22, 2021, 04:54:22 PM
Thanks. The feather theme has options for some links in the top area so I should be covered on that front. I appreciate the input though. :D

Yeah that would have been the obvious place to check LOL.
I'm posting this (an above) from work computer and that website is blocked by firewall because of the word hacks...
Title: Re: TinyPortal
Post by: User Andrey on November 26, 2021, 05:43:56 AM
I use TinyPortal 2.1.0 on two forums: the one with SMF 2.0.18 and the second with SMF 2.1RC4. On both - sorting of articles by position doesn't work. Sorting by date works, but it's not convenient.

BTW: great quality mod!
Title: Re: TinyPortal
Post by: User Andrey on November 26, 2021, 06:50:07 AM
Quote from: User Andrey on November 26, 2021, 05:43:56 AMI use TinyPortal 2.1.0 on two forums: the one with SMF 2.0.18 and the second with SMF 2.1RC4. On both - sorting of articles by position doesn't work. Sorting by date works, but it's not convenient.

BTW: great quality mod!

Resolved by configuring both front-page settings and category settings to sort by position.
Title: Re: TinyPortal
Post by: Dr Web on November 29, 2021, 04:57:19 PM
Quote from: shadav on November 22, 2021, 05:18:38 AMI can't answer any of your other questions  :laugh: but to add items to the menu I used this mod
https://custom.simplemachines.org/index.php?mod=2657
for example I have an article category called Contests
so I used the mod above to add that category link to my menu
and then did the same with one of the articles

I then also use this mod to arrange the menu items
https://custom.simplemachines.org/mods/?mod=2348

Shadav,

I am trying to follow your instructions here, but, how do you have that article category
called Contests? To add article categories, you need to have some Mod, right?   
Title: Re: TinyPortal
Post by: shadav on November 29, 2021, 05:20:17 PM
In your tinyportal admin section
under articles click on categories
there you can add categories
after you add the category, on the right hand side you should see a magnifying glass that will take you to the category link, copy that link

then if you installed the mods I posted, in your admin under configuration go to modification settings then go to custom button settings
and here you can enable a custom menu button
give it whatever title you want and post the url you copied into the spot for the url
save

then in your admin under configuration go to menu order
and you can change what order you want your menu to be in
Title: Re: TinyPortal
Post by: Dr Web on November 30, 2021, 11:47:38 AM
I followed your instructions, but for some reason I have a button with the word Articles duplicated. Please see the menun_button attachment.

The category on TP is Articles, and the menu button label on the Custom Buttons Mod is also Articles.

Then I tried to install the Menu Order Mod, and after uploading the zip file to the Packages folder, I don't have the Install link in the Packages Manager. Please see the no_install_link attachment.

Any idea why these things are happening?

Thanks a lot. 
Title: Re: TinyPortal
Post by: @rjen on November 30, 2021, 12:06:10 PM
Quote from: Dr Web on November 30, 2021, 11:47:38 AMI followed your instructions, but for some reason I have a button with the word Articles duplicated. Please see the menun_button attachment.

The category on TP is Articles, and the menu button label on the Custom Buttons Mod is also Articles.

Then I tried to install the Menu Order Mod, and after uploading the zip file to the Packages folder, I don't have the Install link in the Packages Manager. Please see the no_install_link attachment.

Any idea why these things are happening?

Thanks a lot. 

This has nothing to do with TinyPortal, perhaps post in correct mod support thread?
Title: Re: TinyPortal
Post by: Dr Web on November 30, 2021, 12:57:18 PM
Quote from: @rjen on November 30, 2021, 12:06:10 PMThis has nothing to do with TinyPortal, perhaps post in correct mod support thread?

Are you sure? Read it again, and the post I am responding to. Maybe you find something to do with TP.
 
Title: Re: TinyPortal
Post by: @rjen on November 30, 2021, 01:10:47 PM
The post you are responding to deals with adding menu options using another mod from TP. The fact that you are linking to an article page does not make it a TP discussion.

You can add top level menu buttons using the TP menu manager... (just a thought)
Title: Re: TinyPortal
Post by: Kindred on November 30, 2021, 02:28:18 PM
Quote from: Dr Web on November 30, 2021, 12:57:18 PM
Quote from: @rjen on November 30, 2021, 12:06:10 PMThis has nothing to do with TinyPortal, perhaps post in correct mod support thread?

Are you sure? Read it again, and the post I am responding to. Maybe you find something to do with TP.
 

Seriously dude, lose the attitude.

Your issue is that you are missingthe IMAGE/iconfor the articles menu item,  therefore your browser displays the alt text.
 Not a tinyportal issue.
Title: Re: TinyPortal
Post by: shadav on November 30, 2021, 02:57:57 PM
Quote from: @rjen on November 30, 2021, 01:10:47 PMThe post you are responding to deals with adding menu options using another mod from TP. The fact that you are linking to an article page does not make it a TP discussion.

You can add top level menu buttons using the TP menu manager... (just a thought)
sorry that is partly my fault for talking about how I, myself, set up items from tp into my menu

I didn't know you could do that through tp, I'll have to play some more with that one
lol tp still confuses me a bit

Quote from: Dr Web on November 30, 2021, 11:47:38 AMI followed your instructions, but for some reason I have a button with the word Articles duplicated. Please see the menun_button attachment.

The category on TP is Articles, and the menu button label on the Custom Buttons Mod is also Articles.

Then I tried to install the Menu Order Mod, and after uploading the zip file to the Packages folder, I don't have the Install link in the Packages Manager. Please see the no_install_link attachment.

Any idea why these things are happening?

Thanks a lot. 

as Kindred pointed out you are missing the icon so it's throwing out the image alt tag instead of the image, that would be due to some other mod probably that you installed and you'd need to ask in their support thread how to fix that

as well as to ask in the menu order mods support thread of why it broke package manager

Quote from: Dr Web on November 30, 2021, 12:57:18 PM
Quote from: @rjen on November 30, 2021, 12:06:10 PMThis has nothing to do with TinyPortal, perhaps post in correct mod support thread?

Are you sure? Read it again, and the post I am responding to. Maybe you find something to do with TP.
 
sorry but yes they are correct, I posted about 2 different mods that have nothing to do with tp support, they were suggestions on how I set up my menu to add tp items to it
that said if the mods gave you issues you should post those issues into those mods support threads as they are not part of the tp mod, I only gave suggestions on how I went about setting up my menu to use tp items using other mods
apparently you can do this through tp without those mods, which I did not know, I'm still kind of figuring out tp and all that it can do myself
Title: Re: TinyPortal
Post by: @rjen on November 30, 2021, 03:09:20 PM
FYI... https://www.tinyportal.net/docs/index.php?page=menu-buttons
Title: Re: TinyPortal
Post by: Dave J on December 01, 2021, 02:20:05 AM
I have just found this portal and I think it's great, so many back of house settings that makes it for me. Thank you
Title: Re: TinyPortal
Post by: User Andrey on December 01, 2021, 04:08:42 PM
Hello!

Could you please explain how to show user submitted articles in some block automatically w/o the need to manually assign them to some category by admin? I need to allow users to post an article and immediately see it in some block.

I have selected 'Article submissions and edits without approval' in Permissions, but new articles are still invisible and collected in Uncategorized category.

Thanks.
Title: Re: TinyPortal
Post by: Mike66 on December 07, 2021, 07:25:15 PM
Been experimenting with TinyPortal tonight.

Great mod thanks!  :)

Cheers
Mike
Title: Re: TinyPortal
Post by: Mike66 on December 17, 2021, 06:40:21 PM
Can TinyPortal do pages?
It would be great if the Front Page could simply be a page, linked to from the menu.
Title: Re: TinyPortal
Post by: @rjen on December 18, 2021, 02:27:28 AM
What exactly do you mean by that ?

The Frontpage in TP is a page , and it gets its own menu option by default ...
Title: Re: TinyPortal
Post by: Dave J on December 18, 2021, 03:50:43 AM
I think what Mike is asking for is like one of the other portals has the option to be set as a standalone page. Once it's all set up you link to it by clicking on the 'Home' button that the portal installed, this can obviously be called something else via template changes.

It means that anyone who visits the site will go direct to the forum and not the portal page but can click on the button to go there.
Title: Re: TinyPortal
Post by: Mike66 on December 18, 2021, 04:12:28 AM
Yes, that's it Dave.

I have my TinyPortal Frontpage set up to display 'Forum-topics and articles - sorted on date', and I have enabled 'Allow full display of forum-topics on the frontpage', with 'Display forum-topics on frontpage from' - set to one of my boards.

This produces a really nice timeline style Frontpage of recent topics from that board  8)

I would like anyone that visits the site to go direct to the forum and not the Frontpage/Portal, but for them to be able to access the Frontpage/Portal via a button in the main menu. ( I already have the button in place )

Currently, we have the option to set TinyPortal to 'Go directly to forum index', but when we select that option we lose the Frontpage/Portal.

Cheers
Mike
Title: Re: TinyPortal
Post by: @rjen on December 18, 2021, 03:59:12 PM
I see what you mean. Not sure if that is intentional tbh...
Title: Re: TinyPortal
Post by: Mike66 on December 19, 2021, 05:02:55 AM
Quote from: @rjen on December 18, 2021, 03:59:12 PMI see what you mean. Not sure if that is intentional tbh...

Do you think a standalone Frontpage/portal would be possible?

Or, failing that, does anybody know how to set up a block that displays the same as I currently have set up on the Frontpage?

I could then consider displaying that block below the forum.

Thanks
Mike
Title: Re: TinyPortal
Post by: Mike66 on December 19, 2021, 05:27:08 AM
Don't worry if it's a hassle - it's fine the way I have it set up  8)

Cheers
Mike
Title: Re: TinyPortal
Post by: Dave J on December 19, 2021, 09:22:44 AM
Mike,

What you could do is request all members log in the the site with https://www.mysite.com/index.php?action=forumBy using the '/index.php?action=forum' members will always go to the forum first then they can click on the link to the portal after.

Maybe send a newsletter out to them all asking them to delete their current bookmark and once they're back on the site in the forum save the new bookmark.

Alternatively if they know what they're doing they can just edit their current bookmark and add 'action=forum' to the end of it.
Title: Re: TinyPortal
Post by: Mike66 on December 19, 2021, 10:51:04 AM
Thanks Dave

The members are finding their way round it fine, so that's not a problem.

I would simply prefer index.php to go straight to the forum and still be able to have the Frontpage/Portal as a standalone page.

Cheers
Mike
Title: Re: TinyPortal
Post by: tinoest on December 19, 2021, 02:53:52 PM
There is a file included with the main source of TinyPortal to allow this, https://github.com/Tinyportal/TinyPortal/blob/master/TPStandalone.php

Does that not do what you are looking for?

You can name the file whatever you would like.
Title: Re: TinyPortal
Post by: Mike66 on December 19, 2021, 03:43:58 PM
Quote from: tinoest on December 19, 2021, 02:53:52 PMThere is a file included with the main source of TinyPortal to allow this, https://github.com/Tinyportal/TinyPortal/blob/master/TPStandalone.php

Does that not do what you are looking for?

You can name the file whatever you would like.

That's awesome thanks  8)

Is it just a case of naming the file and uploading it as is? Or does it require editing first? ..... Sorry, PHP is very much my weakness!

Cheers
Mike
Title: Re: TinyPortal
Post by: tinoest on December 19, 2021, 06:25:52 PM
Should just be upload and go if it still works. You'll have to add a custom menu to point to it.
Title: Re: TinyPortal
Post by: Mike66 on December 19, 2021, 07:13:29 PM
Quote from: tinoest on December 19, 2021, 06:25:52 PMShould just be upload and go if it still works. You'll have to add a custom menu to point to it.

Thanks for that. I tried it, but got an HTTP ERROR 500.

Not to worry, I'm happy enough with my current set up.

Cheers
Mike

Title: Re: TinyPortal
Post by: tinoest on December 19, 2021, 07:52:31 PM
Quote from: Mike66 on December 19, 2021, 07:13:29 PM
Quote from: tinoest on December 19, 2021, 06:25:52 PMShould just be upload and go if it still works. You'll have to add a custom menu to point to it.

Thanks for that. I tried it, but got an HTTP ERROR 500.

Not to worry, I'm happy enough with my current set up.

Cheers
Mike



Sorry, I should of said the settings_path and ssi_path should be set for whatever the path is for your forum.
Title: Re: TinyPortal
Post by: Mike66 on December 20, 2021, 07:22:59 PM
Thanks for your help, much appreciated.

I still can't get that to work. My gut feeling tells me to leave it alone - when I struggle to get something to work it usually ends up in tears  ;D

Cheers
Mike
Title: Re: TinyPortal
Post by: tinoest on December 20, 2021, 08:19:54 PM
Quote from: Mike66 on December 20, 2021, 07:22:59 PMThanks for your help, much appreciated.

I still can't get that to work. My gut feeling tells me to leave it alone - when I struggle to get something to work it usually ends up in tears  ;D

Cheers
Mike

It might be that it doesn't work.

What version of SMF are you using and what do you want the page to show? As in what option would you choose if you hadn't chosen forum as front page.

This one in this post might also work for you https://www.tinyportal.net/index.php?topic=36058.msg299089#msg299089

The settings line needs changing.
 
Title: Re: TinyPortal
Post by: Mike66 on December 21, 2021, 08:01:40 PM
Thanks again tinoest,
 
I have decided to leave it alone and keep it set up as it is.

Cheers
Mike
Title: Re: TinyPortal
Post by: Mike66 on December 23, 2021, 05:25:51 PM
Is there a setting that allows forum members to edit or delete their own shouts in TP Shout?

Cheers
Mike
Title: Re: TinyPortal
Post by: @rjen on December 24, 2021, 01:50:43 AM
No, there is one permission to edit shoutbox content and that is for all shouts.

Allowing users to edit their own shouts will add a lot of of complexity: it may also require some sort of change logging in case people will try to abuse it: leave offending messages and the change them again.
Title: Re: TinyPortal
Post by: Mike66 on December 24, 2021, 04:44:00 AM
That's fine thanks, we just tend to get typos, or members using smileys from their mobile text editor that messes things up, so not a problem.

Cheers
Mike
Title: Re: TinyPortal
Post by: Dave J on December 27, 2021, 05:45:59 AM
I have a question about the shoutbox too.

How can you get it to work on just the forum index in a top panel but not on the frontpage/portal please?

I can get it to work on the portal but choosing 'Board Index' or 'action=forum' and various other combinations of 'Frontpage' + 'All Forum Related sections' but it wont display on the forum index.

I have a bottom panel working on the forum as well as the portal.
Title: Re: TinyPortal
Post by: tinoest on December 27, 2021, 01:12:16 PM
Quote from: Dave J on December 27, 2021, 05:45:59 AMI have a question about the shoutbox too.

How can you get it to work on just the forum index in a top panel but not on the frontpage/portal please?

I can get it to work on the portal but choosing 'Board Index' or 'action=forum' and various other combinations of 'Frontpage' + 'All Forum Related sections' but it wont display on the forum index.

I have a bottom panel working on the forum as well as the portal.

On the block options just choose Board Index, or if you want it in All Forum Related Actions that one. Make sure Display on all pages and sections is unticked.
Title: Re: TinyPortal
Post by: Dave J on December 27, 2021, 05:31:39 PM
Nope that doesn't work for me.

See images of my test site on SMF default curve.

tpshout1.PNG

tpshout2.PNG

tpshout3.PNG   
Title: Re: TinyPortal
Post by: @rjen on December 27, 2021, 05:43:59 PM
That's strange, it works for me with this setup (and has worked for years).

Can you check one thing (just to be sure): In the Panel settings, what are the settings for the Top panel?
Specifically the two I highlighted?

2021-12-27_234151.png
Title: Re: TinyPortal
Post by: Dave J on December 28, 2021, 02:10:51 AM
Quote from: @rjen on December 27, 2021, 05:43:59 PMThat's strange, it works for me with this setup (and has worked for years).

Can you check one thing (just to be sure): In the Panel settings, what are the settings for the Top panel?
Specifically the two I highlighted?

2021-12-27_234151.png

Yes that was my problem I had the 'Hide panel in forum' selected to yes.

Thanks rjen another successfull mission by international rescue  ;)
Title: Re: TinyPortal
Post by: @rjen on December 28, 2021, 03:44:34 AM
Quote from: Dave J on December 28, 2021, 02:10:51 AMThanks rjen another successfull mission by international rescue  ;)

No probs, we'll try support our overseas neighbours...
Title: Re: TinyPortal
Post by: AndalayBay on January 06, 2022, 10:44:30 PM
Is there an option to allow all file extensions for the downloads module?
Title: Re: TinyPortal
Post by: @rjen on January 07, 2022, 02:15:32 AM
You can add any file extension you like in the settings in the download manager. Just add them to the list, separated with a ,
Title: Re: TinyPortal
Post by: AndalayBay on January 07, 2022, 02:25:25 AM
Yeah, we allow everything. We have .blend, .esp, .esm, .myext... You get the idea. The downloads area isn't public - it's for working on game mods, so we need to exchange files. I'm actually migrating from other forum software where you could say "no restrictions" and I can't even find out all the extensions that have been uploaded.

As it turns out, TP was too hard for me to configure. I would prefer it make no changes to my forums and allow me to enable the features I want, so I uninstalled it. Lots of features and there were several that I would have liked to implement, but I needed my forums to remain as they are and enable the features I wanted.

Thanks for the reply.
Title: Re: TinyPortal
Post by: @rjen on January 07, 2022, 03:10:00 AM
That's too bad. I am curious what bits you could not configure tbh.

I find that With a little bit of effort you get to understand the principle of the blocks and the panels and it allow you to make any level of impact on your forum: as small as you like...

I suspect the standard active panels and sample blocks put you off? They can be easily deactivated and you will not see a difference with a vanilla forum...
Title: Re: TinyPortal
Post by: AndalayBay on January 07, 2022, 03:47:09 PM
In general, SMF's documentation is terrible. The development community has been working with SMF for so long, you guys think it's obvious. I appreciate all the help I've gotten getting things set up, but it's been rather frustrating. I keep having to post on the forums to ask how to do something or if something can be done. Even when I get an answer, I usually have to post again, saying "where?" or "how?". I'm migrating from other forums. Our forums have been in use since 2006, so this isn't new. But they are organized quite differently than SMF and SMF's UI could really use some improvement.

In this specific instance, I didn't EVEN KNOW I was supposed to configure the blocks and panels. There is no documentation on how to get started. Not that I could find anyway. At this point, I only wanted to check out the downloads module. I thought I got it configured and then it told me it wasn't enabled. I couldn't find the setting to enable it. There was something about being able to disable or enable it completely, but I couldn't find the setting. Then I looked at my forums and they were a mess. I tried turning the other stuff off, but couldn't get it to the point where they looked like "vanilla", so I uninstalled and deleted the mod. We're still in the process of migrating the data, so there's a lot of html embedded in the old posts. We've written a program to strip it all out, but that means that displaying most of the panels and blocks wouldn't work at this point.

Lastly, TP has two settings that are just called "Settings". I suggest renaming one of them. :) I saw the icon was different, but it was meaningless to me!
Title: Re: TinyPortal
Post by: tinoest on January 07, 2022, 04:19:16 PM
I'm curious about how the documents here https://www.tinyportal.net/docs/ aren't thorough  or detailed in how to configure TinyPortal.

@rjen and other's before him spent a long time documenting TinyPortal. If it's not clear we'd appreciate your feedback on how those docs could be improved.
Title: Re: TinyPortal
Post by: @rjen on January 07, 2022, 04:27:57 PM
And I am pretty sure that you are actually invited to read the docs site when you installed the TP package... but who reads those text anyway...  ;)
Title: Re: TinyPortal
Post by: Doug Heffernan on January 07, 2022, 04:42:27 PM
Quote from: AndalayBay on January 07, 2022, 03:47:09 PMIn general, SMF's documentation is terrible. The development community has been working with SMF for so long, you guys think it's obvious. I appreciate all the help I've gotten getting things set up, but it's been rather frustrating. I keep having to post on the forums to ask how to do something or if something can be done. Even when I get an answer, I usually have to post again, saying "where?" or "how?". I'm migrating from other forums. Our forums have been in use since 2006, so this isn't new. But they are organized quite differently than SMF and SMF's UI could really use some improvement.

In this specific instance, I didn't EVEN KNOW I was supposed to configure the blocks and panels. There is no documentation on how to get started. Not that I could find anyway. At this point, I only wanted to check out the downloads module. I thought I got it configured and then it told me it wasn't enabled. I couldn't find the setting to enable it. There was something about being able to disable or enable it completely, but I couldn't find the setting. Then I looked at my forums and they were a mess. I tried turning the other stuff off, but couldn't get it to the point where they looked like "vanilla", so I uninstalled and deleted the mod. We're still in the process of migrating the data, so there's a lot of html embedded in the old posts. We've written a program to strip it all out, but that means that displaying most of the panels and blocks wouldn't work at this point.

Lastly, TP has two settings that are just called "Settings". I suggest renaming one of them. :) I saw the icon was different, but it was meaningless to me!

Sorry, but you come off a bit arrogant to me. It looks like you want everything to be handed over to you, but you do not even want to lift the pinky finger to help yourself.

SMF's documentation is well written and contains all the necessary details and then some to get one started. Why do not you do some searching yourself then, and save/spare yourself and others the time, rather than complaining and moaning here. Unbelievable.

Quote from: @rjen on January 07, 2022, 04:27:57 PMAnd I am pretty sure that you are actually invited to read the docs site when you installed the TP package... but who reads those text anyway...  ;)

Je krijgt stank voor dank maat.
Title: Re: TinyPortal
Post by: AndalayBay on January 07, 2022, 04:46:07 PM
Actually I did. I wouldn't complain about the documentation if I didn't actually try to read it. ;)

Perhaps the main issue is this:
QuotePlease note that the Docs links in the blocks below are for the latest version of TinyPortal and applicable to TinyPortal 2.0.0. that was released on 20th of August 2020.

I'm using SMF 2.1 RC4, so that's TP 2.1. As I said, I seriously couldn't find the setting to enable TP downloads. I also wasn't able to disable everything else. Personally, I would have preferred nothing enabled so I could explore and enable things one at a time.

@Doug Heffernan seriously? Fine moving on.
Title: Re: TinyPortal
Post by: @rjen on January 07, 2022, 04:55:36 PM
I do remember starting with SMF and having to figure out stuff. Those are interesting times.

What helped me immensely was that I created a test forum first: there I could play around with board settings and permissions as well as mods (TinyPortal was one of them) and make sure that when I applied any settings change to the real forum I knew what the result would be.
I have NEVER installed any mod on the real  forum without testing it first.

The work I did to the TinyPortal docs pages (which was quite a lot of work actually) has made them to what they are now: intended to showcase TinyPortal and be informative on all settings and options.

It is just a shame if they are not found and people discard the mod just because 'it is too complicated'  and 'the documentation is terrible '
Title: Re: TinyPortal
Post by: tinoest on January 07, 2022, 04:59:31 PM
Quote from: AndalayBay on January 07, 2022, 04:46:07 PMActually I did. I wouldn't complain about the documentation if I didn't actually try to read it. ;)

Perhaps the main issue is this:
QuotePlease note that the Docs links in the blocks below are for the latest version of TinyPortal and applicable to TinyPortal 2.0.0. that was released on 20th of August 2020.

They are still largely applicable for TinyPortal 2.1, if you look at the changelog we really only changed the shoutbox and fixed some bugs.

Your feedback of I couldn't find it is a bit vague. It's on the menu on the left and also I can search for it and find it. So could you let me know what you did/typed so we can improve that area.

https://www.tinyportal.net/docs/index.php?page=Tpdownload-settings

That page to me is quite clear and answers your questions about the downloads, unless I'm mistaken?
Title: Re: TinyPortal
Post by: Doug Heffernan on January 07, 2022, 05:02:23 PM
Quote from: AndalayBay on January 07, 2022, 04:46:07 PMActually I did. I wouldn't complain about the documentation if I didn't actually try to read it. ;)

Perhaps the main issue is this:
QuotePlease note that the Docs links in the blocks below are for the latest version of TinyPortal and applicable to TinyPortal 2.0.0. that was released on 20th of August 2020.

I'm using SMF 2.1 RC4, so that's TP 2.1. As I said, I seriously couldn't find the setting to enable TP downloads. I also wasn't able to disable everything else. Personally, I would have preferred nothing enabled so I could explore and enable things one at a time.

@Doug Heffernan seriously? Fine moving on.

Yes, seriously @AndalayBay. You say:

Quote from: AndalayBay on January 07, 2022, 04:46:07 PMit's been rather frustrating. I keep having to post on the forums to ask how to do something or if something can be done. Even when I get an answer, I usually have to post again, saying "where?" or "how?"

You have gotten nothing but help here with all all your questions. And instead of being grateful to these kind people for all their hard work in developing this amazing software and mod for free and take the time to help you out as well, you are getting frustrated? And then complain and moan? I find your attitude unbelievable. Just saying.

Title: Re: TinyPortal
Post by: Arantor on January 07, 2022, 05:37:26 PM
I can't vouch for the TP docs, but SMF's docs *are* terrible. Doc writing is also hard, because you know the thing, you don't know what someone else doesn't know, and with the best will in the world empathising is hard.

Especially when writing for someone who came from a platform that behave quite differently with very distinct idioms that don't align.

Then again I don't remember reading any TP docs, but I didn't try it until many years in where it could be said I was an SMF expert and knew how an SMF mod was likely to behave just by virtue of "it works with SMF so it probably works *like* SMF".
Title: Re: TinyPortal
Post by: Doug Heffernan on January 08, 2022, 07:23:01 AM
Quote from: Arantor on January 07, 2022, 05:37:26 PMI can't vouch for the TP docs, but SMF's docs *are* terrible. Doc writing is also hard, because you know the thing, you don't know what someone else doesn't know, and with the best will in the world empathising is hard.

Especially when writing for someone who came from a platform that behave quite differently with very distinct idioms that don't align.

Then again I don't remember reading any TP docs, but I didn't try it until many years in where it could be said I was an SMF expert and knew how an SMF mod was likely to behave just by virtue of "it works with SMF so it probably works *like* SMF".

A bit off topic, but the thing is that one can do so much. Like in the example of doc writing. The users should help themselves as well. I mean one should not expect that everything is handed down to them. They must use the search system and take the time to get to know the software and the mods that they download. When they come across things that is really hard to grasp, then they can ask about it.

And another thing is, the way that a lot of users go about asking support. They are being very impateient, demanding and downright arrogant, as if the support is owed to them. Not understanding that this forum is being developed by volunteers on their own dime and free time. And the same goes for the support staff and every other member, like myself, who are trying to help out as much as we can.

P.s. Your signature says it all on the matter btw ;)
Title: Re: TinyPortal
Post by: Arantor on January 08, 2022, 08:02:27 AM
No-one is disputing that users can and should educate themselves to a point - but that does rely on the documentation being there to help.

This is a wider SMF ecosystem problem though, that the SMF manual is written in a really unstructured way (because the SMF admin panel is really unstructured), and mods don't necessarily make it clear how to do anything, especially if they are larger and more complex - like TP.

I think it's also really hard if you've used a thing for a while to be able to see it from a newcomer's eyes - and I would suggest that there is a middle ground here... and lecturing users isn't really it. Especially from someone who saw fit to lecture me on my choices for offering help.

What I can suggest is that if a piece of software has a recurring support question - the same general question coming up time after time, this is indicative of a problem. The problem may be 'can we make this process simpler', 'can we make this easier to find' and it can be 'should we write this down'.

There will always be people who want it handed to them on a plate - but everything I've seen indicates that's not the problem here.

Using TP is easy - if you already know how to use it and are deeply familiar with it, just like anything else. It's also very easy if you're deeply rooted in SMF culture. But coming at it fresh (and worse if you're familiar with another platform since you have unlearning to do first) is a different story and maybe that's indicative of 'maybe someone needs to write some guides on how to do common tasks' and make that list really clearly signposted.
Title: Re: TinyPortal
Post by: tinoest on January 08, 2022, 08:10:35 AM
Quote from: Arantor on January 08, 2022, 08:02:27 AMUsing TP is easy - if you already know how to use it and are deeply familiar with it, just like anything else. It's also very easy if you're deeply rooted in SMF culture. But coming at it fresh (and worse if you're familiar with another platform since you have unlearning to do first) is a different story and maybe that's indicative of 'maybe someone needs to write some guides on how to do common tasks' and make that list really clearly signposted.

This is why I've asked and am awaiting a response on why the docs we do have aren't easy to understand/find.

TinyPortal isn't easy to understand in a lot of instances, it has multiple features some which contradict each other but there are reasons for that, which make sense once you understand it's power. What I'd like to do is understand where the docs don't help or could be improved.

The person who raised the issue has only really said they ignored the docs as it says 2.0.0 and they are using 2.1.0 which doesn't mean the docs aren't valid in their current form.
Title: Re: TinyPortal
Post by: Arantor on January 08, 2022, 08:19:33 AM
Quote from: tinoest on January 08, 2022, 08:10:35 AMwhich doesn't mean the docs aren't valid in their current form.

I would suggest there's the first part of the problem. How would someone new to TP know this? It's a reasonable position if you know nothing of TP and little of SMF to conclude 'oh the docs are for 2.0.0 but I'm using 2.1.0, I have no idea if any of this is still relevant'.

Consider the same argument for SMF 2.0.0 to SMF 2.1.0 - the amount of change is so vast that the 2.0 manual is woefully inadequate in many respects, and it's reasonable to conclude the same about TP if you don't know anything else.

If it hasn't changed, put that in. Make it clear that 'this part of the manual applies to 2.0 AND 2.1' or whatever it happens to apply to.
Title: Re: TinyPortal
Post by: @rjen on January 08, 2022, 08:26:19 AM
Quote from: tinoest on January 08, 2022, 08:10:35 AMThe person who raised the issue has only really said they ignored the docs as it says 2.0.0 and they are using 2.1.0 which doesn't mean the docs aren't valid in their current form.

Yeah, it means we have to make that more clear on the TinyPortal docs page I guess...
Looking into that now.

As for the guides to do common tasks:
we have added a number of those based on requests made over the last few years. Maybe we should create a guide that shows 'how to disable all deafult Blocks and Panels' for new users. Willing to do that, but it would be most appreciated that new users who find something is missing or could be improved would mention what it is they are missing, so we (at TinyPortal docs) can improve on it.

This was also why I would like to get some details...




Title: Re: TinyPortal
Post by: Arantor on January 08, 2022, 08:51:52 AM
Quote from: @rjen on January 08, 2022, 08:26:19 AMbut it would be most appreciated that new users who find something is missing or could be improved would mention what it is they are missing

That's a tough one. Sometimes the problem here is that someone doesn't know what they don't know. It's tough to ask 'how do I do x' when the preceding question is 'does this do x' and that might not be self-evident.

Would agree it would be nice if people said what they're missing but that relies on people actually realising that. Instead we can only proceed from what questions people do actually ask. :(
Title: Re: TinyPortal
Post by: AndalayBay on January 08, 2022, 03:21:08 PM
Since this discussion has continued...

1. I did read the documentation
2. I tried searching.
3. Your search engine is awful, both in the forums and in the wiki.
4. I ask here for help.

If your documentation and SMF were well structured, I wouldn't be here on the forums in the first place. I have been trying to get my site migrated to SMF since October. I am writing a custom converter because the old site has been migrated so many times and has gone through so many forum software upgrades, it's a mess.

I find Doug's comments ironic. Can't be bothered to read the docs? Try reading the HL7 specifications (http://www.hl7.org/implement/standards/). Seriously guys, if you've got insomnia, those puppies will have you snoring in no time. I'm a computer consultant. I've been programming for over 30 years. Lately I've migrated to business analyst work. I write documentation for a living. It's not hard, it's monotonous. There's a process to it. You can even automate some of it.

Back to the issue at hand. I don't know what you're using as a search engine, but it needs to be optimized to ignore connecting words. Unfortunately I don't remember my specific searches, but I do remember searching for something that had the word "to" in it. It found every single forum post with the word "to" in it. I had "to" in my search because I was trying to set something. I usually wind up using Google because it knows to expand that and search for the entire string. I often find what I'm looking for that way.

I looked at the TP documenation to see how to use the downloads module. There's no sense repeating what I said already. Basically I couldn't find the settings the documentation referenced. Then I saw the comment about it being for 2.0 and some things would be different for 2.1 so I figured things had changed. I came here to ask about enabling all file extensions. I then started going through the code and discovered that I would have to modify the code to enable all extensions. That's fine. I've modified so much SMF code already, that I'll have to make my changes again when the full release comes out. Hey you can't please everybody. Anyway when I found all the TP stuff was enabled, except downloads, I tried to disable the rest of the stuff, but I couldn't find all the settings. I need to get moving on my forums, so I uninstalled and deleted TP. This is on my localhost. Seriously guys, I not that bleeping stupid. I have a full copy of my old forums on my PC. We're migrating them and then they will be moved to the real server.

rjen asked me what was wrong with the documentation and why I deleted Tiny Portal, so I told him, stupidly thinking that would help them. Instead I got dumped on by Doug. That was insulting, given my efforts thus far. Since I don't have TP installed, I can't check the settings.

In terms of docs, you need a getting started section that literally says Click here, then select this... etc. With pictures. Having the Admin panel buried in the forums makes it very hard to use, in my not so humble opinion.
Title: Re: TinyPortal
Post by: @rjen on January 08, 2022, 03:31:03 PM
Sorry to read that it everything is so bad.

I will not comment on SMF documentation, but I am interested in improving the TP pages.
Unfortunately I cannot create click by click instruction for Anything any user may need (Simply impossible).

I had a look at the TPdownloads pages today and found they are more outdated then I remember, so those are updated now (thanks for the alert)

In TinyPortal docs we do have a 'getting started' section and based on your comment I will add a howto article that explains how to deactivate the blocks, frontpage and TinyPortal menu option on a clean install.
Title: Re: TinyPortal
Post by: AndalayBay on January 08, 2022, 07:41:58 PM
Quote from: @rjen on January 08, 2022, 03:31:03 PMSorry to read that it everything is so bad.

I will not comment on SMF documentation, but I am interested in improving the TP pages.
Unfortunately I cannot create click by click instruction for Anything any user may need (Simply impossible).

I had a look at the TPdownloads pages today and found they are more outdated then I remember, so those are updated now (thanks for the alert)

In TinyPortal docs we do have a 'getting started' section and based on your comment I will add a howto article that explains how to deactivate the blocks, frontpage and TinyPortal menu option on a clean install.

I was referring to SMF's documentation, not yours.
Title: Re: TinyPortal
Post by: ssduser on January 20, 2022, 06:44:40 PM
Hello,

I've had the luxury of inheriting an old forum which needed to be migrated to a new domain and upgraded. I uninstalled all mods, upgraded the SMF version to latest, reinstalled all mods back, and it was great. However, I'm currently running into an issue with TinyPortal, in which after I install the latest version (or any version prior to 2.1), there is no sign of TP on my forum, no TPAdmin, no settings to change, nothing. I've tried different versions of TP and also backed up and removed anything in the database involving TP.

There's no error with the install, but when I click on "Go to TPAdmin" after install, I'm lead to my forum's home page with "/index.php?action=tpadmin" in my URL. All currently installed mods are as thus:

Ad Managment - 3.5d
SMF 2.0.19 Update - 1.0
Pretty URLs SEO Pro - 2.0.3
Forum Firewall - 2.0.0

My forum sits on my sites subdomain, and so I've got redirects set up. The old forum was migrated from the old site as /forum/, and now is forum(dot)site(dot)com (if this information is relevant). As a side note, all TP related files that are installed have no contents, they are just blank files, which I thought was interesting. I'm not finding anything related to my issue, and if there is, if you would be so kind send me to that, I would be so grateful.
Title: Re: TinyPortal
Post by: @rjen on January 21, 2022, 02:39:50 AM
No clue, not a 'known' issue.

But you moved the forum.
I assume you have run repair_settings TWICE after you moved the forum?

Please check by running repair_settings and check the file paths...
Title: Re: TinyPortal
Post by: Dave J on January 21, 2022, 02:47:06 AM
Quote from: ssduser on January 20, 2022, 06:44:40 PMAs a side note, all TP related files that are installed have no contents, they are just blank files, which I thought was interesting. I'm not finding anything related to my issue, and if there is, if you would be so kind send me to that, I would be so grateful.

Just a thought...

Firstly have you checked that the install wrote the TP code to relevent templates?

Secondly have you tried overwriting the files, using ftp connection, with no content with new files you know have content?
Title: Re: TinyPortal
Post by: ssduser on January 21, 2022, 09:56:42 AM
Quote from: @rjen on January 21, 2022, 02:39:50 AMI assume you have run repair_settings TWICE after you moved the forum?

Please check by running repair_settings and check the file paths...

Yes, I have run the repair settings and all the paths look right.

Quote from: Dave J on January 21, 2022, 02:47:06 AM
Quote from: ssduser on January 20, 2022, 06:44:40 PMAs a side note, all TP related files that are installed have no contents, they are just blank files, which I thought was interesting. I'm not finding anything related to my issue, and if there is, if you would be so kind send me to that, I would be so grateful.

Just a thought...

Firstly have you checked that the install wrote the TP code to relevent templates?

Secondly have you tried overwriting the files, using ftp connection, with no content with new files you know have content?

I'll need to look at the install files to check that, and then find a way to see what all changes the TP install makes to core files. Then I could potentially manually install the latest version.

Before I do that I'll try pulling down the old TP files from the old forum and try doing it that way. At the very least, I could have the old version (v1.3) of TP working, but I worry about vulnerabilities.

I would have thought that I could see some sort of error log with the install, but nothing is written to the error log in the database.
Title: Re: TinyPortal
Post by: @rjen on January 21, 2022, 10:03:34 AM
You cannot exchange TP1.3 files with a TP2.1 install, can you Uninstall TP2.1? Or does it not show installed?
Title: Re: TinyPortal
Post by: tinoest on January 21, 2022, 11:23:10 AM
The changes made to 2.0.19 are actually fairly minimal now. You can see them in manual installation instructions on the Mod Site.

Empty files suggests something wrong with SMF rather than TinyPortal itself.
Title: Re: TinyPortal
Post by: ssduser on January 21, 2022, 12:21:08 PM
Quote from: @rjen on January 21, 2022, 10:03:34 AMYou cannot exchange TP1.3 files with a TP2.1 install, can you Uninstall TP2.1? Or does it not show installed?

It shows that it is installed. When I try to uninstall, there are some errors in the following files:

./index.php
./Sources/Load.php
./Sources/Subs.php
./Sources/QueryString.php
./Sources/Subs-Editor.php

Edit: When I pull the files down that are in question when uninstalling however, the code that I need to replace is not in the file that I'm expecting it to be. For instance, the package manager asks me to replace a section of code in Load.php, but when I pull that file down, I'm seeing that the code that needs to be replaced is not there. Maybe there is an issue with my directories. Should I remove all other themes in my Themes folder other than the one I'm using?

Edit 2: Sorry, last edit for this post. I went through my sources folders and found those files and files of the same name with a ~ appended on the end, like Load.php~. So I removed them, uninstalled TP2.1, and reinstalled, only to find that those files reappear back in my sources folder. Is this strange behavior?
Title: Re: TinyPortal
Post by: ssduser on January 21, 2022, 05:04:52 PM
I've gone ahead and uploaded all the files from TP2.1 package in their respective directories, and ran the do_hooks file in my forums main directory, and still can't see the TP admin page or anything related to TP (other than the TinyPortal signature in the footer). At least when I try to go to Admin.php in the TinyPortal directory, I'll get "Hacking attempt" which indicates that the files are there at least.

Not entirely sure what the issue is. I checked all the SMF core files and everythings up to date. We were using TinyPortal for moderator Shoutbox and Recent Posts displayed in the sidebar, but I may just give up trying to install TP and find an alternative at this point.
Title: Re: TinyPortal
Post by: tinoest on January 21, 2022, 05:18:57 PM
Hacking Attempt will only appear if SMF hasn't loaded properly. The fact that the install process also wasn't run correctly sounds like you have a more fundemental issue with the SMF installation. As install.php won't run if it doesn't detect the same things that TPAdmin is complaining about.

Can you export the structure of the tables within your database starting tp_* , I'm curious as to if they are the latest or stuck on an older version.
Title: Re: TinyPortal
Post by: Mike66 on January 23, 2022, 07:40:49 AM
Quote from: tinoest on December 20, 2021, 08:19:54 PMIt might be that it doesn't work.

What version of SMF are you using and what do you want the page to show? As in what option would you choose if you hadn't chosen forum as front page.

This one in this post might also work for you https://www.tinyportal.net/index.php?topic=36058.msg299089#msg299089

The settings line needs changing.
 

Gave it another go with a fresh set of eyes - success, got the standalone working now thanks  8)

I used the version in that post that didn't need any edits.

Cheers
Mike
Title: Re: TinyPortal
Post by: ssduser on January 24, 2022, 02:06:11 PM
Quote from: tinoest on January 21, 2022, 05:18:57 PMCan you export the structure of the tables within your database starting tp_* , I'm curious as to if they are the latest or stuck on an older version.

So now this got me thinking. I can export the table structure, but before I do that, I should mention that this forum has had an ongoing issue. User's cannot copy and paste certain content from a website, document, what have you into a post or message (things that include ", --, or other characters).

That sounded like an encoding issue to me, so when I went to check the database, I saw that the original DB was using utf8mb3 collation, which I knew was outdated. I tried manually updating from uft8mb3 to utf8mb4 but that issue still persists. Currently, all tp_* data tables are using utf8mb3. Should I try to update those to utf8mb4? Running the database UTF update will throw some errors about content being too long for column x


Below is UTF related information found on my db home page
Server charset: UTF-8 Unicode (utf8mb3)
Server connection collation: utf8mb4_unicode_ci
Title: Re: TinyPortal
Post by: vbgamer45 on January 24, 2022, 02:44:37 PM
I would try doing that. You may have to change individual fields as well as they might have the old encoding in the table set.
Title: Re: TinyPortal
Post by: tinoest on January 24, 2022, 02:50:28 PM
Quote from: ssduser on January 24, 2022, 02:06:11 PMCurrently, all tp_* data tables are using utf8mb3. Should I try to update those to utf8mb4?

I think you need to resolve the issue with TinyPortal thinking that SMF isn't installed first. This will only cause more issues.
Title: Re: TinyPortal
Post by: ssduser on February 03, 2022, 10:41:24 AM
Quote from: tinoest on January 24, 2022, 02:50:28 PMI think you need to resolve the issue with TinyPortal thinking that SMF isn't installed first.

Could you elaborate on why TinyPortal would think that SMF isn't installed? I'm sure the amount of issues that could cause this are vast, but do you have any suggestions on what to check first? You had mentioned that the tp_ related data tables could be stuck on an older version. How would I be able to diagnose if a table's version is outdated?

Below is an export of the structure of all _tp_ related tables in my database:

-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Generation Time: Jan 24, 2022 at 06:59 PM
-- Server version: 10.6.4-MariaDB
-- PHP Version: 7.4.25

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `bitnami_smf`
--

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_articles`
--

CREATE TABLE `smf_tp_articles` (
  `id` int(11) NOT NULL,
  `date` int(11) NOT NULL DEFAULT 0,
  `body` longtext DEFAULT NULL,
  `intro` text DEFAULT NULL,
  `useintro` smallint(1) NOT NULL DEFAULT 0,
  `category` smallint(6) NOT NULL DEFAULT 0,
  `frontpage` smallint(1) NOT NULL DEFAULT 0,
  `subject` text DEFAULT NULL,
  `author_id` int(11) NOT NULL DEFAULT 0,
  `author` text DEFAULT NULL,
  `frame` tinytext DEFAULT NULL,
  `approved` smallint(6) NOT NULL DEFAULT 0,
  `off` smallint(6) NOT NULL DEFAULT 0,
  `options` text DEFAULT NULL,
  `parse` smallint(6) NOT NULL DEFAULT 0,
  `comments` smallint(4) NOT NULL DEFAULT 0,
  `comments_var` text DEFAULT NULL,
  `views` int(11) NOT NULL DEFAULT 0,
  `rating` text DEFAULT NULL,
  `voters` text DEFAULT NULL,
  `id_theme` smallint(6) NOT NULL DEFAULT 0,
  `shortname` tinytext DEFAULT NULL,
  `sticky` smallint(6) NOT NULL DEFAULT 0,
  `fileimport` text DEFAULT NULL,
  `topic` int(11) NOT NULL DEFAULT 0,
  `locked` smallint(6) NOT NULL DEFAULT 0,
  `illustration` text DEFAULT NULL,
  `headers` text DEFAULT NULL,
  `type` tinytext DEFAULT NULL,
  `global_tag` text DEFAULT NULL,
  `featured` smallint(6) NOT NULL DEFAULT 0,
  `pub_start` int(11) NOT NULL DEFAULT 0,
  `pub_end` int(11) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_blocks`
--

CREATE TABLE `smf_tp_blocks` (
  `id` int(11) NOT NULL,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `frame` tinytext DEFAULT NULL,
  `title` tinytext DEFAULT NULL,
  `body` text DEFAULT NULL,
  `access` text DEFAULT NULL,
  `bar` smallint(4) NOT NULL DEFAULT 0,
  `pos` int(11) NOT NULL DEFAULT 0,
  `off` smallint(1) NOT NULL DEFAULT 0,
  `visible` text DEFAULT NULL,
  `lang` text DEFAULT NULL,
  `display` text DEFAULT NULL,
  `settings` text DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_comments`
--

CREATE TABLE `smf_tp_comments` (
  `id` int(11) NOT NULL,
  `item_type` varchar(255) NOT NULL,
  `item_id` int(11) NOT NULL DEFAULT 0,
  `datetime` int(11) NOT NULL DEFAULT 0,
  `subject` text DEFAULT NULL,
  `comment` text DEFAULT NULL,
  `member_id` int(11) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_data`
--

CREATE TABLE `smf_tp_data` (
  `id` int(11) NOT NULL,
  `type` smallint(4) NOT NULL DEFAULT 0,
  `id_member` int(11) NOT NULL DEFAULT 0,
  `value` smallint(6) NOT NULL DEFAULT 0,
  `item` int(11) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_dldata`
--

CREATE TABLE `smf_tp_dldata` (
  `id` bigint(20) NOT NULL,
  `views` bigint(20) NOT NULL DEFAULT 0,
  `downloads` bigint(20) NOT NULL DEFAULT 0,
  `item` int(11) NOT NULL DEFAULT 0,
  `week` smallint(4) NOT NULL DEFAULT 0,
  `year` smallint(6) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_dlmanager`
--

CREATE TABLE `smf_tp_dlmanager` (
  `id` int(11) NOT NULL,
  `name` tinytext DEFAULT NULL,
  `description` text DEFAULT NULL,
  `icon` text DEFAULT NULL,
  `category` int(11) NOT NULL DEFAULT 0,
  `type` tinytext DEFAULT NULL,
  `downloads` int(11) NOT NULL DEFAULT 0,
  `views` int(11) NOT NULL DEFAULT 0,
  `file` text DEFAULT NULL,
  `created` int(11) NOT NULL DEFAULT 0,
  `last_access` int(11) NOT NULL DEFAULT 0,
  `filesize` int(11) NOT NULL DEFAULT 0,
  `parent` int(11) NOT NULL DEFAULT 0,
  `access` text DEFAULT NULL,
  `link` text DEFAULT NULL,
  `author_id` int(11) NOT NULL DEFAULT 0,
  `screenshot` text DEFAULT NULL,
  `rating` text DEFAULT NULL,
  `voters` text DEFAULT NULL,
  `subitem` int(11) NOT NULL DEFAULT 0,
  `files` int(11) NOT NULL DEFAULT 0,
  `global_tag` text DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_events`
--

CREATE TABLE `smf_tp_events` (
  `id` int(11) NOT NULL,
  `id_member` int(11) NOT NULL DEFAULT 0,
  `date` int(11) NOT NULL DEFAULT 0,
  `textvariable` mediumtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `link` mediumtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` mediumtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `allowed` mediumtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `eventid` int(11) NOT NULL DEFAULT 0,
  `on` smallint(4) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_menu`
--

CREATE TABLE `smf_tp_menu` (
  `id` int(11) NOT NULL,
  `name` tinytext DEFAULT NULL,
  `type` tinytext DEFAULT NULL,
  `link` tinytext DEFAULT NULL,
  `parent` tinytext DEFAULT NULL,
  `permissions` mediumtext DEFAULT NULL,
  `enabled` smallint(4) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_settings`
--

CREATE TABLE `smf_tp_settings` (
  `id` mediumint(9) NOT NULL,
  `name` text DEFAULT NULL,
  `value` text DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_shoutbox`
--

CREATE TABLE `smf_tp_shoutbox` (
  `id` int(11) NOT NULL,
  `content` text DEFAULT NULL,
  `time` text DEFAULT NULL,
  `member_link` text DEFAULT NULL,
  `type` tinytext DEFAULT NULL,
  `member_ip` text DEFAULT NULL,
  `member_id` int(11) NOT NULL DEFAULT -2,
  `edit` smallint(4) NOT NULL DEFAULT 0,
  `shoutbox_id` int(3) NOT NULL DEFAULT 1
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

-- --------------------------------------------------------

--
-- Table structure for table `smf_tp_variables`
--

CREATE TABLE `smf_tp_variables` (
  `id` int(11) NOT NULL,
  `value1` text DEFAULT NULL,
  `value2` text DEFAULT NULL,
  `value3` text DEFAULT NULL,
  `type` tinytext DEFAULT NULL,
  `value4` text DEFAULT NULL,
  `value5` int(11) NOT NULL DEFAULT -2,
  `subtype` tinytext DEFAULT NULL,
  `value7` text DEFAULT NULL,
  `value8` text DEFAULT NULL,
  `subtype2` int(11) NOT NULL DEFAULT 0,
  `value9` text DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `smf_tp_articles`
--
ALTER TABLE `smf_tp_articles`
  ADD PRIMARY KEY (`id`);
ALTER TABLE `smf_tp_articles` ADD FULLTEXT KEY `search` (`subject`,`body`);
ALTER TABLE `smf_tp_articles` ADD FULLTEXT KEY `search_subject` (`subject`);
ALTER TABLE `smf_tp_articles` ADD FULLTEXT KEY `search_body` (`body`);

--
-- Indexes for table `smf_tp_blocks`
--
ALTER TABLE `smf_tp_blocks`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_comments`
--
ALTER TABLE `smf_tp_comments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_data`
--
ALTER TABLE `smf_tp_data`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_dldata`
--
ALTER TABLE `smf_tp_dldata`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_dlmanager`
--
ALTER TABLE `smf_tp_dlmanager`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_events`
--
ALTER TABLE `smf_tp_events`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_menu`
--
ALTER TABLE `smf_tp_menu`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_settings`
--
ALTER TABLE `smf_tp_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_shoutbox`
--
ALTER TABLE `smf_tp_shoutbox`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `smf_tp_variables`
--
ALTER TABLE `smf_tp_variables`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `smf_tp_articles`
--
ALTER TABLE `smf_tp_articles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_blocks`
--
ALTER TABLE `smf_tp_blocks`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_comments`
--
ALTER TABLE `smf_tp_comments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_data`
--
ALTER TABLE `smf_tp_data`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_dldata`
--
ALTER TABLE `smf_tp_dldata`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_dlmanager`
--
ALTER TABLE `smf_tp_dlmanager`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_events`
--
ALTER TABLE `smf_tp_events`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_menu`
--
ALTER TABLE `smf_tp_menu`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_settings`
--
ALTER TABLE `smf_tp_settings`
  MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_shoutbox`
--
ALTER TABLE `smf_tp_shoutbox`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `smf_tp_variables`
--
ALTER TABLE `smf_tp_variables`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Title: Re: TinyPortal
Post by: tinoest on February 04, 2022, 07:08:14 AM
Thanks for the export, that's the latest structure so the issue isn't there.

Quote from: ssduser on February 03, 2022, 10:41:24 AMCould you elaborate on why TinyPortal would think that SMF isn't installed? I'm sure the amount of issues that could cause this are vast, but do you have any suggestions on what to check first?


It will only throw the hacking error if
SMF isn't defined. Which suggests the path to get to it isn't right. Which doesn't make much sense if I'm honest. I only saw it once in testing when I royally broke my test forum and had to just do a major update to correct.
Title: Re: TinyPortal
Post by: ssduser on February 04, 2022, 09:56:27 AM
Quote from: tinoest on February 04, 2022, 07:08:14 AMI only saw it once in testing when I royally broke my test forum and had to just do a major update to correct.

Okay, so does that mean I'd need to go scorched earth? I'm wondering how this even could happen.
Title: Re: TinyPortal
Post by: ssduser on February 04, 2022, 11:01:59 AM
After more digging I found that TPortal_init() was never in my index.php file for my forum. I added it to my index file, and now it breaks my homepage, but it shows up correctly if I'm anywhere else.
Title: Re: TinyPortal
Post by: tinoest on February 04, 2022, 11:10:35 AM
Quote from: ssduser on February 04, 2022, 11:01:59 AMAfter more digging I found that TPortal_init() was never in my index.php file for my forum. I added it to my index file, and now it breaks my homepage, but it shows up correctly if I'm anywhere else.

If that was the case it sounds like your files and filesystem is read only, which is why the SMF installer failed to create the files and update the existing onces correctly.
Title: Re: TinyPortal
Post by: ssduser on February 04, 2022, 11:42:13 AM
Quote from: tinoest on February 04, 2022, 11:10:35 AMsounds like your files and filesystem is read only

Okay, yeah. I looked at some of the TP files and saw that they were in fact read only in my system, but everything else was read/write. So, would you suggest uninstalling TP, and then making my filesystem read/write, and then try installing again? Or could I do some manual changes (like adding TPortal_init() in my index.php file) around my system?

Weird the installer wouldn't catch that, but it would make sense because when I would install TP, it would just create all the files, but nothing was written in them.
Title: Re: TinyPortal
Post by: ssduser on February 04, 2022, 03:41:33 PM
I resolved my issue by

tldr: manually installing the package

   Check TPAdmin.php after install, if its size is 0 bytes, there's potentially a permissions issue; check host, mine is an AWS Bitnami installation


If you have access to your Apache/Nginx/server's error log, it will be very helpful to diagnose what the issue is. My error log has about 2k recurring errors regarding a call to undefined function TinyPortal\\TPcheckAdminAreas(). This helped me understand that there was something wrong with the core files because they were trying to make a call to something that was there in a file on the server, but wasn't being instantiated in some capacity. Thats when I decided to take a look at some files in my Sources folder and see if there wasn't code that should have been injected where it wasn't.
Title: Re: TinyPortal
Post by: rcane on February 12, 2022, 01:59:20 PM
installed 2.2.0 and although it shows all the settings and options, the main page of the forums errors out and won't load when trying to refresh that page.

I'm on 2.0.19 SMF; perhaps I grabbed the wrong download?
Title: Re: TinyPortal
Post by: tinoest on February 12, 2022, 02:04:23 PM
Quote from: rcane on February 12, 2022, 01:59:20 PMinstalled 2.2.0 and although it shows all the settings and options, the main page of the forums errors out and won't load when trying to refresh that page.

I'm on 2.0.19 SMF; perhaps I grabbed the wrong download?

If you go to the admin section and manage blocks and disable the shoutbox block does this still occur?
Title: Re: TinyPortal
Post by: rcane on February 12, 2022, 02:08:24 PM
Quote from: tinoest on February 12, 2022, 02:04:23 PM
Quote from: rcane on February 12, 2022, 01:59:20 PMinstalled 2.2.0 and although it shows all the settings and options, the main page of the forums errors out and won't load when trying to refresh that page.

I'm on 2.0.19 SMF; perhaps I grabbed the wrong download?

If you go to the admin section and manage blocks and disable the shoutbox block does this still occur?

Yep, that did it.

Does this mean I can't use shoutbox?
Title: Re: TinyPortal
Post by: tinoest on February 12, 2022, 02:10:42 PM
Quote from: rcane on February 12, 2022, 02:08:24 PM
Quote from: tinoest on February 12, 2022, 02:04:23 PM
Quote from: rcane on February 12, 2022, 01:59:20 PMinstalled 2.2.0 and although it shows all the settings and options, the main page of the forums errors out and won't load when trying to refresh that page.

I'm on 2.0.19 SMF; perhaps I grabbed the wrong download?

If you go to the admin section and manage blocks and disable the shoutbox block does this still occur?

Yep, that did it.

Does this mean I can't use shoutbox?

I think if you save it again now, it will work ok.

There is a bug in the install process which breaks until you disable/enable the shoutbox. There will be a minor point release to fix this, once we make sure we've not broken anything else.
Title: Re: TinyPortal
Post by: rcane on February 12, 2022, 02:16:39 PM
Thanks for the quick answer/reply.

I'm going to experiment with some php code in a block.  The site isn't open for users yet so it's just me.  If I have a someFile.php on server, what's the smartest way to make a block and implement it?  I ask because TP doesn't appear to be responsive on the theme I'm using (ant's mutant)
Title: Re: TinyPortal
Post by: tinoest on February 12, 2022, 02:21:36 PM
Quote from: rcane on February 12, 2022, 02:16:39 PMThanks for the quick answer/reply.

I'm going to experiment with some php code in a block.  The site isn't open for users yet so it's just me.  If I have a someFile.php on server, what's the smartest way to make a block and implement it?  I ask because TP doesn't appear to be responsive on the theme I'm using (ant's mutant)

Make sure the box isn't checked for non response themes in the Settings page, otherwise TinyPortal should be responsive.

What is the contents of the someFile.php? You can either require it and load what you want that way, or just have the contents of it in a php block.
Title: Re: TinyPortal
Post by: rcane on February 12, 2022, 02:24:03 PM
Quote from: tinoest on February 12, 2022, 02:21:36 PM
Quote from: rcane on February 12, 2022, 02:16:39 PMThanks for the quick answer/reply.

I'm going to experiment with some php code in a block.  The site isn't open for users yet so it's just me.  If I have a someFile.php on server, what's the smartest way to make a block and implement it?  I ask because TP doesn't appear to be responsive on the theme I'm using (ant's mutant)

Make sure the box isn't checked for non response themes in the Settings page, otherwise TinyPortal should be responsive.

What is the contents of the someFile.php? You can either require it and load what you want that way, or just have the contents of it in a php block.

It's some code I was helped with.  I'm dumping PDF docs into a folder and want to show the most current one only with a stock image to click. 

I think it might work in the body window.  Does it require the <? php    ?> or does the body presume that and not require it?
Title: Re: TinyPortal
Post by: tinoest on February 13, 2022, 08:53:18 AM
Quote from: rcane on February 12, 2022, 02:24:03 PMI think it might work in the body window.  Does it require the <? php    ?> or does the body presume that and not require it?

You don't need the <?php ?> tags.
Title: Re: TinyPortal
Post by: gevv on February 14, 2022, 10:27:40 AM
Hi,

@lurkalot    Error log occurs on every page refresh.

Smf 2.1.1
Tinyportal 2.2.0
Php 7.4

Sources/TPBlock.php (line 92)

Use of undefined constant TP_BLOCK_SITEMAP - assumed 'TP_BLOCK_SITEMAP' (this will throw an Error in a future version of PHP)




    #0: smf_error_handler()
    Sources/TPBlock.php on line 92
    #1: getBlocks()
    Sources/Subs.php on line 5779
    #2: call_integration_hook()
    Sources/TPortal.php on line 175
    #3: TPortal_init()
    TinyPortal/Integrate.php on line 809
    #4: hookPreLogStats()
    Sources/Subs.php on line 5779
    #5: call_integration_hook()
    index.php on line 272
    #6: smf_main()
    index.php on line 199





Sources/TPBlock.php (line 86)

Use of undefined constant TP_BLOCK_ARTICLEBOX - assumed 'TP_BLOCK_ARTICLEBOX' (this will throw an Error in a future version of PHP)



    #0: smf_error_handler()
    Sources/TPBlock.php on line 86
    #1: getBlocks()
    Sources/Subs.php on line 5779
    #2: call_integration_hook()
    Sources/TPortal.php on line 175
    #3: TPortal_init()
    TinyPortal/Integrate.php on line 809
    #4: hookPreLogStats()
    Sources/Subs.php on line 5779
    #5: call_integration_hook()
    index.php on line 272
    #6: smf_main()
    index.php on line 199
Title: Re: TinyPortal
Post by: @rjen on February 14, 2022, 10:54:13 AM
Clean install or upgrade ?

Not having any such issues...

Title: Re: TinyPortal
Post by: bienquangcao on February 15, 2022, 02:08:35 PM
I run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.
Title: Re: TinyPortal
Post by: gevv on February 15, 2022, 02:39:59 PM
Quote from: @rjen on February 14, 2022, 10:54:13 AMClean install or upgrade ?

Not having any such issues...



Clean install

Quote from: bienquangcao on February 15, 2022, 02:08:35 PMI run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.

i had the same problem
Title: Re: TinyPortal
Post by: @rjen on February 15, 2022, 03:14:14 PM
Quote from: bienquangcao on February 15, 2022, 02:08:35 PMI run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.

That bug is in TP version 2.2.0 only. Version 2.2.1 was released yesterday to fix that. Please do NOT use version 2.2.0 anymore....
Title: Re: TinyPortal
Post by: @rjen on February 15, 2022, 03:16:52 PM
TinyPortal 2.2.1 can be used on SMF 2.0 and 2.1

Minimum required PHP version : 7.0.0
Highest supported PHP version (tested): 8.1.1

Changelog:
This release includes the following changes relevant to SMF 2.0 and 2.1:

Bugfixes:
- fix for shoutbox block causing too many redirects on a new install
- fix for download announcement topic assigned to guest
- restored PHP support for PHP 7.0 and 7.1

Note:
when updating from TinyPortal versions older than 2.1.0, recent topics blocks are enhanced with a new block setting: "Characters to display in titles". Due to this change any pre-existing recent topics blocks 'may' have a changed title length after installing the new version of TP. Please check these blocks and adjust the block setting "Characters to display in titles" to the desired length...
Title: Re: TinyPortal
Post by: Steve on February 20, 2022, 07:45:35 PM
So what is the latest version that will work with PHP 5.6 and SMF 2.0.19?
Title: Re: TinyPortal
Post by: tinoest on February 20, 2022, 08:00:48 PM
Quote from: Steve on February 20, 2022, 07:45:35 PMSo what is the latest version that will work with PHP 5.6 and SMF 2.0.19?

https://github.com/Tinyportal/TinyPortal/releases/tag/v2.0.1
Title: Re: TinyPortal
Post by: Steve on February 20, 2022, 08:44:52 PM
Thanks for that! :)
Title: Re: TinyPortal
Post by: landyvlad on February 20, 2022, 08:57:31 PM
Quote from: Steve on February 20, 2022, 07:45:35 PMSo what is the latest version that will work with PHP 5.6 and SMF 2.0.19?

Just as an aside - why are you running PHP5.6? That's WAY old.
Title: Re: TinyPortal
Post by: Steve on February 20, 2022, 09:46:34 PM
I know ... the hosting system I'm on goes to 7.0 but one of the mods I MUST have only works with 5.6 or below.   :-[
Title: Re: TinyPortal
Post by: landyvlad on February 20, 2022, 09:59:38 PM
Wow. OK well you KNOW that mod will likely never be updated if it's still that old, and it will come to a point where SMF won't support 5.6 in future (and probably sooner that most mods won't) so you may really nee to reevaluate the MUST part. :)   

Which mod out of interest?
Title: Re: TinyPortal
Post by: Oldiesmann on February 20, 2022, 10:26:49 PM
Also time to find a better host if they don't offer anything newer than 7.0
Title: Re: TinyPortal
Post by: Arantor on February 21, 2022, 03:49:47 AM
Or find someone to update said mod.
Title: Re: TinyPortal
Post by: @rjen on February 21, 2022, 12:03:36 PM
Not a question to TinyPortal, but one FROM TinyPortal..

trying to trace down a specifically hard to find css issue. Hoping that one of the css experts from SMF can help me find this one.

Issue:
on SMF2.1.x with TinyPortal (version 2.2.1) installed I find that on mobile screens the board-index will not fit when the Quick moderation is set to "checkboxes"

I tracked it down to the element with the ID quick_actions: this contains a few element that are using flex css.

Here is the issue: on a clean SMF install this works fine on small screens. With TP installed this element will not fit on small screen anymore.
I have been trying to get to the bottom, and it has something to do with the flex settings. But I cannot find WHAT...

any clues?

 
Title: Re: TinyPortal
Post by: @rjen on February 22, 2022, 03:24:07 AM
Anyone with above average css understanding who wants to check the issue? If so I can share a member access to the test forum...
Title: Re: TinyPortal
Post by: marcosbr on March 08, 2022, 02:44:43 PM
Two bugs that bothered me about TinyPortal. I always ignored them and today I decided to look for them.

Themes/default/css/tp-style.css

Find:
max-height: 300 px;Replace:
max-height: 300px;

Find:
6px 0 0 0; !important;Replace:
6px 0 0 0 !important;

Old validation error:
Title: Re: TinyPortal
Post by: @rjen on March 08, 2022, 03:15:55 PM
Thanks for the report. I'll check it...
Title: Re: TinyPortal
Post by: @rjen on March 08, 2022, 04:49:53 PM
Quote from: marcosbr on March 08, 2022, 02:44:43 PMTwo bugs that bothered me about TinyPortal. I always ignored them and today I decided to look for them.

Themes/default/css/tp-style.css

Find:
max-height: 300 px;Replace:
max-height: 300px;

Find:
6px 0 0 0; !important;Replace:
6px 0 0 0 !important;

Old validation error:

Corrected for the next TP version
Title: Re: TinyPortal
Post by: aaronhall on March 12, 2022, 01:23:59 PM
Okay, I am lost at how to install a Mod or a hook for SMF 2.1.

How do I do it? The documentation I found didn't really explain to where I understood it.
Title: Re: TinyPortal
Post by: @rjen on March 12, 2022, 01:50:47 PM
Install a hook? What are you trying to do exactly?
Title: Re: TinyPortal
Post by: Doug Heffernan on March 12, 2022, 05:43:06 PM
Quote from: aaronhall on March 12, 2022, 01:23:59 PMOkay, I am lost at how to install a Mod or a hook for SMF 2.1.

How do I do it? The documentation I found didn't really explain to where I understood it.

You do not install a hook. A mod is installed through the Package Manager.

Can you link to the documentation that you found which did not really explain it btw?

 
Title: Re: TinyPortal
Post by: Oldiesmann on March 12, 2022, 05:53:11 PM
Hooks are added in one of two ways - either via package-info.xml (via the <hook> element) or via the add_integration_function call (included in a PHP file that's run when installing the mod).
Title: Re: TinyPortal
Post by: Sir Osis of Liver on April 14, 2022, 05:54:14 PM
Here's a strange one -

https://www.simplemachines.org/community/index.php?topic=581843.msg4120250#msg4120250

Working now without TP.  Any ideas?
Title: Re: TinyPortal
Post by: @rjen on April 15, 2022, 12:15:05 AM
There was an issue with 2.2.0 related to the shoutbox being installed with a missing parameter: this is fixed in 2.2.1.

But once installed the block parameter stays missing. To fix Go to the TinyPortal shoutbox block. Make sure to save the block setting (no change needed) and it will set the missing parameter in the database.

Then the problem will be fixed...
Title: Re: TinyPortal
Post by: @rjen on April 15, 2022, 12:17:36 AM
This bug...

Quote from: @rjen on February 15, 2022, 03:14:14 PM
Quote from: bienquangcao on February 15, 2022, 02:08:35 PMI run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.

That bug is in TP version 2.2.0 only. Version 2.2.1 was released yesterday to fix that. Please do NOT use version 2.2.0 anymore....
Title: Re: TinyPortal
Post by: Cookieswithcoffee on April 28, 2022, 06:02:37 AM
Question - while you're working to correct the bugs, can the previous version of this be posted or did it also have errors? I apologize if my question hovers in the area of ridiculous. I'm a newb ;)

Thanks!
Title: Re: TinyPortal
Post by: tinoest on April 28, 2022, 06:29:32 AM
Quote from: Cookieswithcoffee on April 28, 2022, 06:02:37 AMQuestion - while you're working to correct the bugs, can the previous version of this be posted or did it also have errors? I apologize if my question hovers in the area of ridiculous. I'm a newb ;)

Thanks!

Sorry previous version of what?

All previous versions are available on the TinyPortal website.

Or GitHub https://github.com/Tinyportal/TinyPortal/tags
Title: Re: TinyPortal
Post by: Cookieswithcoffee on April 28, 2022, 08:13:06 AM
Quote from: @rjen on April 15, 2022, 12:17:36 AMThis bug...
This is what I read that made me question the availability of versions.


Quote from: @rjen on February 15, 2022, 03:14:14 PM
Quote from: bienquangcao on February 15, 2022, 02:08:35 PMI run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.

That bug is in TP version 2.2.0 only. Version 2.2.1 was released yesterday to fix that. Please do NOT use version 2.2.0 anymore....

Title: Re: TinyPortal
Post by: tinoest on April 28, 2022, 03:08:21 PM
Quote from: Cookieswithcoffee on April 28, 2022, 08:13:06 AM
Quote from: @rjen on April 15, 2022, 12:17:36 AMThis bug...
This is what I read that made me question the availability of versions.


Quote from: @rjen on February 15, 2022, 03:14:14 PM
Quote from: bienquangcao on February 15, 2022, 02:08:35 PMI run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.

That bug is in TP version 2.2.0 only. Version 2.2.1 was released yesterday to fix that. Please do NOT use version 2.2.0 anymore....



I wouldn't use this version as it had bugs, one of which was fatal. The fixed version is available both on here and the TinyPortal website. So there isn't really a reason to download it.
Title: Re: TinyPortal
Post by: @rjen on April 28, 2022, 04:56:42 PM
No need to worry about what to download. All downloadable versions are ok and can be used. Latest version of TP has that bug fixed. Just use it. Version number is 2.2.1
Title: Re: TinyPortal
Post by: djkimmel on May 01, 2022, 04:39:24 PM
Today I updated a forum from 2.0.17 to 2.0.18 to 2.0.19. Then went from Tiny Portal 1.3 (uninstalled first) to 2.2.1. Forum and frontpage fail with too many redirects error in the browser. I cleared cookies and tried an incognito window. Ended up uninstalling new v2.2.1 and going down to v2.1.0. v2.1.0 is working though I had to reset a bunch of block and other settings to get things back to how they looked.

The front page was not displaying correctly before probably because I had upgraded a while back to PHP v7.3. It's a live site that doesn't get much traffic so not high on my priority list, but I use Tiny Portal elsewhere and concerned I will have the same error. (kentucky lake bass dot com)

Sounds like TP v2.2.1 was supposed to fix the too many redirects browser error (in Google Chrome), but I'm still having it and don't know why.
Title: Re: TinyPortal
Post by: @rjen on May 01, 2022, 04:49:01 PM
Not sure why you had the issue, but maybe it was because you came from a very old version.

The redirect issue was caused by changes to the shoutbox block. If you have the issue , please check all shoutbox blocks you have and make sure a shoutbox ID is set. Going to the block settings and saving should suffice: the block should then get the default shoutbox I'd: 1
Title: Re: TinyPortal
Post by: Cookieswithcoffee on May 04, 2022, 04:20:19 PM
I apologize if this is covered in the 156 pages but I think my brain is getting melty. How do I change the background color of the shoutbox to a dark theme? I saw it 2 days ago -praying that wasn't a dream or hallucination- and now I'm circling the drain.

I'm using the current version of TP (which I'm loving as I learn it). I'm new to all of this.

Thanks muchly!
Title: Re: TinyPortal
Post by: cookdandbombd on May 04, 2022, 07:09:23 PM
Just installed the latest version on the most up-to-date SMF, and it's just not displaying correctly for me when I'm logged in as an admin?

When I go into the forum listings, the page stretches out to the right.

If I read a thread it's fine, but when I go to quick edit I then again have the screen stretching way off the side of my phone. Any ideas?

(https://i.postimg.cc/SNV2ZD0j/IMG-20220505-000417.jpg)

(Ignore the black bar at the bottom, that's my browser.)

The portal posts don't display properly either, with the text all overwriting the avatars.

(https://i.postimg.cc/V6BLJkm5/IMG-20220505-001054.jpg)

Edit: I think the stretching forum pages in the first pic are caused by the moderation check boxes. Is there a way to turn them off or fix that?
Title: Re: TinyPortal
Post by: Shades. on May 04, 2022, 09:21:57 PM
Quote from: cookdandbombd on May 04, 2022, 07:09:23 PMEdit: I think the stretching forum pages in the first pic are caused by the moderation check boxes. Is there a way to turn them off or fix that?
Admin>Configuration>Themes and Layout>Member Options,  show quick-moderation as click on "don't show".
Title: Re: TinyPortal
Post by: Antechinus on May 04, 2022, 09:44:40 PM
Quote from: cookdandbombd on May 04, 2022, 07:09:23 PMIf I read a thread it's fine, but when I go to quick edit I then again have the screen stretching way off the side of my phone. Any ideas?
Have seen that before on RC versions. IIRC it was a bug with flex CSS, but was fixed before 2.1 went stable. Have you edited the default CSS at all?

QuoteEdit: I think the stretching forum pages in the first pic are caused by the moderation check boxes.
No, they aren't the problem. The default 2.1 theme is fine down to phone size with the checkboxes enabled. The problem is something else.
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 12:57:49 AM
It is a known glitch in TP on SMF2.1 when quick moderation is on. I have not been able to find an adequate fix.
I have even asked for tips from the SMF community here on the forum, but got no hints how to fix it.
https://www.simplemachines.org/community/index.php?topic=27642.msg4112522#msg4112522

Perhaps a css expert can suggest how to fix it?

This issue is only there for admins and moderators, since it is caused by the extra fields that show under the topics when users have permissions to move topics..

It is actually this issue with SMF curve which is enlarged by the TinyPortal divs encapsulating the forum content  : https://www.simplemachines.org/community/index.php?topic=581862.0

Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 01:17:43 AM
Ok, what size screen are we talking about? I see in the linked topic that 2.1 is only meant to support down to 320px wide (CSS px). The screenshot on page 156 of this thread is 1080 wide, and I have no idea of the DPR of the device it was taken on. So, need more information.
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 01:25:32 AM
In my forums it starts to happen at a width of less than 430 px.

My device is an Iphone 11, which has like 390px width..

2022-05-05_072145.jpg

It is caused by the elements in quick_actions...

2022-05-05_072405.jpg 
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 01:27:42 AM
Ok, I'll take a look. :)
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 01:29:29 AM
Appreciated.

if you need it I can give you access to a test forum where the issue can be replicated...

A bit more info: the content of the qaction field determines the min width. In Dutch language the issue is showing on wider screens because the text strings are longer
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 01:36:07 AM
I just installed the latest TP on 2.1 local. All default settings. It's fine at 375 (which is what Firefox responsive mode has as its "IPhone 11 Pro" preset).

ETA: Fine at 360 wide too (Galaxy S10/10+ preset). Now I'm wondering if the issue is an iOS/Safari issue rather than a width issue.
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 01:46:25 AM
Aha. Got it. Webkit issue (colour me surprised :P ). I can replicate it on Chrome at 360px wide. Digging now...
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 01:54:32 AM
Ok, easy one. Just revert all your display: table/table-row-group/table-caption/etc declarations on the main wrapper divs to a basic display: block; at the width where the issue kicks in. :)
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 02:30:50 AM
Ok, let me check. If I recall that's the heart of the responsive display atm, so that may not be as simple as it sounds...
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 02:48:29 AM
Yes I thought of that after I posted it. :D But there should be alternatives. One possibility is using flex, if it's stacking order you are concerned about. By the time the problem kicks in you shouldn't need anything fancy. Just a reliable order to stack things vertically.
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 02:58:26 AM
Yeah, having a look at it but it is what I thought.

This was built a few years ago not using flex, and the guy who did it moved on. I have been looking into rebuilding it, but the whole tabel/caption/header/footer approach is confusing me every time.

I would be looking at a simple fix for now overriding the behaviour at narrow screens, but even that puzzels me atm. If you have any tips on the how to do that without too much rebuilding of the tp-responsive css file I would really appreciate it...
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 03:08:26 AM
Ok, I'll take a look and see if I can think of anything useful.
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 04:25:36 AM
Ok, have taken a quick look. Obviously by the time you get into all the block arrangement possibilities within panels it's a little complex, but the panels themselves are straightforward.

Turns out he used grid for the blocks-in-grids option anyway (makes sense) so beats me why he didn't also use grid for the main panels. But you don't really even need grid. You can do it with flex.

Code (basics) Select
/* NOTE: Start by getting rid of these paragraphs, preferably from the template! */
/*
<p class="clearthefloat" style="padding:0px;margin:0px;"></p>
*/

/* Main parent div - does not need any CSS. */
.tp_responsive {}

/* Top panel - does not need any CSS. */
#tptopbarHeader {}

/* Main panel. */
#mainContainer {
display: flex;
}

/* 1st-child. */
#tpleftbarContainer {
flex: 0 0 auto;
order: 1;
}

/* 2nd-child. */
#tprightbarContainer {
flex: 0 0 auto;
order: 3;
}

/* 3rd-child. */
#centerContainer {
flex: 1 1 auto;
order: 2;
}

/* Bottom panel - does not need any CSS. */
#tpbottombarHeader {}

@media (min-width: 0px) and (max-width: 900px) {
#mainContainer {
flex-wrap: wrap;
}

/* @900px this goes to the bottom - side by side. */
#tpleftbarContainer {
flex: 0 0 auto;
order: 2;
/* Needs important to override the inline width style. */
width: 50%!important;
}

/* @900px this goes to the bottom - side by side. */
#tprightbarContainer {
flex: 0 0 auto;
order: 3;
/* Needs important to override the inline width style. */
width: 50%!important;
}

/* @900px this goes to the top. */
#centerContainer {
flex: 0 0 auto;
order: 1;
width: 100%;
}
}

@media (min-width: 0px) and (max-width: 500px) {
#mainContainer {
flex-direction: column;
}

/* @500px this goes to the bottom- stacked 1st. */
#tpleftbarContainer {
/* Needs important to override the inline width style. */
width: 100%!important;
}

/* @500px this goes to the bottom - stacked 2nd. */
#tprightbarContainer {
/* Needs important to override the inline width style. */
width: 100%!important;
}
}

That should work. Shouldn't need anything fancier. Mind you it's possible some browser/OS bug might bork it, but in principle that's simple and bulletproof.

Or you can do it with grid with, not much more code, but really grid is only useful for the intermediate stage between 500px and 900px. Outside that range flex is just as effective, and simpler.

ETA: Tested this. Easy. Works in FF and Chrome, right down to 360px wide. I have attached TP CSS files with the bits I commented out. I have not put the new code into those files yet. I just tested it in Stylus. :)

There is some crud in the files which I suspect is left over from earlier versions.
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 05:38:54 AM
Thanks, just got back home, so I can do some testing... will report back...
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 06:07:32 AM
NICE!

your .css fixes the issue reported, and solves my issue with the tables.
Will need to do some more testing and clean-up the css files, but I believe this can be part of the next TP version...

Really helpful!

By the way, with this fix I still believe there is a bug in SMF curve2.
https://www.simplemachines.org/community/index.php?topic=581862.0

See example: in Dutch the layout still is broken even @ 390 px wide (in Dutch). I will report that in the other post to the SMF team.

2022-05-05_120155.jpg .

Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 06:18:16 AM
Use shorter Dutch words. :D
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 06:22:52 AM
Possible, just not the recommended solution for forum software that is multi language. The strings are in the language files..
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 06:25:53 AM
Yes I know. I was joking. :D
Although there is always more than one way of phrasing anything in any language. And in the particular situation you'll either need to partially hide long words, or you'll need to break at least one of the inputs to a new line, or use shorter words. Not much else you can do.
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 06:32:59 AM
I would suggest that the three fields should not be on one line, but be pushed to separate lines in this case.

And I know it's a small thing only showing up in some cases, but it does show...
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 07:12:38 AM
Allright, needed one more addition to take into account the situation where only ONE side panel was showing...

Adding this fixed that too

   /* @900px the sidebars must be pushed to 100% if only one is active */
   .tp_responsive.leftpanelOn  #tpleftbarContainer,   
   .tp_responsive.rightpanelOn #tprightbarContainer {
      width: 100%!important;
   }

By the way, this comment:

Quote/* NOTE: Start by getting rid of these paragraphs, preferably from the template! */
/*
<p class="clearthefloat" style="padding:0px;margin:0px;"></p>
*/

I know we needed these in the past (due to SMF2.0 I think)... I know they are supposedly 'not needed' anymore. Is there a reason these may cause issues? I do not want to risk breaking stuff in SMF2.0 as long as we are still supporting it...
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 07:26:17 AM
Makes sense about the one sidebar. Didn't think to check that.

The paragraphs would have been to clear the floats when the sidebars were using floats. Not necessary with flex, and will only get in the way. :)
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 07:46:38 AM
Quote from: cookdandbombd on May 04, 2022, 07:09:23 PMJust installed the latest version on the most up-to-date SMF, and it's just not displaying correctly for me when I'm logged in as an admin?

When I go into the forum listings, the page stretches out to the right.

If I read a thread it's fine, but when I go to quick edit I then again have the screen stretching way off the side of my phone. Any ideas?

Ok, thanks to Antechinus I managed to create a permanent fix for this.

You did not mention what TinyPortal version you are using, so I assume it is the latest (TinyPortal version 2.2.1)
The fix will be in the next TP release, but if you want to fix it now you can upload attached css files to you /Themes/default/css folder and replace the files there.

After that remember to clear your browser cache to load the new css files...
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 07:49:06 AM
Quote from: cookdandbombd on May 04, 2022, 07:09:23 PMThe portal posts don't display properly either, with the text all overwriting the avatars.

(https://i.postimg.cc/V6BLJkm5/IMG-20220505-001054.jpg)

Edit: I think the stretching forum pages in the first pic are caused by the moderation check boxes. Is there a way to turn them off or fix that?

That does not happen to me, but it may be caused by changes made (by a MOD?) to the avatar settings.
Can you share a link to the forum where this is happening?
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 08:00:25 AM
Quote from: Cookieswithcoffee on May 04, 2022, 04:20:19 PMI apologize if this is covered in the 156 pages but I think my brain is getting melty. How do I change the background color of the shoutbox to a dark theme? I saw it 2 days ago -praying that wasn't a dream or hallucination- and now I'm circling the drain.

I'm using the current version of TP (which I'm loving as I learn it). I'm new to all of this.

Thanks muchly!

That's dependent on what Shoutbox layout you have selected.

For layout 1 (the bubbles) you change the bubble color in the css file: tp-shout.css

For layouts 3 and 4 there are settings under TinyPortal > Manage TPshout > Settings
These Shoutbox Color settings allow you to choose the background colors for odd and even lines

An image says more than a 1000 words: can you shae a picture of the shoutbox you want to change?
Title: Re: TinyPortal
Post by: Cookieswithcoffee on May 05, 2022, 09:52:03 AM
Thanks for the response! I played with settings 3 and 4 and have achieved visual bliss!! Thank you!!
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 10:36:17 AM
@Antechinus , would you have a minute to check the board index page here: https://test.fjr-club.nl/index.php?action=forum ?

With all changes all pages behave as they should, except this one. For some reason the sidebars and main content section extend past the screen @ screen widths from 900px till about 1400px.

I must be missing something, but not seeing the why...
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 11:03:22 AM
Ok, try this:
#centerContainer {max-width: calc(100% - 460px);}
That should be bulletproof, but you'd need a way of setting it as a inline style, so it can take account of the sidebar width settings. So in practice it'd be like:
<div id="centerContainer" style="max-width: calc(100% - $1px - $2px)"> etc...
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 11:09:29 AM
But why does it need this ONLY on the board index and not on any other page?
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 11:11:29 AM
No idea at the moment. That would require actual analysis.
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 11:12:27 AM
I'll keep digging...
Title: Re: TinyPortal
Post by: cookdandbombd on May 05, 2022, 12:18:52 PM
Quote from: @rjen on May 05, 2022, 07:49:06 AM
Quote from: cookdandbombd on May 04, 2022, 07:09:23 PMThe portal posts don't display properly either, with the text all overwriting the avatars.

(https://i.postimg.cc/V6BLJkm5/IMG-20220505-001054.jpg)

Edit: I think the stretching forum pages in the first pic are caused by the moderation check boxes. Is there a way to turn them off or fix that?

That does not happen to me, but it may be caused by changes made (by a MOD?) to the avatar settings.
Can you share a link to the forum where this is happening?

Sure, https://www.cookdandbombd.co.uk/forums/index.php

I took off the avatar mod as it was causing other issues, so it was uninstalled before TP was installed.

I may have made some edits to the original CSS though, I can't remember for sure. Might try uploading the originals now.

@Antechinus thanks for your help with the other issue!
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 01:36:36 PM
Quote from: Antechinus on May 05, 2022, 11:11:29 AMNo idea at the moment. That would require actual analysis.

Ok, finished the analysis and found the cause. It is actually a css change I made from your suggestions to change the display for child boards  ;)

I had included this css to show the child boards in 4 columns.

/* -------------------- */
/* Changes to display child boards in columns */
.children {
order: 5;
width: 100%;
margin: 0;
padding: 5px 5px 5px 80px;
border: 0;
border-top: 1px solid #ddd;
}
.up_contain:first-child .children {
padding-top: 8px;
}
[id^="board_"][id$="_children"] > p {
column-count: 4;
}
[id^="board_"][id$="_children"] > p > span {
display: block;
overflow: hidden;
padding: 0 5px 0 0;
white-space: nowrap;
text-overflow: ellipsis;
}
[id^="board_"][id$="_children"] span::after {
content: '';
}

@media screen and (max-width: 900px) {
[id^="board_"][id$="_children"] > p {
column-count: 2;
}
}
@media screen and (max-width: 720px) {
.children {
padding: 5px;
}
[id^="board_"][id$="_children"] > p {
column-count: 1;
}
[id^="board_"][id$="_children"] > p > span {
padding: 2px 5px 2px 0;
}
}
/* Changes to display child boards in columns */

This was working fine when TP was using the table display, but now with flex it pushes the main container wide because as it seems the text wrapping is no longer happening...

    white-space: nowrap;
    text-overflow: ellipsis;

Any idea why the 'wrap-in-flex' does not work?
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 02:40:35 PM
Quote from: cookdandbombd on May 05, 2022, 12:18:52 PM
Quote from: @rjen on May 05, 2022, 07:49:06 AMThat does not happen to me, but it may be caused by changes made (by a MOD?) to the avatar settings.
Can you share a link to the forum where this is happening?

Sure, https://www.cookdandbombd.co.uk/forums/index.php

I took off the avatar mod as it was causing other issues, so it was uninstalled before TP was installed.

I may have made some edits to the original CSS though, I can't remember for sure. Might try uploading the originals now.


You have an inline style in your template that overrules the tinyportal css.
Not sure why it is in there but I am sure it is not from TinyPortal. 
Remove that style to fix the issue...

2022-05-05_203810.jpg
Title: Re: TinyPortal
Post by: cookdandbombd on May 05, 2022, 02:44:42 PM
Quote from: @rjen on May 05, 2022, 02:40:35 PMYou have an inline style in your template that overrules the tinyportal css.
Not sure why it is in there but I am sure it is not from TinyPortal. 
Remove that style to fix the issue...

2022-05-05_203810.jpg

Thank you! Must be from my useless attempts at getting avatars on mobile.

The other main problem I have now is the breadcrumbs, people are having issues getting back to the forum instead of the portal page.

At the top where it has "site name > forums > subforum name" clicking forum takes you to the portal rather than back to the forum index.
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 02:51:14 PM
Somehow the forum link in the breadcrumb is broken..

2022-05-05_204709.jpg

The link displayed is incorrect.
where is states: https://www.cookdandbombd.co.uk/forums/index.php#c2

the link is supposed to state: https://www.cookdandbombd.co.uk/forums/index.php?action=forum

I have no clue what causes that, but my first suggestion would be to uninstall TinyPortal and install it again..
Have you tried any more manual changes?
Title: Re: TinyPortal
Post by: cookdandbombd on May 05, 2022, 03:49:48 PM
Quote from: @rjen on May 05, 2022, 02:51:14 PMSomehow the forum link in the breadcrumb is broken..

2022-05-05_204709.jpg

The link displayed is incorrect.
where is states: https://www.cookdandbombd.co.uk/forums/index.php#c2

the link is supposed to state: https://www.cookdandbombd.co.uk/forums/index.php?action=forum

I have no clue what causes that, but my first suggestion would be to uninstall TinyPortal and install it again..
Have you tried any more manual changes?

Thanks again! No mate, not done any more changes that I can think of.

I'm just having quite a few issues these days with the software. I think the caching may be causing some of these issues.

Now it seems to be working, but has seemingly changed so that the breadcrumb trail (from within a subforum) has become:

Site name > forum > forums > subforum name

"Forum" links to index.php?action=forum and "forums" links to the same but with the #c2 at the end lol. It really doesn't seem both links should be there. I just added in "change forum width" mod so it could be that? Tiny Portal looks too squashed on curve with the default width.

Thank you for your continued help with this.
Title: Re: TinyPortal
Post by: @rjen on May 05, 2022, 04:07:55 PM
I am using the forum width mod myself, highly unlikely that it causes that
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 08:42:21 PM
Quote from: @rjen on May 05, 2022, 01:36:36 PMOk, finished the analysis and found the cause. It is actually a css change I made from your suggestions to change the display for child boards  ;)

I had included this css to show the child boards in 4 columns.

/* -------------------- */
/* Changes to display child boards in columns */
.children {
     order: 5;
     width: 100%;
     margin: 0;
     padding: 5px 5px 5px 80px;
     border: 0;
     border-top: 1px solid #ddd;
}
.up_contain:first-child .children {
     padding-top: 8px;
}
[id^="board_"][id$="_children"] > p {
     column-count: 4;
}
[id^="board_"][id$="_children"] > p > span {
     display: block;
     overflow: hidden;
     padding: 0 5px 0 0;
     white-space: nowrap;
     text-overflow: ellipsis;
}
[id^="board_"][id$="_children"] span::after {
     content: '';
}

@media screen and (max-width: 900px) {
[id^="board_"][id$="_children"] > p {
     column-count: 2;
    }
}
@media screen and (max-width: 720px) {
.children {
     padding: 5px;
}
[id^="board_"][id$="_children"] > p {
     column-count: 1;
    }
[id^="board_"][id$="_children"] > p > span {
     padding: 2px 5px 2px 0;
}
}
/* Changes to display child boards in columns */

This was working fine when TP was using the table display, but now with flex it pushes the main container wide because as it seems the text wrapping is no longer happening...

    white-space: nowrap;
    text-overflow: ellipsis;

Any idea why the 'wrap-in-flex' does not work?
Yup. That requires the width: 100%; on .children to work (flex and grid can be weird with overflow). But I notice your test site is back to standard board index CSS and the problem is still there, although to a lesser extent.

If I add this to the CSS in dev tools, everything works:
#centerContainer {
  flex: 1 1 auto;
  order: 2;
  max-width: calc(100% - 460px);
}

So, the best way to nail this issue at the source is to find this in TPBlockLayout.template.php:
echo '
<div id="centerContainer">

Now, side issue: there is no apparent need for clear: both; on a lot of divs in this template. I have no idea why it's there. They are all just bog standard divs, sitting in a parent container that has nothing odd applied to it. They will automatically stack down the page. The clear: both; does no harm, but does no good either.

ETA: Just thought, it may have been due to your <div class="tp_upshrink20"> having floated icons inside it. In that case, just add overflow: hidden; to <div class="tp_upshrink20"> (either as an inline style, or in the CSS).

So you can do this, to prevent an empty style attribute being echoed in some places:

echo '
<div class="'. $sideclass .' '. $respClass .'">';
if(!empty($context['TPortal']['upshrinkpanel']) && (!TP_SMF21))
echo '
<div class="tp_upshrink20">', $context['TPortal']['upshrinkpanel'] , '</div>';

if($context['TPortal']['toppanel']==1)
echo '
<div id="tptopbarHeader"' , in_array('tptopbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
' , TPortal_panel('top') , '
</div>';

echo '
<div id="mainContainer">';

// TinyPortal integrated bars
if($context['TPortal']['leftpanel']==1) {
echo '
<div id="tpleftbarContainer" style="width:' , ($context['TPortal']['leftbar_width']) , 'px; ' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >
<div id="tpleftbarHeader"' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
' , $context['TPortal']['useroundframepanels']==1 ?
'<span class="upperframe"><span></span></span>
<div class="roundframe" style="overflow: auto;">' : ''
, TPortal_panel('left') ,
$context['TPortal']['useroundframepanels']==1 ?
'</div>
<span class="lowerframe"><span></span></span>' : '' , '
</div>
</div>';
}
// TinyPortal integrated bars
if($context['TPortal']['rightpanel']==1)
{
echo '
<div id="tprightbarContainer" style="width:' ,$context['TPortal']['rightbar_width'], 'px;' , in_array('tprightbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >
<div id="tprightbarHeader"' , in_array('tprightbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
' , $context['TPortal']['useroundframepanels']==1 ?
'<span class="upperframe"><span></span></span>
<div class="roundframe">' : ''
, TPortal_panel('right') ,
$context['TPortal']['useroundframepanels']==1 ?
'</div>
<span class="lowerframe"><span></span></span>' : '' , '
</div>
</div>';
}
echo '
<div id="centerContainer" style="max-width: calc(100%', $context['TPortal']['leftpanel']==1 ? ' - ' . $context['TPortal']['leftbar_width'] . 'px' : '','', $context['TPortal']['rightpanel']==1 ? ' - ' .  $context['TPortal']['rightbar_width'] . 'px' : '' ,')">
<div id="tpcontentHeader">';

if($context['TPortal']['centerpanel']==1) {
echo '
<div id="tpcenterbarHeader"' , in_array('tpcenterbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
' , TPortal_panel('center') , '
</div>';
    }
echo '
                </div><!--tpcontentHeader-->';
}

function template_tp_below()
{
global $context;

if($context['TPortal']['lowerpanel']==1)
echo '
<div id="tplowerbarHeader"' , in_array('tplowerbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
' , TPortal_panel('lower') , '
</div>';
// end centerContainer
echo '
</div>';
// end mainContainer
echo '
</div>';

if($context['TPortal']['bottompanel']==1)
echo '
<div id="tpbottombarHeader"', in_array('tpbottombarHeader', $context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
', TPortal_panel('bottom') , '
</div>';

echo '
</div>';
}

That should work, as long as $context['TPortal']['leftpanel']==1 and $context['TPortal']['rightpanel']==1 are applied individually for each page, that may or may not have the sidebar displayed (which I assume is the case).

I'm pretty sure I have the logic correct there, but double check anyway. This should be a bulletproof solution. I've attached an edited copy of the template.
Title: Re: TinyPortal
Post by: Antechinus on May 05, 2022, 10:39:25 PM
Oh hang on, wrong logic (just made the mistake of thinking I should actually check it on local :P ).

This seems to work:

    echo '
    <div class="'. $sideclass .' '. $respClass .'">';
    if(!empty($context['TPortal']['upshrinkpanel']) && (!TP_SMF21))
        echo '
        <div class="tp_upshrink20">', $context['TPortal']['upshrinkpanel'] , '</div>';

    if($context['TPortal']['toppanel']==1)
        echo '
        <div id="tptopbarHeader"' , in_array('tptopbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
            '    , TPortal_panel('top') , '
        </div>';

    echo '
        <div id="mainContainer">';

    // TinyPortal integrated bars
    if($context['TPortal']['leftpanel']==1) {
        echo '
            <div id="tpleftbarContainer" style="width:' , ($context['TPortal']['leftbar_width']) , 'px; ' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >
                <div id="tpleftbarHeader"' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
                    ' , $context['TPortal']['useroundframepanels']==1 ?
                    '<span class="upperframe"><span></span></span>
                    <div class="roundframe" style="overflow: auto;">' : ''
                    , TPortal_panel('left') ,
                    $context['TPortal']['useroundframepanels']==1 ?
                    '</div>
                    <span class="lowerframe"><span></span></span>' : '' , '
                </div>
            </div>';
    }
    // TinyPortal integrated bars
    if($context['TPortal']['rightpanel']==1)
    {
        echo '
            <div id="tprightbarContainer" style="width:' ,$context['TPortal']['rightbar_width'], 'px;' , in_array('tprightbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >
                <div id="tprightbarHeader"' , in_array('tprightbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
                    ' , $context['TPortal']['useroundframepanels']==1 ?
                    '<span class="upperframe"><span></span></span>
                    <div class="roundframe">' : ''
                        , TPortal_panel('right') ,
                        $context['TPortal']['useroundframepanels']==1 ?
                    '</div>
                    <span class="lowerframe"><span></span></span>' : '' , '
                </div>
            </div>';
    }

    echo'
            <div id="centerContainer" style="max-width: calc(100%', in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==0 ? ' - ' . $context['TPortal']['leftbar_width'] . 'px' : '','', in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==0 ? ' - ' .  $context['TPortal']['rightbar_width'] . 'px' : '' ,')">
                <div id="tpcontentHeader">';

    if($context['TPortal']['centerpanel']==1) {
        echo '
                    <div id="tpcenterbarHeader"' , in_array('tpcenterbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
                        ' , TPortal_panel('center') , '
                    </div>';
    }
    echo '
                </div><!--tpcontentHeader-->';
}

function template_tp_below()
{
    global $context;

    if($context['TPortal']['lowerpanel']==1)
        echo '
                <div id="tplowerbarHeader"' , in_array('tplowerbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
                    ' , TPortal_panel('lower') , '
                </div>';
// end centerContainer
    echo '
            </div>';
// end mainContainer
    echo '
        </div>';

    if($context['TPortal']['bottompanel']==1)
        echo '
        <div id="tpbottombarHeader"', in_array('tpbottombarHeader', $context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? ' style="display: none"' : '', '>
            ', TPortal_panel('bottom') , '
        </div>';

    echo '
    </div>';
}

New edited template attached. :)
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 04:35:38 AM
I tested the second version on local and it seemed to be fine. Width was correct with sidebars collapsed or expanded, and with sidebar enabled in the forum or disabled in the forum.

But if the logic sill needs tweaking that should be easy. Just a matter of bunging in the correct variable (and there must be one...).

IMO it is worth getting a solid fix for this, because then TP will be able to handle custom themes without breaking. If it can only handle default markup and CSS then it's far more restrictive.
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 04:36:17 AM
Eh. @rjen Where did your post go?
Title: Re: TinyPortal
Post by: @rjen on May 06, 2022, 04:58:30 AM
Agreed, still looking into this, but it needs some more thought and time: there are so many variables at play outside the board index that need to be taken into consideration.

What bothers me most is that it works fine in every other section and page of the forum without the need to set this calculated max-width. It seems that there must be a easier, more consistent approach to deal with this going forward...
Title: Re: TinyPortal
Post by: @rjen on May 06, 2022, 05:01:13 AM
Quote from: Antechinus on May 06, 2022, 04:36:17 AMEh. @rjen Where did your post go?
sorry, I posted and reread it only to find that I may not have the complete picture, so I deleted it. You were so quick to respond though...  :)

This was the message I deleted...

QuoteThanks again for your time and effort, but this also has some issues...

First: the check against the $context['tp_panels'] needs to be reversed: afaik the panel will only show in there if it is in fact deactivated...

Second: checking $context['TPortal']['showcollapse'] for the width calculation is not relevant: that variable only controls if the show / collapse icons are showing, not if the panel is actually collapsed itself

After changing the logic slightly it does work initially, but the collapse function will actually set the sidebars to display=none while not updating the context, so the width calculation will be off and result in white spaces left or right...

At this time I am going to adopt the changes for css and remove the redundant style="clear: both;" statements. The fancy css that I had put in to the board index for child boards may just no be supported in TinyPortal going forward. This seems to have a bit too much implications atm...
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 05:07:56 AM
Quote from: @rjen on May 06, 2022, 04:58:30 AMAgreed, still looking into this, but it needs some more thought and time: there are so many variables at play outside the board index that need to be taken into consideration.
Ok, but don't all areas rely on the same basic panels?

QuoteWhat bothers me most is that it works fine in every other section and page of the forum without the need to set this calculated max-width. It seems that there must be a easier, more consistent approach to deal with this going forward...
That's the case with the default theme, yes. But if any custom theme starts using flex or CSS columns on other pages you are likely to end up with similar issues, or simply if anyone modifies the default CSS on the board index.

So if the width issue is bulletproof to start with, less hassle down the track, because the portal will work with any custom theme or any modified version of the default.

ETA: And if there are child boards, any edits to board index CSS are likely to affect message index too.
Title: Re: TinyPortal
Post by: @rjen on May 06, 2022, 05:22:26 AM
Maybe we should stock with the table layout for panels after all...  :-\
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 05:30:50 AM
Ok suit yourself, but then you still have that webkit bug to find a solution to. Which, I suspect, is also going to rely on determining the correct max-width.
Title: Re: TinyPortal
Post by: @rjen on May 06, 2022, 06:01:04 AM
Plenty of stuff to figure out still with all the css options... mind you, I was not dismissing the flex option, just joking...

thanks for all your support so far.
It seems that this small bug brings a lot of additional options to play with...
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 06:07:38 AM
Lol. Ok, what is the variable that determines if a panel is shown or hidden? There must be one.

I know it's using cookie values too, but they don't appear to control the panel itself (I think they just change the +/- icons for the upshrinks).

This controls whether the panel is enabled, yes?

$context['TPortal']['leftpanel']==1
With ==0 being disabled?
Title: Re: TinyPortal
Post by: @rjen on May 06, 2022, 06:32:17 AM
These toggles are actually causing more issues than I thought.

On small screen the toggles icm with flex cause white spaces when one of the side panels is switched off (screen width smaller than 900px with both bars active). Meh...

Wether a panel is showing is a two-step approach.

First there is the $context['TPortal']['leftpanel'] and $context['TPortal']['rightpanel'] that determine if a panel is set to show on the page. If these are '1' the side panels are active

Secondly there is the context element $context['tp_panels'] that actually contains any panels that need to be suppressed because the user has set a toggle to suppress..

Thirdly the $context['TPortal']['showcollapse'] value indicates if the 'collapse' option is even active: if that is not then the second switch is igored...
Value 1 indicates that the user has the option to collapse panels

So the left panel will show for this condition:

$context['TPortal']['leftpanel']==1 && (!in_array('tpleftbarHeader',$context['tp_panels']) ||  $context['TPortal']['showcollapse']==0)




Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 06:40:24 AM
Quote from: @rjen on May 06, 2022, 06:32:17 AMFirst there is the $context['TPortal']['leftpanel'] and $context['TPortal']['rightpanel'] that determine if a panel is set to show on the page. If these are '1' the side panels are active.
Yup, thought so.

QuoteSecondly there is the context element $context['tp_panels'] that actually contains any panels that need to be suppressed because the user has set a toggle to suppress.
Aha. That's the bit I was chasing.

QuoteThirdly the $context['TPortal']['showcollapse'] value indicates if the 'collapse' option is even active: if that is not then the second switch is ignored.
Value 1 indicates that the user has the option to collapse panels.
Cool.

QuoteSo the left panel will show for this condition:

$context['TPortal']['leftpanel']==1 && (!in_array('tpleftbarHeader',$context['tp_panels']) ||  $context['TPortal']['showcollapse']==0)
Ok, so this should not be hard then. :) It just has to have that as the condition for a ternary, then it calls the panel width if that condition is true, and subtracts the panel width (or both panel widths, depending) from 100%. Easy.

I'll mess around with it tomorrrow.
Title: Re: TinyPortal
Post by: @rjen on May 06, 2022, 06:45:39 AM
Quote from: Antechinus on May 06, 2022, 06:40:24 AMOk, so this should not be hard then. :) It just has to have that as the condition for a ternary, then it calls the panel width if that condition is true, and subtracts the panel width (or both panel widths, depending) from 100%. Easy.

Probably we will also need to substract the margin values for left and right panel that are set in context too...
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 06:53:02 AM
Eh? You have margins? :P Awesomesauce. :P

This is going to end up being a gruesome ternary. Might make more sense to turn it all into a simple $thing output before the div tag, so the markup stays looking halfway sane. Otherwise anyone who wants to check it out will be chasing ternaries across country for miles.
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 07:01:16 AM
Hey hang on: what's up with this?

<div id="tprightbarContainer" style="width:' ,$context['TPortal']['rightbar_width'], 'px;' , in_array('tprightbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >
<div id="tprightbarHeader" style="' , in_array('tprightbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '">

If you're setting display: none; on the outer div, why do you need to declare it again on the inner div?

Both divs have exactly the same conditions set, so hiding the outer one will hide the inner one too. The current code makes no sense to me.
Title: Re: TinyPortal
Post by: @rjen on May 06, 2022, 07:06:44 AM
Not sure, there is a LOT of history in the TinyPortal code and templates.

I have been cleaning up and cleaning out for a while now, but there are still bits that need work...
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 07:08:40 AM
OK, probably leftovers then. I'll mess around with it tomorrow. :)
Title: Re: TinyPortal
Post by: @rjen on May 06, 2022, 10:06:43 AM
Quote from: @rjen on May 05, 2022, 07:46:38 AM
Quote from: cookdandbombd on May 04, 2022, 07:09:23 PMJust installed the latest version on the most up-to-date SMF, and it's just not displaying correctly for me when I'm logged in as an admin?

When I go into the forum listings, the page stretches out to the right.

If I read a thread it's fine, but when I go to quick edit I then again have the screen stretching way off the side of my phone. Any ideas?

Ok, thanks to Antechinus I managed to create a permanent fix for this.

You did not mention what TinyPortal version you are using, so I assume it is the latest (TinyPortal version 2.2.1)
The fix will be in the next TP release, but if you want to fix it now you can upload attached css files to you /Themes/default/css folder and replace the files there.

After that remember to clear your browser cache to load the new css files...

I need to come back on the css files I posted before. Though they work for most use cases there are still some inperfections with those files. I would like to request the moderators to delete these attachments from the referenced message please.

As a quick fix for this issue anyone who has a problems with the quick moderation actions on mobile: you can add this little piece of code to a css file to fix it.

/*Quick and dirty fix for quickactions */
@media screen and (max-width: 720px) {
#quick_actions > select[name="qaction"] {
    width: 80px;
}
}

Any css file in your theme should work, if you want it to be fixed for all themes you can add it to the empty tp-custom.css file you find in the folder:
/Themes/default/css
Title: Re: TinyPortal
Post by: Antechinus on May 06, 2022, 10:16:04 PM
Quote from: @rjen on May 06, 2022, 06:32:17 AMSo the left panel will show for this condition:

$context['TPortal']['leftpanel']==1 && (!in_array('tpleftbarHeader',$context['tp_panels']) ||  $context['TPortal']['showcollapse']==0)

Ok, I tried this. Doesn't seem to get me anywhere.
I made up a little test paragraph, to echo the output of test conditions:

echo '
<div id="mainContainer" style="clear: both;">';

echo '
<p style="padding:1em;font-weight:700">
Echo output of conditions:
Leftbar_test = ', $leftbar_test;
echo '
</p>';

// TinyPortal integrated bars
if($context['TPortal']['leftpanel']==1) {
echo '

Then I set up the test output, just before that, with the condition you gave:
$leftbar_test = ($context['TPortal']['leftpanel']==1 && (!in_array('tpleftbarHeader',$context['tp_panels']) ||  $context['TPortal']['showcollapse']==0)) ? $context['TPortal']['leftbar_width'] :'';
That echoes 200 when the left bar is enabled and not collapsed. So far, so good.

However, it also echoes 200 when the left bar is enabled and collapsed. Not so good. :D

So then I take a look at the conditions for displaying (or not) the bar by setting (or not) display: none; in the markup.
// TinyPortal integrated bars
if($context['TPortal']['leftpanel']==1) {
echo '
<div id="tpleftbarContainer" style="width:' , ($context['TPortal']['leftbar_width']) , 'px; ' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >

That boils down to:
($context['TPortal']['leftpanel']==1) && in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >
IOW, this should echo the left bar width when the bar is collapsed:
$leftbar_test = ($context['TPortal']['leftpanel']==1) && in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? $context['TPortal']['leftbar_width'] :'';
But, it doesn't. It echoes nothing, even though it is the same condition that sets display: none; when the bar is collapsed.

But, that only applies if you just collapse the left bar without doing anything else. If you refresh the page after collapsing the left bar (or after un-collapsing it), suddenly it behaves correctly: displays the width when bar is collapsed, and displays nothing when bar is not collapsed.

So the problem is not the logic. The problem is that the markup can't access it without refreshing the page. :P

So, on that basis I re-tested your original condition. Same result. It will echo what it is meant to echo, but it requires a page refresh to do it.

Which makes sense once you think about it, because the collapse is being handled by javascript, not directly from the db, so setting a defined width on the centre panel container is going to require javascript.
Title: Re: TinyPortal
Post by: @rjen on May 07, 2022, 02:11:53 AM
Makes sense.  :o

So to make it bullet proof I may have to Learn JavaScript.

That's not in my resume atm, but I can make a project out of it when I have a little more time...

It seems that using the display:table-cell may actually be in here to work around this, because that seems to automatically fill the width of the screen when one of the side bars is collapsed...

I keep learning everyday...
Title: Re: TinyPortal
Post by: Antechinus on May 07, 2022, 02:41:32 AM
Table-cell is probably worth exploring. It can give great results for some things (auto filling width, as you say) but IIRC (haven't used it for a while) it can also have odd overflow problems at times. Worth checking though, and easy enough to check.

I was thinking the existing arrangement is still more complicated than it needs to be. Really, the only place you need anything fancy is the container that holds the sidebars and the main board index. The rest is just ordinary divs, so is basic and easy

And the only time you need anything fancy is when the sidebars are sidebars. As soon as the screen gets narrow enough for them to stack underneath the board index, you can go straight to flex and call 100% width on your central div (that holds the board index).

So I really can't see any use for the display: table-caption/footer-group/whatever. I think that is all just confusing the issue, and things can be a fair bit simpler.

ETA: It would be good to have a pure CSS solution that didn't need javascript. Not that there's really anything wrong with js (sidebar show/hide relies on it anyway) but doing it with CSS should be less code to frig around with.
Title: Re: TinyPortal
Post by: @rjen on May 07, 2022, 02:50:26 AM
Guess you are right there. The problem with the varying width only applies to the side bars next to the middle panels (excluding top and bottom div)

It would also include changing the template though: because at this time all panels are in the main container.

Could leave the table-cell on the side panels somehow and change the main structure more to flex.

I must say, apart from the minor bug that started this investigation the display-table has (though somewhat complicated) proven to be pretty solid over the last years...
Title: Re: TinyPortal
Post by: Antechinus on May 07, 2022, 03:39:05 AM
Yes, it's annoying that there's only a tiny bug with Webkit/Blink/whatever.

I checked out display: table; on #mainContainer, with display: table-cell; #tpleftbarContainer, #tprightbarContainer, and #centerContainer and, as I suspected, it's still vulnerable to custom theming blowing it apart. It's still going to need a defined width on  #centerContainer to make it bulletproof, so it's not really going to solve anything.

But, since the default floats are fine above 900px (or wherever anyone chooses to set the break point) and since #centerContainer can have a max-width: 100%; on it on widths < 900px, it should be fine with flex at <900px.
Title: Re: TinyPortal
Post by: Antechinus on May 07, 2022, 04:15:01 AM
Hey this seems to be good in Firefox or Chrome, down to 360px wide, with the checkboxes selected, and with "too long for the box" content in the quick actions selects. And, it even handles the custom child boards in multiple columns, with hidden overflow. Unless you can find another hidden bug somewhere, I think this is the best option.

It's using the existing floats above 900px, so same behaviour as it has always had. It only brings in the new stuff where it needs it.
/* ------------------------------------------------------- */
/*    @TINY PORTAL
/* ------------------------------------------------------- */
@media (min-width: 0px) and (max-width: 900px) {
    #mainContainer {
        display: flex !important;
        flex-wrap: wrap;
        max-width: 100%;
    }
    #tpleftbarContainer {
        display: block !important;
        flex: 0 0 auto;
        order: 2;
        width: 50% !important;
    }
    #tprightbarContainer {
        display: block !important;
        flex: 0 0 auto;
        order: 3;
        width: 50% !important;
    }
    #centerContainer {
        display: block !important;
        flex: 1 1 auto;
        order: 1;
        width: 100% !important;
    }
}
@media (min-width: 0px) and (max-width: 500px) {
    #mainContainer {
        flex-direction: column;
    }
    #tpleftbarContainer, #tprightbarContainer, #centerContainer {
        width: 100% !important;
    }
}

Now, this is just a rough and brutal override on top of the default TP CSS. It can be simplified a bit once the old table-group-bananas-whatever is out of the way (less need of large hammers then). But, AFAICT, it works. :)
Title: Re: TinyPortal
Post by: Antechinus on May 07, 2022, 08:50:51 PM
@rjen - Try these when you get a chance. Seems to be fine for me.

TPortal.php was edited on Lines 2162 & 2163, just to get rid some unnecessary logic now that #tpleftbarContainer and  #tprightbarContainer are gone. I don't know why they were ever included, as the only other places they seem to have been mentioned are the markup in TPBlockLayout.template.php, and the CSS (tp-style and tp-responsive).

All other panels are just wrapped in a #******Header div, so the extra #******Container divs just for the sidebars seemed pointless. Figured I might as well make them consistent with the other panels, for less crud. Everything still works and still looks the same.

Kept the existing #tpleftbarHeader and #tprightbarHeader (as they relate to $context) and just swapped CSS over to them where required. Changed the logic a bit, so it just skips all the roundframe crud in one hit if it's not required, then tests for 2.1 if roundframe is required (can't see the point of echoing the spans in 2.1).

Doing it with brackets seemed more sensible than trying to cram it all into a gnarly ternary. :)

Apart from that it's just a basic CSS cleanup to make things behave.

However: I tested the .roundframe option on the left bar (it works) but I did notice that although the admin GUI allows selecting .roundframe on all panels, it does not in fact work on all panels due to the lack of the required logic in the template. I assume this is a known issue. My 2c is that rather than trying to get it working on all panels, might make more sense to drop it.

Alternatively, given that roundframe in 2.0.x can be done with border-radius these days anyway, maybe just add a little something to tp-style.css to make 2.0.x do .roundframe on 2.1 markup (ie: div only, no spans required). That would simplify the logic in the template.
Title: Re: TinyPortal
Post by: Antechinus on May 07, 2022, 10:31:22 PM
Actually this works really well, providing you don't mind adding a little to tp-stye.css to compensate for the lack of spans/images on 2.0.x.
// Tiny Portal left side bar - floated left by default.
if($context['TPortal']['leftpanel']==1) {
echo '
<div id="tpleftbarHeader"', ($context['TPortal']['useroundframepanels']==1) ? ' class="roundframe"' : '', ' style="width:', ($context['TPortal']['leftbar_width']), 'px;', in_array('tpleftbarHeader', $context['tp_panels']) && ($context['TPortal']['showcollapse']==1) ? 'display:none' : '', '" >
', TPortal_panel('left'), '
</div><!-- #tpleftbarHeader -->';
}

// Tiny Portal right side bar - floated right by default.
if($context['TPortal']['rightpanel']==1) {
echo '
<div id="tprightbarHeader"', ($context['TPortal']['useroundframepanels']==1) ? ' class="roundframe"' : '', ' style="width:', ($context['TPortal']['rightbar_width']), 'px;', in_array('tprightbarHeader', $context['tp_panels']) && ($context['TPortal']['showcollapse']==1) ? 'display:none' : '', '" >
', TPortal_panel('right'), '
</div><!-- #tprightbarHeader -->';
}

Then the CSS can do this:
#tpleftbarHeader.roundframe, #tprightbarHeader.roundframe {
/* Reduced padding for sidebars? */
padding: 10px;
/* Only required for 2.0.x. */
border: 1px solid #c5c5c5;
border-radius: 7px;
}

Although, I am starting to think the responsive CSS should be tweaked a bit. If you have both sidebars enabled on 900px it really is a bit much. Might make sense to bump the break point for layout if both sidebars are enabled. Given that the forum itself has responsive CSS based on the assumption that there will be no sidebars, shoving in two of them really borks things a bit.

So perhaps TP should take account of default 2.1 break points, then add the width of one or two sidebars to that, for deciding when to shuffle sidebar layout. Since TP assigns parent div classes based on 0, 1, or 2 sidebars, this should be easy.
Title: Re: TinyPortal
Post by: @rjen on May 08, 2022, 01:40:23 AM
Thanks Antechinus, had no time to test your proposals yet.

Just a question: did you also test the behavior when collapsing one of the side panels? Does it work without JavaScript  now?

As for the roundframe stuff: I really do not want to spend too much time on 2.0 related layout changes now: this is legacy resulting from the old curve theme and though this can be simplified I personally want to focus on stuff that also helps for SMF 2.1.
Title: Re: TinyPortal
Post by: Antechinus on May 08, 2022, 02:18:18 AM
Yes, it's fine without extra javascript now. It's just bringing in the flex once things stack anyway, so the centre container is always 100%.

Quote from: @rjen on May 08, 2022, 01:40:23 AMAs for the roundframe stuff: I really do not want to spend too much time on 2.0 related layout changes now: this is legacy resulting from the old curve theme and though this can be simplified I personally want to focus on stuff that also helps for SMF 2.1.
In that case I'd just go with the simplified logic that suits 2.1 anyway. If anyone specifically wants the roundframe look on side panels in 2.0 it's easy to give them a CSS snippet for it.
Title: Re: TinyPortal
Post by: @rjen on May 08, 2022, 03:11:26 AM
I have not had a chance to do full testing yet, but it seems there is one pesky little issue left...

when on screen small that 900px the sidebars push down, side by side: Collapsing one of the side bars then will result in an empty area on screen where the collapsed panel was... did you see that too?

2022-05-08_090543.jpg

This where the old setup would automatically push the remaining panel to full screen. I personally prefer that behavior...

Title: Re: TinyPortal
Post by: Antechinus on May 08, 2022, 03:53:20 AM
Ok, but then you're back to the webkit bug. Take your pick. Or, you use a javascript override there.

Personally I don't care about it, because they're both shunted downstairs anyway, so why collapse one?
Title: Re: TinyPortal
Post by: @rjen on May 08, 2022, 03:55:32 AM
True.
Title: Re: TinyPortal
Post by: Antechinus on May 08, 2022, 05:15:41 AM
Just noticed the hidden overflow I added to the main panels is have an odd effect on some pages. I'll check it out later. It'll be something simple.
Title: Re: TinyPortal
Post by: @rjen on May 12, 2022, 02:51:57 PM
The TinyPortal Team is pleased to announce the release of TinyPortal 2.2.2

TinyPortal 2.2.2 can be used on SMF 2.0 and 2.1

Minimum required PHP version : 7.0.0
Highest supported PHP version (tested): 8.1.1

Changelog:
This release includes the following changes relevant to SMF 2.0 and 2.1:

New functionality:
- TinyPortal package now supports upgrade option in SMF2.1

Bugfixes:
- Css file cleanup fixing some validation issues
- Fixed some textstrings for easier translation
- Fix for BBC blocks in SMF2.1 not parsing correctly
- Fixed language strings for alerts on TP mentions
- Fixed shoutbox layout when using scroll function
- Fixed layout issue with quickactions on mobile display

Note:
when updating from TinyPortal versions older than 2.1.0, recent topics blocks are enhanced with a new block setting: "Characters to display in titles". Due to this change any pre-existing recent topics blocks 'may' have a changed title length after installing the new version of TP. Please check these blocks and adjust the block setting "Characters to display in titles" to the desired length...
Title: Re: TinyPortal
Post by: Steve on May 13, 2022, 10:04:47 AM
I assume the usual applies, uninstall the old (without deleting data) and install the new?
Title: Re: TinyPortal
Post by: tinoest on May 13, 2022, 10:19:29 AM
Quote from: Steve on May 13, 2022, 10:04:47 AMI assume the usual applies, uninstall the old (without deleting data) and install the new?

If you're running SMF 2.1 then you can just click the upgrade button. SMF 2.0 is the old method of uninstall and install.
Title: Re: TinyPortal
Post by: Steve on May 13, 2022, 10:28:53 AM
Excellent! Thanks tinoest!
Title: Re: TinyPortal
Post by: Steve on June 05, 2022, 09:03:16 AM
Reporting an issue. This mod and Nibogo's Shoutbox Pro conflict.

I can install one or the other but if I install both and go to the Package Manager and click 'Browse', I get a white page.

I'm also letting Nibogo know.
Title: Re: TinyPortal
Post by: tinoest on June 05, 2022, 10:10:44 AM
It shouldn't cause an issue on the package manager page.

What version of TinyPortal and PHP? Also anything in the SMF error log or Apache logs?
Title: Re: TinyPortal
Post by: Steve on June 05, 2022, 02:24:04 PM
Latest version of TP (I'm on 2.1.2) and PHP v. 7.4 ... I don't remember any errors other than I had to enlist Doug's help to fix it all. Never checked the server logs. I don't really want to install them both together again just to find out because it is way beyond my capabilities to correct.

I'll check with Doug and see if he can shed more light on this and get back to you.

And it's odd, I could go anywhere else in the package manager, just not browse.
Title: Re: TinyPortal
Post by: @rjen on June 05, 2022, 02:45:18 PM
Not something we could reproduce if it is a conflict with a paid mod...
Title: Re: TinyPortal
Post by: tinoest on June 05, 2022, 03:17:24 PM
Quote from: @rjen on June 05, 2022, 02:45:18 PMNot something we could reproduce if it is a conflict with a paid mod...

Unless the other mod author is willing to release their code to us to verify.

I think it's more likely an issue with the smf cache being corrupt or similar myself.
Title: Re: TinyPortal
Post by: Steve on June 06, 2022, 06:25:47 AM
Will look into it. Thanks guys.
Title: Re: TinyPortal
Post by: Doug Heffernan on June 06, 2022, 06:35:11 AM
Quote from: Steve on June 05, 2022, 02:24:04 PMLatest version of TP (I'm on 2.1.2) and PHP v. 7.4 ... I don't remember any errors other than I had to enlist Doug's help to fix it all. Never checked the server logs. I don't really want to install them both together again just to find out because it is way beyond my capabilities to correct.

I'll check with Doug and see if he can shed more light on this and get back to you.

And it's odd, I could go anywhere else in the package manager, just not browse.

Indeed, if TP and the Pro Shoutbox mods are installed together at Steve 's forum, the Package Manager 'Browser section throws a blank page. They were tested on a fresh test forum too without any other mods and the same thing. There were no errors logged in the error log.
Title: Re: TinyPortal
Post by: tinoest on June 06, 2022, 08:58:13 AM
Quote from: Doug Heffernan on June 06, 2022, 06:35:11 AM
Quote from: Steve on June 05, 2022, 02:24:04 PMLatest version of TP (I'm on 2.1.2) and PHP v. 7.4 ... I don't remember any errors other than I had to enlist Doug's help to fix it all. Never checked the server logs. I don't really want to install them both together again just to find out because it is way beyond my capabilities to correct.

I'll check with Doug and see if he can shed more light on this and get back to you.

And it's odd, I could go anywhere else in the package manager, just not browse.

Indeed, if TP and the Pro Shoutbox mods are installed together at Steve 's forum, the Package Manager 'Browser section throws a blank page. They were tested on a fresh test forum too without any other mods and the same thing. There were no errors logged in the error log.

Is that also the apache (or whatever webserver is used) error log also? A white page is generally a 500 error so SMF wouldn't even get the change to put it in it's error logs.
Title: Re: TinyPortal
Post by: Steve on June 06, 2022, 10:25:11 AM
I don't think either of us checked the server log.

I was wondering if the free version of the shoutbox would do the same thing but I see it hasn't been updated in awhile.
Title: Re: TinyPortal
Post by: Doug Heffernan on June 06, 2022, 10:41:30 AM
Quote from: tinoest on June 06, 2022, 08:58:13 AMIs that also the apache (or whatever webserver is used) error log also? A white page is generally a 500 error so SMF wouldn't even get the change to put it in it's error logs.

I did not check the server error log to be honest. I am not saying that TP is causing this. It is just something that we noticed, that when both mods are installed together it throws a blank page at the aforementioned location.

Quote from: Steve on June 06, 2022, 10:25:11 AMI was wondering if the free version of the shoutbox would do the same thing but I see it hasn't been updated in awhile.

Looking at that mod 's topic, it says that it is compatible with smf.2.0.x. only. Maybe its author has a 2.1.x version of the free mod at their own site?
Title: Re: TinyPortal
Post by: Steve on June 06, 2022, 11:47:13 AM
Quote from: Doug Heffernan on June 06, 2022, 10:41:30 AMMaybe its author has a 2.1.x version of the free mod at their own site?
Nope. All mods at his site are paid for mods.
Title: Re: TinyPortal
Post by: tinoest on June 06, 2022, 03:03:17 PM
Unless they want to release it to either myself or @@rjen for free then it's really not a TinyPortal issue. We release our code, the shoutbox you refer to will have to be fixed. As an install of TinyPortal on its own doesn't cause this issue. So as far as I'm concerned there isn't a bug which I can replicate or fix.
Title: Re: TinyPortal
Post by: @rjen on June 06, 2022, 03:21:01 PM
Quote from: tinoest on June 06, 2022, 03:03:17 PMUnless they want to release it to either myself or @@rjen for free then it's really not a TinyPortal issue. We release our code, the shoutbox you refer to will have to be fixed. As an install of TinyPortal on its own doesn't cause this issue. So as far as I'm concerned there isn't a bug which I can replicate or fix.

What tinoest says...  8)
Title: Re: TinyPortal
Post by: Doug Heffernan on June 06, 2022, 04:14:09 PM
Quote from: tinoest on June 06, 2022, 03:03:17 PMUnless they want to release it to either myself or @@rjen for free then it's really not a TinyPortal issue. We release our code, the shoutbox you refer to will have to be fixed. As an install of TinyPortal on its own doesn't cause this issue. So as far as I'm concerned there isn't a bug which I can replicate or fix.

Just for the record, I never said, or meant to imply that it was a TinyPortal issue. As a mod author myself, I know better than that. And I completely agree with what you are saying.
Title: Re: TinyPortal
Post by: Steve on June 07, 2022, 07:43:28 AM
Same here (although I'm not a mod author). Was just reporting the conflict and seeking guidance.
Title: Re: TinyPortal
Post by: Mike66 on June 17, 2022, 03:12:09 PM
I have my front page set up to display 'Forum-topics and articles - sorted on date', with 'Allow full display of forum-topics on the frontpage' and from only one board. Layout type is set to 'Normal Articles'.

In the 'article_info' heading, I would also like to display the forum topic's number of 'Likes' if possible?
I have SMFPacks Likes Pro Mod installed.

So something like:
Posted in Board X - 15/06/2022 at 00:08 - Written by Max32 - Views: 64 - Likes 27

Cheers
Mike
Title: Re: TinyPortal
Post by: @rjen on June 17, 2022, 03:31:01 PM
Not supported at the moment and will require extra coding to do. Not an easy change
Title: Re: TinyPortal
Post by: Mike66 on June 17, 2022, 03:40:24 PM
Quote from: @rjen on June 17, 2022, 03:31:01 PMNot supported at the moment and will require extra coding to do. Not an easy change

Thanks for the fast reply  :)
That's OK, not important, it was just an idea that went through my head.

Cheers
Mike
Title: Re: TinyPortal
Post by: tinoest on June 17, 2022, 03:46:07 PM
It's a good idea, but we'd implement it using the built in functionality in SMF 2.1.

If you want it with SMFPacks pro which I believe is a paid for mod you're better asking them as we can't test or implement it without paying for the mod.
Title: Re: TinyPortal
Post by: Mike66 on June 17, 2022, 07:06:20 PM
That's OK thanks, it's not really important, and not something that I need.

I just thought there might possibly be a simple answer, like using action=likes in some way perhaps.

Cheers
Mike
Title: Re: TinyPortal
Post by: Steve on July 10, 2022, 03:17:02 PM
Can Tiny Portal's shoutbox be placed across the top of the main index instead of along the side?
Title: Re: TinyPortal
Post by: @rjen on July 10, 2022, 03:24:13 PM
Quote from: Steve on July 10, 2022, 03:17:02 PMCan Tiny Portal's shoutbox be placed across the top of the main index instead of along the side?

Of course: move the shoutbox block to the top or upper panel. And experiment with a layout to better suit the horizontal layout...
Title: Re: TinyPortal
Post by: tinoest on July 10, 2022, 03:25:00 PM
Quote from: Steve on July 10, 2022, 03:17:02 PMCan Tiny Portal's shoutbox be placed across the top of the main index instead of along the side?

It can go in any block, if it's in one of the top ones I'd go for the line style shouts rather than bubble personally but it's a personal preference.
Title: Re: TinyPortal
Post by: Steve on July 10, 2022, 03:31:53 PM
Thanks guys. I'll play with it and see how it goes.
Title: Re: TinyPortal
Post by: Steve on July 10, 2022, 07:33:24 PM
I guess I'm going to have to hire someone to set this up for me. TP has so much functionality that this old brain can't figure out how to do what I want to do.  :(
Title: Re: TinyPortal
Post by: -Rock Lee- on July 10, 2022, 11:33:58 PM
Quote from: Steve on July 10, 2022, 07:33:24 PMI guess I'm going to have to hire someone to set this up for me. TP has so much functionality that this old brain can't figure out how to do what I want to do.  :(

I'll be greedy and help out for 3 popsicles :PAGS. I also did not understand it at first but the idea is to move it from the panel and have the permissions to see it, I usually move the one that comes by default.

ADD: By the way I didn't break the icons, it was already wrong O:)
Title: Re: TinyPortal
Post by: @rjen on July 11, 2022, 12:50:54 AM
Quote from: Steve on July 10, 2022, 07:33:24 PMI guess I'm going to have to hire someone to set this up for me. TP has so much functionality that this old brain can't figure out how to do what I want to do.  :(

You may need to start by deactivating the default functions: there is quite some documentation available on the TinyPortal docs site...

https://www.tinyportal.net/docs/index.php?page=disable-default
Title: Re: TinyPortal
Post by: Steve on July 11, 2022, 09:19:19 AM
Before I get any further into this (and I should have asked this first) is your shoutbox just a straight shoutbox without smileys or bbcode in the shouts?
Title: Re: TinyPortal
Post by: @rjen on July 11, 2022, 09:40:25 AM
Not knowing what you are looking for exactly, let me point you to the TinyPortal docs site again: https://www.tinyportal.net/docs/index.php?cat=Shoutbox

... Yes you can use BBC and Smilies, and Yes you (as admin) can choose to disable the functions if you need to...
Title: Re: TinyPortal
Post by: Steve on July 11, 2022, 12:30:07 PM
Let me go over the docs. You guys have done amazing work with this mod and its documentation.
Title: Re: TinyPortal
Post by: jsx on August 31, 2022, 02:03:40 PM
I'm going to update the forum from 2.0.19 to 2.1.2 and uninstall TinyPortal without removing its data from the database and I reinstall TinyPortal on SMF 2.1.2, will all my data be kept?
Title: Re: TinyPortal
Post by: @rjen on August 31, 2022, 02:04:35 PM
Yes
Title: Re: TinyPortal
Post by: jsx on August 31, 2022, 02:18:39 PM
That's great. Thanks for the confirmation.
Title: Re: TinyPortal
Post by: jsx on September 04, 2022, 06:23:43 AM
Hi @@rjen

I updated the forum to 2.1.2 and installed TP 2.2.2 and everything is fine, but SMFPacks Shoutbox is displayed on the home page of the portal. Previously, on the 2.0.19 forum, shoutbox was not displayed on the home page of the portal. Shoutbox is not added as top panel. Maybe here need to prohibit displaying the shoutbox on the main page of the portal?

(https://i.imgur.com/uZYXiHi.png)
Title: Re: TinyPortal
Post by: @rjen on September 04, 2022, 06:30:57 AM
We do not support other shoutboxes. You will need to ask support in their support board.

We do offer a shoutbox as part of TinyPortal though...
Title: Re: TinyPortal
Post by: jsx on September 04, 2022, 08:40:08 AM
Okay, so I need to inform Nibogo about this.

@@rjen

Tell me, is it possible to disable showing groups in the Users online menu block?
Title: Re: TinyPortal
Post by: @rjen on September 04, 2022, 09:56:39 AM
 Not sure what you mean by that?
Title: Re: TinyPortal
Post by: jsx on September 04, 2022, 01:32:54 PM
When the following option is enabled in the theme settings "Show group key on board index" these groups are displayed in the Users online block from TP. Is this any novelty for 2.1? TinyPortal 2.2.2 for SMF 2.0.19 did not display these groups in this block. I would like to disable the display of these groups in the Users online block.
Title: Re: TinyPortal
Post by: @rjen on September 04, 2022, 02:27:24 PM
I am not aware of any changes in this area.

Would need to check that, but I am away from my pc for another week...
Title: Re: TinyPortal
Post by: jsx on September 04, 2022, 03:11:21 PM
I understand. Previously, groups were not displayed here:

(https://i.imgur.com/w7QOpyW.png)
Title: Re: TinyPortal
Post by: @rjen on September 04, 2022, 03:39:10 PM
It uses this SSI function: ssi_logOnline()

Perhaps that function has changed in 2.1?
Title: Re: TinyPortal
Post by: jsx on September 04, 2022, 05:01:32 PM
In a future version of TP, can the TP team implement an option to disable the display of groups in this block?
Title: Re: TinyPortal
Post by: @rjen on September 13, 2022, 08:36:15 AM
Yep, the SSI function was changed in SMF2.1: it now includes the membergroups IF the setting "Show group key on board index" is activated in the theme settings.

This means that the output of ssi_whosOnline(); is now different if this theme setting is made. I am not sure I agree with that change in SMF being a logical one, but it is what it is...

Changing the Tinyportal block function is possible but it will require to create some coding, where the ssi function is available out of the box...
I am not sure what the priority of such a change would be: I personally would just deactivate the setting "Show group key on board index" and be done with it...
Title: Re: TinyPortal
Post by: jsx on September 16, 2022, 05:52:53 AM
I understand, if you ever manage to change the function of the block, it's nice to hear.

Some users on my forum complain that they need to set their smartphone browser to computer mode. For me it is strange because SMF 2.1 is responsive, but some people don't understand that. When I had a forum on 2.0.19, in the TPortal.php file after removing this line the portal automatically loaded in computer mode.

$context['html_headers'] .=  "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>";
Unfortunately, now after removing this line it doesn't work. Is there a solution for this?

I understand that SMF 2.1 is responsive, which means it adapts to any device and I like it, but some weird users don't understand that.
Title: Re: TinyPortal
Post by: @rjen on September 16, 2022, 06:17:11 AM
Well, some people will maybe have to accept that someone 'moved their cheese'  ;)

There is a work-around you can try: in the TinyPortal settings go the General settings: at the top of the page is the setting where you can indicate what themes are "non responsive themes"
This was actually needed in 2.0 where there were old and new themes.

You can indicate in SMF2.1 that your theme is "non responsive" (even if it is) which will casue TinyPortal to not apply the responsive behaviour of panels.
Side effect is that you forum will be forced in some sort of 'desktop' width, also on mobile devides.

It works if you have side panels active, have not tried in other configurations and your mileage may vary....
Title: Re: TinyPortal
Post by: jsx on September 20, 2022, 11:59:36 AM
1. Thanks for the info, good that this setting is still there. And can you tell me why after enabling this setting, the logo and the entire footer at the bottom of the forum is in the middle when browsing the forum on a smartphone? Why did these elements change their position?

2. So I don't have to remove this code?

$context['html_headers'] .=  "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>";
Quote from: @rjen on September 16, 2022, 06:17:11 AMYou can indicate in SMF2.1 that your theme is "non responsive" (even if it is)

3. Do you mean this setting in TinyPortal, or another setting in SMF 2.1?

4. I noticed that "Posted in" overlaps the avatar.

(https://i.imgur.com/2F8GpPQ.png)

5. If I publish two posts on the home page of the portal, only one post is displayed in full, the other is collapsed. Why is this happening?
Title: Re: TinyPortal
Post by: @rjen on September 20, 2022, 12:12:54 PM
1. No clue

2. Removing that code is not needed in my suggestion

3. In TinyPortal

4. No clue, may not even related as far as I can tell

5. No clue, different question it seems
Title: Re: TinyPortal
Post by: jsx on September 20, 2022, 01:08:10 PM
The inscription that overlaps the avatar looks like a bug. On your site I see that the posts are displaying and none are collapsed. Maybe I have some option turned on that causes this or something like that.

Title: Re: TinyPortal
Post by: @rjen on September 20, 2022, 03:41:38 PM
Quote from: jsx on September 20, 2022, 01:08:10 PMThe inscription that overlaps the avatar looks like a bug.

Link to your forum where we can inspect the 'bug'?
Title: Re: TinyPortal
Post by: @rjen on September 20, 2022, 04:21:00 PM
OK, found your site after a bit of searching.

The avatar issue is caused by your theme, so cannot fix that in TinyPortal.

I see this styling in your index file:


   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
   <style>
   img.avatar {max-width: 110px !important;max-height: 110px !important;}
   
   .postarea .bbc_img, .list_posts .bbc_img, .post .inner .bbc_img, form#reported_posts .bbc_img, #preview_body .bbc_img { max-width: min(100%,900px); }
   
   .postarea .bbc_img, .list_posts .bbc_img, .post .inner .bbc_img, form#reported_posts .bbc_img, #preview_body .bbc_img { max-height: 600px; }
   
         #top_section .inner_wrap, #wrapper, #header, footer .inner_wrap, #nav_wrapper
         {
            max-width: 92%;
            width: 92%;
         }
         @Media screen and (max-width: 991px)
         {
            #top_section .inner_wrap, #wrapper, #header, footer .inner_wrap, #nav_wrapper
            {
               max-width: 95%;
               width: 100%;
            }
         }
   
   </style>


This inline style is overruling all css statements later, due to the !important setting, and causing the tinyportal latout to be broken...
Is this styling standard for the theme, or did you add that yourself? It seems a bit random to be standard for the theme...
Title: Re: TinyPortal
Post by: @rjen on September 20, 2022, 04:26:27 PM
Quote5. If I publish two posts on the home page of the portal, only one post is displayed in full, the other is collapsed. Why is this happening?

What layout type are you using for the frontpage?

Without more details or an example I really cannot answer your questions...
Title: Re: TinyPortal
Post by: jsx on September 21, 2022, 07:00:08 AM
Quote from: @rjen on September 20, 2022, 04:21:00 PMThe avatar issue is caused by your theme, so cannot fix that in TinyPortal.

The same bug is on the default SMF Curve theme.

(https://i.imgur.com/IFjDvDa.png)

Quote from: @rjen on September 20, 2022, 04:26:27 PMWhat layout type are you using for the frontpage?

These are my frontpage settings:

(https://i.imgur.com/Fh2DybZ.png)
Title: Re: TinyPortal
Post by: @rjen on September 21, 2022, 07:38:18 AM
The css that I posted is not from he Default Curve theme: SOMETHING has added that css that causes the layout to break, if it is not the theme then most likely one of the Mods your are using...

What Mods have you installed? Anything related to avatars?

Title: Re: TinyPortal
Post by: @rjen on September 21, 2022, 07:40:27 AM
As for the frontpage: in your screenshot I see you are using the "Normal + links" layout type: that is designed to do exactly that: show the first article in full (normal) mode, and showing a Link to the following articles...

switch to "Normal articles" if you want to see the same layout as on my site...
Title: Re: TinyPortal
Post by: Diego Andrés on September 21, 2022, 08:36:10 AM
If I recall correctly, that avatar inline style is added by SMF when you save the avatar size in the settings.
Title: Re: TinyPortal
Post by: jsx on September 21, 2022, 08:45:42 AM
Quote from: @rjen on September 21, 2022, 07:38:18 AMThe css that I posted is not from he Default Curve theme: SOMETHING has added that css that causes the layout to break, if it is not the theme then most likely one of the Mods your are using...

What Mods have you installed? Anything related to avatars?


I don't have any mod installed that is related to avatars. I ran a test and put a 110x110 avatar with a background.

Avatar with a light background:

(https://i.imgur.com/APC3GGQ.png)

Avatar with a dark background:

(https://i.imgur.com/C3rZHYw.png)

And as you can see "Posted in" overlaps the avatar background, I think you didn't anticipate that it would overlap the avatar. That's why you set "Posted in" to such a distance from the avatar in css.

Quote from: @rjen on September 21, 2022, 07:40:27 AMAs for the frontpage: in your screenshot I see you are using the "Normal + links" layout type: that is designed to do exactly that: show the first article in full (normal) mode, and showing a Link to the following articles...

switch to "Normal articles" if you want to see the same layout as on my site...

Thanks for the clarification. Now the posts are displayed correctly.
Title: Re: TinyPortal
Post by: @rjen on September 21, 2022, 08:46:33 AM
Quote from: Diego Andrés on September 21, 2022, 08:36:10 AMIf I recall correctly, that avatar inline style is added by SMF when you save the avatar size in the settings.

Never seen that before, tried to reproduce it, but no luck... tips?
Title: Re: TinyPortal
Post by: @rjen on September 21, 2022, 08:47:44 AM
QuoteAnd as you can see "Posted in" overlaps the avatar background, I think you didn't anticipate that it would overlap the avatar.

In my forums it does not overlap, because Tinyportal is applying a max-width css to it...
Title: Re: TinyPortal
Post by: jsx on September 21, 2022, 08:59:55 AM
Avatar 110x110:

(https://i.imgur.com/Cy7cEAL.png)

Title: Re: TinyPortal
Post by: @rjen on September 21, 2022, 09:19:46 AM
Quote from: jsx on September 21, 2022, 08:59:55 AMAvatar 110x110:


I can see the result, please let me know where you set your avatar to this size?

ok, I found it, it is below setting, and yes, this is something the we never considered in the TinyPortal setup: the SMF inline style is overwriting the .css
It only happens if you set it to "Resize it in the user's browser", try to set it to: "Download and resize it on the server"  instead...

For future support: it would really help if you clearly specify in the questions what it is you are referring to:
what do you expect,
what is wrong,
what did you do to create the result,
what setting,
where is it made, etc...

so we can help more quickly....


2022-09-21_154113.jpg
Title: Re: TinyPortal
Post by: @rjen on September 21, 2022, 09:52:59 AM
Or edit tp-style.css

find
.article_info div.tp_avatar_single {
  border: none;
  float: left;
  max-width: 80px;
}

replace width
.article_info div.tp_avatar_single {
  border: none;
  float: left;
}

But to be honest: using that setting in SMF may give you more issues in the forum...

This is what I see when I changed the setting to 300px x 300px in the forum itself...
The SMF Curve theme is not dealing with avatars being resized in the browser very well either...

2022-09-21_162839.jpg
Title: Re: TinyPortal
Post by: jsx on September 21, 2022, 11:09:59 AM
Quote from: @rjen on September 21, 2022, 09:19:46 AMIt only happens if you set it to "Resize it in the user's browser", try to set it to: "Download and resize it on the server"  instead...

If I set 'Download and resize it on the server', the avatar will be reduced at this location on the home page of the portal and the avatar looks good too.

Quote from: @rjen on September 21, 2022, 09:19:46 AMFor future support: it would really help if you clearly specify in the questions what it is you are referring to:
what do you expect,
what is wrong,
what did you do to create the result,
what setting,
where is it made, etc...

Ok, I'll remember.

Quote from: @rjen on September 21, 2022, 09:52:59 AMOr edit tp-style.css

Thank you for this tutorial, when I set it to 110px it's okay.
Title: Re: TinyPortal
Post by: Diego Andrés on September 21, 2022, 12:54:16 PM
Quote from: @rjen on September 21, 2022, 09:52:59 AMBut to be honest: using that setting in SMF may give you more issues in the forum...

This is what I see when I changed the setting to 300px x 300px in the forum itself...
The SMF Curve theme is not dealing with avatars being resized in the browser very well either...

It's a strange setting indeed, it doesn't do now what I presume it intended 8-10 years ago.
Title: Re: TinyPortal
Post by: @rjen on September 23, 2022, 04:08:48 AM
Fix included in TP2.2.3: tp-style.css

Find:
.tp_avatar_single img {
border-radius: 2px;
float: left;
}

Change to:
.tp_avatar_single img {
border-radius: 2px;
float: left;
width: 65px;
}
Title: Re: TinyPortal
Post by: jsx on September 23, 2022, 01:13:00 PM
What exactly does this fix do?

When will TP 2.2.3 be released?
Title: Re: TinyPortal
Post by: @rjen on September 23, 2022, 01:20:51 PM
1. It fixes your avatar issue for real

2. Unless some real bug fixes are needed probably when SMF 2.1.3 gets released
Title: Re: TinyPortal
Post by: jsx on September 23, 2022, 04:31:58 PM
I understand. In the previous post you mentioned to remove max-width: 80px in code, I didn't remove it, but I did enter 110px and that's fine. But I should remove those 80px in this code, right? And then I should do the fix that you have provided today?
Title: Re: TinyPortal
Post by: @rjen on September 23, 2022, 05:00:57 PM
I gave you a quick fix that would solve your immediate issue, but it resulted in a different avatar size then intended.

The one I included in TinyPortal is slightly better, because it will effectively maintain the avatar size we originally intended ...
Title: Re: TinyPortal
Post by: jsx on September 24, 2022, 11:05:09 AM
Thanks for the clarification.
Title: Re: TinyPortal
Post by: Speed King on October 06, 2022, 12:07:23 AM
I have Tinyportal installed and option "Use membergroup color for user names throughout the forum" enabled.
But on the Board index, about users who have birthday today, only their age is displayed in membergroup color:

Click =>  (https://i.postimg.cc/9Dz1NK0T/2022-10-06.png) (https://postimg.cc/9Dz1NK0T)
Title: Re: TinyPortal
Post by: @rjen on October 06, 2022, 12:52:06 AM
Interesting.

If I see it correctly it is just this one user where the age is showing in a different color then the name.

Please tell me: what are the membergroups of this user? Primary and additional groups please ...?

Title: Re: TinyPortal
Post by: @rjen on October 06, 2022, 02:04:14 AM
Never mind: I see the same in my test forum: it only shows like that for a user who actually has his/her birthday TODAY.

Not sure if that is easily fixable, but it seems a very minor bug anyway...

The cause is in the standard css. This bit:

/* Define strong as bold, and em as italics */
/* Note: in some particular places, strong has been redefined as font-weight: 600; */
/* This gives a better effect for those areas, and will default to bold for fonts which do not support numerical font-weight */
strong, .strong {
font-weight: bold;
color: #444;
}

The standard css apply a color to the <strong> tag, and the names of those who have their birthday today are marked in <strong>
I do not think it is worth adapting TinyPortal for such an edge-case.

If  it bothers you you may try to remove the    color: #444; from index.css.
Title: Re: TinyPortal
Post by: Speed King on October 06, 2022, 02:25:40 AM
Thanks, problem solved :)
Title: Re: TinyPortal
Post by: jsx on October 11, 2022, 08:50:03 AM
Is it possible to hide a shoutbox on the home page of the portal? I mean, shoutbox should only be displayed on the main page of the forum. Supposedly it can be done, I tried to figure it out but I didn't manage it.

I have added a Shoutbox in Top panel blocks. In Actions I checked only Board index, but shoutbox is still showing up on the homepage of the portal.

Okay, when I unchecked this function, the shoutbox is no longer displayed on the home page of the portal.

(https://i.imgur.com/sH6jAve.png)
Title: Re: TinyPortal
Post by: @rjen on October 11, 2022, 10:25:04 AM
I am not sure where that checkbox comes from.

This is my setting in the shoutbox block to do exactly what you are asking: only showing it on the board index...

2022-10-11_162154.jpg
Title: Re: TinyPortal
Post by: @rjen on October 11, 2022, 11:53:05 AM
From another topic

Quote from: jsx on October 11, 2022, 08:39:17 AMIn my opinion, the shoutbox from TinyPortal lacks extensive functions, more possibilities, such as, for example, this Chatbox from Invision.

Would you mind to elaborate a bit more what it is that is missing? Not having invision we can only guess what it is that you feel is missing.

It may be that we can include some of that in a next release...
Title: Re: TinyPortal
Post by: jsx on October 11, 2022, 12:34:56 PM
This setting comes from the Shoutbox block setting you showed in the screenshot. When you deselect the Board index, the function I showed in the screenshot will appear.

Flicker appear when scrolling through the shoutbox entries or when the cursor is positioned on the entries.

Take a look at this gif:

(https://i.imgur.com/7wYk0dR.gif)

Sometimes when scrolling, entries hang up.

Why is this happening?

Quote from: @rjen on October 11, 2022, 11:53:05 AMWould you mind to elaborate a bit more what it is that is missing? Not having invision we can only guess what it is that you feel is missing.
It may be that we can include some of that in a next release...

Yes. I'll write it next time. Thank you for referring to this.
Title: Re: TinyPortal
Post by: @rjen on October 11, 2022, 12:44:40 PM
The flickering is caused by the edit and delete images showing up when you hover over a shout message. I agree it is not the nicest effect, but caused by the desire to keep the shoutbox compact while still showing the edit and delete icon in a fairly usable size.

Note: this only shows to users that have 'admin' privileges in the shoutbox: not something that you should grant ot all users, so the average Joe does not see this effect...
Title: Re: TinyPortal
Post by: Diego Andrés on October 11, 2022, 01:01:53 PM
I'm not sure how that works, but if it's using the display property, it could use visibility instead, so that the box remains at the same size regardless (I think...)
Title: Re: TinyPortal
Post by: @rjen on October 11, 2022, 01:05:46 PM
Quote from: Diego Andrés on October 11, 2022, 01:01:53 PMI'm not sure how that works, but if it's using the display property, it could use visibility instead, so that the box remains at the same size regardless (I think...)

Yeah, was thinking the same actually... room for improvement
Title: Re: TinyPortal
Post by: jsx on October 11, 2022, 03:59:05 PM
@rjen if you can improve it it would be good, because now it doesn't look good for an administrator.
Title: Re: TinyPortal
Post by: @rjen on October 12, 2022, 10:04:23 AM
Quote from: jsx on October 11, 2022, 12:34:56 PMThis setting comes from the Shoutbox block setting you showed in the screenshot. When you deselect the Board index, the function I showed in the screenshot will appear.

Flicker appear when scrolling through the shoutbox entries or when the cursor is positioned on the entries.
Looking at your example I really cannot reproduce the layout that is giving you issues..

2022-10-12_160453.jpg

There is not a standard layout in TinyPortal that puts the Timestamp on line 1 and the shout on line 2. Somehow that is showing in your example: how did this layout come to be?
Did you make changes to the TinyPortal files?

Title: Re: TinyPortal
Post by: -Rock Lee- on October 12, 2022, 10:35:59 AM
Quote from: @rjen on October 11, 2022, 11:53:05 AMWould you mind to elaborate a bit more what it is that is missing? Not having invision we can only guess what it is that you feel is missing.

It may be that we can include some of that in a next release...

It may be to add a quick access to the main settings of the chatbox next to history/update chat and I don't know if it is due add any words or icons that are somewhat larger. On phones it can be a bit difficult to press in the right place. Now I am from the cell phone with data but I did not have a system to silence users, right? or may I be confusing things?

and I think I understand @jsx wants something more centralized all on one side although I think as it is handled independently it is easier to carry... it is already to one each taste and comfort I suppose.


Regards!

Title: Re: TinyPortal
Post by: @rjen on October 12, 2022, 10:53:01 AM
Sorry, appreciate the effort, but I still do not understand what it is you want to improve: I do not have Invision, so please explain exactly what is required and under what circumstances?

I now seem to understand multiple suggestions...

Suggestion 1: Quick access to the setting for the shoutbox next to history/update?
I assume you want that for admins only? And what link to go to?
There is a link to the block settings on all blocks: that's where you maintain the block-spocific shoutbox settings as well

2022-10-12_164414.jpg

We could include a link to this page, is that it?

2022-10-12_164512.jpg

Suggestion 2: icons larger on mobile phones?

Please be specific: what Icons exactly?

Suggestion 3: system to silence users?

That sounds like you want to mute users that are annoying you?
That does not exist: if you want users to not use the shouts, do not give them permission via the member group. That is not sufficient?

Suggestion 4: layout on 1 side?

Tinyportal offers 4 different layouts, suitable for portrait or landscape blocks. You have the flexibility to put the shoutbox to the side, the top, bottom, where you want...

Title: Re: TinyPortal
Post by: jsx on October 12, 2022, 11:09:39 AM
Quote from: @rjen on October 12, 2022, 10:04:23 AM
Quote from: jsx on October 11, 2022, 12:34:56 PMThis setting comes from the Shoutbox block setting you showed in the screenshot. When you deselect the Board index, the function I showed in the screenshot will appear.

Flicker appear when scrolling through the shoutbox entries or when the cursor is positioned on the entries.
Looking at your example I really cannot reproduce the layout that is giving you issues..

2022-10-12_160453.jpg

There is not a standard layout in TinyPortal that puts the Timestamp on line 1 and the shout on line 2. Somehow that is showing in your example: how did this layout come to be?
Did you make changes to the TinyPortal files?


I have no changes to the TinyPortal files. I have this layout selected:

(https://i.imgur.com/eTLzLjp.png)
Title: Re: TinyPortal
Post by: tinoest on October 12, 2022, 11:14:14 AM
Do you have a link to your site? I am going to have a guess it's down to the resolution you are viewing it in, or some other CSS change on the site which is pushing the div outside the normal size.
Title: Re: TinyPortal
Post by: @rjen on October 12, 2022, 11:15:14 AM
Interesting: that layout does NOT have the timestamp on separate lines...

What setting are you using in the shoutbox settings? Can you post a screenprint like the one below?

2022-10-12_171425.jpg


Title: Re: TinyPortal
Post by: @rjen on October 12, 2022, 11:16:52 AM
Quote from: tinoest on October 12, 2022, 11:14:14 AMDo you have a link to your site? I am going to have a guess it's down to the resolution you are viewing it in, or some other CSS change on the site which is pushing the div outside the normal size.

I know the site address, but the Shoutbox is not showing there... (or at least not to guests)
Title: Re: TinyPortal
Post by: jsx on October 12, 2022, 11:23:16 AM
@tinoest

I sent you a private message.

@rjen

It is currently available to guests.

Settings:

(https://i.imgur.com/ajfFQEw.png)
Title: Re: TinyPortal
Post by: tinoest on October 12, 2022, 11:28:31 AM
You are missing some CSS in tp-shout.css

Can you make sure it matches the latest one here; https://github.com/Tinyportal/TinyPortal/blob/master/Themes/default/css/tp-shout.css

.shoutbox_time {
display: block;
float: right;
padding-left: 5px;
}

Is one thing, I am not sure about anything else.
Title: Re: TinyPortal
Post by: jsx on October 12, 2022, 11:32:07 AM
Right this code is missing. I removed this code when I was using SMFPacks Shoutbox because this code broke the date displayed in SMFPacks Shoutbox.
Title: Re: TinyPortal
Post by: @rjen on October 12, 2022, 11:33:00 AM
yep, that's it: the settings are fine, but that code you removed is causing your issue... put it back.
Title: Re: TinyPortal
Post by: @rjen on October 12, 2022, 11:33:35 AM
there you go... $50,- please...  ;)
Title: Re: TinyPortal
Post by: jsx on October 12, 2022, 11:38:40 AM
Okay, I restored it.

Why not €50? 8)
Title: Re: TinyPortal
Post by: Steve on October 12, 2022, 02:47:50 PM
If you want to pay him more by using euros, knock yourself out.  :P
Title: Re: TinyPortal
Post by: -Rock Lee- on October 12, 2022, 07:18:56 PM
Well, I was also in a hurry when I was traveling and I couldn't explain so much. Now at home I'll try to express myself more.

Quote from: @rjen on October 12, 2022, 10:53:01 AMSuggestion 1: Quick access to the setting for the shoutbox next to history/update?
I assume you want that for admins only? And what link to go to?
There is a link to the block settings on all blocks: that's where you maintain the block-spocific shoutbox settings as well

2022-10-12_164414.jpg

We could include a link to this page, is that it?

2022-10-12_164512.jpg

It is correct only for administrators since users do not have much to modify in themselves, it does not appear above me although the one I would refer to is the one below

Image 2022-10-12.jpeg

That redirects directly to the chat settings in www.myweb.com/index.php?action=tpshout;shout=admin;settings

Quote from: @rjen on October 12, 2022, 10:53:01 AMSuggestion 2: icons larger on mobile phones?

Please be specific: what Icons exactly?

exactly these (https://www.bombercode.net/foro/Themes/default/images/tinyportal/TPrefresh.png) (https://www.bombercode.net/foro/Themes/default/images/tinyportal/TPhistory.png)

Quote from: @rjen on October 12, 2022, 10:53:01 AMSuggestion 3: system to silence users?

That sounds like you want to mute users that are annoying you?
That does not exist: if you want users to not use the shouts, do not give them permission via the member group. That is not sufficient?

It is not the idea to take away that benefit from everyone, only those who bother, a more direct way of doing it. Now what I did was create 2 user groups depending on what I need in one I remove permissions from the same SMF but I would like the same TP to handle it...

Quote from: @rjen on October 12, 2022, 10:53:01 AMSuggestion 4: layout on 1 side?

Tinyportal offers 4 different layouts, suitable for portrait or landscape blocks. You have the flexibility to put the shoutbox to the side, the top, bottom, where you want...

I was not referring to the position of the chat itself (sorry, I won my Spanish on that) but that you can manage everything related to the chat such as permissions, avatars, bbc, icons, etc. in one place, for example, go to www.myweb.com/index.php?action=tpshout;shout=admin;settings and not have to go anywhere else, can I explain? It's the only thing I see in the smfpacks chatbox and it's what jsx is looking for (or so I understand) although TP brings everything, it's just distributed in a different way.


Regards!
Title: Re: TinyPortal
Post by: jsx on October 13, 2022, 05:54:17 AM
Quote from: @rjen on October 11, 2022, 11:53:05 AMWould you mind to elaborate a bit more what it is that is missing? Not having invision we can only guess what it is that you feel is missing.

It may be that we can include some of that in a next release...

Thank you @@rjen, @lurkalot and @tinoest for creating TinyPortal and the Shoutbox add-on in it.

These are just suggestions, I wanted to write them and maybe one day one of them will be implemented.

Suggestions for expanding this shoutbox:

1. Adding the ability to set newer entries to be displayed at the bottom. Currently, the new entry is displayed at the top.

2. Adding the function "Enable display avatars", I mean to display, for example, a round avatar of a user next to his entry. Avatars of users beautify the shoutbox window. Currently it is so empty.

(https://content.invisioncic.com/a319035/monthly_2021_07/chatbox10.png.e1f6eb4b70951f40e12a3f8cf49c2675.png)

(https://www.phpbb.com/customise/db/download/158926)

3. Adding the ability to ban a user in the shoutbox for a few minutes, a few hours, a few days, forever.

4. Adding Who's Chatting

5. Adding a function (icon) to go to shoutbox settings, there next to the history icon.

6. Adding the ability for more emoticons to appear in [more].

7. Adding the ability to enter a date like on the forum:

%d %B %Y, %H:%M

Currently the date is:

d M Y H:i:s

Can you explain the difference?

8. Change the date display in this layout so that the date is displayed before these buttons:

(https://i.imgur.com/eTLzLjp.png)

As here:

(https://content.invisioncic.com/a319035/monthly_2021_07/chatbox10.png.e1f6eb4b70951f40e12a3f8cf49c2675.png)

It is possible that then it will not affect the flicker.

9. Ability to enable notifications from the forum in the shoutbox. From any board in the forum. What I mean is that the shoutbox will display a notification that a new topic has been created. Example: "Shoutbox: User created What is your favorite movie?". It would be nice if there was a choice of setting; notification of a new thread or notification of a new reply to a thread.

10. Adding sound function, when adding a message in shoutbox. Enable/Disable sound.

11. Adding the ability to insert an image as img

12. Adding the ability for a pasted link to e.g. youtube to turn into an embedded video.

13. Adding the ability to quote an entry.

The mChat from phpBB has such a function:

https://www.phpbb.com/customise/db/extension/mchat_extension

14. Ability to mention user in shoutbox
Title: Re: TinyPortal
Post by: Steve on October 13, 2022, 07:30:39 AM
Quote from: jsx on October 13, 2022, 05:54:17 AM1. Adding the ability to set newer entries to be displayed at the bottom. Currently, the new entry is displayed at the top.
+1

There are a couple of others that would be nice to have but especially that one in particular.
Title: Re: TinyPortal
Post by: @rjen on October 13, 2022, 07:45:12 AM
Thanks,

nice to get some suggestions, will need to review them one by one: not everyting you are asking will be implemented, but lts have a look what is possible / feasible..
initial comments:

Quote from: jsx on October 13, 2022, 05:54:17 AMSuggestions for expanding this shoutbox:

1. Adding the ability to set newer entries to be displayed at the bottom. Currently, the new entry is displayed at the top.

That should not be too difficult

2. Adding the function "Enable display avatars", I mean to display, for example, a round avatar of a user next to his entry. Avatars of users beautify the shoutbox window. Currently it is so empty.

Possible.  Mind you: 'emptyness' is often caused by short shouts in a wide panel. You may want to consider using a side panel instead...

3. Adding the ability to ban a user in the shoutbox for a few minutes, a few hours, a few days, forever.

I like the idea, but it may be rather complex to implement, beacuse of all the 'side stuff' that it involves...

4. Adding Who's Chatting

That will be very hard to impossible to do: how do we know if someone 'is chatting'? The shoutbox is often showing on a page with topics or on the board index: having that page open does not mean the user is even looking at the shoutbox

5. Adding a function (icon) to go to shoutbox settings, there next to the history icon.

That is easy to do, just need to make sure not to 'overcrowd'  the shoutbox with icons

6. Adding the ability for more emoticons to appear in [more].

To be checked

7. Adding the ability to enter a date like on the forum:

%d %B %Y, %H:%M
Currently the date is:

d M Y H:i:s
Can you explain the difference?

I actually noticed that recently: will be changed in 2.2.3 to adhere to SMF approach.
For now: explanation of DateTime parameters can be found here: https://www.php.net/manual/en/datetime.format.php


8. Change the date display in this layout so that the date is displayed before these buttons:
It is possible that then it will not affect the flicker.

To be checked, not sure if that will be changed though

9. Ability to enable notifications from the forum in the shoutbox. From any board in the forum. What I mean is that the shoutbox will display a notification that a new topic has been created. Example: "Shoutbox: User created What is your favorite movie?". It would be nice if there was a choice of setting; notification of a new thread or notification of a new reply to a thread.

To be checked, sounds rather complex tbh

10. Adding sound function, when adding a message in shoutbox. Enable/Disable sound.

Urr, tbh I HATED that in the other shoutboxes, but hey, that's just me...

11. Adding the ability to insert an image as img

To be checked

12. Adding the ability for a pasted link to e.g. youtube to turn into an embedded video.

Nope, that really is not what a shoutbox should be for IMO...(by the way that is not even SMF stadard functionality)

13. Adding the ability to quote an entry.

To be checked

14. Ability to mention user in shoutbox

That functionality is already available
Title: Re: TinyPortal
Post by: tinoest on October 13, 2022, 07:48:13 AM
Quote from: Steve on October 13, 2022, 07:30:39 AM
Quote from: jsx on October 13, 2022, 05:54:17 AM1. Adding the ability to set newer entries to be displayed at the bottom. Currently, the new entry is displayed at the top.
+1

There are a couple of others that would be nice to have but especially that one in particular.

That should be as simple as adding
$ns = array_reverse($ns); before this line https://github.com/Tinyportal/TinyPortal/blob/7aba4662d7f2ef97e88be8b8e206ff1a902b289d/Sources/TPShout.php#L332

Title: Re: TinyPortal
Post by: jsx on October 13, 2022, 12:16:57 PM
Quote1. That should not be too difficult

It would be nice to see such a feature in the shoutbox settings, for better convenience. @tinoest thank you very much for providing this code. Now new entries appear at the end. :)

Quote2. Possible. Mind you: 'emptyness' is often caused by short shouts in a wide panel. You may want to consider using a side panel instead...

I like this standard layout, just an avatar in this place will beautify the shoutbox, it's just like an avatar on a user's profile in a post.

Quote3. I like the idea, but it may be rather complex to implement, beacuse of all the 'side stuff' that it involves...

I understand.

Quote4. That will be very hard to impossible to do: how do we know if someone 'is chatting'? The shoutbox is often showing on a page with topics or on the board index: having that page open does not mean the user is even looking at the shoutbox

I understand.

Quote5. That is easy to do, just need to make sure not to 'overcrowd'  the shoutbox with icons

I think that such an icon (settings) will be a plus.

Quote6. To be checked

Thanks. And what do you think about moving the set of emoticons to the right side? And bbcode.

Quote7. I actually noticed that recently: will be changed in 2.2.3 to adhere to SMF approach.

Great. :)

Quote8. To be checked, not sure if that will be changed though

I understand, thanks for checking it out.

Quote9. To be checked, sounds rather complex tbh

I understand, thanks for checking it out.

Quote10. Urr, tbh I HATED that in the other shoutboxes, but hey, that's just me...

If the sound is ugly it might be annoying as a notification of a new entry, but if the notification sound is nice it's nice to hear it. In my opinion, Invison has a nice notification sound for a new entry.

Quote11. To be checked

Thanks.

Quote12. Nope, that really is not what a shoutbox should be for IMO...(by the way that is not even SMF stadard functionality)

I understand.

Quote13. To be checked

I understand, thanks for checking it out.

Quote14. Ability to mention user in shoutbox

That functionality is already available

How do I turn on this feature?
Title: Re: TinyPortal
Post by: @rjen on October 13, 2022, 12:30:33 PM
Mention is on by default. Just type @jsx in a shout and the user will get a notification
Title: Re: TinyPortal
Post by: jsx on October 14, 2022, 04:28:53 AM
@@rjen thanks for the clarification. I didn't know that because @ name does not change into a user's clickable link when the user is mentioned.

When I add a new entry then the shoutbox automatically scrolls to the top. I think the focus should remain on my entry. Is this a bug?

I am using Simple Audio Video Embedder modification on the forum and when youtube link is added in the entry then the video will automatically display as embedded. I like it, but the video window is too big for the shoutbox because the video window size is set to display like this in the post. I know, I can set a smaller window in the modification settings and in the post and in shoutbox it will be displayed the same.
Title: Re: TinyPortal
Post by: @rjen on October 14, 2022, 07:19:01 AM
Quote from: jsx on October 14, 2022, 04:28:53 AM@@rjen thanks for the clarification. I didn't know that because @ name does not change into a user's clickable link when the user is mentioned.

When I add a new entry then the shoutbox automatically scrolls to the top. I think the focus should remain on my entry. Is this a bug?

I am using Simple Audio Video Embedder modification on the forum and when youtube link is added in the entry then the video will automatically display as embedded. I like it, but the video window is too big for the shoutbox because the video window size is set to display like this in the post. I know, I can set a smaller window in the modification settings and in the post and in shoutbox it will be displayed the same.

The scrolling is not a bug: you changed the order manually: the shoutbox is no designed for that.

As for the embedded video: that's tough. If I recall correctly the mod applies a style element width and height .
That we cannot override simply in css
Title: Re: TinyPortal
Post by: jsx on October 14, 2022, 07:54:50 AM
Quote from: @rjen on October 14, 2022, 07:19:01 AMThe scrolling is not a bug: you changed the order manually: the shoutbox is no designed for that.

Can it be changed?
Title: Re: TinyPortal
Post by: @rjen on October 14, 2022, 08:09:13 AM
Don't know. If I can change the tp functionality I will need to look into that...
Title: Re: TinyPortal
Post by: tinoest on October 14, 2022, 08:31:28 AM
Quote from: @rjen on October 14, 2022, 08:09:13 AMDon't know. If I can change the tp functionality I will need to look into that...

You need to look at this line https://github.com/Tinyportal/TinyPortal/blob/7aba4662d7f2ef97e88be8b8e206ff1a902b289d/Themes/default/scripts/tinyportal/TPShout.js#L75

jQuery doesn't have a scrollBottom to my knowledge so you will need one of these targetting the div

https://stackoverflow.com/questions/4655273/jquery-window-scrolltop-but-no-window-scrollbottom

Title: Re: TinyPortal
Post by: tinoest on October 14, 2022, 04:01:34 PM
Quote from: tinoest on October 14, 2022, 08:31:28 AM
Quote from: @rjen on October 14, 2022, 08:09:13 AMDon't know. If I can change the tp functionality I will need to look into that...

You need to look at this line https://github.com/Tinyportal/TinyPortal/blob/7aba4662d7f2ef97e88be8b8e206ff1a902b289d/Themes/default/scripts/tinyportal/TPShout.js#L75

jQuery doesn't have a scrollBottom to my knowledge so you will need one of these targetting the div

https://stackoverflow.com/questions/4655273/jquery-window-scrolltop-but-no-window-scrollbottom


As I can't edit my post. This works

$(".tp_shoutframe.tp_shoutframe_" + shoutboxId).parent().scrollTop($(document).height());
Title: Re: TinyPortal
Post by: jsx on October 15, 2022, 05:32:01 AM
@tinoest

Thanks for your help, it works! :)

What do you think, is it possible to make it so that after refreshing the forum still the scroll bar will be at the bottom of the shoutbox on the latest entry?

(https://i.imgur.com/dW8DOTM.png)

I noticed such bugs:

When I want to bold the text, the tag does not work properly.

The same thing happens when I want to set the color.

(https://i.imgur.com/igEq22k.gif)
Title: Re: TinyPortal
Post by: tinoest on October 16, 2022, 10:32:24 AM
Quote from: jsx on October 15, 2022, 05:32:01 AM@tinoest

Thanks for your help, it works! :)

What do you think, is it possible to make it so that after refreshing the forum still the scroll bar will be at the bottom of the shoutbox on the latest entry?

(https://i.imgur.com/dW8DOTM.png)

If you put the js I put above in a windows onLoad event it should scroll to the bottom on page refresh.
Title: Re: TinyPortal
Post by: jsx on October 17, 2022, 06:23:10 AM
Quote from: tinoest on October 14, 2022, 04:01:34 PMAs I can't edit my post. This works

You mean the code you provided?
Title: Re: TinyPortal
Post by: @rjen on October 17, 2022, 03:52:37 PM
Quote from: jsx on October 15, 2022, 05:32:01 AMI noticed such bugs:

When I want to bold the text, the tag does not work properly.

The same thing happens when I want to set the color.

(https://i.imgur.com/igEq22k.gif)
That's just how it works: you first need to select what you want and THEN type the text
Title: Re: TinyPortal
Post by: jsx on October 17, 2022, 05:05:50 PM
Okay. I didn't know to choose bold first and then enter text. It is different in SMF, first can type the text and make it bold. When a user puts a longer text in the shoutbox, but somewhere in the middle of this text he wants to bold certain words then he will not be able to do it, because the tag will not mark these words. I think bold, color etc should work like SMF. This is only my opinion.

Title: Re: TinyPortal
Post by: Steve on October 18, 2022, 06:12:31 AM
It works that way in all shoutboxes if I'm not mistaken. I know for sure in Shoutbox Pro you can't bold certain words in a line of text. It's all or nothing.
Title: Re: TinyPortal
Post by: jsx on October 18, 2022, 08:54:39 AM
I understand, if, for example, the bold text in the shoutbox must work like this then ok.

@@rjen What do you think about it?

Quote from: jsx on October 15, 2022, 05:32:01 AMWhat do you think, is it possible to make it so that after refreshing the forum still the scroll bar will be at the bottom of the shoutbox on the latest entry?
(https://i.imgur.com/dW8DOTM.png)
Title: Re: TinyPortal
Post by: @rjen on October 18, 2022, 10:44:34 AM
I made some changes to the shoutbox in line with the previous questions, but due to internal limitations I have run out of options to further allow for parameters in the shoutbox block.

Switching shout direction is not something I will do...
Title: Re: TinyPortal
Post by: jsx on October 19, 2022, 05:26:59 AM
Quote from: @rjen on October 18, 2022, 10:44:34 AMI made some changes to the shoutbox in line with the previous questions, but due to internal limitations I have run out of options to further allow for parameters in the shoutbox block.

I understand, it is nice to hear that some changes have been made.

Quote from: @rjen on October 18, 2022, 10:44:34 AMSwitching shout direction is not something I will do...

You mean it?

(https://i.imgur.com/dW8DOTM.png)
Title: Re: TinyPortal
Post by: jsx on October 29, 2022, 05:22:02 AM
Quote from: tinoest on October 16, 2022, 10:32:24 AMIf you put the js I put above in a windows onLoad event it should scroll to the bottom on page refresh.

Hello @tinoest

I come back again with a request for help. Because users are pushing me to find a solution so that the scroll bar is at the bottom all the time after refreshing the forum. Is there a way to do this?

I found such tutorials:

https://stackoverflow.com/questions/39436832/scroll-to-bottom-of-div-after-content-refresh

https://stackoverflow.com/questions/12092735/refresh-scroll-to-bottom

https://stackoverflow.com/questions/27752838/stop-div-scrolling-to-the-top-at-page-refresh-using-jquery

https://stackoverflow.com/questions/11715646/scroll-automatically-to-the-bottom-of-the-page

https://stackoverflow.com/questions/17642872/refresh-page-and-keep-scroll-position

https://www.geeksforgeeks.org/how-to-scroll-automatically-to-the-bottom-of-the-page-using-jquery/

https://www.skillsugar.com/javascript-scroll-to-bottom-of-div
Title: Re: TinyPortal
Post by: jsx on November 04, 2022, 06:20:28 AM
I managed to make it so that after refreshing the forum, the scroll bar is still at the bottom of the shoutbox. 8)

This code should be added on line 345 in /Sources/TPShout.php

echo '
        <script type="text/javascript"><!-- // --><![CDATA[
        $( document ).ready(function() {
            $(".tp_shoutframe.tp_shoutframe_' . $shoutbox_id . '").parent().scrollTop($(document).height());
        });
        // ]]></script>';

However, I think it would be better done in the form of a hook.
Title: Re: TinyPortal
Post by: jsx on November 06, 2022, 07:54:48 AM
There is a History function in the main shoutbox window and after entering History cannot see all entries. So I have a question why is the limit set here? However, after entering the Shoutbox administration, I can see all entries.
Title: Re: TinyPortal
Post by: @rjen on November 06, 2022, 01:26:41 PM
Not sure if there is a reason for the limit . Has been there forever
Title: Re: TinyPortal
Post by: jsx on November 07, 2022, 10:15:17 AM
I understand. Is it possible to change this limitation? It would be good to have access to the whole History of shoutbox entries after clicking on this function, without the need to enter the shoutbox management.
Title: Re: TinyPortal
Post by: @rjen on November 07, 2022, 01:29:52 PM
Anything is possible, it is hard coded though so you will need to change the source file.

And since that page does not have any pagination it will look quite awkward.

I wonder why you think this is required: shouts are typically not meant to be permanent and disappear quite quickly from view.
For regular users a history of 50 shouts is typically more then enough
Title: Re: TinyPortal
Post by: jsx on November 07, 2022, 02:46:37 PM
I understand. Thanks for the clarification. I noticed that the full history doesn't display as pages here, only in the TPshout settings, and wanted to know why that is. :)
Title: Re: TinyPortal
Post by: jsx on November 21, 2022, 05:06:00 AM
Looking forward to the release of SMF 2.1.3 and TinyPortal 2.2.3, I decided to download TP 2.2.3 straight from Github.

Quote from: jsx on October 13, 2022, 05:54:17 AM1. Adding the ability to set newer entries to be displayed at the bottom. Currently, the new entry is displayed at the top.

However, I understand that this feature has not been permanently implemented. It's a pity! I understand that code has been provided to do this change myself and ok.

Quote from: jsx on October 13, 2022, 05:54:17 AM2. Adding the function "Enable display avatars", I mean to display, for example, a round avatar of a user next to his entry. Avatars of users beautify the shoutbox window. Currently it is so empty.

Thank you for implementing user avatar display. But it doesn't display very well:

(https://i.imgur.com/VAz03wC.png)

I think the avatar should display fully.

Quote from: jsx on October 13, 2022, 05:54:17 AM5. Adding a function (icon) to go to shoutbox settings, there next to the history icon.

Thanks for adding this feature, but notice that the icon is jagged.

(https://i.imgur.com/RC8CagN.png)

Quote from: jsx on October 13, 2022, 05:54:17 AM7. Adding the ability to enter a date like on the forum:

%d %B %Y, %H:%M

Thank you for implementing this time format.

Quote from: jsx on October 13, 2022, 05:54:17 AM8. Change the date display in this layout so that the date is displayed before these buttons:

(https://i.imgur.com/eTLzLjp.png)

Thanks for improving this layout.

The current difference between choosing this layout and this layout is only changing the date display, bold nicks don't work.

(https://i.imgur.com/CJOJSvP.png)
Title: Re: TinyPortal
Post by: @rjen on November 21, 2022, 05:19:29 AM
2.2.3 beta is by no means finished...
Title: Re: TinyPortal
Post by: jsx on November 21, 2022, 07:27:09 AM
I see. Is there any chance to implement some suggestion from this list of suggestions?

Quote6. Adding the ability for more emoticons to appear in [more].

13. Adding the ability to quote an entry.

Quote11. Adding the ability to insert an image as img

I noticed that I can insert an image in a shoutbox entry, but I'd like to leave a suggestion here regarding this possibility.

Implement the function bbcode Insert image. I mean such a function as it is in the creation editor in SMF. To be able to embed an image in a tag with the ability to set its width and height.

The inserted large image is displayed in the entire window and merges with the avatar.

(https://i.imgur.com/SulIcHc.png)

The slightly smaller image does not merge to the avatar.

(https://i.imgur.com/so6gNpL.png)

That's why it would be nice if there was a function to insert an image with setting its width and height.

It would be nice if there was a possibility that the inserted image could be displayed in a new window.

Example:

(https://i.imgur.com/aToN14x.png)

(https://i.imgur.com/5fHFR42.png)
Title: Re: TinyPortal
Post by: @rjen on November 21, 2022, 09:06:58 AM
Your list of suggestions is noted, but in order to even develop more changes to the shoutbox there is a fundamental design that needs to be reworked.

This is what is being worked on in the limited time available. Once that is completed and tested I will look into the shoutbox functions again...
Title: Re: TinyPortal
Post by: jsx on November 21, 2022, 10:12:55 AM
I understand. Thanks to the entire TinyPortal team for their willingness to improve the shoutbox. :)
Title: Re: TinyPortal
Post by: tech9 on November 26, 2022, 07:58:14 PM
Will this work on SMF 2.1.3?
Title: Re: TinyPortal
Post by: Diego Andrés on November 26, 2022, 08:31:06 PM
It uses hooks so it should work.
Title: Re: TinyPortal
Post by: @rjen on November 27, 2022, 01:04:44 AM
There is an issue introduced by 2.1.3 causing the installer of TP to fail in SMF 2.1.3

Logged here:
https://github.com/SimpleMachines/SMF/issues/7631

Workaround at this time is to downgrade your forum to 2.1.2 , install TP and the upgrade to 2.1.3

Title: Re: TinyPortal
Post by: jsx on December 17, 2022, 02:43:42 PM
@@rjen do you think it can be done in TinyPortal? I tried to do that, but the BBC block is not showing inside the board.

Quote from: Shades. on December 17, 2022, 10:12:56 AMI use ezportal and create a BBC block to display where you want it and use this mod (https://custom.simplemachines.org/index.php?mod=2078) to insert a red, green, grey or yellow (I think) alert message. ;)

https://www.simplemachines.org/community/index.php?topic=584504.msg4141514#msg4141514
Title: Re: TinyPortal
Post by: tinoest on December 17, 2022, 05:39:49 PM
You'd need to set a custom action to only allow it on one board. But I can't see why it wouldn't be possible.
Title: Re: TinyPortal
Post by: @rjen on December 18, 2022, 03:44:41 AM
Not sure what you mean with is not showing inside the board?

Create the block, choose the panel (that is not switched off in the forum) and set the block to show in that board only. Works for me...
Title: Re: TinyPortal
Post by: serdo on December 18, 2022, 06:01:02 AM
portal not working in php 8.1 version
gives a white page error
Title: Re: TinyPortal
Post by: tinoest on December 18, 2022, 06:15:38 AM
Quote from: serdo on December 18, 2022, 06:01:02 AMportal not working in php 8.1 version
gives a white page error

Clean install?

What SMF version?

What blocks are you using?

Anything showing in the Apache/nginx/lighttpd error logs?
Title: Re: TinyPortal
Post by: serdo on December 18, 2022, 06:37:31 AM
SMF 2.1.3 I am using version
php 8.1 version gives white page error
When I do php 7.4 version there is no problem in portal
Title: Re: TinyPortal
Post by: @rjen on December 18, 2022, 09:15:23 AM
TinyPortal works fine on my test install with php8.1

You have upgraded an existing forum with blocks? You may have incompatible code in a php block. Try to disable all blocks and activate them one by one to find the culprit
Title: Re: TinyPortal
Post by: tinoest on December 18, 2022, 09:42:03 AM
Quote from: serdo on December 18, 2022, 06:37:31 AMSMF 2.1.3 I am using version
php 8.1 version gives white page error
When I do php 7.4 version there is no problem in portal

As @rjen said it's most likely caused by a block. As you've not listed them then we can't help you any further.

Your logs will tell you what's falling over.
Title: Re: TinyPortal
Post by: serdo on December 18, 2022, 10:11:34 AM
I'm doing smf zero installation, I'm not installing any blocks and plugins.
Title: Re: TinyPortal
Post by: tinoest on December 18, 2022, 10:15:52 AM
Well it works for me on a clean install on PHP 8.1.

It would be helpful if you actually answered questions. However it's something you have configured wrong or enabled as a blank install works fine.
Title: Re: TinyPortal
Post by: jsx on December 18, 2022, 04:10:21 PM
Quote from: @rjen on December 18, 2022, 03:44:41 AMNot sure what you mean with is not showing inside the board?

Create the block, choose the panel (that is not switched off in the forum) and set the block to show in that board only. Works for me...

I meant after entering the board.

But I actually forgot to turn on the panel. I don't know why the box look is not displayed in the bbc block:

(https://i.imgur.com/zKQWaD2.png)

Message Boxes

https://custom.simplemachines.org/index.php?mod=2078
Title: Re: TinyPortal
Post by: @rjen on December 18, 2022, 04:14:16 PM
Quote from: jsx on December 18, 2022, 04:10:21 PMI don't know why the box look is not displayed in the bbc block:

(https://i.imgur.com/zKQWaD2.png)

Once again you lost me...

Please be more specific what you are asking, because with these type of questions I have no clue how to help you...
Title: Re: TinyPortal
Post by: jsx on December 18, 2022, 04:16:23 PM
I created a new bbc block where I want to use the bbcode from this mod: Message Boxes, unfortunately the bbcode from this mod doesn't work in the TinyPortal block.
Title: Re: TinyPortal
Post by: @rjen on December 18, 2022, 04:25:01 PM
That's not something we can solve, however I assume that mod uses some specific css: you can include the css in a html block and reproduce the layout yourself...
Title: Re: TinyPortal
Post by: @rjen on December 18, 2022, 04:55:07 PM
Just checked the mod (out of curiousity). As far as I can see the Mod loads the css as part of the hook "integrate_bbc_buttons".

This hook is not being called in TinyPortal blocks, hence the situation hat the bbc code can be added, but he css is not called...

Like I said: you can add the css you ind in the file mboxes.css to the tp-custom.css file in your theme and the box layout will show in your blocks...
Title: Re: TinyPortal
Post by: @rjen on December 18, 2022, 05:09:32 PM
As a matter of fact, the other Message Boxes mod does work correctly, which makes me think the Mod may need to be updated...

The Mod should also load the css as part of the integrate_bbc_codes hook.
Once I added this one call in the file: BBC-MessageBoxes.php it works also for the Blocks..

Find

public static function bbc_code(&$codes)
{
global $modSettings;

change to

public static function bbc_code(&$codes)
{
global $modSettings;
loadCSSFile('mboxes.css', array('minimize' => true, 'default_theme' => true));

Title: Re: TinyPortal
Post by: serdo on December 19, 2022, 04:20:05 AM
Page is not displayed while installing Turkish language pack
but the site is opening while php version 7.4
is there a solution?
Title: Re: TinyPortal
Post by: serdo on December 19, 2022, 04:23:49 AM
it gives this error

(https://i.hizliresim.com/bxw16ld.jpg)
Title: Re: TinyPortal
Post by: @rjen on December 19, 2022, 05:13:19 AM
Quote from: serdo on December 19, 2022, 04:20:05 AMPage is not displayed while installing Turkish language pack
but the site is opening while php version 7.4
is there a solution?

Please provide the details:
1. What SMF version?
2. What TinyPortal version?
3. What PHP version? (never mind: 7.4)
4. Is this a clean install or an upgrade?
   if it is an upgrade, what blocks (types) are you using?
5. What language pack did you use, where did it come from?
Title: Re: TinyPortal
Post by: serdo on December 19, 2022, 06:20:40 AM
SMF 2.1.3
TinyPortal v2.2.2
smf fresh install
php 8.1 version

I downloaded Turkish language pack from smf official site (https://download.simplemachines.org/index.php?languages)

Title: Re: TinyPortal
Post by: tinoest on December 19, 2022, 06:30:30 AM
Can you confirm there is a TinyPortal folder in your top level directory. (Where Sources and Themes is located)

Can you also confirm the hooks you have, there should be a integrate_pre_include in there.
Title: Re: TinyPortal
Post by: @rjen on December 19, 2022, 06:48:49 AM
I take it we can rule out the Turkisch language: this will be the same when logging on in English I assume?

I am running a test install in PHP8.1.6 and it does not throw these errors...

Title: Re: TinyPortal
Post by: serdo on December 19, 2022, 06:55:44 AM
Quote from: @rjen on December 19, 2022, 06:48:49 AMI take it we can rule out the Turkisch language: this will be the same when logging on in English I assume?

I am running a test install in PHP8.1.6 and it does not throw these errors...



I want to use Turkish language, is there a solution for this?
Title: Re: TinyPortal
Post by: @rjen on December 19, 2022, 06:59:26 AM
Sorry, you are not answering my question: does it work without errors in the English language?

That way at least we may be able to understand where the issue starts?
Title: Re: TinyPortal
Post by: tinoest on December 19, 2022, 08:35:51 AM
See attachements, no issue here.

As I said before it's your environment, without answering questions we can't help you.
Title: Re: TinyPortal
Post by: serdo on December 19, 2022, 10:02:44 AM
Quote from: @rjen on December 19, 2022, 06:59:26 AMSorry, you are not answering my question: does it work without errors in the English language?

That way at least we may be able to understand where the issue starts?


yes there is no problem with english language pack
Title: Re: TinyPortal
Post by: jsx on December 19, 2022, 11:47:42 AM
@@rjen

I understand. Thanks for checking out this mod. :)
Title: Re: TinyPortal
Post by: @rjen on December 20, 2022, 10:12:42 AM
I also installed the Turkish language pack and it work without any errors for me...

2022-12-20_161155.png
Title: Re: TinyPortal
Post by: live627 on December 21, 2022, 03:56:54 AM
I poked you guys (https://github.com/Tinyportal/TinyPortal/issues/937) :D
Title: Re: TinyPortal
Post by: tinoest on December 21, 2022, 04:35:11 AM
Quote from: live627 on December 21, 2022, 03:56:54 AMI poked you guys (https://github.com/Tinyportal/TinyPortal/issues/937) :D

Thanks, I've closed it as it is defined. See the comment.
Title: Re: TinyPortal
Post by: Rick53 on January 13, 2023, 01:52:59 AM
Is it possible to open a block or article in a new window? So without InfoCenter etc.
Title: Re: TinyPortal
Post by: Max22 on January 13, 2023, 07:10:39 AM
Since you provide TinyPortal support here, I thought that someone could help me with this (https://github.com/Tinyportal/TinyPortal/issues/950) request. Is it a feature request that you could implement?
Title: Re: TinyPortal
Post by: @rjen on January 13, 2023, 02:36:32 PM
Quote from: Max22 on January 13, 2023, 07:10:39 AMSince you provide TinyPortal support here, I thought that someone could help me with this (https://github.com/Tinyportal/TinyPortal/issues/950) request. Is it a feature request that you could implement?

This option does not exist in TinyPortal: there is the option available to suppress the shoutbox entries from the profile area, not the others.

Technically it is possible to add such a setting, but I am reluctant to make any promises, mostly because user are already complaining that TinyPortal offers too many 'settings'. I cannot recall seeing this request before: it seems not to be a common request...

But if you want to disable this in the profile, the change can be made in Integrate.php file (in the /Tinyportal folder)

For SMF 2.0 comment out line 67

            'actions'                           => 'TinyPortal\Integrate::hookActions',
//            'profile_areas'                     => 'TinyPortal\Integrate::hookProfileArea',
            'whos_online'                       => 'TinyPortal\Integrate::hookWhosOnline',

and for 2.1 comment out line 103

        if(TP_SMF21) {
            $hooks['redirect']                = 'TinyPortal\Integrate::hookRedirect';
//            $hooks['pre_profile_areas']       = 'TinyPortal\Integrate::hookProfileArea';
            $hooks['pre_load_theme']          = 'TinyPortal\Integrate::hookLoadTheme';
Title: Re: TinyPortal
Post by: Greyhound on January 15, 2023, 09:50:38 AM
Has the install issue for 2.1.3 been resolved? 
Title: Re: TinyPortal
Post by: @rjen on January 15, 2023, 10:05:48 AM
Quote from: Greyhound on January 15, 2023, 09:50:38 AMHas the install issue for 2.1.3 been resolved?

It is not ours to resolve: it is an SMF issue..
But it seems that a fix in SMF has been merged and is tagged for SMF2.1.4: https://github.com/SimpleMachines/SMF/pull/7604
Title: Re: TinyPortal
Post by: @rjen on February 04, 2023, 11:13:17 AM
Due to a bug in SMF2.1.3 upgrading TinyPortal may result in below error messages.
QuoteAll parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead

QuoteDatabase error: Invalid default value for 'item_type'


Attached MOD package can be installed on SMF2.1.3 to allow the upgrade of TinyPortal

Fix DBPackages

Current Version: 1.0
Compatibility: SMF 2.1.3                       


Notice
This patch will replace the files DbPackages-mysql.php and DbPackages-postgresql.php with the version for SMF2.1.4. This is needed to be able to upgrade the TinyPortal package while on SMF2.1.3. Uninstalling the package will retrun the files to the code as delivered in SMF2.1.3, which should allow the forum to be patched to SMF2.1.4 without issues.


Installation
Please note that this package is ONLY for SMF2.1.3 and must be uninstalled prior to upgrading to SMF 2.1.4


Support
This package is created by the TinyPortal support team.

30/01/2023 - v1.0
^ Initial release.

Download:
https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177
Title: Re: TinyPortal
Post by: Rick53 on February 05, 2023, 06:37:43 AM
It is tedious going through the 169 pages and translating them into my native language each time. So please excuse me if this question has been asked before.

I embedded the Statistics block in TP.
I want to change the code slightly. E.g. everything correctly left aligned etc. Can anyone tell me where I can find the source code? So folder and file name.


(SMF Curve)
Title: Re: TinyPortal
Post by: @rjen on February 05, 2023, 09:49:27 AM
The TinyPortal Team is pleased to announce the release of TinyPortal 2.3.0

TinyPortal 2.3.0 can be used on SMF 2.0 and 2.1

Minimum required PHP version : 7.0.0
Highest supported PHP version (tested): 8.1.6

Notes:

NOTICE!:
Due to a bug in SMF 2.1.3 upgrading TinyPortal may result in this error message: "All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead".

In order to update TinyPortal while on SMF 2.1.3 you may need to install the [correction MOD that can be downloaded from the TinyPortal.net support site](https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177).

After applying this MOD you will be able to re-install TinyPortal on SMF 2.1.3. Please note that the correction MOD should be uninstalled prior to patching SMF to version 2.1.4.


This version contains an update of the internal block variable handling: after this upgrade there is no returning to older TinyPortal versions while keeping the existing blocks intact!

Changelog:
This release includes the following changes relevant to SMF 2.0 and 2.1:

New functionality:
- Added new blockcode for Mini Calendar in SMF2.1
- Change to recenttopics block to prevent no topics showing when using unpopular boards
- Added option to 'open in New window' for Menu Buttons created in the menu manager
- New permission to control TinyPortal search functionality
- Updated the Top posters blockcode
Multiple shoutbox updates:
- Updated shoutbox timeformat setting to align with SMF settings
- Added link to shoutbox settings for admins in shoutbox block
- Added options to shoutbox blocks for showing avatars, position of post bar and new messages
- Shoutbox now also allows the smileys from the 'Pop-up' to be used
- Removed 'hover' effect on shoutbox timestamp
- Images in shoutbox now limited to a maximum width to prevent from showing full screen

Bugfixes:
- Fix for BBC articles in SMF2.1 not parsing correctly
- Fixed PHP8.1 error explode(): Passing null to parameter #2 ($string) of type string is deprecated
- Fixed error Undefined variable $grid_recycle
- Fixed help popups showing 'error' in SMF2.1.3
- Fixed some language string typo's
- Fixed undefined index: allow_guestAccess
- Fix for avatar size in articles when 'Resize in user's browser' setting used
- Fixed setting 'Admin can see all blocks'
- Force css update with new install
- Moved Copyright notice to Mod Credits in SMF2.1
- Some updates to shoutbox classes to prevent conflicts with other mods
- Improved block handling resetting block values when changing block type
Title: Re: TinyPortal
Post by: @rjen on February 05, 2023, 10:11:17 AM
Quote from: Rick53 on February 05, 2023, 06:37:43 AMIt is tedious going through the 169 pages and translating them into my native language each time. So please excuse me if this question has been asked before.

I embedded the Statistics block in TP.
I want to change the code slightly. E.g. everything correctly left aligned etc. Can anyone tell me where I can find the source code? So folder and file name.
(SMF Curve)

\Themes\default\TPsubs.template.php

line 361 onwards..

// blocktype 3: Stats
function TPortal_statsbox()
{
global $context, $settings, $scripturl, $txt, $modSettings;

$bullet = '<img src="'.$settings['tp_images_url'].'/TPdivider.png" alt="" style="margin:0 4px 0 0;" />';
$bullet2 = '<img src="'.$settings['tp_images_url'].'/TPdivider2.png" alt="" style="margin:0 4px 0 0;" />';

echo'
<div class="tp_statsblock">';

if(isset($context['TPortal']['userbox']['stats']))
// members stats
echo '
<h5 class="mlist"><a href="'.$scripturl.'?action=mlist">'.$txt['members'].'</a></h5>
<ul>
<li>' . $bullet. $txt['total_members'].': ' , isset($modSettings['memberCount']) ? comma_format($modSettings['memberCount']) : comma_format($modSettings['totalMembers']) , '</li>
<li>' . $bullet. $txt['tp-latest']. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><strong>', $modSettings['latestRealName'], '</strong></a></li>
</ul>';
if(isset($context['TPortal']['userbox']['stats_all']))
// more stats
echo '
<h5 class="stats"><a href="'.$scripturl.'?action=stats">'.$txt['tp-stats'].'</a></h5>
<ul>
<li>'.  $bullet. $txt['total_posts'].': '.comma_format($modSettings['totalMessages']). '</li>
<li>'.  $bullet. $txt['total_topics'].': '.comma_format($modSettings['totalTopics']). '</li>
<li>' . $bullet. $txt['tp-mostonline-today'].': '.comma_format($modSettings['mostOnlineToday']).'</li>
<li>' . $bullet. $txt['tp-mostonline'].': '.comma_format($modSettings['mostOnline']).'</li>
<li>('.timeformat($modSettings['mostDate']).')</li>
</ul>';

if(isset($context['TPortal']['userbox']['online']))
{
// add online users
echo '
<h5 class="online"><a href="'.$scripturl.'?action=who">'.$txt['online_users'].'</a></h5>
<div class="tp_stats_users" style="line-height: 1.3em;">';

$online = ssi_whosOnline('array');
echo  $bullet. $txt['tp-users'].': '.$online['num_users']. '<br>
'. $bullet. $txt['tp-guests'].': '.$online['guests'].'<br>
'. $bullet. $txt['tp-total'].': '.$online['total_users'].'<br>
<div style="max-height: 23em; overflow: auto;">';

foreach($online['users'] as $user)
{
echo  $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];
echo '<br>';
}
echo '
</div></div>';
}
echo '
</div>';
}
Title: Re: TinyPortal
Post by: txcas on February 06, 2023, 04:48:36 PM
I tried to upgrade from version 2.2.2 to 2.30 on SMF 2.1.3 and the installation failed with this error:
Invalid default value for 'item_type'
File: /home/creedmoo/public_html/Packages/temp/install.php
Line: 354

Now I also get the same error if I try to install version 2.2.2. Error log also shows:
Database Error: Invalid default value for 'item_type'
Title: Re: TinyPortal
Post by: tinoest on February 06, 2023, 04:55:00 PM
Quote from: txcas on February 06, 2023, 04:48:36 PMI tried to upgrade from version 2.2.2 to 2.30 on SMF 2.1.3 and the installation failed with this error:
Invalid default value for 'item_type'
File: /home/creedmoo/public_html/Packages/temp/install.php
Line: 354

Now I also get the same error if I try to install version 2.2.2. Error log also shows:
Database Error: Invalid default value for 'item_type'



NOTICE!:
Due to a bug in SMF 2.1.3 upgrading TinyPortal may result in this error message: "All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead".

In order to update TinyPortal while on SMF 2.1.3 you may need to install the [correction MOD that can be downloaded from the TinyPortal.net support site](https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177).

After applying this MOD you will be able to re-install TinyPortal on SMF 2.1.3. Please note that the correction MOD should be uninstalled prior to patching SMF to version 2.1.4.
Title: Re: TinyPortal
Post by: txcas on February 06, 2023, 05:01:42 PM
Thanks for the prompt respond. Everything is working again!
Title: Re: TinyPortal
Post by: jsx on February 07, 2023, 04:27:14 AM
The first page in this topic does not load fully. After entering the TinyPortal modification, the following error is displayed:

This page is not working
The custom.simplemachines.org server cannot handle this request right now.

HTTP ERROR 500
Title: Re: TinyPortal
Post by: Shades. on February 07, 2023, 05:34:44 AM
I confirm! Same with the SendGrid (https://custom.simplemachines.org/index.php?mod=4357) mod and maybe others! :o
Title: Re: TinyPortal
Post by: jsx on February 07, 2023, 06:40:14 AM
I downloaded TinyPortal 2.3.0 from tinyportal.net and installed Fix DBPackages (https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177) then installed TP 2.3.0

Thank you for releasing this version and thank you for implementing some of my suggestions:

Quote from: jsx on October 13, 2022, 05:54:17 AM1. Adding the ability to set newer entries to be displayed at the bottom. Currently, the new entry is displayed at the top.

Quote from: jsx on October 13, 2022, 05:54:17 AM2. Adding the function "Enable display avatars", I mean to display, for example, a round avatar of a user next to his entry. Avatars of users beautify the shoutbox window. Currently it is so empty.

Quote from: jsx on October 13, 2022, 05:54:17 AM5. Adding a function (icon) to go to shoutbox settings, there next to the history icon.

Quote from: jsx on October 13, 2022, 05:54:17 AM6. Adding the ability for more emoticons to appear in [more].

Quote from: jsx on October 13, 2022, 05:54:17 AM8. Change the date display in this layout so that the date is displayed before these buttons:

(https://i.imgur.com/eTLzLjp.png)

Quote from: jsx on October 13, 2022, 05:54:17 AM11. Adding the ability to insert an image as img

Bugs noticed:

1. TinyPortal 2.3.0 footer is not displayed in the footer on the home page of the portal.

2. The following errors are generated in the error log:

(https://i.imgur.com/3aUckWH.png)

Examples of errors:

(https://i.imgur.com/azxdmtQ.png)

(https://i.imgur.com/Zf6TjNn.png)

(https://i.imgur.com/sXahQk7.png)

(https://i.imgur.com/TMVodKW.png)

(https://i.imgur.com/kw1VXsF.png)

User avatars not displaying fully:

(https://i.imgur.com/2WhQbWu.png)

Questions:

Can I change the size of the display field for additional emoticons?

Is it possible to implement a clickable image? After adding the image to the shoutbox, the image is displayed in a reduced size and that's fine, but can't click on it to open it in full size.
Title: Re: TinyPortal
Post by: @rjen on February 07, 2023, 06:59:54 AM
Quote from: jsx on February 07, 2023, 04:27:14 AMThe first page in this topic does not load fully. After entering the TinyPortal modification, the following error is displayed:

This page is not working
The custom.simplemachines.org server cannot handle this request right now.

HTTP ERROR 500

This is NOT a TinyPortal issue
Title: Re: TinyPortal
Post by: @rjen on February 07, 2023, 07:02:56 AM
QuoteBugs noticed:

1. TinyPortal 2.3.0 footer is not displayed in the footer on the home page of the portal.

2. The following errors are generated in the error log:

1. Is not a bug, but a conscious change. See the release note

2. We have seen those. It seems die to caching someone users still have old version of the changes script

This shoul go away over time as local caches expire
Title: Re: TinyPortal
Post by: Steve on February 07, 2023, 09:51:23 AM
@Shades. and @jsx - Those errors are fixed now.
Title: Re: TinyPortal
Post by: jsx on February 10, 2023, 11:34:31 AM
@@rjen

Okay, after clearing the cache, these errors will not appear.

Are you going to fix the incorrect display of the user avatar?

I reported that the avatar was not displaying correctly on November 21:

https://www.simplemachines.org/community/index.php?topic=27642.msg4139393#msg4139393

What do you think about this topic now?

https://www.simplemachines.org/community/index.php?topic=27642.msg4134050#msg4134050

Do you leave it as it is or will you write this code in the future?

Quote from: @rjen on September 13, 2022, 08:36:15 AMChanging the Tinyportal block function is possible but it will require to create some coding, where the ssi function is available out of the box...
I am not sure what the priority of such a change would be: I personally would just deactivate the setting "Show group key on board index" and be done with it...
Title: Re: TinyPortal
Post by: @rjen on February 10, 2023, 11:55:41 AM
Quote from: jsx on February 10, 2023, 11:34:31 AMOkay, after clearing the cache, these errors will not appear.
Good

Quote from: jsx on February 10, 2023, 11:34:31 AMAre you going to fix the incorrect display of the user avatar?

I reported that the avatar was not displaying correctly on November 21:

https://www.simplemachines.org/community/index.php?topic=27642.msg4139393#msg4139393
Is that still an issue? I thought that was fixed.
I recall this may be caused by an avatar sizing in SMF in combination with a very large avatar size?

Quote from: jsx on February 10, 2023, 11:34:31 AMWhat do you think about this topic now?

https://www.simplemachines.org/community/index.php?topic=27642.msg4134050#msg4134050

Do you leave it as it is or will you write this code in the future?

Quote from: @rjen on September 13, 2022, 08:36:15 AMChanging the Tinyportal block function is possible but it will require to create some coding, where the ssi function is available out of the box...
I am not sure what the priority of such a change would be: I personally would just deactivate the setting "Show group key on board index" and be done with it...
I am not going to change that

Title: Re: TinyPortal
Post by: jsx on February 10, 2023, 02:32:26 PM
Quote from: @rjen on February 10, 2023, 11:55:41 AMIs that still an issue? I thought that was fixed.
I recall this may be caused by an avatar sizing in SMF in combination with a very large avatar size?

Yes, that's still an issue. Even the default 100x100 avatar is not displayed correctly.

(https://media.simplemachinesweb.com/smf/avatars/default.png)
Title: Re: TinyPortal
Post by: @rjen on February 10, 2023, 03:20:40 PM
Well it is not on any of my sites...
Title: Re: TinyPortal
Post by: tinoest on February 10, 2023, 03:24:51 PM
Quote from: @rjen on February 10, 2023, 03:20:40 PMWell it is not on any of my sites...

It's broken on the main TinyPortal Forum, well the avatar isn't resized.

https://www.tinyportal.net/index.php?action=forum

Screenshot 2023-02-10 at 20.24.27.png

There needs to be a width: 100% on the avatar img and then the icons need a width: auto.

Although the edit icon showing all the time is annoying.
Title: Re: TinyPortal
Post by: @rjen on February 10, 2023, 03:36:03 PM
Interesting. I will check it...

FYI

39369374-8755-4030-A974-97497F9453BA.jpeg
Title: Re: TinyPortal
Post by: @rjen on February 10, 2023, 05:21:15 PM
It seems to only happen on SMF2.0 (and perhaps on some non standard themes)

in tp-shout.css find

.tp_shoutavatar2 {
    float: left;
    margin: 0 6px 0 0;
    padding: 1px;
    width: 2.6em;
    height: 2.6em;
    overflow: hidden;
}

and add after that
.tp_shoutavatar2 img {
    max-width: 100%;
}
Title: Re: TinyPortal
Post by: jsx on February 11, 2023, 07:03:13 AM
I entered this code into tp-shout.css and unfortunately the avatar still doesn't display fully.
Title: Re: TinyPortal
Post by: dodos26 on February 11, 2023, 07:32:18 AM
Clear cache?
Title: Re: TinyPortal
Post by: jsx on February 11, 2023, 09:36:45 AM
I cleared the forum cache and the avatar still doesn't display correctly.
Title: Re: TinyPortal
Post by: @rjen on February 11, 2023, 10:38:27 AM
Quote from: jsx on February 11, 2023, 09:36:45 AMI cleared the forum cache and the avatar still doesn't display correctly.

Then I will need to see your site: perhaps some mod is interfering with the css
Title: Re: TinyPortal
Post by: jsx on February 12, 2023, 01:07:46 PM
I installed TinyPortal 2.3.0 on a clean SMF 2.1.3 forum, entered this code you provided, cleared the forum cache and the avatar looks like this:

(https://i.imgur.com/Y1h4sah.png)
Title: Re: TinyPortal
Post by: @rjen on February 12, 2023, 01:19:37 PM
Sorry, but I cannot reproduce it with the fix I provided
Title: Re: TinyPortal
Post by: jsx on February 13, 2023, 06:38:18 AM
How is it possible that avatar still doesn't display correctly on my forum?

Once again I installed SMF 2.1.3, uploaded TP 2.3.0 and entered this code into the tp-shout.css file, uploaded the file to the server, cleared the forum cache.

.tp_shoutavatar2 img {
    max-width: 100%;
}

I added the above code here:

.tp_shoutavatar2 {
float: left;
max-width: 100%;
margin: 0 6px 0 0;
padding: 1px;
width: 2.6em;
height: 2.6em;
overflow: hidden;
}
.tp_shoutavatar2 img {
    max-width: 100%;
}

The avatar looks like this:

(https://i.imgur.com/eAY9blC.png)
Title: Re: TinyPortal
Post by: tinoest on February 13, 2023, 07:00:45 AM
Without knowing what your website is I am not sure how we can help you further?
Title: Re: TinyPortal
Post by: @rjen on February 13, 2023, 08:17:51 AM
@jsx , since you are not giving any link to where this happens, it is REALLY hard for us to think of what may be going wrong in you site.

Just had a brainwave, and perhaps you are willing to check the setting on avatars in your forum:
"If the avatar is too large"

I am guessing you have set it to 'resize in the users' browser'
Try changing that to: Download and resize on the server?

If that is indeed the case, and you are not willing to change the setting,  then the only solution is have is changing the css code to this...

.tp_shoutavatar2 img {
    max-width: 100% !important;
}
Title: Re: TinyPortal
Post by: jsx on February 13, 2023, 09:36:26 AM
Quote from: tinoest on February 13, 2023, 07:00:45 AMWithout knowing what your website is I am not sure how we can help you further?

I understand it Tino, but I was surprised to see the same thing on the new, clean forum. But rjen figured out what it was.

Quote from: @rjen on February 13, 2023, 08:17:51 AMJust had a brainwave, and perhaps you are willing to check the setting on avatars in your forum:
"If the avatar is too large"

I am guessing you have set it to 'resize in the users' browser'
Try changing that to: Download and resize on the server?

You're right, I changed it to "Download and resize it on the server" and now the avatar looks fine.

Quote from: @rjen on February 13, 2023, 08:17:51 AMIf that is indeed the case, and you are not willing to change the setting,  then the only solution is have is changing the css code to this...

Thanks for your help, this code now works fine if I set "Resize it in the users' browser" again.

.tp_shoutavatar2 img {
    max-width: 100% !important;
}

Guys, I'd like to reiterate my two questions:

Can I change the size of the display field for additional emoticons?

Is it possible to implement a clickable image? After adding the image to the shoutbox, the image is displayed in a reduced size and that's fine, but can't click on it to open it in full size.
Title: Re: TinyPortal
Post by: @rjen on February 13, 2023, 11:13:15 AM
Quote from: jsx on February 13, 2023, 09:36:26 AMCan I change the size of the display field for additional emoticons?

Is it possible to implement a clickable image? After adding the image to the shoutbox, the image is displayed in a reduced size and that's fine, but can't click on it to open it in full size.

item 1: probably, but you will have to do it yourself.

Target this element with css:
id="expandHeaderSmiley_1"

item 2: we will not change images in the shoutbox to be clickable and expand....
Title: Re: TinyPortal
Post by: jsx on February 15, 2023, 11:20:36 AM
Quote from: @rjen on February 13, 2023, 11:13:15 AMitem 1: probably, but you will have to do it yourself.

Target this element with css:
id="expandHeaderSmiley_1"

It seems that you misunderstood me. Because to extend the field in which additional emoticons are displayed, just do it in the tp-shout.css file in the "max-height" line.

.tp_shout_smileybox {
    display: inline-block;
    vertical-align: top;
    min-width:150px;
    max-height: 5.1em;
    overflow: auto;
}

Default size 5.1em:

(https://i.imgur.com/URkY1IV.png)

Increased size to 150em:

(https://i.imgur.com/OxtXSMz.png)

And that's what I meant.

P.S. I know it doesn't matter for the action, but you have some codes entered without spaces:

.tp_shout_smileybox {
    display: inline-block;
    vertical-align: top;
    min-width:150px;
    max-height: 5.1em;
    overflow: auto;
}

.tp_shout_bbcbox {
    display: inline-block;
    min-width:150px;
    vertical-align: top;
}

I just noticed that and wanted to mention it.

Quote from: @rjen on February 13, 2023, 11:13:15 AMitem 2: we will not change images in the shoutbox to be clickable and expand....

I understand this won't be a default feature, but can you help me implement it for me?
Title: Re: TinyPortal
Post by: @rjen on February 15, 2023, 12:08:24 PM
Quote from: jsx on February 15, 2023, 11:20:36 AM
Quote from: @rjen on February 13, 2023, 11:13:15 AMitem 2: we will not change images in the shoutbox to be clickable and expand....

I understand this won't be a default feature, but can you help me implement it for me?

I checked the question, and if it was simple I would have implemented it. The way I see it, what you want is requiring a JavaScript solution. I am not good with that, so I cannot help you. Perhaps someone else is willing to hint a solution: I would consider to make it standard...
Title: Re: TinyPortal
Post by: jsx on February 16, 2023, 03:37:55 AM
Hi rjen, I understand. Thanks for the clarification. It would be nice if someone savvy in this could help implement it.

Thanks again to the TinyPortal team for development this shoutbox.
Title: Re: TinyPortal
Post by: thatjustit on February 20, 2023, 08:30:55 PM
I got "syntax error" after trying to install it on SMF 2.0.19, how do I investigate what's wrong?
Title: Re: TinyPortal
Post by: @rjen on February 21, 2023, 01:30:55 AM
You can start with specifying the details: what TinyPortal version are you installing, what is the full error message and at what point in the install process do you get it; before, during, after..,?

Please give us as much details as possible.
Title: Re: TinyPortal
Post by: DeadMan... on February 24, 2023, 08:35:26 PM
I have TP running on a site that is private at the moment.
However, the only issue I'm having is a general one, so a link would not be needed anyways.

How do I disable allowing the panels from being hid?
I notice that can set blocks to be able to be collapsed, but not finding the setting for panels not to be able to be collapsed.

TinyPortal_Collapse_Panels.png
Title: Re: TinyPortal
Post by: lurkalot on February 24, 2023, 09:11:38 PM
Quote from: DeadMan... on February 24, 2023, 08:35:26 PMHow do I disable allowing the panels from being hid?

TinyPortal Admin > Settings >>  Uncheck the box next to > Allow the panels to be collapsed

And save.
Title: Re: TinyPortal
Post by: DeadMan... on February 24, 2023, 09:19:32 PM
Quote from: lurkalot on February 24, 2023, 09:11:38 PMTinyPortal Admin > Settings >>  Uncheck the box next to > Allow the panels to be collapsed

And save.

Thank you.
Somehow, I missed it. More likely lack of sleep. LOL
Title: Re: TinyPortal
Post by: DeadMan... on February 25, 2023, 12:52:47 PM
SMF 2.1.3
TinyPortal 2.3.0
fixDbPackages advance fix for SMF2.1.3   1.0



2 Errors:

Themes/default/TPsubs.template.php (Line 436)
Type of error: Undefined
8: Undefined index: useavatar


Sources/TPortal.php (Line 1891)
Type of error: Undefined
8: Undefined index: var1



Narrowed down the issue to the default Online block.
Tried the other online block available, and no longer get the errors.
Title: Re: TinyPortal
Post by: @rjen on February 25, 2023, 12:56:46 PM
No way to analyze without the full error, including the action that the user is performing.

Please provide that info.

Also is it a new install or did you upgrade.

If you upgraded: what custom blocks do you have?
Title: Re: TinyPortal
Post by: DeadMan... on February 25, 2023, 01:01:46 PM
It was any page load that produced the error.
That's how narrowed it down to the one block.

This was on full install on TP, and no custom blocks at the time.
Title: Re: TinyPortal
Post by: @rjen on February 25, 2023, 01:05:49 PM
Please post the action that is in the log. This error is not common on all installs, so there is something specific to yours


What block?
Title: Re: TinyPortal
Post by: DeadMan... on February 25, 2023, 01:10:54 PM
Quote from: DeadMan... on February 25, 2023, 12:52:47 PMNarrowed down the issue to the default Online block.
Tried the other online block available, and no longer get the errors.

Actions:

index.php?action=forum
index.php?action=admin;area=logs;sa=errorlog;desc
index.php?action=admin
index.php?action=moderate
index.php?action=tpadmin

Like I said:

Quote from: DeadMan... on February 25, 2023, 01:01:46 PMIt was any page load that produced the error.
Title: Re: TinyPortal
Post by: @rjen on February 25, 2023, 01:38:50 PM
So, issue solved...
Title: Re: TinyPortal
Post by: DeadMan... on February 25, 2023, 01:40:51 PM
Unless use default Online block, yes.
I will try to make a test site later, and see if can reproduce on fresh installs of all 3.
Title: Re: TinyPortal
Post by: lurkalot on February 25, 2023, 02:22:26 PM
Quote from: DeadMan... on February 25, 2023, 01:40:51 PMUnless use default Online block, yes.
I will try to make a test site later, and see if can reproduce on fresh installs of all 3.

Very strange, I haven't managed to make it blurt any errors, on various upgraded versions as well a new install Of SMF 2.1.3
Title: Re: TinyPortal
Post by: DeadMan... on February 25, 2023, 02:45:22 PM
Quote from: lurkalot on February 25, 2023, 02:22:26 PMVery strange, I haven't managed to make it blurt any errors, on various upgraded versions as well a new install Of SMF 2.1.3

I can tell that it does have something to do with avatars in the default Online block, and recently discovered same errors when tried the default Recent Topics block, as well.

Could have something to do with the fact that had TP 2.2.2 installed first, then uninstalled it to install 2.3.0.

Using the secondary blocks for them works fine, and IMHO, looks better, anyways. :)
Title: Re: TinyPortal
Post by: @rjen on February 25, 2023, 03:02:17 PM
I asked if you did a clean install. So you did not: you actually upgraded from 2.2.2

Title: Re: TinyPortal
Post by: DeadMan... on February 25, 2023, 03:09:03 PM
I had 2.2.2 installed, then uninstalled it.
I did not realize before that it was outdated, or I'd have installed 2.3.0 first.
When uninstalled, I figured it would be a fresh install when installed 2.3.0.
Did not realize the database info was not deleted, until afterwards.
Title: Re: TinyPortal
Post by: DeadMan... on February 25, 2023, 05:51:30 PM
I seem to have found an issue that never expected.
When do HTML block, and have a textarea in the contents, it'll cut off at the closing of the textarea.
When it does that, it goes and actually closes the textarea of the block.

Before save:
TP_Textarea_1.png

After save:
TP_Textarea_2.png

Notice how it got cut off?
Look at bottom, just under the textarea for the block, the image that should have been aftter the closing textarea is showing where it should not be.

I have no idea how to do the textarea so it won't clash with the block's. 
Title: Re: TinyPortal
Post by: @rjen on February 26, 2023, 05:02:00 AM
Confirmed. Seems to be a bug.

Workaround: do not use texarea elements in a html block, but use a  div instead...
Title: Re: TinyPortal
Post by: DeadMan... on February 26, 2023, 05:15:41 AM
That may not be possible for this code.
It would get parsed and not show the code for people to get.
However, another workaround is, once saved, it does actually work, even though it shows that way in the block editor. You'd have to re-paste the code every time want to change it, but it's doable.

Just figured to let you know about the issue, so maybe can be fixed. :)
Title: Re: TinyPortal
Post by: @rjen on February 26, 2023, 05:17:03 AM
Quote from: DeadMan... on February 26, 2023, 05:15:41 AMThat may not be possible for this code.
It would get parsed and not show the code for people to get.
However, another workaround is, once saved, it does actually work, even though it shows that way in the block editor. You'd have to re-paste the code every time want to change it, but it's doable.

Just figured to let you know about the issue, so maybe can be fixed. :)

If you want the code to be parsed you may better put it into a php block...
Title: Re: TinyPortal
Post by: DeadMan... on February 26, 2023, 05:39:03 AM
What it is, is a way for people to copy an affiliates code.
I need it where they can see the HTML code to copy.
I tried using <code> and <pre>  tags, but no-go on them working.
It still gets parsed. Need something like a bbc code block for HTML:

<a href="https://www.deadman.cc.nf" target="_blank" <img src="https://www.deadman.cc.nf/images/DK_Mini.png" alt="DeadMan Knows - Rants, Raves & Reviews" title="DeadMan Knows - Rants, Raves & Reviews" border="0" width="88" height="31" /> </a>
Not too sure what else could try.



On another note, may have found another bug:
Posts show BBC code block fine, but if have HTML in the BBC code block, the > gets removed when viewing the post on the TP frontpage:

Post:
TP_Post_Code_Block.png

Frontpage:
TP_FP_Code_Block.png 
Title: Re: TinyPortal
Post by: @rjen on February 26, 2023, 01:01:47 PM
Could you post the full code of your post in a code block here? So I can use it for some tests?
Title: Re: TinyPortal
Post by: @rjen on February 26, 2023, 01:12:39 PM
Quote from: DeadMan... on February 26, 2023, 05:15:41 AMThat may not be possible for this code.
It would get parsed and not show the code for people to get.
However, another workaround is, once saved, it does actually work, even though it shows that way in the block editor. You'd have to re-paste the code every time want to change it, but it's doable.

You may better work around this by making it a BBC block: put the code in the [code ] tags and you do not need the < textarea> at all..

<a href="https://www.deadman.cc.nf" target="_blank"><img src="https://www.deadman.cc.nf/images/DK_Mini.png" alt="DeadMan Knows - Rants, Raves & Reviews" title="DeadMan Knows - Rants, Raves & Reviews" border="0" width="88" height="31" /></a>
Title: Re: TinyPortal
Post by: DeadMan... on February 26, 2023, 01:15:08 PM
Here's the part that's got the issue in the HTML (and php) block settings code block.

<div align="center"><table width="95%">
  <tr><td colspan="2" align="center"><strong>If you would like to affiliate with us, please use the code below, to add us to your site.<br />
You can reply to the <a href="https://www.deadman.cc.nf/index.php?topic=7.0">Affiliates Requests thread</a>, to send us your code. Images need to be 88x31px.</strong></td></tr><tr>
      <td align="right" valign="middle"><textarea name="affiliates" readonly="true" onclick="this.select()" style="width:100%; height: 31px; font-size: 10pt;"><a href="https://www.deadman.cc.nf" target="_blank"><img src="https://www.deadman.cc.nf/images/DK_Mini.png" alt="DeadMan Knows - Rants, Raves & Reviews" title="DeadMan Knows - Rants, Raves & Reviews" border="0" width="88" height="31" /></a></textarea></td><td width="100" align="right" valign="middle"><img src="https://www.deadman.cc.nf/images/DK_Mini.png" alt="DeadMan Knows - Rants, Raves & Reviews" title="DeadMan Knows - Rants, Raves & Reviews" border="0" width="88" height="31" />
</td>
    </tr>
</table></div>

Here's the one that gets the > cut off on board news frontpage:

<a href="https://www.deadman.cc.nf" target="_blank" <img src="https://www.deadman.cc.nf/images/DK_Mini.png" alt="DeadMan Knows - Rants, Raves & Reviews" title="DeadMan Knows - Rants, Raves & Reviews" border="0" width="88" height="31" /> </a>

I've found a fix, for theme using, by placing it into the template file, in the footer.
However, it would still be nice to work it via the blocks.
With having a lot of affiliates that have the HTML codes, it would be a rather pain to remake them all for a BBC block.
Title: Re: TinyPortal
Post by: @rjen on February 26, 2023, 01:31:18 PM
I would realy recommend not using table layouts: that is usually a recipe for problems these days.

Change your block to BBC and try this for bbc code...
[center][b]Affiliates Requests[/b]
If you would like to affiliate with us, please use the code below, to add us to your site.
You can reply to the <a href="https://www.deadman.cc.nf/index.php?topic=7.0"> Affiliates Requests thread</a>, to send us your code. Images need to be 88x31px.
[/center]
[code*]<a href="https://www.deadman.cc.nf" target="_blank"><img src="https://www.deadman.cc.nf/images/DK_Mini.png" alt="DeadMan Knows - Rants, Raves & Reviews" title="DeadMan Knows - Rants, Raves & Reviews" border="0" width="88" height="31" /></a>[/code*]
[img width=88 height=31]https://www.deadman.cc.nf/images/DK_Mini.png[/img]

just change the code* to code before you use it
Title: Re: TinyPortal
Post by: DeadMan... on February 26, 2023, 01:46:14 PM
That works. Had to modify the link to the thread, since was still HTML, not BBC, but did some tweaks, and got it looking okay. Converting a dozen HTML affiliates codes to BBC was a bit of a pain, though. LOL
Title: Re: TinyPortal
Post by: @rjen on February 26, 2023, 04:15:57 PM
Quote from: @rjen on February 26, 2023, 05:02:00 AMConfirmed. Seems to be a bug.

Workaround: do not use texarea elements in a html block, but use a  div instead...

Not a bug apparently...

Textarea is used to input data.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

What is happening is expected behaviour.

You cannot use an html block to input data, therefor you should not be using input elements in html blocks...
Title: Re: TinyPortal
Post by: DeadMan... on February 26, 2023, 04:20:01 PM
Well, it has worked for me for years, doing as was. On straight HTML as well as on another portal.
However, as much work as it was switching everything to BBC, I do admit, it does work nice, as well as look good.
Title: Re: TinyPortal
Post by: thatjustit on February 28, 2023, 04:57:55 AM
When installing I have an error
A backup could not be made before making changes. No changes have been made at this time as a result (either change the permissions so Packages/backup can be written to, or turn off backups - not recommended)
What permissions should I change?
Title: Re: TinyPortal
Post by: DeadMan... on March 05, 2023, 02:28:59 PM
A couple of images I figured others may like to use for the expand/collapse.
Upload to Themes/default/images/tinyportal
Title: Re: TinyPortal
Post by: DeadMan... on March 07, 2023, 08:33:14 AM
Is there a way to allow guests to post in the shoutbox?
Title: Re: TinyPortal
Post by: @rjen on March 07, 2023, 11:31:43 AM
Not in the standard.

I know that someone modified files to make it possible, but I do not know the details.

In general we do not allow guests to shout or leave comments...
Title: Re: TinyPortal
Post by: jsx on March 11, 2023, 04:00:56 AM
@@rjen, @tinoest

It's great that in the shoutbox there is an option to add an image in the entry, but there are people who do not know that need to create an img tag and paste a link between it. Do you have the possibility to implement a button in the shoutbox to insert an image in the bbcode?

(https://i.imgur.com/Pf1Z93d.png)
Title: Re: TinyPortal
Post by: DeadMan... on March 11, 2023, 05:17:31 AM
Quote from: jsx on March 11, 2023, 04:00:56 AM@@rjen, @tinoest

It's great that in the shoutbox there is an option to add an image in the entry, but there are people who do not know that need to create an img tag and paste a link between it. Do you have the possibility to implement a button in the shoutbox to insert an image in the bbcode?

(https://i.imgur.com/Pf1Z93d.png)

This is good idea, and I'd also like to see the insert link button, as well. :)
Title: Re: TinyPortal
Post by: @rjen on March 11, 2023, 07:47:45 AM
You asked this before, and I am not planning to add this.  The shoutbox is meant for chat, not a full blown post...
Title: Re: TinyPortal
Post by: DeadMan... on March 11, 2023, 10:14:34 AM
Quote from: @rjen on March 11, 2023, 07:47:45 AMYou asked this before, and I am not planning to add this.  The shoutbox is meant for chat, not a full blown post...

Some people still like to have images and links posted in the shoutbox. It's not that unreasonable.
True, with the buttons come the chances of people abusing the shoutbox, so that would be more a reason to be hesitant to add them. Even I had been thinking about the chances of abuse for a bit.
Title: Re: TinyPortal
Post by: Arantor on March 11, 2023, 10:52:02 AM
Quote from: DeadMan... on March 11, 2023, 10:14:34 AMIt's not that unreasonable.

No but it's really really annoying for most *other* users.
Title: Re: TinyPortal
Post by: DeadMan... on March 19, 2023, 05:25:15 AM
From post: https://www.simplemachines.org/community/index.php?msg=4148201
Onwards. Here's the gist of it:

Installed TP on test forum, and now prefix doesn't show up on board index and info center.

Without TinyPortal:

[url="https://www.simplemachines.org/community/index.php?action=dlattach;attach=286187;type=preview;file"]Prefix_WithOut_TP.jpg[/url]

With TinyPortal:

[url="https://www.simplemachines.org/community/index.php?action=dlattach;attach=286185;type=preview;file"]Prefix_With_TP.jpg[/url]

Found that it's to do with the frontpage part of TinyPortal.
In order to see the prefix, got to disable the TP frontpage, and have it go directly to board index.
Wonder if there's some issue with the ?action=forum that the prefix mod does not like?


Quote from: Diego Andrés on March 18, 2023, 10:56:58 PMIt does seem to have an issue with TP.

I wouldn't know about TP at all and don't want to guess about it.
@@rjen might be able to help us.

This mod uses integrate_mark_read_button for those areas.
Title: Re: TinyPortal
Post by: Steve on March 19, 2023, 05:32:29 AM
I was going to post to see if he would take a look but then I realized Diego tagged him so he would look anyway.  :P
Title: Re: TinyPortal
Post by: tinoest on March 19, 2023, 05:46:15 AM
We don't use that hook, so shouldn't be a conflict there.

Is there anything in the log?
Title: Re: TinyPortal
Post by: DeadMan... on March 19, 2023, 06:10:58 AM
Quote from: tinoest on March 19, 2023, 05:46:15 AMWe don't use that hook, so shouldn't be a conflict there.

Is there anything in the log?

No errors. Just no prefix display where should.
Title: Re: TinyPortal
Post by: tinoest on March 19, 2023, 07:00:08 AM
What hooks are shown on the admin page?
Title: Re: TinyPortal
Post by: lurkalot on March 19, 2023, 08:00:43 AM
Quote from: tinoest on March 19, 2023, 05:46:15 AMWe don't use that hook, so shouldn't be a conflict there.

Is there anything in the log?

Just tested it, and it does indeed disappear from the forum index when the TinyPortal front page is active.

Example, in TP Frontpage settings you select "Go directly to forum index" then the prefix comes back.. I'm guessing it's something to do with the url to the forum index changing when you have the front page active,

With front page the forum index is /index.php?action=forum

Without front page it's just /index.php

Title: Re: TinyPortal
Post by: DeadMan... on March 19, 2023, 09:24:45 AM
Quote from: lurkalot on March 19, 2023, 08:00:43 AMExample, in TP Frontpage settings you select "Go directly to forum index" then the prefix comes back.. I'm guessing it's something to do with the url to the forum index changing when you have the front page active,

With front page the forum index is /index.php?action=forum

Without front page it's just /index.php


This is what I figured, but the question is, why?
Title: Re: TinyPortal
Post by: @rjen on March 19, 2023, 10:06:30 AM
Quite frankly, I would except the mod author to be able to answer why that mod does not 'like' it
Title: Re: TinyPortal
Post by: tinoest on March 19, 2023, 10:28:11 AM
Ok, it's a issue with the other mod not TinyPortal.

Just found the line causing the problem. Please ask the other Mod Author to check the boardHooks function.
Title: Re: TinyPortal
Post by: RustyBarnacle on March 19, 2023, 03:41:45 PM
Quote from: @rjen on February 07, 2023, 06:59:54 AM
Quote from: jsx on February 07, 2023, 04:27:14 AMThe first page in this topic does not load fully. After entering the TinyPortal modification, the following error is displayed:

This page is not working
The custom.simplemachines.org server cannot handle this request right now.

HTTP ERROR 500

This is NOT a TinyPortal issue

Is it possible to point a person in the right direction please?  I've spent about an hour going through searches and can't find how to fix this.
Title: Re: TinyPortal
Post by: Arantor on March 19, 2023, 03:54:47 PM
Wait, you're trying to fix an issue with custom.simplemachines.org (the customisation site here)? or your own site?

If it is your own site, what is in the error log? (the *server* error log)
Title: Re: TinyPortal
Post by: RustyBarnacle on March 19, 2023, 06:37:08 PM
It was my own site.  I fixed it by going to PHP 7.4.  Originally was PHP 7.2.
Title: Re: TinyPortal
Post by: @rjen on March 19, 2023, 07:05:51 PM
The report stated that that the first page HERE was not loading. This site does not run TinyPortal, so therefore the conclusion.
Title: Re: TinyPortal
Post by: DeadMan... on March 19, 2023, 08:41:02 PM
Okay, now I get this error:

When go into SMF's permissions.

 DeadMan
 /index.php?action=admin;area=permissions;
 /Sources/ManagePermissions.php (Line 1681)

Type of error: Undefined
Error message
2: Undefined array key "permissionname_tp_can_search"
Title: Re: TinyPortal
Post by: tinoest on March 20, 2023, 06:10:59 AM
Quote from: DeadMan... on March 19, 2023, 08:41:02 PMOkay, now I get this error:

When go into SMF's permissions.

 DeadMan
 /index.php?action=admin;area=permissions;
 /Sources/ManagePermissions.php (Line 1681)

Type of error: Undefined
Error message
2: Undefined array key "permissionname_tp_can_search"

https://github.com/search?q=repo%3ATinyportal%2FTinyPortal%20permissionname_tp_can_search&type=code

Can you checked you have the latest language file.
Title: Re: TinyPortal
Post by: DeadMan... on March 20, 2023, 07:24:50 AM
Quote from: tinoest on March 20, 2023, 06:10:59 AMhttps://github.com/search?q=repo%3ATinyportal%2FTinyPortal%20permissionname_tp_can_search&type=code

Can you checked you have the latest language file.

I had downloaded the latest version from the mod site. I edited the file and added the part you showed in the link and no more errors.

You may want to check the current version since it appears to not have the updated file.
Title: Re: TinyPortal
Post by: @rjen on March 20, 2023, 10:31:58 AM
Quote from: DeadMan... on March 20, 2023, 07:24:50 AMI had downloaded the latest version from the mod site. I edited the file and added the part you showed in the link and no more errors.

You may want to check the current version since it appears to not have the updated file.

Just downloaded the package from the site here and checked the file... the string is in there...
2023-03-20_153050.jpg
Title: Re: TinyPortal
Post by: DeadMan... on March 20, 2023, 11:21:33 AM
@@rjen
That's strange. I know I downloaded it from the mod site.
Will look through the file when get back to my PC.
Title: Re: TinyPortal
Post by: DeadMan... on April 01, 2023, 06:00:45 PM
Trying to place a block into a topic.
Is this possible?
I tried in the "Custom actions (format: action1,action2) - will be added to actions list above. To remove, simply uncheck" section to place: topic=2.0
This did not work.

What trying to accomplish, is to have a block showing that will have images available for people to copy/paste to use in that topic.
Title: Re: TinyPortal
Post by: DeadMan... on April 07, 2023, 09:12:30 PM
Quoteindex.php?action=post;msg=1264;topic=805.0
Sources/Subs.php (Line 1809)

Type of error: Undefined
Error message
2: Undefined array key "href"

Happens whenever go to edit a post.
The post does have attachments.
So, when look at that area, I found this:

// No image. Show a link.
else
$returnContext .= '<a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a>';

Per: Undefined array key "href" (https://www.simplemachines.org/community/index.php?topic=585605.0)

It appears that it only happens on forums when have TP enabled.
Title: Re: TinyPortal
Post by: @rjen on April 08, 2023, 12:51:18 AM
Are you using the mod Simple Audio Video embedder?
Title: Re: TinyPortal
Post by: DeadMan... on April 08, 2023, 05:21:08 AM
Quote from: @rjen on April 08, 2023, 12:51:18 AMAre you using the mod Simple Audio Video embedder?

No, I am not.
On the test forum, only mods that were installed were TP and fixDbPackages advance fix for SMF2.1.3.
Title: Re: TinyPortal
Post by: @rjen on April 08, 2023, 07:40:36 AM
Interesting, I was having the same error, and that went away when I removed SAVE

Not sure how this would be related to TinyPortal tbh: since it is all hooks and it does not do anything with attachments in posts I cannot really understand how this error in this standard code section would be caused by TinyPortal.

But I believe you when you say it, just no clue....
Title: Re: TinyPortal
Post by: Bugo on April 08, 2023, 09:34:44 AM
This has nothing to do with TinyPortal, but is triggered during the editing of a post with images inserted using the attach tag in the text, when on the page calls ssi_recentTopics.

Possible fix, in Post.php find

        // Load up 'em attachments!
        foreach ($temp as $attachment)
        {
            $context['current_attachments'][$attachment['id_attach']] = array(
                'name' => $smcFunc['htmlspecialchars']($attachment['filename']),
                'size' => $attachment['filesize'],
                'attachID' => $attachment['id_attach'],
                'approved' => $attachment['attachment_approved'],
                'mime_type' => $attachment['mime_type'],
                'thumb' => $attachment['id_thumb'],
            );
        }

and replace with

        // Load up 'em attachments!
        foreach ($temp as $attachment)
        {
            $context['current_attachments'][$attachment['id_attach']] = array(
                'name' => $smcFunc['htmlspecialchars']($attachment['filename']),
                'size' => $attachment['filesize'],
                'attachID' => $attachment['id_attach'],
                'href' => $scripturl . '?action=dlattach;attach=' . $attachment['id_attach'],
                'approved' => $attachment['attachment_approved'],
                'mime_type' => $attachment['mime_type'],
                'thumb' => $attachment['id_thumb'],
            );
        }

Title: Re: TinyPortal
Post by: DeadMan... on April 08, 2023, 01:17:10 PM
Quote from: Bugo on April 08, 2023, 09:34:44 AMThis has nothing to do with TinyPortal

The fix worked, by why is it only had the issue when had TP installed?
I had done the same post, same image inserted on the test forum and edited it with no error before installing TP there. Once installed, it started the same error.

Either way, thank you for finding the fix, my friend.  :)
Title: Re: TinyPortal
Post by: @rjen on April 08, 2023, 01:34:46 PM
Probably because of this

when on the page calls ssi_recentTopics.
Which is something TinyPortal uses for the recent topics block
Title: Re: TinyPortal
Post by: Bugo on April 08, 2023, 01:42:44 PM
Light Portal has the same problem :)
Title: Re: TinyPortal
Post by: DeadMan... on April 08, 2023, 02:10:11 PM
So it was just luck that I was able to figure it out and post in the right spot to get a fix, then...
Typical. LOL
Title: Re: TinyPortal
Post by: cihancan on April 12, 2023, 04:45:49 AM
Hello
First of all, I'm sorry that my english is not good.
I moved my website to another hosting company. I am getting the following error when trying to download and install the TinyPortal package.

Invalid default value for 'item_type'
Dosya: /home/mehmetku/public_html/subdomains/xyz.net/Packages/temp/install.php
Satır: 354

Do you have any suggestions on how to solve this problem?
Title: Re: TinyPortal
Post by: tinoest on April 12, 2023, 12:56:26 PM
What version of SMF are you using?

Also what version of MYSQL or MariaDB are you running?
Title: Re: TinyPortal
Post by: cihancan on April 12, 2023, 03:47:02 PM
Quote from: tinoest on April 12, 2023, 12:56:26 PMWhat version of SMF are you using?

Also what version of MYSQL or MariaDB are you running?
Smf 2.1.3
Title: Re: TinyPortal
Post by: Arantor on April 12, 2023, 04:08:49 PM
And what version of MySQL? (This is important.)
Title: Re: TinyPortal
Post by: tinoest on April 12, 2023, 04:14:52 PM
Quote from: cihancan on April 12, 2023, 03:47:02 PM
Quote from: tinoest on April 12, 2023, 12:56:26 PMWhat version of SMF are you using?

Also what version of MYSQL or MariaDB are you running?
Smf 2.1.3

Have you install this mod which is needed for SMF 2.1.3 https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177

It can be removed after as it just fixes an issue with SMF 2.1.3 and the installer.
Title: Re: TinyPortal
Post by: @rjen on April 12, 2023, 04:35:18 PM
https://www.simplemachines.org/community/index.php?msg=4144776
Title: Re: TinyPortal
Post by: Greyhound on April 14, 2023, 04:35:37 PM
For clarification....I have a 2.1.3 install that I upraded from SMF 2.0.

I originally tried back in 2022 to install TP but it didn't work, which is a know installer issue for 2.1.3.  

Even with the latest version of TP, do I need to install the fix mod first and then install TP?  If that is the case, do you remove the fix mod after TP is installed correctly? 

Thanks. 
Title: Re: TinyPortal
Post by: @rjen on April 15, 2023, 01:19:02 AM
The fix is needed only if you are running SMF 2.1.3 and you have a previous install of TP in your database.

Method is:
1. Install the fix
2. Install TP

You should leave the fix installed in case you need to re install TP later

Fix should be uninstalled whenever you want to patch to SMF 2.1.4 in future
Title: Re: TinyPortal
Post by: Sir Osis of Liver on April 21, 2023, 01:19:54 PM
Any chance TP inherits content from SP?  Looking at upgrading from 2.0 to 2.1, SP does not support 2.1.

Title: Re: TinyPortal
Post by: @rjen on April 21, 2023, 02:00:00 PM
Quote from: Sir Osis of Liver on April 21, 2023, 01:19:54 PMAny chance TP inherits content from SP? 

Meaning? Conversion of content, like blocks etc?

we looked into it a few years back, but it never really took off. Not sure if some of the initial conversion script would be available, and if so it was very limited...
Title: Re: TinyPortal
Post by: Sir Osis of Liver on April 21, 2023, 08:48:14 PM
Ok, thanks.  Will do it the hard way.
Title: Re: TinyPortal
Post by: mack420 on April 22, 2023, 12:52:23 AM
so i think this is the support thread for tinyportal issues and so here goes

I added a block for a twitter timeline feed and made it html, added the code from twitters developer site, saved it, but the feed didn't show, so I changed the type of box to bbc and that didn't work, so I then changed it to php and that made the content of my site disappear, so I cannot see my message boards, members list, nothing at all which means I cannot edit that block or delete it and I was told in another thread for 2.1 support that it may be possible to do so and to ask in this thread, again, hope I got the right one and hope I can get some with this

I can use repair settings to disable hooks and then uninstall tinyportal and just not use it, but am wondering if there is another way
Title: Re: TinyPortal
Post by: @rjen on April 22, 2023, 01:57:13 AM
Yes there is

you can add noblocks to the end of the your site address, this should let you get back on to your site, and then you can turn off the offending block in admin. 

Example:  http://www.yoursite.com/index.php?action=admin;noblocks;
Title: Re: TinyPortal
Post by: tinoest on April 22, 2023, 05:10:54 AM
Quote from: Sir Osis of Liver on April 21, 2023, 08:48:14 PMOk, thanks.  Will do it the hard way.


FYI it's here, it will delete all existing article, shout and block data in TinyPortal and attempt to convert from SimplePortal.

It's limited in the blocks it converts as it only does PHP, html and bbc. I didn't see the point in the others as they're easy to recreate.

https://github.com/tinoest/TinyPortal-Importer
Title: Re: TinyPortal
Post by: mack420 on April 22, 2023, 07:42:42 AM
Quote from: @rjen on April 22, 2023, 01:57:13 AMYes there is

you can add noblocks to the end of the your site address, this should let you get back on to your site, and then you can turn off the offending block in admin. 

Example:  http://www.yoursite.com/index.php?action=admin;noblocks;


ok that worked to get to my admin section, but everytime i click on the tinyportal to go to the block section i get nothing

how do i access my tinyportal admin section and more importantly the block section where i can delete the block causing this????

never mind, i figured it out and my site is working, thank you all for helping me, thank you, problem solved
Title: Re: TinyPortal
Post by: @rjen on April 22, 2023, 07:50:34 AM
Curious what went wrong with my link.. mind sharing how you fixed it?
Title: Re: TinyPortal
Post by: DeadMan... on April 22, 2023, 02:58:50 PM
Quote from: @rjen on April 22, 2023, 01:57:13 AMExample:  http://www.yoursite.com/index.php?action=admin;noblocks (http://www.yoursite.com/index.php?action=admin;noblocks);

More likely had to be:

index.php?action=tpadmin;sa=blocks;noblocks
Title: Re: TinyPortal
Post by: mack420 on April 22, 2023, 11:44:25 PM
Quote from: DeadMan... on April 22, 2023, 02:58:50 PM[quote author=@rjen link=msg=4150842 date=1682143033]Example:  http://www.yoursite.com/index.php?action=admin;noblocks (http://www.yoursite.com/index.php?action=admin;noblocks);

More likely had to be:

index.php?action=tpadmin;sa=blocks;noblocks
[/quote]

this is what i had to end up doing

i hovered over the link to tinyportal and added tpadmin to the end, then hovered over blocks link and added the sablocks or whatever to the end and got in, deleted the messed up block and like magic my site was back to how it was before i messed it up

again i thank you and a thanks to @rjen for the link to get to my admin section and hey, i'm not a complete dumbass, i did kinda figure out to add those other words to the link to gain more access, lol, but yea, thanks to you guys more than myself, i wouldn't have a forum as clean as i got with smf and its developers and all you guys helping support it, so yea, later and peace
Title: Re: TinyPortal
Post by: @rjen on April 23, 2023, 12:14:06 AM
Glad you got it sorted. This is a question that comes back over time: php blocks are very powerful but also dangerous, as a simple typo may make a syntax error and cause an entire page not to load.

And if you happen to make that mistake in a block that loads on all pages, including the admin section, this may be the result. That is exactly why the Noblocks option is there...

I personally always deactivate panels in the admin section (first option in the panel settings). That way your admin section is alway accessible, even when you have a bad block...
Title: Re: TinyPortal
Post by: Heike on April 30, 2023, 04:00:51 AM
In my old forum I had a button with which I could post posts on the front page. Unfortunately this is missing in the new forum, 2.1.3 current version TinyPortal.
Is there a way to add this button?


Unfortunately, the photo setting does not work otherwise I would have shown it.
Title: Re: TinyPortal
Post by: tinoest on April 30, 2023, 05:40:41 AM
What have you set up as your front page settings?
Title: Re: TinyPortal
Post by: @rjen on April 30, 2023, 06:02:09 AM
It is there, but it will only show when you set the Frontpage to show promoted topics
Title: Re: TinyPortal
Post by: lurkalot on April 30, 2023, 11:33:40 AM
Quote from: Heike on April 30, 2023, 04:00:51 AMIn my old forum I had a button with which I could post posts on the front page. Unfortunately this is missing in the new forum, 2.1.3 current version TinyPortal.
Is there a way to add this button?


Unfortunately, the photo setting does not work otherwise I would have shown it.

What are your frontpage settings?

If you have either of these set then you should see the button.

"Promoted topics only"
"Promoted topics + articles - sorted on date"
Title: Re: TinyPortal
Post by: Heike on May 01, 2023, 04:21:32 AM
Thanks that was the problem, now it works.  :)
Title: Re: TinyPortal
Post by: Sir Osis of Liver on May 17, 2023, 01:30:18 PM
Installed TP in 2.1.3 with custom theme.  It's changed font sizes and colors in main menu, login window, probably elsewhere.  It should inherit theme css.  Any way to fix this?
Title: Re: TinyPortal
Post by: @rjen on May 17, 2023, 03:09:31 PM
Anything is fixable with css. Yet this is not something that happens in general themes.

What theme is this? Any place to see it?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on May 17, 2023, 10:27:29 PM
It's not doing it now.  Forum owner had added a donation block with html/js and it messed up the fonts on front page and login.  He deactivsted the block and everything's back to normal. Will have a look at his block code soon as I get a chance.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on May 17, 2023, 10:56:05 PM
This was in the block -


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">


    (https://thekrashsite.com/pics/fp.gif)


Title: Re: TinyPortal
Post by: @rjen on May 18, 2023, 12:47:20 AM
That explains it..
Title: Re: TinyPortal
Post by: Jsizizzle on May 25, 2023, 01:24:26 AM
I can't seem to add a block to the forum index page. I've clicked the index box and it does not add a block. Can you help me figure out. How would I add the below page in custom actions?


https://beardownu.com/index.php?action=forum
Title: Re: TinyPortal
Post by: @rjen on May 25, 2023, 01:40:01 AM
I am not clear on what you are asking. You mention not to be able to create a block, then you are talking about custom actions...

The page you are linking to is the board index, no need to use a custom action.

If no blocks are showing, check the panel settings... if the panel is switched off in the forum, no blocks will show there...

Maybe the documentation can help?
https://www.tinyportal.net/docs/index.php?page=Troubleshooting-blocks
Title: Re: TinyPortal
Post by: Jsizizzle on May 25, 2023, 03:52:18 PM
You were right about my panel blocking the forum area. I'm not sure why but forum was in the box to exclude. The block is now working. Thank you for your help on this!
Title: Re: TinyPortal
Post by: Lord Crudelito on June 02, 2023, 12:19:20 PM
Hi,

I do like TinyPortal and installed it for my SMF 2.1.3. in the current version. Nevertheless, is there an option to show the calender events (like birthdays) on the calender panel or elsewhere in a panel? Thank you very much in advance for your feedback.
Title: Re: TinyPortal
Post by: lurkalot on June 02, 2023, 12:59:09 PM
Quote from: Lord Crudelito on June 02, 2023, 12:19:20 PMHi,

I do like TinyPortal and installed it for my SMF 2.1.3. in the current version. Nevertheless, is there an option to show the calender events (like birthdays) on the calender panel or elsewhere in a panel? Thank you very much in advance for your feedback.

You Can use SSI in a php block to display this stuff.

Examples: 

ssi_todaysCalendar();

ssi_todaysBirthdays();

ssi_todaysHolidays();

ssi_todaysEvents();

https://www.simplemachines.org/community/ssi_examples.php
Title: Re: TinyPortal
Post by: Lord Crudelito on June 02, 2023, 04:43:02 PM
Great, thanks a lot!
Title: Re: TinyPortal
Post by: Recursos on July 16, 2023, 07:31:05 AM
SMF 2.1.4
TinyPortal-2.3.0
After installing, settings untouched, Admin gets this ERROR:

/home/sbept/portal.sbe.pt/Sources/Subs-Post.php (Line 805)

'headers' => 'string-65534', 'send_html' => 'int', 'priority' => 'int', 'private' => 'int',
803:),

uninstalling, the ERROR goes away.
Title: Re: TinyPortal
Post by: tinoest on July 16, 2023, 09:19:05 AM
Quote from: Recursos on July 16, 2023, 07:31:05 AMSMF 2.1.4
TinyPortal-2.3.0
After installing, settings untouched, Admin gets this ERROR:

/home/sbept/portal.sbe.pt/Sources/Subs-Post.php (Line 805)

'headers' => 'string-65534', 'send_html' => 'int', 'priority' => 'int', 'private' => 'int',
803:),

uninstalling, the ERROR goes away.

I don't think that's related to TinyPortal as it's to do with the mail queue.

So my guess is something else occurred at the same time.
Title: Re: TinyPortal
Post by: Recursos on July 16, 2023, 11:35:43 AM
You are right, the error is back (without TinyPortal)
Any sugestion how to clear it?
Title: Re: TinyPortal
Post by: @rjen on July 20, 2023, 02:06:51 PM
The TinyPortal Team is pleased to announce the release of TinyPortal 2.3.1

TinyPortal 2.3.1 can be used on SMF 2.0 and 2.1

Minimum required PHP version : 7.0.0
Highest supported PHP version (tested): 8.1.6

Changelog:
This release includes the following changes relevant to SMF 2.0 and 2.1:
This includes the following updates and fixes:

Bugfixes:
- CSS update to prevent shoutbox avatars not being resized when 'resize avatars in browser' is set
- Fix help popup in menu manager showing error
- Fixed shoutbox action showing in the who's online list
- Fixed code blocks in posts on frontpage not showing correctly

Functional changes (SMF2.1 only):
- Added setting Minimum number of messages to read for recenttopics
  In SMF2.1 this can be used to expand the # of messages read by SSI_recenttopics
- Added new Topposter blockcode for SMF2.1 dealing with avatars beter

Notes:

NOTICE!: Due to a bug in SMF 2.1.3 upgrading TinyPortal may result in this error message: "All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead". In order to update TinyPortal while on SMF 2.1.3 you may need to install the [correction MOD that can be downloaded from the TinyPortal.net support site](https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177). After applying this MOD you will be able to re-install TinyPortal on SMF 2.1.3. Please note that the correction MOD should be uninstalled prior to patching SMF to version 2.1.4.

This version contains an update of the internal block variable handling: after this upgrade there is no returning to TinyPortal versions before 2.3.0 while keeping the existing blocks intact!
Title: Re: TinyPortal
Post by: cihancan on August 14, 2023, 06:03:37 AM
Hello friends
Since I don't know English, I can write them with the help of google translate. My problem is that when I update the PHP version to 8.1, my site does not open. It gives HTTP 500 error in 2.0.x versions. In 2.1.x versions, there is no image at all. Only a white page comes out. What could be the cause and solution for this?
Title: Re: TinyPortal
Post by: @rjen on August 14, 2023, 07:12:29 AM
You are sure it is related to TinyPortal?

First make sure that you are on the latest version: it supports php 8.1 fine.

If the problem persists it may be caused by outdated php code in your blocks. Deactivate all blocks and switch to php version 8.1 again.

Then activate the blocks one by one to find the problem
Title: Re: TinyPortal
Post by: cihancan on August 14, 2023, 07:40:38 AM
I disabled all of them in case there might be a coding error in the blocks I created. Only the TinyPortal Online block remains. Even this way it throws an error. It only shows articles if you close all blocks and articles remain. Could it be an error in the front panel or general settings?
Title: Re: TinyPortal
Post by: @rjen on August 14, 2023, 08:44:28 AM
You still did not mention what version you are using
Title: Re: TinyPortal
Post by: cihancan on August 14, 2023, 09:05:29 AM
Quote from: @rjen on August 14, 2023, 08:44:28 AMYou still did not mention what version you are using
PHP 7.4
Title: Re: TinyPortal
Post by: @rjen on August 14, 2023, 09:27:13 AM
I meant TinyPortal
Title: Re: TinyPortal
Post by: cihancan on August 14, 2023, 09:38:52 AM
Quote from: @rjen on August 14, 2023, 09:27:13 AMI meant TinyPortal
TinyPortal 2.3.1
Title: Re: TinyPortal
Post by: @rjen on August 14, 2023, 09:52:05 AM
So you have this problem with php 7.4?

Can you share a link to the forum?
Title: Re: TinyPortal
Post by: cihancan on August 14, 2023, 09:59:28 AM
First of all, thank you for your interest. It works flawlessly in PHP 7.4 version. The problem is when I upgrade to 8.0 or 8.1 a white page appears.
Website link:
 https://tp.mehmetkuru.net/
Title: Re: TinyPortal
Post by: Kindred on August 14, 2023, 10:26:03 AM
Smf 2.0.19 does not support php 8,nor php 8.1, nor php 8.2

Upgrade to smf 2.1.4
Title: Re: TinyPortal
Post by: @rjen on August 14, 2023, 11:05:44 AM
The site linked to is 2.1.4, so should work fine.

Two questions:
1. What other mods do you have installed? Are this php 8 ready!

2. When you switch to php 8 you get a white page. You should have an error in your server error log... what is it?
Title: Re: TinyPortal
Post by: cihancan on August 15, 2023, 02:49:55 AM
Sir, here are some photos of the white page and error logs that occurred when I upgraded to PHP 8.1. I can also send the error_log file if you want.
Title: Re: TinyPortal
Post by: @rjen on August 15, 2023, 02:56:12 AM
I was actually asking for the SERVER eror log, that should explain the  HTTP error 500

The server error log is not the SMF log, but in fact is found in the admin panel from your webhost...
Title: Re: TinyPortal
Post by: @rjen on August 16, 2023, 09:45:09 AM
Quote from: cihancan on August 15, 2023, 02:49:55 AMSir, here are some photos of the white page and error logs that occurred when I upgraded to PHP 8.1. I can also send the error_log file if you want.

That looks like something isn't loading properly.

We define them in /TinyPortal/Block.php

Can you check if that file exists on the server?
Title: Re: TinyPortal mysterious error
Post by: landyvlad on August 27, 2023, 07:48:14 PM
Since the 14th of August (til today - 28 August) my error log shows 21,011 errors (not a typo) all related to TinyPortal and specifically the following:

Quote21010

 Today at 09:38 AM
 VladTepes
 203.13.3.93
 a8b9656c8343059459a5516a4c7d6aa6
 https://gsx1400owners.org/forum/index.php?action=admin;area=logs;sa=errorlog;desc=
 /home/gsxowner/public_html/forum/Themes/default/GenericMenu.template.php (Line 282)  Backtrace information

Type of error: Undefined
Error messageSelect
2: Undefined array key "label"
21009


and
QuoteToday at 09:17 AM
 Guest
 52.167.144.219
 ca43e9a3f29e328f14005dccd528fe73
 https://gsx1400owners.org/forum/index.php?topic=4594.0
 /home/gsxowner/public_html/forum/Themes/default/TPsubs.template.php(625) : eval()'d code (Line 19)  Backtrace information

Type of error: General
Error messageSelect
2: Trying to access array offset on value of type null

I am running SMF 2.1.4 and TinyPortal 2.3.1 

Assistance would be appreciated.
Thanks.
Title: Re: TinyPortal
Post by: landyvlad on August 27, 2023, 10:16:51 PM
Further to the above, I ensured all my other mods were updated, just in case that was the issue - no.

I cleared the error log after posting the above and have already accumulated 295 errors this morning.
Aside from one they all appear to be related to TPsubs.template.php 
Title: Re: TinyPortal
Post by: Chen Zhen on August 27, 2023, 10:49:44 PM
It shows an eval() error so I believe one of your PHP blocks is causing the errors.

Did you add or edit a PHP block around the middle of August?

Try disabling your PHP blocks one at a time until you figure out which one is causing it.
Title: Re: TinyPortal
Post by: lurkalot on August 28, 2023, 12:11:27 AM
Quote from: landyvlad on August 27, 2023, 07:48:14 PMSince the 14th of August (til today - 28 August) my error log shows 21,011 errors (not a typo) all related to TinyPortal

Landy, I suspect your error log has been filling up since Thursday, 16 March when you installed "Stop Forum Spam", version 1.4
Title: Re: TinyPortal
Post by: landyvlad on September 19, 2023, 01:57:09 AM
Yes indeed.
So what's the problem between SFS and TP?
Title: Re: TinyPortal
Post by: Steve on October 07, 2023, 07:59:39 AM
Can one of you guys give me step-by-step instructions on creating the shoutbox (and no other modules until I learn more) which will show at the top of the main index?
Title: Re: TinyPortal
Post by: lurkalot on October 07, 2023, 01:30:38 PM
Quote from: Steve on October 07, 2023, 07:59:39 AMCan one of you guys give me step-by-step instructions on creating the shoutbox (and no other modules until I learn more) which will show at the top of the main index?

TP Admin > Blocks

Scroll down to Upper blocks and click add block.

Give it a Title then scroll down and Choose type of block = Shoutbox Then click save.

On next page choose one of the horizontal layouts, then scroll down and choose where you want it to display. Turn it on at the top then > Save.

Then you can just turn off any of the other blocks as desired.  Panels will not show if there's no active blocks in them. 

Edit the shoutbox block to change shoutbox settings as required,

Title
Height of shoutbox in pixels
Shoutbox layout
Show avatars Yes No
Position of new messages Top Bottom
Position of the post bar Top Bottom
etc, etc.
Title: Re: TinyPortal
Post by: Steve on October 07, 2023, 02:59:38 PM
Thanks @lurkalot ... appreciate that.  :)
Title: Re: TinyPortal
Post by: Steve on October 07, 2023, 03:44:11 PM
While trying to install, I got this database error:

Key column 'subject' doesn't exist in table
File: /home/steve/public_html/forums/Packages/temp/install.php
Line: 300

What do I do with that?
Title: Re: TinyPortal
Post by: Steve on October 11, 2023, 07:41:14 AM
No ideas?

Do I create the column and give it a null value before installing?
Title: Re: TinyPortal
Post by: @rjen on October 11, 2023, 09:04:33 AM
You had TinyPortal before?
What version?
Which version you installing?
Do you expect the old data for TinyPortal to be available in the new forum?
Title: Re: TinyPortal
Post by: Steve on October 11, 2023, 03:36:46 PM
1. I had TinyPortal before but I had Doug do a thorough cleanout of my system so there were no mods or their information installed.

2. I don't remember the version I had. It was before you went to all hooks.

3. The current one at the mod download site (2.3.1).

4. No. All I'm trying to do is get a usable shoutbox. I realize TP is overkill for just that purpose but I've been unable to find anything else.
Title: Re: TinyPortal
Post by: @rjen on October 11, 2023, 04:34:03 PM
In that case you might just go into the database and drop all tables that start with SMF_tp_

Then you have a clean database to install into...

Oh, BACKUP the database before,..
Title: Re: TinyPortal
Post by: Steve on October 11, 2023, 04:38:52 PM
Good ideer ... will do that. Thanks @rjen.  :)
Title: Re: TinyPortal
Post by: Steve on October 11, 2023, 05:23:15 PM
I did what you said and all went well with the installation. But, I accidentally saved the blocks page with all blocks turned off and now I can't get to my forum or even its cpanel.
Title: Re: TinyPortal
Post by: @rjen on October 12, 2023, 12:22:25 AM
Don't know why your site wont load at all.  ??? 

But you can add noblocks to the end of the your site address, this should let you get back on to your site, and then you can turn off the offending block in admin. 

Example:  http://www.yoursite.com/index.php?action=admin;noblocks;
Title: Re: TinyPortal
Post by: Steve on October 12, 2023, 10:57:38 AM
I don't know what happened but all is well now. Had to change DNS settings.

Thanks @rjen and @lurkalot.
Title: Re: TinyPortal
Post by: Rick53 on October 28, 2023, 05:58:22 AM
I created a "Startup Photo" block using TP, which is displayed in the top panel block. The display is made.
However, this block is not displayed when an article is displayed.

It is activated:
"Show on all pages and sections"
"All areas of the forum"
The user-defined actions also have "page=12" checked.

How can I make the block visible for the articles?
Title: Re: TinyPortal
Post by: Rick53 on October 28, 2023, 08:41:29 AM
The error was found:
In the settings for the item, the "Show top panel" box must be checked.
Title: Re: TinyPortal
Post by: erich199 on November 09, 2023, 10:58:46 AM
Does TinyPortal have a pages module that it integrates well with?
Title: Re: TinyPortal
Post by: @rjen on November 09, 2023, 11:27:29 AM
Pages are Articles in TinyPortal. It's a core function, so yes it is well integrated

By the way: the core functions are listed in the description of the mod...
https://www.simplemachines.org/community/index.php?topic=27642.0
Title: Re: TinyPortal
Post by: erich199 on November 09, 2023, 12:21:16 PM
Quote from: @rjen on November 09, 2023, 11:27:29 AMPages are Articles in TinyPortal. It's a core function, so yes it is well integrated

By the way: the core functions are listed in the description of the mod...
https://www.simplemachines.org/community/index.php?topic=27642.0

Thanks for the response. Sorry for the confusion. Avid wordpress user here so I'm trying to get an understanding of SMF terminology. Pages and Articles are different in my mind so I guess that is why I didn't quite understand that you use them as a page also.
Title: Re: TinyPortal
Post by: Rick53 on November 09, 2023, 12:28:40 PM
On my website there are some PHP files that run separately independent of SMF software.
I have a TinyPortal block that should also be displayed when one of these PHP is opened! Rewriting the PHP is probably a lot of work (and I can't do it either).

But in the block's settings I can specify under "Actions" where the block should be displayed. There is also the selection "page=xxx". Is it possible that the PHP file can also be specified here?
Title: Re: TinyPortal
Post by: @rjen on November 09, 2023, 12:45:10 PM
Only if the php page is run as an article page
Title: Re: TinyPortal
Post by: erich199 on November 17, 2023, 11:56:19 AM
Was wondering if it's possible to restrict a guest from downloading a file but allow them to see the file info? I couldn't seem to find out how to do this when searching for a solution.
Title: Re: TinyPortal
Post by: @rjen on November 17, 2023, 12:33:11 PM
Nope, that's not possible. In this respect TinyPortal follows the same rule as SMF: what cannot be completed is not shown...


What you could do is create two categories: one for members with the download and a file, one also visible to guests where you post a download without the file, but with a link to the download in the members category.
It means you will need to maintain two download items, but you can achieve what you want
Title: Re: TinyPortal
Post by: jsx on November 25, 2023, 03:56:50 AM
What could be the reason that the + sign is not displayed in the shoutbox entry?
Title: Re: TinyPortal
Post by: CraftyLion on November 25, 2023, 04:48:38 PM
Hi there, I have a custom logo for my forum but for some reason, the logo disappears for all pages that incorporate TinyPortal.

What can be causing this?
Title: Re: TinyPortal
Post by: @rjen on November 25, 2023, 04:59:07 PM
No clue without more info. Link to your site?
Title: Re: TinyPortal
Post by: CraftyLion on November 25, 2023, 05:01:04 PM
Top left hand corner ...
Title: Re: TinyPortal
Post by: @rjen on November 25, 2023, 05:40:48 PM
I know where to find a logo. Was asking for a url to your site
Title: Re: TinyPortal
Post by: CraftyLion on November 25, 2023, 06:33:20 PM
https://forum.craftylion.com/
Title: Re: TinyPortal
Post by: lurkalot on November 25, 2023, 07:16:09 PM
Make sure you have the correct url added to your logo setting

https://forum.craftylion.com/Themes/default/images/lion_logo.png
(https://forum.craftylion.com/Themes/default/images/lion_logo.png)
Title: Re: TinyPortal
Post by: jsx on November 26, 2023, 04:15:41 AM
Quote from: jsx on November 25, 2023, 03:56:50 AMWhat could be the reason that the + sign is not displayed in the shoutbox entry?

I repeat my question to the TP team. :)
Title: Re: TinyPortal
Post by: @rjen on November 26, 2023, 07:51:33 AM
Quote from: lurkalot on November 25, 2023, 07:16:09 PMMake sure you have the correct url added to your logo setting

https://forum.craftylion.com/Themes/default/images/lion_logo.png
(https://forum.craftylion.com/Themes/default/images/lion_logo.png)

Checking the site the logo is only showing for theme 4 (the image seems to be in https://forum.craftylion.com/Themes/Hextech/images/custom/lion_logo.png)

This makes me wonder:

1. What is the exact URL that is used for the forum logo?

2. What happens if you uninstall TinyPortal?

As far as I know Tinyportal does not do anything to forum logo's and this has not been reported before...
Title: Re: TinyPortal
Post by: @rjen on November 26, 2023, 07:54:40 AM
Quote from: jsx on November 26, 2023, 04:15:41 AM
Quote from: jsx on November 25, 2023, 03:56:50 AMWhat could be the reason that the + sign is not displayed in the shoutbox entry?

I repeat my question to the TP team. :)

It is a old issue with Jquey removing the plus sign.

https://www.tinyportal.net/index.php?topic=35398.msg283267#msg283267

So far no solution available
Title: Re: TinyPortal
Post by: jsx on November 27, 2023, 01:47:34 PM
Thanks for the clarification.
Title: Re: TinyPortal
Post by: CraftyLion on November 27, 2023, 08:32:40 PM
Quote from: @rjen on November 26, 2023, 07:51:33 AMChecking the site the logo is only showing for theme 4 (the image seems to be in https://forum.craftylion.com/Themes/Hextech/images/custom/lion_logo.png)

This makes me wonder:

1. What is the exact URL that is used for the forum logo?

2. What happens if you uninstall TinyPortal?

As far as I know Tinyportal does not do anything to forum logo's and this has not been reported before...

I think the main issue was the url of the image. It seems using http instead of https caused the error. The issue seems to have been resolved.
Title: Re: TinyPortal
Post by: jsx on December 06, 2023, 02:54:06 PM
Hello TP crew. I am using the NameX theme which has the ability to switch the light color to dark mode, I also use TinyPortal and shoutbox and I would like the shoutbox background to change to dark mode when the theme's dark mode is enabled. Can you help me with this?

I talked about it with Diego here in this thread:

https://www.simplemachines.org/community/index.php?topic=583206.msg4164714#msg4164714
Title: Re: TinyPortal
Post by: @rjen on December 27, 2023, 02:00:27 PM
Reaching out to any TinyPortal users that would be willing to help us as Beta Testers.  We are currently working on TinyPortal version 3.0.0

If you have some spare time we would appreciate the feedback and reports for any issues you might come across during the testing.

Willing to help us and you have a test environment to test-run new TinyPortal version on SMF2.1?  We would like to invite you to register on our support forum at https://www.tinyportal.net/index.php?action=forum

Just post there if you want to help in testing, and we will give you access to our beta testing board where you can download the latest package and report any issues should you find any...

Wishing you all a happy and prosperous new year. 
Title: Re: TinyPortal
Post by: tech9 on December 30, 2023, 10:42:55 AM
When posting an html article in tiny portal it is just displaying the code, not embedding my video.

Here is the code I entered:
<p><iframe width="700" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" type="text/html" src="https://ok.ru/videoembed/2364320385574"></iframe></p>

Am I doing something wrong?
Title: Re: TinyPortal
Post by: @rjen on December 30, 2023, 11:08:01 AM
It works for me...

Just check: make sure you have the 'code' view active in the html articles: if you post the code in WYSIWYG it will not work...

when in doubt..
2023-12-30_170851.jpg
Title: Re: TinyPortal
Post by: lurkalot on December 30, 2023, 11:19:43 AM
Quote from: tech9 on December 30, 2023, 10:42:55 AMWhen posting an html article in tiny portal it is just displaying the code, not embedding my video.

Here is the code I entered:
<p><iframe width="700" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" type="text/html" src="https://ok.ru/videoembed/2364320385574"></iframe></p>

Am I doing something wrong?


Do you mean it's showing code on the front page?  Or does it show code when you view the actual article? If it's just broken on the front page it's possible the code is getting cut short.

Go to TP Admin > Frontpage settings and increase the value here, "Number of characters to display per forum topic" Save.
Title: Re: TinyPortal
Post by: lurkalot on December 30, 2023, 12:09:44 PM
Quote from: lurkalot on December 30, 2023, 11:19:43 AM
Quote from: tech9 on December 30, 2023, 10:42:55 AMWhen posting an html article in tiny portal it is just displaying the code, not embedding my video.

Here is the code I entered:
<p><iframe width="700" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" type="text/html" src="https://ok.ru/videoembed/2364320385574"></iframe></p>

Am I doing something wrong?


Do you mean it's showing code on the front page?  Or does it show code when you view the actual article? If it's just broken on the front page it's possible the code is getting cut short.

Go to TP Admin > Frontpage settings and increase the value here, "Number of characters to display per forum topic" Save.

Please disregard my answer above, I was thinking about forum topics not articles, so pretty sure my answer won't help.  But I can say like @rjen said, your code works fine in an html article.
Title: Re: TinyPortal
Post by: tech9 on December 30, 2023, 12:18:29 PM
Quote from: @rjen on December 30, 2023, 11:08:01 AMIt works for me...

Just check: make sure you have the 'code' view active in the html articles: if you post the code in WYSIWYG it will not work...

when in doubt..
2023-12-30_170851.jpg

That code button is not switching views when I click on it. It's greyed out and not working.
Title: Re: TinyPortal
Post by: @rjen on December 30, 2023, 12:27:49 PM
 Heck the TinyPortal article settings: is WYSIWYG switched on?
Title: Re: TinyPortal
Post by: @rjen on January 19, 2024, 02:03:42 PM
The TinyPortal Team is pleased to announce the release of TinyPortal 3.0.0

TinyPortal 3.0.0 can be used on SMF 2.1 and should also work on SMF 3.0
Minimum required PHP version : 7.0.0
Highest supported PHP version (tested): 8.3.1

This includes the following updates and fixes:

Functional changes:

Technical changes and Bugfixes:

Notes:
Support for SMF2.0.x has been dropped starting TinyPortal version 3.0.0.
SMF2.0.x is still supported by TinyPortal, but only up to TinyPortal version 2.3.1.

Note that SMF3.0 is under development, we cannot guarantee stable support for 3.0 untill a Final version is released.
Title: Re: TinyPortal
Post by: cihancan on January 24, 2024, 06:01:13 AM
Hello. How can I narrow the gap between Articles in Tiny Portal version 3.0?
Title: Re: TinyPortal
Post by: @rjen on January 24, 2024, 07:28:35 AM
It would help to see exactly what gap you are referring to. Your screenprint is not clear to me
Title: Re: TinyPortal
Post by: razor1995 on January 24, 2024, 08:12:00 AM
Hi,
I can't find anything about it in this topic, so I'm asking.
How to add recent posts block to TinyPortal?
By default we only have recent topics, I also want to add recent posts block.
Thanks for the answer :)
Title: Re: TinyPortal
Post by: @rjen on January 24, 2024, 09:45:30 AM
If you want to create a recent posts block you can use the SSI function

Title: Re: TinyPortal
Post by: Bandicoot on January 24, 2024, 12:14:12 PM
I have added the recent posts to the bottom panel on the frontpage and set it to 100% width.

However, it is set to float left by default, as you can see below.

<div class="tp_panelsColHoriz tp_floatleft" style="width: 100%;">
Is there any way to make it float none?
Title: Re: TinyPortal
Post by: @rjen on January 24, 2024, 12:46:20 PM
what are you trying to achieve?
The float is coded in, but maybe you can achieve your goal in a different way?

Perhaps you can share a link to the site or share a screenshot?
Title: Re: TinyPortal
Post by: Bandicoot on January 24, 2024, 01:08:25 PM
I am trying to get the block centered in the panel.
(https://silentblues.com/uploads/floatleft.png)
It's 2am here so just about to call it quits for the day.
Which file is it hard coded into? I couldn't find it.
Title: Re: TinyPortal
Post by: @rjen on January 24, 2024, 01:16:07 PM
The float is set to the block itself not the content: the content is simply aligned left as far as i can see...

But you can try..
the code is in TinyPortal.php, line 1982

         echo '<div class="tp_panelsColHoriz tp_floatleft" style="width: ' . $context['TPortal']['blockwidth_'.$side].';"><div style="padding-right: ' . $pad . 'px;">';
Title: Re: TinyPortal
Post by: @rjen on January 24, 2024, 01:24:52 PM
Just checked it: the recent posts SSI function from SMF simply outputs a table, that is aligned left in the block. Nothing to do with the float you are seeing
Title: Re: TinyPortal
Post by: @rjen on January 24, 2024, 01:33:46 PM
Think I found a way for you to do it..

There is surrounding DIV set by TinyPortal. Mind you: this will change the DIV for any SSI block you may have..

in TPsubs.template.php

Find:
echo '<div style="padding: 5px;" class="smalltext">';
and change this to:

echo '<div style="padding: 5px; text-align: -webkit-center;" class="smalltext">';
Title: Re: TinyPortal
Post by: Bandicoot on January 24, 2024, 01:39:42 PM
Yep, that did the trick.

Thank you so very much for sorting this out for me.

Very much appreciated!
Title: Re: TinyPortal
Post by: Tonyvic on January 25, 2024, 06:41:42 AM
Is it easy to change the text on the 'Shout' button to 'Send'?
I can't seem to find it.
Title: Re: TinyPortal
Post by: cihancan on January 25, 2024, 07:01:26 AM
Quote from: @rjen on January 24, 2024, 07:28:35 AMIt would help to see exactly what gap you are referring to. Your screenprint is not clear to me
How to remove space between articles. This is what I want to do. I cannot explain my problem fully because my English is not good. I am sorry.
Title: Re: TinyPortal
Post by: Bandicoot on January 25, 2024, 09:24:17 AM
Quote from: Tonyvic on January 25, 2024, 06:41:42 AMIs it easy to change the text on the 'Shout' button to 'Send'?
Themes/default/languages/TPortal.english.php
Title: Re: TinyPortal
Post by: Tonyvic on January 25, 2024, 09:44:09 AM
Quote from: Bandicoot on January 25, 2024, 09:24:17 AM
Quote from: Tonyvic on January 25, 2024, 06:41:42 AMIs it easy to change the text on the 'Shout' button to 'Send'?
Themes/default/languages/TPortal.english.php

Thanks a lot @Bandicoot, it's easy when you know it's a shame I didn't. :-[

Cheers from 'Another Old Fart' ;)
Title: Re: TinyPortal
Post by: @rjen on January 25, 2024, 05:16:29 PM
Quote from: cihancan on January 25, 2024, 07:01:26 AM
Quote from: @rjen on January 24, 2024, 07:28:35 AMIt would help to see exactly what gap you are referring to. Your screenprint is not clear to me
How to remove space between articles. This is what I want to do. I cannot explain my problem fully because my English is not good. I am sorry.

The gap between the columns is set by this bit of css in tp-style.css
Set the values to 0 and check..

.tp_leftcol {
padding-right: .2em;
}
.tp_rightcol {
padding-left: .2em;
}

The bottom space is set by this. You may set the .5em to 0
But this will affect many more elements...

.tp_article .windowbg, .tp_article .roundframe {
margin-bottom: .5em !important;
}
Title: Re: TinyPortal
Post by: Jailer on February 03, 2024, 09:28:08 PM
I have a question about the shoutbox history button. When you click the history button it shows a page with the latest shouts but is limited to the last 50 shouts. Is there a way to show more shouts than just the last 50?
Title: Re: TinyPortal
Post by: @rjen on February 04, 2024, 01:52:07 AM
Not at the moment.
Tbh the history button is there like this for ages and I don't think it is used that much...

As an admin you can access all history in the shoutbox admin section...
Title: Re: TinyPortal
Post by: cihancan on February 08, 2024, 05:51:07 AM
Hello, I did not see the optional block hiding feature on mobile devices in the new version of tinyportal. Are you considering adding this feature? What can be done at this stage to prevent some blocks from appearing on mobile devices?
Title: Re: TinyPortal
Post by: @rjen on February 08, 2024, 10:50:30 AM
Was this feature announced at any time?

It not part of the functions at the moment.

We may consider adding it in a future version. To do so we would have to agree on the definition of what screen size defines a 'mobile device' ?
Title: Re: TinyPortal
Post by: tinoest on February 08, 2024, 04:53:35 PM
if ( isset( $_SERVER['HTTP_SEC_CH_UA_MOBILE'] ) ) {
// This is the `Sec-CH-UA-Mobile` user agent client hint HTTP request header.
// See <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Mobile>.
$is_mobile = ( '?1' === $_SERVER['HTTP_SEC_CH_UA_MOBILE'] );
} elseif ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
$is_mobile = false;
} elseif ( str_contains( $_SERVER['HTTP_USER_AGENT'], 'Mobile' ) // Many mobile devices (all iPhone, iPad, etc.)
|| str_contains( $_SERVER['HTTP_USER_AGENT'], 'Android' )
|| str_contains( $_SERVER['HTTP_USER_AGENT'], 'Silk/' )
|| str_contains( $_SERVER['HTTP_USER_AGENT'], 'Kindle' )
|| str_contains( $_SERVER['HTTP_USER_AGENT'], 'BlackBerry' )
|| str_contains( $_SERVER['HTTP_USER_AGENT'], 'Opera Mini' )
|| str_contains( $_SERVER['HTTP_USER_AGENT'], 'Opera Mobi' ) ) {
$is_mobile = true;
} else {
$is_mobile = false;
}

That's the way Wordpress do it, which if it was implemented I'd suggest we do also ignoring screen size etc and just going on the http agent header.

str_contains is PHP 8.0 or greater so we'd want the polyfill for that also.

if (!function_exists('str_contains')) {
    function str_contains(string $haystack, string $needle): bool {
        return '' === $needle || false !== strpos($haystack, $needle);
    }
}
Title: Re: TinyPortal
Post by: @rjen on February 08, 2024, 05:26:52 PM
Interesting concept, but I am wondering if this is bullit proof:
According to the code an ipad may be considered a mobile device, just as an iphone. Owning an Ipad pro I would not want to treat the display on an Ipad the same as an Iphone...

I can see  a mechanism using one or more selectable widths to control if blocks are shown or hidden, which would better deal with the ambiguity of 'mobile' devices...
Title: Re: TinyPortal
Post by: tinoest on February 08, 2024, 05:31:17 PM
Selectable widths is also flawed as you can get some which have double the dpi etc, the Wordpress method is the best of a bad choice.

An iPad is a mobile device anyway.
Title: Re: TinyPortal
Post by: @rjen on February 08, 2024, 05:52:26 PM
Quote from: tinoest on February 08, 2024, 05:31:17 PMAn iPad is a mobile device anyway.

Fully agree. It's just that the screen is larger then my laptop screen...
Title: Re: TinyPortal
Post by: Arantor on February 08, 2024, 05:53:21 PM
A mobile device with 1024+ width screen though, you don't want to throw that at the same settings as 320-400px width devices.
Title: Re: TinyPortal
Post by: Sesquipedalian on February 08, 2024, 05:54:03 PM
Quote from: tinoest on February 08, 2024, 05:31:17 PMSelectable widths is also flawed as you can get some which have double the dpi etc,

No, DPI doesn't generally affect anything. CSS @media selectors use "CSS pixels," not actual pixels, in their calculations. CSS pixels are always defined at a nominal 96 DPI. The browser is responsible for scaling that to whatever the real DPI of the screen is. The web designer doesn't need to know or care about the real DPI.

You can and should use CSS width and/or height selectors to make layout decisions, such as hiding or rearranging blocks, rather than trying to use browser sniffing.
Title: Re: TinyPortal
Post by: tinoest on February 08, 2024, 06:03:29 PM
In which case the end user can add to the custom css to hide/show blocks.

I'm against hiding content on a mobile which is on a desktop anyway, you can resize, restyle well enough with the css options you have.

TP adding css styling inline just seems backwards and counter intuitive. Don't bother even rendering the item in the first place if you don't want it.
Title: Re: TinyPortal
Post by: ColinJM on February 16, 2024, 09:26:15 PM
OK thanks SOol from my thread https://www.simplemachines.org/community/index.php?topic=588235.0

and your quotes:

Quote from: Sir Osis of Liver on February 16, 2024, 08:15:09 PMYou can enable/disable TP blocks in TP admin if you want to remove the two side columns.  It creates a frontpage with a menu link to the forum.  You can select where in the forum TP is displayed, or not.  Will have to install it in test install to give you more specific info if you need it, only used it on couple of forums.


Quote from: Sir Osis of Liver on February 16, 2024, 08:29:51 PMOk, I've installed current version TP 3.0.0 in 2.1.4.  TP adds a TinyPortal button to main menu that takes you to TP admin.  You can disable individual blocks in Blocks, or remove the right and/or left columns in Panels.  In Frontpage you can select what is displayed on frontpage, where it is displayed, or you can have it go directly to forum index.

and Kindred's instruction:

Quote from: Kindred on February 16, 2024, 08:57:38 PMYou should also address questions about how tinyportal works in the thread or website dedicated to supporting tinyportal

Thank SOol, that sorted out the unwanted side panels and home page pointing now, how do I get the log in screen to point to another URL please?



Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 16, 2024, 09:26:52 PM
Where do you want it to go?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 16, 2024, 09:55:07 PM
From your other topic looks like you want login to go directly to forum index.  You can set this in TP Admin > Frontpage.
Title: Re: TinyPortal
Post by: @rjen on February 17, 2024, 01:04:36 AM
This conversation is now dropped in here, but I am not seeing a clear question being asked?
Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 01:31:20 AM
Quote from: lurkalot on February 17, 2024, 01:09:46 AMIn TinyPortal > Settings

How to redirect after login: Select either,

Redirect to forum.
Redirect to frontpage.

And Save.

On that same Settings page, you can hide the TinyPortal menu so it only shows to Admins, by checking the box next to, "Hide TinyPortal menu option"

And save.

You can basically make the portal as invisible as you want.


Selecting either redirects doesn't seem to make any difference - both go to the forum home page.

Thanks for the tip on visisibilty.
Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 01:33:55 AM
Quote from: Sir Osis of Liver on February 16, 2024, 09:26:52 PMWhere do you want it to go?


Quote from: Sir Osis of Liver on February 16, 2024, 09:55:07 PMFrom your other topic looks like you want login to go directly to forum index.  You can set this in TP Admin > Frontpage.

Just saw your posts - I want to go from the log in screen to a website address which then points to various board, sub boards and threads.
Title: Re: TinyPortal
Post by: @rjen on February 17, 2024, 01:49:57 AM
I feel you are missing the point of using a portal: you can use the portal FrontPage to make a page directing to various pages and boards.

The portal is not a redirect to an outside website

An example: https://www.tinyportal.net/docs/
Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 01:56:08 AM
[quote author=@rjen link=msg=4170015 date=1708152597]
I feel you are missing the point of using a portal: you can use the portal FrontPage to make a page directing to various pages and boards.

The portal is not a redirect to an outside website

An example: https://www.tinyportal.net/docs/
[/quote]

Fair comment @rjen - I do appreciate tinyportal is it's own cms internal to the whole simple machines internal forum framework and fully intend to use the correct approach but in the meantime I'm getting pressure to provide a more image block forum entry point and I can currently do it much faster external (using a WYSIWYG web site builder).
Title: Re: TinyPortal
Post by: lurkalot on February 17, 2024, 02:35:13 AM
Quote from: ColinJM on February 17, 2024, 01:31:20 AMSelecting either redirects doesn't seem to make any difference - both go to the forum home page.

Thanks for the tip on visisibilty.

What have you got the front page settings set to?  If you changed this to "Go directly to forum index" then it will show the forum on the front page.  I would reset the front page settings back how they were. Build / recreate your home page using portal front page to you're liking and add the content there.
Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 02:40:54 AM
@lurkalot - I have TinyPortal Edenliving TP admin ► Settings set to Redirect to forum. As I said previously, I fully intend to delve into and use TP properly as an "internal CMS" but want to point to an external website as a more image driven GUI in the meantime.
Title: Re: TinyPortal
Post by: @rjen on February 17, 2024, 02:47:38 AM
There is NO functionality in Tiny Portal to auto direct users outside the forum or homepage after logging in.
Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 02:49:47 AM
[quote author=@rjen link=msg=4170022 date=1708156058]
There is NO functionality in Tiny Portal to auto direct users outside the forum or homepage after logging in.
[/quote]

Ah yes, that's what I thought - thankyou for confirming that @rjen
Title: Re: TinyPortal
Post by: lurkalot on February 17, 2024, 02:50:41 AM
Quote from: ColinJM on February 17, 2024, 02:40:54 AM@lurkalot - I have TinyPortal Edenliving TP admin ► Settings set to Redirect to forum. As I said previously, I fully intend to delve into and use TP properly as an "internal CMS" but want to point to an external website as a more image driven GUI in the meantime.


The idea of a portal is to use that to build your front page.  I have no idea what your existing landing page contains, but you can probably recreate that in a portal front page which will then become your landing page.
Title: Re: TinyPortal
Post by: davo88 on February 17, 2024, 02:52:43 AM
Quote from: ColinJM... a more image driven GUI in the meantime.

This is exactly what I am working on with TinyPortal at the moment. TinyPortal is heaps easier and a more integrated method of creating this than using an external website. You can create blocks within panels all over the landing page and fill them with images and/or text.
If you are unfamilar with HTML, just use BB code to display the images and add text. You can link either/both the image and the text to a destination in the forum or elsewhere. If you are unfamiliar with BB code, ask here and I am sure someone will write some sample code to get you started.
Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 03:04:07 AM
@lurkalot - Yes, I appreciate that but want to put my website as the landing page post log in until I get a chance to replicate that with Tinyportal
Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 03:06:24 AM
Quote from: davo88 on February 17, 2024, 02:52:43 AM
Quote from: ColinJM... a more image driven GUI in the meantime.

This is exactly what I am working on with TinyPortal at the moment. TinyPortal is heaps easier and a more integrated method of creating this than using an external website. You can create blocks within panels all over the landing page and fill them with images and/or text.
If you are unfamilar with HTML, just use BB code to display the images and add text. You can link either/both the image and the text to a destination in the forum or elsewhere. If you are unfamiliar with BB code, ask here and I am sure someone will write some sample code to get you started.

Not for me at the moment - but when I get time I'll look into it .
Title: Re: TinyPortal
Post by: @rjen on February 17, 2024, 03:10:10 AM
Quote from: ColinJM on February 17, 2024, 03:04:07 AM@lurkalot - Yes, I appreciate that but want to put my website as the landing page post log in until I get a chance to replicate that with Tinyportal

In that case you will have to make some SMF code edit to change the redirect after the login screen
Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 03:19:24 AM
[quote author=@rjen link=msg=4170028 date=1708157410]
Quote from: ColinJM on February 17, 2024, 03:04:07 AM@lurkalot - Yes, I appreciate that but want to put my website as the landing page post log in until I get a chance to replicate that with Tinyportal

In that case you will have to make some SMF code edit to change the redirect after the login screen
[/quote]

Yes, agreed - thanks @rjen and others.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 17, 2024, 04:12:43 PM
This hack worked in 2.0, can't get it to work in 2.1.  Maybe you can play with it and have better luck -

LogInOut.php


    // Set the login_url if it's not already set (but careful not to send us to an attachment).
    //if (empty($_SESSION['login_url']) && isset($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'dlattach') === false && preg_match('~(board|topic)[=,]~', $_SESSION['old_url']) != 0)
    //    $_SESSION['login_url'] = $_SESSION['old_url'];

    $_SESSION['login_url'] = 'https://www.nytimes.com';

    // Been guessing a lot, haven't we?

Title: Re: TinyPortal
Post by: ColinJM on February 17, 2024, 11:10:30 PM
Quote from: Sir Osis of Liver on February 17, 2024, 04:12:43 PMThis hack worked in 2.0, can't get it to work in 2.1.  Maybe you can play with it and have better luck -

LogInOut.php


    // Set the login_url if it's not already set (but careful not to send us to an attachment).
    //if (empty($_SESSION['login_url']) && isset($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'dlattach') === false && preg_match('~(board|topic)[=,]~', $_SESSION['old_url']) != 0)
    //    $_SESSION['login_url'] = $_SESSION['old_url'];

    $_SESSION['login_url'] = 'https://www.nytimes.com';

    // Been guessing a lot, haven't we?



What directory is that in SOos?
Title: Re: TinyPortal
Post by: GL700Wing on February 18, 2024, 01:08:25 AM
Quote from: Sir Osis of Liver on February 17, 2024, 04:12:43 PMThis hack worked in 2.0, can't get it to work in 2.1.  Maybe you can play with it and have better luck -

LogInOut.php


    // Set the login_url if it's not already set (but careful not to send us to an attachment).
    //if (empty($_SESSION['login_url']) && isset($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'dlattach') === false && preg_match('~(board|topic)[=,]~', $_SESSION['old_url']) != 0)
    //    $_SESSION['login_url'] = $_SESSION['old_url'];

    $_SESSION['login_url'] = 'https://www.nytimes.com';

    // Been guessing a lot, haven't we?


I was playing with that form SMF 2.1 yesterday for logon but the browser kept appending the name of the forum directory/folder to the URL - interestingly the logout equivalent works perfectly.
Title: Re: TinyPortal
Post by: ColinJM on February 18, 2024, 02:27:16 AM
Thanks @GL700Wing - what folder was that in - can you giver me the breadcrumb please?
Title: Re: TinyPortal
Post by: Arantor on February 18, 2024, 05:32:42 AM
Sources/LogInOut.php

But as already stated, you're doing this change for users who will likely only see it once. Seems like a lot of effort for that, because unless users go out of their way to change it, pretty sure the default is to stay logged in forever which means once they log in the first time, they're not going to see any of this work you're now doing.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 18, 2024, 01:12:30 PM
Quote from: GL700Wing on February 18, 2024, 01:08:25 AMinterestingly the logout equivalent works perfectly.
redirectexit() is a core function, but afaik there's no equivalent for login.
Title: Re: TinyPortal
Post by: Arantor on February 18, 2024, 02:26:25 PM
You mean the literal same function that login uses?
Title: Re: TinyPortal
Post by: ColinJM on February 18, 2024, 06:46:40 PM
Quote from: Arantor on February 18, 2024, 02:26:25 PMYou mean the literal same function that login uses?

Who are you directing that question to @Arantor , me or SOoL?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 19, 2024, 12:16:13 PM
If I understand correctly (probably not), $_SESSION['login_url'] is used to direct user to main index, or, if login is being done from different page to, $_SESSION['old_url'].  That would be a case where login is required when trying to access an area not available to guests.  If guests are allowed to browse forum but not post replies, they can view a topic, but not reply.  If they login from the topic, they're returned to the topic, not main index, and can then reply.  In 2.0 it was possible to set $_SESSION['login_url'] to an external url, but looks like there is additional security in 2.1 LogInOut.php that prevents this.
Title: Re: TinyPortal
Post by: Arantor on February 19, 2024, 12:39:21 PM
Well, the code is still there to check for the login_url during the steps of login, and redirectexit is still asked to do the work, and I don't see any checks in redirectexit that would prevent it being used for an external redirect...
Title: Re: TinyPortal
Post by: ColinJM on February 19, 2024, 06:08:52 PM
So SOoL and @Arantor - where exactly is this please? what folder and php object?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 19, 2024, 08:53:39 PM
Quote from: Arantor on February 19, 2024, 12:39:21 PMWell, the code is still there to check for the login_url during the steps of login, and redirectexit is still asked to do the work, and I don't see any checks in redirectexit that would prevent it being used for an external redirect...
redirectexit() where?  I can only get it to work for logout.

Quote from: ColinJM on February 19, 2024, 06:08:52 PMSo SOoL and @Arantor - where exactly is this please? what folder and php object?
/Sources/LogInOut.php
Title: Re: TinyPortal
Post by: ColinJM on February 19, 2024, 09:18:56 PM
Thanks SOol  8)
Title: Re: TinyPortal
Post by: Arantor on February 20, 2024, 03:32:42 AM
Quote from: Sir Osis of Liver on February 19, 2024, 08:53:39 PM
Quote from: Arantor on February 19, 2024, 12:39:21 PMWell, the code is still there to check for the login_url during the steps of login, and redirectexit is still asked to do the work, and I don't see any checks in redirectexit that would prevent it being used for an external redirect...
redirectexit() where?  I can only get it to work for logout.

Quote from: ColinJM on February 19, 2024, 06:08:52 PMSo SOoL and @Arantor - where exactly is this please? what folder and php object?
/Sources/LogInOut.php


Look at LogInOut.php around line 211, the call is right there like it has been for a long time.
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 20, 2024, 03:58:39 PM
Tried that (several times), has no effect -


        {
            // Best not to clutter the session data too much...
            $temp = $_SESSION['login_url'];
            unset($_SESSION['login_url']);

            redirectexit('http://thekrashsite.com');
        }


In 2.0 $_SESSION['login_url'] worked, but not in 2.1.  >:(


Title: Re: TinyPortal
Post by: ColinJM on February 20, 2024, 08:42:31 PM
Thanks heaps for trying SOos.  8)
Title: Re: TinyPortal
Post by: ColinJM on February 20, 2024, 08:45:08 PM
Quote from: Arantor on February 20, 2024, 03:32:42 AM
Quote from: Sir Osis of Liver on February 19, 2024, 08:53:39 PM
Quote from: Arantor on February 19, 2024, 12:39:21 PMWell, the code is still there to check for the login_url during the steps of login, and redirectexit is still asked to do the work, and I don't see any checks in redirectexit that would prevent it being used for an external redirect...
redirectexit() where?  I can only get it to work for logout.

Quote from: ColinJM on February 19, 2024, 06:08:52 PMSo SOoL and @Arantor - where exactly is this please? what folder and php object?
/Sources/LogInOut.php


Look at LogInOut.php around line 211, the call is right there like it has been for a long time.

Thanks @Arantor , I'll have a look at that.  8)
Title: Re: TinyPortal
Post by: Arantor on February 20, 2024, 08:48:14 PM
...why? It won't help you, it's just a diversion to answer SOoL's point. I firmly believe this thing you're doing is a complete waste of time, as I've already outlined.

I don't know why it's not working for SOoL given that the underlying code literally hasn't changed in years. But it's only tangentially related to what you're trying to do and changing it without understanding the details can make your site insecure or simply broken.

Leave the auth process alone.
Title: Re: TinyPortal
Post by: ColinJM on February 20, 2024, 09:28:50 PM
Quote from: Arantor on February 20, 2024, 08:48:14 PM...why? It won't help you, it's just a diversion to answer SOoL's point. I firmly believe this thing you're doing is a complete waste of time, as I've already outlined.

If it will drop your blood pressure somewhat take solace that I've started to read about Tiny portal  :)
Title: Re: TinyPortal
Post by: Arantor on February 21, 2024, 04:46:31 AM
Nah, my blood pressure's fine, I just get bored seeing people chase bad ideas over and over when they could be doing the good stuff the first time.
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 12:00:27 PM
Hi, want to ask if this will instal into theme also when installing or if I would have to do anything to use in a theme, I am using 2.1.4 and purple haze theme.I am far from a code expert,,lol so reason asking is need simple to install..
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 21, 2024, 12:31:37 PM
If the mod edits any theme files package manager will display a checkbox option to install it in other themes.


Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 21, 2024, 12:32:30 PM
Quote from: ColinJM on February 20, 2024, 09:28:50 PMIf it will drop your blood pressure somewhat take solace that I've started to read about Tiny portal 
It's not a TP issue, it's what Arantor posted earlier.  If you want to send all members to an external link using a login redirect, it will only work once for all members, and only if you change the cookie name to logout everyone.  Once they've logged in most members remain logged in, so they'll never see it again.
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 12:39:05 PM
Quote from: Sir Osis of Liver on February 21, 2024, 12:31:37 PMIf the mod edits any theme files package manager will display a checkbox option to install it in other themes.



so it will instal itself into any theme if check the box,if I understand correctly?,,cool,, thank you
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 21, 2024, 12:43:49 PM
Current version of TP 3.0.0 uses hooks, doesn't change any theme files.
Title: Re: TinyPortal
Post by: @rjen on February 21, 2024, 12:45:22 PM
Quote from: BCK on February 21, 2024, 12:39:05 PM
Quote from: Sir Osis of Liver on February 21, 2024, 12:31:37 PMIf the mod edits any theme files package manager will display a checkbox option to install it in other themes.



so it will instal itself into any theme if check the box,if I understand correctly?,,cool,, thank you

Mind you. TinyPortal does not make ANY file edits, so there will be no theme selection upon install.
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 12:47:58 PM
Quote from: Sir Osis of Liver on February 21, 2024, 12:43:49 PMCurrent version of TP 3.0.0 uses hooks, doesn't change any theme files.

so will automaticly work in my theme then?
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 12:51:13 PM
Quote from: @rjen on February 21, 2024, 12:45:22 PM
Quote from: BCK on February 21, 2024, 12:39:05 PM
Quote from: Sir Osis of Liver on February 21, 2024, 12:31:37 PMIf the mod edits any theme files package manager will display a checkbox option to install it in other themes.



so it will instal itself into any theme if check the box,if I understand correctly?,,cool,, thank you

Mind you. TinyPortal does not make ANY file edits, so there will be no theme selection upon install.

so you mean it will work in the theme I have set to defaut for all members no matter what theme I use, just members cant switch themes?
Title: Re: TinyPortal
Post by: Sir Osis of Liver on February 21, 2024, 12:55:08 PM
Quote from: @rjen on February 21, 2024, 12:45:22 PMTinyPortal does not make ANY file edits, so there will be no theme selection upon install.
It will work in all themes, it doesn't edit any theme files.
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 01:10:02 PM
perfect, thank you very much..
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 01:12:58 PM
now I guess I need to decide between this or ez portal , any recommendations,, preferences ? this seems easy and good help and support for sure,,and I truly Thank You all for the help
Title: Re: TinyPortal
Post by: @rjen on February 21, 2024, 01:15:49 PM
You are asking for recommedations in the TinyPortal support topic... what answer do you expect  ;)

best recommedation I can give is try either and see what feels best....
Title: Re: TinyPortal
Post by: @rjen on February 21, 2024, 01:16:25 PM
By the way, I just installed PurpleHaze and checked: TP looks great, no issues
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 01:18:36 PM
you just made my decision...right on..I know was a little unorthedox to ask for recommends, but am a new confused guy, lol  tiny portal it is,,,thank you very very much.. fingers crossed...lol
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 01:24:30 PM
Quote from: @rjen on February 21, 2024, 01:16:25 PMBy the way, I just installed PurpleHaze and checked: TP looks great, no issues
You are absolutely right it looks awesome, I Thank You Again and Again..right choice, awesome support, you guys are GREAT...now to figure it all out etc...lol
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 01:49:26 PM
can the shout be moved and or set to middle top instead of on lower left side? if so how?
Title: Re: TinyPortal
Post by: @rjen on February 21, 2024, 02:08:07 PM
We have a pretty complete documentation page.

I suggest you go there first...
https://www.tinyportal.net/docs/index.php?page=Sorting-blocks
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 02:13:13 PM
Perfect, Thank You,,Sorry to be a pain, I will look through the link and hopefully figure it all out..
Title: Re: TinyPortal
Post by: lurkalot on February 21, 2024, 02:21:57 PM
Quote from: BCK on February 21, 2024, 02:13:13 PMPerfect, Thank You,,Sorry to be a pain, I will look through the link and hopefully figure it all out..

Do please look at the docs, but meanwhile, here's something to get you started.

To move it, go to TinyPortal Admin > Blocks
Click the little arrow to move it to a center (upper) panel

Visit that blocks page again,
Find the shoutbox block and click edit.

Set the shoutbox to layout 3 or 4 They are designed for going across page.

And some recommended settings as a start point.

Height of shoutbox in pixels 200

Click save.

You can tweak it from there.

There is also some more shoutbox settings in TinyPortal Admin > TPshout
Title: Re: TinyPortal
Post by: BCK on February 21, 2024, 03:37:08 PM
Quote from: lurkalot on February 21, 2024, 02:21:57 PM
Quote from: BCK on February 21, 2024, 02:13:13 PMPerfect, Thank You,,Sorry to be a pain, I will look through the link and hopefully figure it all out..

Do please look at the docs, but meanwhile, here's something to get you started.

To move it, go to TinyPortal Admin > Blocks
Click the little arrow to move it to a center (upper) panel

Visit that blocks page again,
Find the shoutbox block and click edit.

Set the shoutbox to layout 3 or 4 They are designed for going across page.

And some recommended settings as a start point.

Height of shoutbox in pixels 200

Click save.

You can tweak it from there.

There is also some more shoutbox settings in TinyPortal Admin > TPshout
You are Awesome,, This is what makes a Mod above and beyond its functions.. Great people and support above whats needed..I can't Thank You's enough..
Title: Re: TinyPortal
Post by: jsx on February 21, 2024, 05:14:09 PM
Recently I noticed the following errors in the log:

(https://i.imgur.com/hAFBD8Q.png)

(https://i.imgur.com/b4w2k70.png)

(https://i.imgur.com/Q15m3cN.png)

(https://i.imgur.com/qRXgV5G.png)

(https://i.imgur.com/V4kwOYi.png)

(https://i.imgur.com/wbZ8Gvw.png)

(https://i.imgur.com/iyneH31.png)

(https://i.imgur.com/kFMfSDb.png)

(https://i.imgur.com/U1gbzV3.png)

I have TinyPortal 3.0 installed
Title: Re: TinyPortal
Post by: tinoest on February 21, 2024, 05:23:02 PM
Whatever is in the content section you've redacted is likely causing the error.
Title: Re: TinyPortal
Post by: jsx on February 23, 2024, 02:58:40 PM
Quote from: tinoest on February 21, 2024, 05:23:02 PMWhatever is in the content section you've redacted is likely causing the error.

It was normal message :)

This error is generated again and the message content is normal:

(https://i.imgur.com/GActDRI.png)
Title: Re: TinyPortal
Post by: Arantor on February 23, 2024, 07:37:49 PM
I love how all the images are just too small to properly read any of the text because it's too much effort to just copy/paste the text.
Title: Re: TinyPortal
Post by: Arantor on February 24, 2024, 04:11:58 AM
This is a TinyPortal bug.

The content ends in double backslash, which is considered invalid if given directly to $smcFunc['db_query'] (because the values will ordinarily be sanitised correctly by db_insert by way of db_quote but this isn't the path TP takes) - the backtrace shows it's not going via the usual methods and being sent direct.

Assuming you are 100% sure that TP's insertSQL function is sanitising correctly, and you have to be sure about it, you can *temporarily* set $modSettings['disableQueryCheck'] to true before calling (and resetting it after)
Title: Re: TinyPortal
Post by: tinoest on February 24, 2024, 04:19:21 AM
Quote from: Arantor on February 24, 2024, 04:11:58 AMThis is a TinyPortal bug.

The content ends in double backslash, which is considered invalid if given directly to $smcFunc['db_query'] (because the values will ordinarily be sanitised correctly by db_insert by way of db_quote but this isn't the path TP takes) - the backtrace shows it's not going via the usual methods and being sent direct.

Assuming you are 100% sure that TP's insertSQL function is sanitising correctly, and you have to be sure about it, you can *temporarily* set $modSettings['disableQueryCheck'] to true before calling (and resetting it after)


It should be running through this line in db_insert.

https://github.com/SimpleMachines/SMF/blob/83db36f7db7095fa01713ba4a9ea5342323a6a29/Sources/Subs-Db-mysql.php#L783

I'll debug and work out what's wrong now I have the actual error and content.
Title: Re: TinyPortal
Post by: Arantor on February 24, 2024, 04:24:12 AM
That's what I thought, but the screenshots suggest otherwise.

But it's definitely the backslashes tripping the security filter.
Title: Re: TinyPortal
Post by: jsx on February 24, 2024, 04:30:18 AM
Quote from: Arantor on February 23, 2024, 07:37:49 PMI love how all the images are just too small to properly read any of the text because it's too much effort to just copy/paste the text.

I don't think this image is too small.

https://i.imgur.com/GActDRI.png

I added a screenshot to show the original error, I didn't think to copy the text.

QuoteNo direct access...

INSERT INTO smf_tp_shoutbox(`content`, `time`, `member_link`, `type`, `member_ip`, `member_id`, `edit`, `shoutbox_id`)
VALUES
('nie chcesz włożyć LB do maszyny :D\\', '1708719552', '<a href=\"https://www..pl/index.php?action=profile;u=325\">black731</a>', 'shoutbox', '83.10.12', 325, '0', 1)
Function: insertSQL
Title: Re: TinyPortal
Post by: Arantor on February 24, 2024, 04:42:58 AM
The images as embedded onto the forum were too small for me to read on an iPad, especially as they didn't expand when I tapped on them. The text was all blurry at that size.
Title: Re: TinyPortal
Post by: tinoest on February 24, 2024, 05:05:58 AM
Quote from: jsx on February 24, 2024, 04:30:18 AM
Quote from: Arantor on February 23, 2024, 07:37:49 PMI love how all the images are just too small to properly read any of the text because it's too much effort to just copy/paste the text.

I don't think this image is too small.

https://i.imgur.com/GActDRI.png

I added a screenshot to show the original error, I didn't think to copy the text.

QuoteNo direct access...

INSERT INTO smf_tp_shoutbox(`content`, `time`, `member_link`, `type`, `member_ip`, `member_id`, `edit`, `shoutbox_id`)
VALUES
('nie chcesz włożyć LB do maszyny :D\\', '1708719552', '<a href=\"https://www..pl/index.php?action=profile;u=325\">black731</a>', 'shoutbox', '83.10.12', 325, '0', 1)
Function: insertSQL

Can you confirm which of the following is being entered.

1.
Quotenie chcesz włożyć LB do maszyny :D\\

2.
Quotenie chcesz włożyć LB do maszyny :D\


When I try
Quotenie chcesz włożyć LB do maszyny :D\
we try and insert
QuoteINSERT INTO smf_tp_shoutbox(`content`, `time`, `member_link`, `type`, `member_ip`, `member_id`, `edit`, `shoutbox_id`)
VALUES
('nie chcesz włożyć LB do maszyny :D\\', '1708768946', '<a href=\"http://127.0.0.1/index.php?action=profile;u=1\" style=\"color: #FF0000\">admin</a>', 'shoutbox', '172.18.0.1', 1, '0', 1)

When I try
Quotenie chcesz włożyć LB do maszyny :D\\
we try and insert
QuoteINSERT INTO smf_tp_shoutbox(`content`, `time`, `member_link`, `type`, `member_ip`, `member_id`, `edit`, `shoutbox_id`)
VALUES
('nie chcesz włożyć LB do maszyny :D\\\\', '1708769095', '<a href=\"http://127.0.0.1/index.php?action=profile;u=1\" style=\"color: #FF0000\">admin</a>', 'shoutbox', '172.18.0.1', 1, '0', 1)

Both of which are being escaped...
Title: Re: TinyPortal
Post by: tinoest on February 24, 2024, 03:15:06 PM
I have absolutely no idea how it's not tripping this error every time, but its the ; in the member_link causing the issue.

If you add $shout_name = urlencode($shout_name); after $shout_name .= ($user_info['id'] != 0) ? '>'.$context['user']['name'].'</a>' : ''; in TPShout.php this issue will go away.
Title: Re: TinyPortal
Post by: Arantor on February 24, 2024, 04:23:12 PM
It shouldn't be tripping on that because it *should* be replacing what it knows are escaped values with %s when it steps through the string - so it can get at the 'non-content' version of the statement.

If it died every time content included ; you'd never be able to post links in any thing.

I wonder if there's something *else* going on with that.
Title: Re: TinyPortal
Post by: tinoest on February 24, 2024, 04:36:51 PM
Quote from: Arantor on February 24, 2024, 04:23:12 PMIt shouldn't be tripping on that because it *should* be replacing what it knows are escaped values with %s when it steps through the string - so it can get at the 'non-content' version of the statement.

If it died every time content included ; you'd never be able to post links in any thing.

I wonder if there's something *else* going on with that.

The one I thought was tripping it is replaced with %s, it is also properly escaping that data. I can't see what the issue actually is, as that fixes it then I left it at that. I don't think it's a TinyPortal issue per se we follow the path and use the SMF functions to escape everything.
Title: Re: TinyPortal
Post by: jsx on February 25, 2024, 07:12:32 AM
Quote from: tinoest on February 24, 2024, 05:05:58 AMCan you confirm which of the following is being entered.

This is the entry:

Quotenie chcesz włożyć LB do maszyny :D

(https://i.imgur.com/lSRgbCP.png)
Title: Re: TinyPortal
Post by: tinoest on February 25, 2024, 07:18:05 AM
Quote from: jsx on February 25, 2024, 07:12:32 AM
Quote from: tinoest on February 24, 2024, 05:05:58 AMCan you confirm which of the following is being entered.

This is the entry:

Quotenie chcesz włożyć LB do maszyny :D

(https://i.imgur.com/lSRgbCP.png)

Your images and tracelog suggest it is one of the two I provided. That might be the correct one which doesn't error, but the one that does can you confirm which it is please.
Title: Re: TinyPortal
Post by: jsx on February 25, 2024, 09:12:22 AM
Ok, now I understand, I added this first entry and got an error.

Quotenie chcesz włożyć LB do maszyny :D\\

nie chcesz włożyć LB do maszyny :D\

Then I added this second entry and also got an error.

But the entry is not visible in the shoutbox.
Title: Re: TinyPortal
Post by: davo88 on February 26, 2024, 01:11:05 AM
Can you use a php include statement in a TinyPortal HTML article or block? eg

<?php include 'data.php'?>
Title: Re: TinyPortal
Post by: tinoest on February 26, 2024, 04:46:50 PM
Quote from: davo88 on February 26, 2024, 01:11:05 AMCan you use a php include statement in a TinyPortal HTML article or block? eg

<?php include 'data.php'?>

You'd need a php article or block to include things like the above.
Title: Re: TinyPortal
Post by: davo88 on February 26, 2024, 05:31:46 PM
My example above wasn't very good. Here is a better example from w3schools (https://www.w3schools.com/PHP/php_includes.asp) of how I would like to use it.
So just to clarify, even though the code is HTML, it won't work in a block or article which is defined as 'HTML'? 

<html>
<body>

<h1>Welcome to my home page!</h1>
<p>Some text.</p>
<p>Some more text.</p>
<?php include 'footer.php';?>

</body>
</html>
Title: Re: TinyPortal
Post by: @rjen on February 27, 2024, 12:17:44 AM
You CANNOT use php in a html block. PHP code will only work in a php block.

So if you wish to do that you code should be all php..
Title: Re: TinyPortal
Post by: davo88 on February 27, 2024, 01:11:22 AM
Thanks for clarifying that. Will go the all php route.
Title: Re: TinyPortal
Post by: Rupurudu! on February 28, 2024, 09:54:16 AM
I am trying to use TP Standalone mode, but I couldn't get it to work.

Warning:  Undefined array key "front_type" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 405
Warning:  Undefined array key "hideadminmenu" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 413
Warning:  Undefined array key "tp-tphelp" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 420
Fatal error:  Uncaught Error: Call to undefined function TPortal_init() in D:\xampp\forum2.klonoa.local\TPStandalone.php:33
Stack trace:
#0 {main}
  thrown in D:\xampp\forum2.klonoa.local\TPStandalone.php on line 33

Is there any guide to how to properly set this up? There is zero documentation about this feature.

Title: Re: TinyPortal
Post by: jsx on February 28, 2024, 02:51:37 PM
Quote from: tinoest on February 24, 2024, 03:15:06 PMI have absolutely no idea how it's not tripping this error every time, but its the ; in the member_link causing the issue.

If you add $shout_name = urlencode($shout_name); after $shout_name .= ($user_info['id'] != 0) ? '>'.$context['user']['name'].'</a>' : ''; in TPShout.php this issue will go away.

This solution works. Thanks.
Title: Re: TinyPortal
Post by: jsx on February 28, 2024, 04:32:46 PM
@tinoest

I'm back here with a report. I noticed this bug when this code is added:

$shout_name = urlencode($shout_name);
(https://i.imgur.com/zs0lFol.png)

Title: Re: TinyPortal
Post by: tinoest on March 01, 2024, 08:26:16 AM
Quote from: Rupurudu! on February 28, 2024, 09:54:16 AMI am trying to use TP Standalone mode, but I couldn't get it to work.

Warning:  Undefined array key "front_type" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 405
Warning:  Undefined array key "hideadminmenu" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 413
Warning:  Undefined array key "tp-tphelp" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 420
Fatal error:  Uncaught Error: Call to undefined function TPortal_init() in D:\xampp\forum2.klonoa.local\TPStandalone.php:33
Stack trace:
#0 {main}
  thrown in D:\xampp\forum2.klonoa.local\TPStandalone.php on line 33

Is there any guide to how to properly set this up? There is zero documentation about this feature.

What is the path for your main forum relative to the standalone one?

It should work.. however I think it probably has been forgotten about in the most recent release.
Title: Re: TinyPortal
Post by: tinoest on March 01, 2024, 08:26:52 AM
Quote from: jsx on February 28, 2024, 04:32:46 PM@tinoest

I'm back here with a report. I noticed this bug when this code is added:

$shout_name = urlencode($shout_name);
(https://i.imgur.com/zs0lFol.png)



I can't see that image or what you are trying to tell me is the bug?
Title: Re: TinyPortal
Post by: tinoest on March 01, 2024, 08:37:35 AM
Quote from: tinoest on March 01, 2024, 08:26:52 AM
Quote from: jsx on February 28, 2024, 04:32:46 PM@tinoest

I'm back here with a report. I noticed this bug when this code is added:

$shout_name = urlencode($shout_name);
(https://i.imgur.com/zs0lFol.png)



I can't see that image or what you are trying to tell me is the bug?

I think you are trying to tell me the link is now encoded, if so change this in TPShout.php line 1130


'poster' => $row['member_link'],
'poster' => urldecode($row['member_link']),
Title: Re: TinyPortal
Post by: tinoest on March 01, 2024, 09:57:27 AM
Quote from: tinoest on March 01, 2024, 08:26:16 AM
Quote from: Rupurudu! on February 28, 2024, 09:54:16 AMI am trying to use TP Standalone mode, but I couldn't get it to work.

Warning:  Undefined array key "front_type" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 405
Warning:  Undefined array key "hideadminmenu" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 413
Warning:  Undefined array key "tp-tphelp" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 420
Fatal error:  Uncaught Error: Call to undefined function TPortal_init() in D:\xampp\forum2.klonoa.local\TPStandalone.php:33
Stack trace:
#0 {main}
  thrown in D:\xampp\forum2.klonoa.local\TPStandalone.php on line 33

Is there any guide to how to properly set this up? There is zero documentation about this feature.

What is the path for your main forum relative to the standalone one?

It should work.. however I think it probably has been forgotten about in the most recent release.

Try the below, although adjust the SSI.php and Settings.php locations.

<?php
/**
 * TPStandalone.php
 *
 * @package TinyPortal
 * @version 2.1.0
 * @author tinoest - http://www.tinyportal.net
 * @founder Bloc
 * @license MPL 2.0
 *
 * The contents of this file are subject to the Mozilla Public License Version 2.0
 * (the "License"); you may not use this package except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Copyright (C) - The TinyPortal Team
 *
 */
ob_start('tp_url_rewrite');


global 
$boardurl$context$sourcedir;

require_once(
'../Settings.php');

$actual_boardurl    $boardurl;

require_once(
'../SSI.php');
require_once(
$sourcedir '/TPortal.php');

TPortal_init();

$context['TPortal']['front_type'] = 'forum_articles';
doTPfrontpage();

writeLog();

TPortalMain();

obExit(true);

function 
tp_url_rewrite($buffer) {{{
    global 
$actual_boardurl$boardurl;
    if (!empty(
$buffer) && stripos($buffer$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']) !== false) {
        
$buffer str_replace($boardurl$actual_boardurl$buffer);
    }

    return 
$buffer;
}}}

?>
Title: Re: TinyPortal
Post by: jsx on March 01, 2024, 04:26:11 PM
Quote from: tinoest on March 01, 2024, 08:26:52 AMI can't see that image or what you are trying to tell me is the bug?

Yes, because after entering this code:

Quote from: tinoest on February 24, 2024, 03:15:06 PMI have absolutely no idea how it's not tripping this error every time, but its the ; in the member_link causing the issue.

If you add
$shout_name = urlencode($shout_name); after
$shout_name .= ($user_info['id'] != 0) ? '>'.$context['user']['name'].'</a>' : ''; in TPShout.php this issue will go away.

I got the error that I showed you in the screenshot.
Title: Re: TinyPortal
Post by: tinoest on March 01, 2024, 04:50:35 PM
Quote from: jsx on March 01, 2024, 04:26:11 PM
Quote from: tinoest on March 01, 2024, 08:26:52 AMI can't see that image or what you are trying to tell me is the bug?

Yes, because after entering this code:

Quote from: tinoest on February 24, 2024, 03:15:06 PMI have absolutely no idea how it's not tripping this error every time, but its the ; in the member_link causing the issue.

If you add
$shout_name = urlencode($shout_name); after
$shout_name .= ($user_info['id'] != 0) ? '>'.$context['user']['name'].'</a>' : ''; in TPShout.php this issue will go away.

I got the error that I showed you in the screenshot.

Which as I said I can't see, it's far too small on my phone.

Did the change I suggested after work?
Title: Re: TinyPortal
Post by: jsx on March 01, 2024, 05:41:48 PM
Quote from: tinoest on March 01, 2024, 04:50:35 PMWhich as I said I can't see, it's far too small on my phone.

And now do you see this screen better?

https://i.imgur.com/zs0lFol.png

Quote from: tinoest on March 01, 2024, 04:50:35 PMDid the change I suggested after work?

Do you mean this code:

$shout_name = urlencode($shout_name);
I added after this code?

$shout_name .= ($user_info['id'] != 0) ? '>'.$context['user']['name'].'</a>' : '';
That's exactly what I did.

Quote from: tinoest on March 01, 2024, 08:37:35 AMI think you are trying to tell me the link is now encoded, if so change this in TPShout.php line 1130

'poster' => $row['member_link'],
'poster' => urldecode($row['member_link']),

This solution decoded this link. Thanks.
Title: Re: TinyPortal
Post by: Rupurudu! on March 02, 2024, 04:35:39 PM
Quote from: tinoest on March 01, 2024, 09:57:27 AM
Quote from: tinoest on March 01, 2024, 08:26:16 AM
Quote from: Rupurudu! on February 28, 2024, 09:54:16 AMI am trying to use TP Standalone mode, but I couldn't get it to work.

Warning:  Undefined array key "front_type" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 405
Warning:  Undefined array key "hideadminmenu" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 413
Warning:  Undefined array key "tp-tphelp" in D:\xampp\forum2.klonoa.local\TinyPortal\Integrate.php on line 420
Fatal error:  Uncaught Error: Call to undefined function TPortal_init() in D:\xampp\forum2.klonoa.local\TPStandalone.php:33
Stack trace:
#0 {main}
  thrown in D:\xampp\forum2.klonoa.local\TPStandalone.php on line 33

Is there any guide to how to properly set this up? There is zero documentation about this feature.

What is the path for your main forum relative to the standalone one?

It should work.. however I think it probably has been forgotten about in the most recent release.

Try the below, although adjust the SSI.php and Settings.php locations.

<?php
/**
 * TPStandalone.php
 *
 * @package TinyPortal
 * @version 2.1.0
 * @author tinoest - http://www.tinyportal.net
 * @founder Bloc
 * @license MPL 2.0
 *
 * The contents of this file are subject to the Mozilla Public License Version 2.0
 * (the "License"); you may not use this package except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Copyright (C) - The TinyPortal Team
 *
 */
ob_start('tp_url_rewrite');


global 
$boardurl$context$sourcedir;

require_once(
'../Settings.php');

$actual_boardurl    $boardurl;

require_once(
'../SSI.php');
require_once(
$sourcedir '/TPortal.php');

TPortal_init();

$context['TPortal']['front_type'] = 'forum_articles';
doTPfrontpage();

writeLog();

TPortalMain();

obExit(true);

function 
tp_url_rewrite($buffer) {{{
    global 
$actual_boardurl$boardurl;
    if (!empty(
$buffer) && stripos($buffer$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']) !== false) {
        
$buffer str_replace($boardurl$actual_boardurl$buffer);
    }

    return 
$buffer;
}}}

?>
This code works! Thanks.
But there is a problem, none of the TinyPortal items show up on the Navigation Bar.

Now I want to point the boardindex to the forum. Currently main page ($boardurl/index.php) shows the portal page while $boardurl/index.php?action=forum shows the forum.

Edit:
This is how I did it:
/TinyPortal/Integrate.php
Find:
        // We can use a hook of sorts for the default actions now
        updateSettings(array('integrate_default_action' => 'TinyPortal\Integrate::hookDefaultAction'));
Replace:
        // Don't change the boardindex.
        updateSettings(array('integrate_default_action' => ''));

But there also another problem, both the Home and Forum links on the Navigation menu points to the Forum now.
Edit2:
Another edit is needed on /TinyPortal/Integrate.php.
Find:
        // Set the forum button activated if needed.
        if(isset($_GET['board']) || isset($_GET['topic'])) {
            $context['current_action'] = 'forum';
        }
Replace:
        // Set the forum button activated if needed.
        if(isset($_GET['board']) || isset($_GET['topic']) || (empty(isset($_GET['board'])) && empty(isset($_GET['topic'])))) {
            $context['current_action'] = 'forum';
        }

// Change the href of the 'home' button:
$buttons['home']['href'] = "/TPStandalone.php";
[/list]
Title: Re: TinyPortal
Post by: Rupurudu! on March 02, 2024, 10:18:41 PM
I can't edit my last message anymore, but don't do these edits. If you remove this line articles do not work.
updateSettings(array('integrate_default_action' => 'TinyPortal\Integrate::hookDefaultAction'));


I tried to fix the TinyPortal items not showing up on the Navigation Bar, but couldn't. And navigation bar is not the only issue, It also doesn't show up the SMF and TinyPortal copyright on the footer. I found out that SMF doesn't show it's own copyright when it's in SSI mode, but couldn't have an explaination why TinyPortal's doesn't show up.

I tried to debug it by adding this code to 'TPAddIntegrationFunction'.

trigger_error("add_integration_function called with " . $hook .', '. $call .', '. $perm.'. ', E_USER_WARNING);
Both 'TinyPortal\Integrate::hookMenuButtons' and 'TinyPortal\Integrate::hookBuffer' are called, but their modifications do not show up.



I just created a pull request on the GitHub: https://github.com/Tinyportal/TinyPortal/pull/1013
Title: Re: TinyPortal
Post by: BCK on March 03, 2024, 07:58:11 PM
Hi,,,Just wanted to say Thank You to all involved in this portal, It works flawless for me, and I can't express how great it and the support is for it,,,Truly impressed..