Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 08:17:13 PM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 60
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 0
Guests: 46
Total: 46

Author Topic: Recent Topics module ?  (Read 20465 times)

0 Members and 1 Guest are viewing this topic.

Offline hashend94

  • Lord of Potatoes
  • Jr. Member
  • **
  • Posts: 32
  • Otaku life is hard.
    • Supreme Cream Scans
Recent Topics module ?
« on: October 25, 2012, 12:06:50 AM »
Greetings !

So today I installed TinyPortal on my forums for the first time. It is very confusing to get used to. So I was looking around for a sort of module i wanted and default TinyPortal options didn't have it.

http://gamer.lk/index.php

If you scroll down in that site you could see a box with information and another with the latest topics being discussed in different forum sections.

Could one of you possibly know where I could find this module ? If you can please help me out !

Thanks and Best Regards,
hashend94

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Recent Topics module ?
« Reply #1 on: October 25, 2012, 08:34:53 AM »
TP already has a built in block for that, it's called recent topics. When you create a block you can just select the recent topics type of block. If you want it to look different than what is provided with TP, then you'll need to use a custom block code which we have plenty of in our block codes board.

http://www.tinyportal.net/index.php?board=46.0

Offline hashend94

  • Lord of Potatoes
  • Jr. Member
  • **
  • Posts: 32
  • Otaku life is hard.
    • Supreme Cream Scans
Re: Recent Topics module ?
« Reply #2 on: October 25, 2012, 11:57:01 PM »
Hey guys ! So yesterday I installed Tinyportal to my forums. And i found this amazing recent topics module in a certain site which I really want and can't seem to find ( That forum uses tinyportal aswell) . In this module you can display different recent topics from different sections of the forums, they'r tabbed and when you hover over it shows the different threads from each section. I'll attach an image so you guys know how it looks like. So If you know where I can find the code for this please help me out :)



The site : http://gamer.lk/

Thanks and Best Regards

Offline hashend94

  • Lord of Potatoes
  • Jr. Member
  • **
  • Posts: 32
  • Otaku life is hard.
    • Supreme Cream Scans
Re: Recent Topics module ?
« Reply #3 on: October 27, 2012, 02:16:03 AM »
Bump, Anyone around ?  :-\

Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: Recent Topics module ?
« Reply #4 on: October 27, 2012, 11:02:22 AM »
Hello hashend94,

Welcome to the TinyPortal Support Board.

I have merged your topic from the 25th into this topic as it apparently has to do with the same question.  The block code you seem to be looking for is not the Recent Topics block that you asked about in your earlier topic.  That topic is a standard block for TinyPortal and Ichbin, and I, thought that was what you were looking for.  Apparently not though.  It appears that what you are looking for is the Tabbed block which is capable of using different TinyPortal blocks in it's structure.

It is difficult for us to just guess what you are looking for if you have not first read our Posting Guidelines and given us the information requested in that topic.  The first thing we ask you to do is to conduct a search to see if you can find what you are looking for.  If you can't find what you are looking for via a search then the information requested in that topic gives us the information that we need in order to help you.

Let's start over, shall we?  Now that we know what you are looking for, Please read the Posting Guidelines and supply the requested information and we will try to give you the information that you seek.  Here's what we need from you ...


Link to my site: http://www.yourdomain.com
SMF version: SMF ver. here
TP version: TP ver. here
Default Forum Language: Your Default Forum Language here
Theme name and version: Theme name here
Browser Name and Version: Browser name/version here
Mods installed: Mods listed here
Related Error messages: Error message here

ZarPrime

Offline hashend94

  • Lord of Potatoes
  • Jr. Member
  • **
  • Posts: 32
  • Otaku life is hard.
    • Supreme Cream Scans
Re: Recent Topics module ?
« Reply #5 on: October 27, 2012, 12:06:14 PM »
Hello!
 I'm really sorry for inconvenience caused ! It's my fault for not reading the rules and guide lines and i'm really sorry for that ! So Firstly I'll prove the info :)

Link to my site: http://otakusl.mmocube.net
SMF version: SMF 2.0.1
TP version: TP ver.1.0 FINAL
Default Forum Language: English
Theme name and version: Noize (Dziner Studios)
Browser Name and Version: Chrome
Mods installed: Nothing so far
Related Error messages: No Error Messages

Okay so I tried looking everywhere in the forums but I couldn't find the solution for the problem. As you explain above I want the tabbed block. I'm still a beginner to PHP and my  knowledge is somewhat limited on this matter. But I hope to learn more with your help. So Once again I am looking for a block with tabbed recent posts from different sections and if anyone of you help me, i'm really greatfull ! ( hope I don't need to post the picture again)

Hope to get a reply soon

Thanks and Best Regards,
Hashen

Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: Recent Topics module ?
« Reply #6 on: October 27, 2012, 02:06:47 PM »
No problem on not following the posting guidelines since you are new here.  It is only frustrating when someone has been here awhile and doesn't give us the information needed.  It's sort of like us having to ask twenty questions to get the information we need and, by the time we do that, we have a huge topic spaning multiple pages. :o

Anyway, let's get started.  The block code you are looking for was written by our coder Freddy and is called "Tabbed Block by Mouse Over".  I have looked at the site you mentioned in your first post and that site uses the various tabs to just show recent topics, the first tab to show "All" recent topics, and the second and subsequent tabs to show recent topics from various Forum Boards on that site.  If something like this is what you want to show on your site as well, it should be fairly easy to install and setup this block.  It gets a little more difficult if you want to setup other tabs to do other things, especially if those other tabs use javascript, but it can be done.

Mod Package (Download for SMF 2.0) --> http://www.tinyportal.net/index.php?topic=33219
Discussion on package --> http://www.tinyportal.net/index.php?topic=30787.0
Post showing how to modify code to show something else in a tab --> http://www.tinyportal.net/index.php?topic=30787.msg247669#msg247669

This Mod is designed for SMF 2.0RC2 and 2.0 RC3.  Since you will be installing this on SMF 2.0.1, you will need to emulate one of those other 2 versions of SMF when installing it with the Package Manager.  Read the post linked to the right for more information on that. --> http://www.tinyportal.net/index.php?topic=30787.msg279942#msg279942

I would also recommend that you backup your Forum and database before starting on this in case you make any mistakes.  That way you can revert everything if you have problems.  Let us know how you get along with this.

ZarPrime

Offline hashend94

  • Lord of Potatoes
  • Jr. Member
  • **
  • Posts: 32
  • Otaku life is hard.
    • Supreme Cream Scans
Re: Recent Topics module ?
« Reply #7 on: October 28, 2012, 12:33:39 AM »
Hey ZarPrime,

As you said I followed the thread used the emulation function and installed the mod. But how ever when I try to add the code in a PHP block and and display it, iParse error: syntax error, unexpected '[' in

/home/mmocuben/public_html/otakusl/Sources/Load.php(2322) : eval()'d code(127) : eval()'d code on line 2t gives me this error

Any idea why it happens ?
Thanks
Hashen



Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: Recent Topics module ?
« Reply #8 on: October 28, 2012, 07:29:57 AM »
I might have to get hold of Freddy and ask him about this as he knows more about this code than anyone else.  In the meantime, do the following ...

First off, let's make sure you installed the correct one.  At the bottom of the Mod topic (http://www.tinyportal.net/index.php?topic=33219), there are 2 files.  The top one is for SMF 1.0 and the bottom one is for SMF 2.0.  You don't want the one at the top.  The one you need is the bottom one for SMF 2.0.  Did you install the correct one, and did you get any errors during the installation with the Package Manager?

OK, next, go to Admin --> Configuration --> Server Settings and find the setting that says "Disable evaluation of templates".  Put a checkmark in that one and save and then go to the frontpage and see if the error changes.  Let us know what the error says now.

Third, go to your TinyPortal blocks screen and turn off the chatbox that is right above where the error is and save.  Then go back to the frontpage and see if the error changes.  Let us know.

ZarPrime

Offline hashend94

  • Lord of Potatoes
  • Jr. Member
  • **
  • Posts: 32
  • Otaku life is hard.
    • Supreme Cream Scans
Re: Recent Topics module ?
« Reply #9 on: October 28, 2012, 09:45:08 AM »
Hey,

I finally got it to work  ;D I've inserted a wrong code into the block :P And after I checked it worked ! Now the only problem I have is how to make different news from different board appear in different tabs. If you know any tutorial or if you could tell me how to do so. It would be really nice  :)

Thanks again
Hashen