It is currently October 17th, 2017, 9:38 am



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Removing first line.
PostPosted: September 27th, 2016, 5:17 am 

Joined: September 18th, 2016, 4:08 am
Posts: 7
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?


Top
 Profile  
 
 Post subject: Re: Removing first line
PostPosted: September 27th, 2016, 3:58 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 8414
Location: Earth
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).

_________________
themaPoster | themaManager | themaLeecher | themaRegister


Top
 Profile  
 
 Post subject: Re: Removing first line.
PostPosted: September 28th, 2016, 6:30 am 

Joined: September 18th, 2016, 4:08 am
Posts: 7
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...


Top
 Profile  
 
 Post subject: Re: Removing first line.
PostPosted: September 28th, 2016, 6:47 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 8414
Location: Earth
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.

_________________
themaPoster | themaManager | themaLeecher | themaRegister


Top
 Profile  
 
 Post subject: Re: Removing first line.
PostPosted: September 30th, 2016, 11:01 am 

Joined: May 17th, 2015, 10:35 am
Posts: 214
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


Top
 Profile  
 
 Post subject: Re: Removing first line.
PostPosted: July 25th, 2017, 2:51 am 

Joined: February 9th, 2016, 5:14 pm
Posts: 8
I feel I have to warn you that what you are doing is probably quite risky as you rely on comments in the HTML

_________________
Keep2share Paypal | Rapidagator Paypal | Depfile Paypal


Top
 Profile  
 
 Post subject: Re: Removing first line.
PostPosted: July 28th, 2017, 8:50 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 8414
Location: Earth
That's not HTML. That's special element only for themaPoster. It's replaced automatically when posting to the post subject.

_________________
themaPoster | themaManager | themaLeecher | themaRegister


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC