TinyPortal

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

Previous topic - Next topic

lurkalot

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.

Sir Osis of Liver

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';



 
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

lurkalot

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

Sir Osis of Liver

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

                                     - R. Waters

SaltedWeb

#2224
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

Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

DarkAngel612

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.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

SaltedWeb

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
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

DarkAngel612

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.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

thomp4pal

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.

lurkalot

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. 

thomp4pal

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)

lurkalot

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?

thomp4pal

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...  :-\

Arantor

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.

thomp4pal

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.

lurkalot

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.

thomp4pal

My Bad Lurkalot, I Misunderstood you, my apologies please... and yeah that was the fix  8)
Thanks

İerdogan

#2237
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
Paylaşmak Güzeldir.  Sharing İs Beautiful. 
http://www.eitasarim.com/forum [nofollow]

Arantor

TP or SP? TP's site is perfectly fine, SP's site is the one that's down...

lurkalot

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.

Advertisement: