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

Exclude from Print mode

Started by Ruscon, July 03, 2009, 08:48:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ruscon

What's the best way to exclude stuff from ;print mode? Lets say I want to exclude a certain div, would that be possible?

ZarPrime

#1
Ruscon,

The best place to ask this question would be on the Simple Machines Forum, but if this is about removing the copyright from printed material that you asked about in your other topic, I doubt that you'll get much help there on it.  A copyright is just as valid on the printed page as it is on a monitor.

ZarPrime

Ruscon

#2
Edit

I don't want to edit copyright and I don't want to edit the topic printing. I want to edit tp article printing, meaning I'd have to edit TPprint.template.php.

I've added a delete button to quickly delete my posts that I display on my article. I'd like to change so that this button doesn't show up in print mode. It looks stupid to have edit/delete buttons once it's printed. Can I do some code that checks if it's ;print action and then not display the buttons? Thank you!

Ruscon

#3
I made a new post so that anyone who would search for it and have the same issue as me would find the proper info.

I solved it myself with some google and logical thinking. Here's a code you can use on something that you wouldn't want to be displayed in print.


if (!isset($_REQUEST['print']))
{
echo
'
This message will not be on print but will show on article!
';
}

Zetan

#4
Good work Ruscon, and thanks for sharing :up:

I'm merging this with your original topic.. Please stick to one topic, cross posting is frowned upon and likely to be locked.

Ruscon

#5
Zetan: You realise both topics are about different things, right? You just merged 2 totally different topics. This one is about removing copyright from ;print which is illegal and voids your smf license doing so. My other topic was about "not" displaying certain parts of code that you put into an article.

Please solve your misstake.

Other than that: Thanks for your kind words

Zetan

Solved!

We don't have the Rename Topics mod installed here, so I edited the post titles manually, hence the Last Edits

This website is proudly hosted on Crocweb Cloud Website Hosting.