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

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 04:57:00 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 304
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 301
  • Total: 301

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.

panesarv



Dragooon

Meh My bad :P, I forgot to check this post
In PostsTopicsSnippet.php find :
echo $i['message']['link'];
And try replacing it with
echo '<div style="font-size:13px;">',$i['message']['link'],'</div>';
This is untested, but I think it should work.

panesarv

Ok Thanks a lot! It works fine. I need to accomplish one more thing.

Here, take a look at my site - http://ecric.net

I have two blocks using your code. I'm using them for articles. One block shows the latest article and the other block shows last 5 articles.

I only want to change the font size of the "title of the latest article". So do we need to create duplicate PostsTopicsSnippet.php files to accomplish it? Please help. I hope I have explained it good, if not, ask me more question.

Dragooon


panesarv

Can you tell me what edits should I make?

Cuz I duplicated the file to PostsTopicsSnippet1.php and I got this


Fatal error: Cannot redeclare poststopicssnippet() (previously declared in /home/ecricnet/public_html/smftest/Sources/PostsTopicsSnippet.php:47) in /home/ecricnet/public_html/smftest/Sources/PostsTopicsSnippet1.php on line 294

Check it out on http://ecric.net/smftest/

I changed the block to relate to PostsTopicsSnippet1.php

Dragooon

Try this, open the file and find
function poststopicssnippet
and rename it to
function poststopicssnippet1
Then in the block code where it says poststopicssnippet, rename it to poststopicssnippet1

panesarv


panesarv

Ok one last thing....How can I make the title of the topic bold?

Edit: Got it. Thanks. Great Snippet. :D

panesarv

Can I get this snippet to show related threads or is there any snipped that does that?