themaPoster
http://poster.themasoftware.com/forum/

Removing first line.
http://poster.themasoftware.com/forum/viewtopic.php?f=18&t=8655
Page 1 of 1

Author:  Stnd [ September 27th, 2016, 5:17 am ]
Post subject:  Removing first line.

Hello
I`m posting from folder to two sites. In first i`m creating new topics and use general option "use first line a subject" and "remove first line when posting" for auto -adding thema subject.
In second i`m replying only and need not these options. So in shedule i can post to one site only.
Is there a solution? Can I use the option for each site separately?

Author:  Freddy [ September 27th, 2016, 3:58 pm ]
Post subject:  Re: Removing first line

Hi,

it's much better to always have subject (even when replying). People in forum will be able to find your posts easier via forum search and you will get more downloads / views.

If you have subjects in first line you should leave the option "Use first line as subject" always enabled.

You don't really need to remove the subject from message text (first line). I would just leave it there. Some forums don't show subjects so always having subject in message will help with SEO (more people will find your posts via Google).

Author:  Stnd [ September 28th, 2016, 6:30 am ]
Post subject:  Re: Removing first line.

When I creat new topic in first forum I need option "remove first line when posting", forexample
1 line - Any Title - this line will be the topic name and will be deleted
2 line - [size]Any Title [/size]- this line will be the first line in message
3 line - ...message text...

Author:  Freddy [ September 28th, 2016, 6:47 am ]
Post subject:  Re: Removing first line.

In that case why you can't just always remove the first line?

Just leave the option to "Remove first line" always enabled. You still have the the title in second line so everything should be fine.

Author:  Wurstmu [ September 30th, 2016, 11:01 am ]
Post subject:  Re: Removing first line.

Simply invert the logic. :-) I do it this way:

1. I have the subject in first line in all my raw post data files I feed to TP, use first line as subject and delete it with every post TP does.
2. I use replacements to re-insert the subject into the post selectively. Replacing

Code:
^

with

Code:
<postSubject>\n\n

with regex enabled will do the trick.

Work done - and all forum-dependent. :-)

Of course you simply can delete first line in forums where you need it with a replacement, but with my approach you even can style the first line forum dependent which is what I want to do.

Wurstmu

Author:  norival1992 [ July 25th, 2017, 2:51 am ]
Post subject:  Re: Removing first line.

I feel I have to warn you that what you are doing is probably quite risky as you rely on comments in the HTML

Author:  Freddy [ July 28th, 2017, 8:50 am ]
Post subject:  Re: Removing first line.

That's not HTML. That's special element only for themaPoster. It's replaced automatically when posting to the post subject.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/