News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

November 16, 2019, 10:12:10 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189259
  • Total Topics: 20772
  • Online Today: 217
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 192
Total: 192

Author Topic: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]  (Read 49803 times)

0 Members and 1 Guest are viewing this topic.

FlynT

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #120 on: May 27, 2008, 07:52:04 AM »
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

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #121 on: May 30, 2008, 02:53:10 AM »
I have a suggestion. Can you exclude Moved topics?

panesarv

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #122 on: June 01, 2008, 01:43:53 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:
Code: [Select]
echo $i['message']['link'];
Replace:
Code: [Select]
echo '<div style="font-size:13px;">',$i['message']['link'],'</div>';
Option 2:

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

jepot

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #123 on: July 01, 2008, 11:16:24 PM »
cant you change the colour of scrollbars when using firefox? - is that true

Offline Dragooon

  • Hero Member
  • *****
  • Posts: 994
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #124 on: July 02, 2008, 02:24:53 AM »
I think only IE supports that.

witchking

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #125 on: July 09, 2008, 03:20:59 AM »
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

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #126 on: July 10, 2008, 06:38:47 AM »
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:
Code: [Select]
// 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

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #127 on: July 13, 2008, 09:14:48 PM »
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?

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #128 on: July 13, 2008, 11:50:10 PM »
You should ask the author of that mod how it can be included in this block.

jepot

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #129 on: July 17, 2008, 07:58:23 AM »
nice work
but how do i enlarge the font for the title?