Advertisement:

Author Topic: TinyPortal  (Read 761609 times)

Offline [darksteel]

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,466
  • Gender: Male
  • SMF is a big boy
Re: TinyPortal
« Reply #60 on: February 13, 2005, 05:08:25 PM »
Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

bloc

  • Guest
Re: TinyPortal
« Reply #61 on: February 13, 2005, 05:32:59 PM »
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?

bloc

  • Guest
Re: TinyPortal
« Reply #62 on: February 13, 2005, 05:40:51 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.  :)

bloc

  • Guest
Re: TinyPortal
« Reply #63 on: February 13, 2005, 05:49:24 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?

bloc

  • Guest
Re: TinyPortal
« Reply #64 on: February 13, 2005, 06:15:31 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.

Offline maufonseca

  • Jr. Member
  • **
  • Posts: 197
  • "I have fury!!" ~ Fawful
Re: TinyPortal
« Reply #65 on: February 13, 2005, 07:08:19 PM »
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

Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: TinyPortal
« Reply #66 on: February 14, 2005, 06:14:50 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!

Offline Midgard

  • Jr. Member
  • **
  • Posts: 271
  • Gender: Male
Re: TinyPortal
« Reply #67 on: February 14, 2005, 06:22:10 AM »
Turkish Translations:

TPortal.english.php:
Code: [Select]
<?php
// Version: 1.0 ; TPortal

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

?>


TPortalAdmin.english.php:
Code: [Select]
<?php
// Version: 1.0 ; TPortalAdmin

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

?>


bloc

  • Guest
Re: TinyPortal
« Reply #68 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.

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: TinyPortal
« Reply #69 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

bloc

  • Guest
Re: TinyPortal
« Reply #70 on: February 14, 2005, 01:17:15 PM »
Thanks. :)

Offline sportman3333333

  • Semi-Newbie
  • *
  • Posts: 42
Re: TinyPortal
« Reply #71 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

bloc

  • Guest
Re: TinyPortal
« Reply #72 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 .

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: TinyPortal
« Reply #73 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.

Code: [Select]
// 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>';
}
}
Cristián Lávaque http://cristianlavaque.com

bloc

  • Guest
Re: TinyPortal
« Reply #74 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.

Offline sportman3333333

  • Semi-Newbie
  • *
  • Posts: 42
Re: TinyPortal
« Reply #75 on: February 15, 2005, 02:57:51 PM »
thanks, i reinstalled it under 1.0.2 and it works fine

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: TinyPortal
« Reply #76 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

Code: [Select]
// 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? :)
« Last Edit: February 16, 2005, 12:30:24 PM by Anguz »
Cristián Lávaque http://cristianlavaque.com

Offline Midgard

  • Jr. Member
  • **
  • Posts: 271
  • Gender: Male
Re: TinyPortal
« Reply #77 on: February 16, 2005, 03:13:05 AM »
Yeah worked it.

bloc

  • Guest
Re: TinyPortal
« Reply #78 on: February 16, 2005, 04:03:39 AM »
Yes, worked like a charm. :)

Offline Midgard

  • Jr. Member
  • **
  • Posts: 271
  • Gender: Male
Re: TinyPortal
« Reply #79 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