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: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 177
  • Total: 177

How Do I Remove These?

Started by Skhilled, August 07, 2011, 07:38:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skhilled

Link to my site: http://www.skhilled.com/docs
SMF version: 2.0
TP version: 1.104
Default Forum Language: English
Theme name and version: Custom designed theme and Curves
Browser Name and Version: FF 5.0.1
Mods installed: httpBL, Aeva Media, Stop Spammer, TinyPortal
Related Error messages: None

I'm trying to get rid of the info at the top of a front page article ONLY. Not all articles. The "Edit" part is easily removable (and does not need to be removed) but the rest is needed to be removed. Removing the Print only works for all articles and there is no option to remove "Posted in".

Skhilled

#1
Nvm, someone found the answer for me at SMF in the TP topic. It's not specific so I'll play around with it and post what I find for others.

EDIT: Go to FrontPage Settings -> Custom Template.

{article_category} shows "Posted in".

{article_options} shows "Edit" and "Print".

My problem is I'd like to keep "Edit", it will not show even if it is turned on. I've had a look at the code but can't find out where to separate the 2.

A 2nd issue is that removing {article_options} cuts off the header for the title on the left side. The "curves" are now missing. Putting the code back does not fix it.

It also creates a duplicate of social bookmarks.

IchBin

The code to change the edit and print options is in TPsubs.template.php in the "function article_options()" function.

The 2nd issue... I don't think the removal of that piece of code you posted is the problem. The problem seems to be in the custom layout option. I think it needs to be updated for the SMF2 RC5+ changes where they changed the catbg/titlebg sections of CSS. I'll take a look at that.

Skhilled

Quote from: IchBinâ,,¢ on August 08, 2011, 08:37:09 PM
The code to change the edit and print options is in TPsubs.template.php in the "function article_options()" function.

Is that for all articles or just for frontpage articles?

Quote from: IchBinâ,,¢ on August 08, 2011, 08:37:09 PM
The 2nd issue... I don't think the removal of that piece of code you posted is the problem. The problem seems to be in the custom layout option. I think it needs to be updated for the SMF2 RC5+ changes where they changed the catbg/titlebg sections of CSS. I'll take a look at that.

Thanks. :)

IchBin

That function controls all articles.

Skhilled

That figures... I wanted them just for frontpage ones. Oh well, thanks anyways. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.