News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

TinyPortal

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

Previous topic - Next topic

lurkalot

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.

Sir Osis of Liver

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.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

lurkalot

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.


Sir Osis of Liver

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.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

dowhelp

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.


@rjen

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...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

dowhelp


wylekk

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' ),

d3vcho

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.
"Greeting Death as an old friend, they departed this life as equals"

@rjen

Mmm, looks a bit wonky.

Was the old Tinyportal uninstalled prior to upgrade?
Link to the forum?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

d3vcho

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
"Greeting Death as an old friend, they departed this life as equals"

@rjen

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?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

d3vcho

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?
"Greeting Death as an old friend, they departed this life as equals"

@rjen

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"?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

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)
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

d3vcho

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!
"Greeting Death as an old friend, they departed this life as equals"

@rjen

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
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

d3vcho

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 :)
"Greeting Death as an old friend, they departed this life as equals"

lurkalot

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

d3vcho

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
"Greeting Death as an old friend, they departed this life as equals"

Advertisement: