News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

TinyPortal

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

Previous topic - Next topic

ZarPrime

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

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


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 and one of us can help you.


ZarPrime

IdanC

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?

MoreBloodWine

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 ;-)
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


IchBin™

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! :)
IchBin™        TinyPortal

IdanC

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

ZarPrime


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

ZarPrime

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

bloc

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.

Hj Ahmad Rasyid Hj Ismail

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?

MoreBloodWine

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.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


ZarPrime

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

IdanC

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.

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?

MoreBloodWine

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['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 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;;
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


bloc

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.

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.


ZarPrime

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

ZarPrime

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

MoreBloodWine

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.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


ZarPrime

<Ha Ha> OK, your choice. ;)


ZP

MoreBloodWine

#778
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 ?
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


ZarPrime

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

Advertisement: