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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 252
  • Total: 252

Strange Activity

Started by carver, October 14, 2005, 02:28:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

carver

I created a few Boardnews blocks for various boards on a forum. and when I created one for a board that did not have any topics in it , the site stopped responding. No errors, no nothing. Just got an hour glass for a few seconds and then it said page was done. but it never loaded the site. As soon I went in to the database and deleted that block the site responded.
Once I placed a topic in that board the boardnews functioned worked as it should...

Also i am using .74 and smf rc1

bloc

Thank you for the report. I will hunt down that bug.

Muziek4um

#2
Hello,

Talking bout strange activity... I have a weird thing too :-\.

I have installed Tiny portal recently and it works great! Absolutely thanks for that BLOC!

I have put the Boardnews from SMF on the frontpage as you can see at: http://www.muziek4um.nl and it works like it should.

But then the strange fenomena... All articles give a beautiful  "read more"  link, even the short ones EXCEPT the one thats now at the top ( the one saying: "Verbal Kint Live @ DIF-Magazine Launch ") .

I also made a new topic to test and that one automatically came at the top of that one and even the test topic was also giving a "read More" link.  ???

Ain't that weird? Or could it be because of the amount of comments the topic has?

Thanks in advance for reply.

Ed.



JPDeni

It puts a "Read more" link at the end of every news item, whether the whole thing is displayed or not. I copied the code for the subroutine into a center block and changed it.

          <div class="post" style="padding: 2ex 0;">', $news['body'], '</div>';
          if (substr($news['body'],-3) == '...')
            echo $news['link'];
       echo '</div>';


I have it look for the ... at the end of the body. If it's there, it prints out the Read more link. Otherwise not. Also I eliminated the link to post comments to those posts.

Muziek4um

Thanks a lot for the advise but my complaint is not the "read more" link that appears cause I love it.
The problem is that only with one message its not showing up. And I would like it on all messages specially on ones where its really needed.

JPDeni

I'm sorry. I guess I misunderstood. The code I posted will make it be there where it's needed and not be there when it's not. That is, if the whole post isn't there, then the Read more link appears.

You must have edited your post while I was writing mine, because I didn't see the link to your site. That is odd behavior.

Muziek4um

The link to my site is still there :)

Quote from: Muziek4um on August 07, 2006, 12:39:31 AM
Hello,

Talking bout strange activity... I have a weird thing too :-\.

I have installed Tiny portal recently and it works great! Absolutely thanks for that BLOC!

I have put the Boardnews from SMF on the frontpage as you can see at: http://www.muziek4um.nl and it works like it should.


Muziek4um

#7
The problem is solved. I changed something in the message (like I had done before ???) and at once the "read more" link appeared again on the first message on the "home" page.  :2funny:

Now on other message it dont... :laugh:

Thanks anyway!

www.muziek4um.nl

Ed.

Muziek4um

Aaarrggh
I have same trouble again...

www.muziek4um.nl

This website is proudly hosted on Crocweb Cloud Website Hosting.