TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 16, 2024, 04:54:58 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,158
  • Total Topics: 21,219
  • Online today: 58
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 58
  • Total: 58

Multi-Functional Posts and Topics Snippet [Version 3.0 out!]

Started by Megaforum, October 14, 2007, 05:08:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FlynT

First of all, i love this Block!!!

But i got a little Question.
I have searched a long Time for a way to Show the Topic Starter instead of the Last Poster, but i also want to show the Last Poster. Is there a way to make it possible in your Block?

Here is a Screen of what i know...



I translate the German Part for you ;)

begonnen von = started by
Letzte Antwort = Last Reply

Hope you know what i mean  :buck2:
Thanks in advanced and keep up the Good work ;)

kripz


panesarv

Quote from: alving on March 09, 2008, 09:11:03 AM
Quote from: panesarv on February 14, 2008, 02:14:27 AM
Ok one last thing....How can I make the title of the topic bold?

Edit: Got it. Thanks. Great Snippet. :D
hi panesarv,

how did you make the title of the topic bold?  thanks in advance

Sorry, didn't check this topic. You should have PM'ed me.

This below code will work for sure but it will change the font size. You can play around with the font size or you can try option 2.

Find:
echo $i['message']['link'];

Replace:
echo '<div style="font-size:13px;">',$i['message']['link'],'</div>';

Option 2:

Find:
echo $i['message']['link'];

Replace:
echo '<b>>',$i['message']['link'],'</div></b>';

jepot

cant you change the colour of scrollbars when using firefox? - is that true

Dragooon


witchking

Hi and many congratulations for this great script. I have a little small problem or suggestion.Its depends of modes.
When I am using mode 1 (topics recent), the topics in my bloc appears ordering by the creation day of the topic and not ordering by the last post day within topics. So , if someone makes a post in a topic , nothing its  happens in bloc list of topics. Only if someone make a new topic , this topic is going first.

When I am using mode 2 (post recent), appears one by one all the posts that have been submitted ordering by time/day, even if these are in the same topic.

It is possible with some way/mode to appears the topics list in bloc , not ordering  by the creation day of them , but ordering by the last post time/day in the topics of the specific board , just like they appears in forum boards.

Thank you

P.s I am using V3



Lum-chan

Just installed verson 3.00 for SMF 1.1.5 with TP 1.05 Beta1 and it works great when using Firefox 2.0.0.14/Firefox 3.0. However, with Internet Explorer 6.0.2900.5512.xpsp.080413-2111 the block is just that high to show 1 post scrolling. Scrolling is set to auto.
This is de code I added in the PHP box:

// Posts/Topics Snippet
// By Dragooon
// www.gforumx.com
// Version 3.0

//The instructions are posted in the thread of this snippet + they are quite here.

// Lets call the file
global $sourcedir;
require_once($sourcedir . '/PostsTopicsSnippet.php');

// Declare it. There is NO need to edit this part
$boards_id = array();
$cats_id = array();
/************************************
* How To Customize!
************************************/
# This is how to customize the block. To customize this please edit the variable given in the Below function call (postsTopicsSnippet). Do Not edit the variables given in this How To. This How to explains, what is the variable is and what does it do.
# How to Customize is given below.
# Make sure not to remove ANY comma
# Make sure not to remove "array()" part in the $boards_id and $cats_id variables.

# $mode : Mode of the Block
# 1 = Recent Topics
# 2 = Recent Posts
# 3 = Top Viewed
# 4 = Top Replied

# $boards_id : ID Of Boards to show the posts/topics from
# Do Not remove array() part, Insert the ID(s) of boards you want posts to show from.
# Use comma ( , ) as a separator
# Example : $boards_id = array(1, 2, 3)
# Leave empty to grab posts from all boards

# $cats_id : ID Of categories to show the posts/topics from
# Do Not remove array() part, Insert the ID(s) of categories you want posts to show from.
# Use comma ( , ) as a separator
# Example : $cats_id = array(1, 2, 3)
# Leave empty to grab posts from all categories

# $stickyOnly : Weather to get the topics which are sticky only or not
# true : yes
# false : no

# $limit : Maximum no. of topics/posts to show

# $subjectLength : Max characters the subject can have.

# $bodylength : Max characters the subject can have
# Setting it to 0 will result showing of no body.

# Below are some configuration variables
# For these, if set to true, it means Yes.
# If set to false, it means no.

# $parseSmileys : Weather to parse smileys or not

# $show_board : Weather to show the board the topic/post is posted in or not

# $show_views : Weather to show the no. of views or not

# $show_replies : Weather to show the no. of replies or not

# $show_category : Weather to show category or not

# $show_author : Weather to show the author who posted this or not

# $show_newIcon : If the post is unread, weather to show the New Icon or not

# $show_time : Weather to show the time the post/topic is posted on or not

# $scroll : If the height it longer than 40 pixels, weather to make it as a scroll or not

# $aScroll : Weather to make it auto scroll or not
# NOTE : If $scroll AND $aScroll are both true, $scroll turns back to false so that it doesn't clashes.
/************************************
* End How to Customize!
************************************/

/************************************
* The Function!
************************************/
postsTopicsSnippet(
$mode = 2,
$boards_id = array(),
$cats_id = array(),
$stickyOnly = false,
$limit = 15,
$subjectLength = 25,
$bodylength = 0,
$parseSmileys = false,
$show_board = false,
$show_views = false,
$show_replies = false,
$show_category = false,
$show_author = true,
$show_newIcon = false,
$show_time = true,
$scroll = false,
$aScroll = true
);

//Thank you for using this Code snippet.


What is going wrong or should my current version of IE be upgraded. Tested this on several machines with the same IE version. All show the same problem even with the default Theme of SMF 1.1.5

My website -> http://forum.lum-chan.com/

What to do now?

[edit]
Upgraded to Internet Explorer 7 but it still doesn't show the same way as in Firefox. Other blocks in TP show up correctly.
Tried to move it across the left-block but  this makes no difference sofar...
[/edit]

fangweile

Hello there, I have a topic rating mod installed in my forum and would it be possible to include the rating of each topic.

Any idea?

IchBin

You should ask the author of that mod how it can be included in this block.

jepot

nice work
but how do i enlarge the font for the title?