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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 347
  • Total: 347

Quick fix to front page bug (#315) in TP1.0.5b1

Started by supportingactors, June 03, 2008, 10:27:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

supportingactors

Bloc has noted that a fix will be in the next beta, but since I couldn't wait: after a bit of poking around-- based on a pointer from Ichbin-- I found a quick-n-dirty fix to the front page "bug" (#315) I was having, which may benefit others:

In Sources/TPortal.php

Starting at line 1491:

if(!empty($mypage))
       $context['page_title'] = $row['subject'];

Add:

elseif($context['TPortal']['is_frontpage'])
       $context['page_title'] = $context['forum_name'];

Before:

else
       $context['page_title'] = $context['TPortal']['current_category'];



IchBin

You may want to specify which bug your working around. lol

supportingactors

As per suggestion, I also noted the bug, in addition to the link to the original discussion.

PipeRain

Thanks for this!

Really helped a n00b fix a niggling problem.   :up:

This website is proudly hosted on Crocweb Cloud Website Hosting.