News: TinyPortal Release Schedule. Please read this update for More Info.

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, 03:17:43 PM

Login with username, password and session length

Recent

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

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

0 Members and 1 Guest are viewing this topic.

panesarv

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #80 on: February 09, 2008, 11:16:11 PM »
Under the "Loop"??? What is that? What file to edit?

panesarv

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #81 on: February 12, 2008, 12:27:50 AM »
Bump!! ^^^^^^^^^

Offline Dragooon

  • Hero Member
  • *****
  • Posts: 994
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #82 on: February 12, 2008, 12:41:30 AM »
Meh My bad :P, I forgot to check this post
In PostsTopicsSnippet.php find :
Code: [Select]
echo $i['message']['link'];And try replacing it with
Code: [Select]
echo '<div style="font-size:13px;">',$i['message']['link'],'</div>';This is untested, but I think it should work.

panesarv

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #83 on: February 12, 2008, 09:21:23 PM »
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.

Offline Dragooon

  • Hero Member
  • *****
  • Posts: 994
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #84 on: February 12, 2008, 11:16:39 PM »
Actually yeah, you have to duplicate it.

panesarv

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #85 on: February 12, 2008, 11:38:55 PM »
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
« Last Edit: February 12, 2008, 11:49:48 PM by panesarv »

Offline Dragooon

  • Hero Member
  • *****
  • Posts: 994
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #86 on: February 13, 2008, 12:56:22 AM »
Try this, open the file and find
Code: [Select]
function poststopicssnippetand rename it to
Code: [Select]
function poststopicssnippet1Then in the block code where it says poststopicssnippet, rename it to poststopicssnippet1

panesarv

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #87 on: February 13, 2008, 01:25:14 AM »
Worked perfectly. Thanks a lot. You are the best.

panesarv

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #88 on: February 13, 2008, 07:14:27 PM »
Ok one last thing....How can I make the title of the topic bold?

Edit: Got it. Thanks. Great Snippet. :D
« Last Edit: February 13, 2008, 07:35:27 PM by panesarv »

panesarv

  • Guest
Re: Multi-Functional Posts and Topics Snippet [Version 3.0 out!]
« Reply #89 on: February 18, 2008, 10:13:33 PM »
Can I get this snippet to show related threads or is there any snipped that does that?