News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Remove Forum Name from Topic Title

Started by !RFAN, June 27, 2012, 09:36:10 AM

Previous topic - Next topic

!RFAN

Hey,

I just want to remove my Forum Name from Title of the Topic.

Currently it is = " Some Topic Title - AmigoZone"
I want to change it to= "Some Topic Title"

Please help me :)

kat

Sorry, Irfan...

Where?

I don't recall seeing that. (It's been a LONG day, I'm afraid)

Masterd

#2
Name of the forum was never set to display in the topic title when it comes to SMF. Where did you see it?

!RFAN

I do not know why but my forum has forum name in the title of topic.

for example :

link: http://www.amigozone.com/upcoming-movies/ek-tha-tiger-theatrical-trailer

Title: EK THA TIGER - Theatrical Trailer - AmigoZone

What I Want : EK THA TIGER - Theatrical Trailer

Thanks for replies :)

Arantor

Considering that the forum name isn't automatically in the title like that, it's obviously a mod you've already added in the past...
Holder of controversial views, all of which my own.


kat

'ang on...

You don't mean the linktree, by any chance, do you?

Like the thing at the top of this page that says:

Simple Machines Community Forum » SMF Support » SMF 2.x Support » Topic: Remove Forum Name from Topic Title

Arantor

No, it's definitely the page title in question that has it added.
Holder of controversial views, all of which my own.


kat

Ah. I couldn't see that. With all the whirly colours and "OMG!" graphics stuff, I must've missed it.


!RFAN

Quote from: Masterd on June 28, 2012, 08:18:49 AM
Could it be this one?

http://custom.simplemachines.org/mods/index.php?mod=2381

I have not this mod installed.

I checked for the change this mod makes but I could not find any change in my Subs.php



/Sources/Subs.php
Find: [Select]

$context['page_title_html_safe'] = $smcFunc['htmlspecialchars']
(un_htmlspecialchars($context['page_title']));


Add After: [Select]

   //-- Labradoodle-360; Forum Name in Browser Title
global $sourcedir;
require_once($sourcedir . '/forum-name-in-browser-title/Main.php');
determinePageTitle();
// End Labradoodle-360; Forum Name in Browser Title --//


In my subs.php i have this:

$context['page_title_html_safe'] = $smcFunc['htmlspecialchars'](un_htmlspecialchars($context['page_title']));

Arantor

So it's a different change. Probably in index.english.php and other similar files in Themes/default/languages/
Holder of controversial views, all of which my own.


Advertisement: