how to add auto reply after first topic

Support for ANY phpBB3 related issue.
- MOD Support requests should be asked in the specific MOD topic -
Any version of phpBB3 is supported.
Forum rules
READ: StarTrekGuide.com Board Rules

Users are requested to fill out the Support Request Template and include it in every support request.

As a general rule, Support for a Specific MOD should be requested in the specific MOD topic, as it would alert the MOD Author of the support request.
Please specify if you have any MODs installed on your board when asking for support.

phpBB support requests allowed
MOD Requests and Generic discussions not allowed

how to add auto reply after first topic

Postby altafali » 12 Nov 2010, 02:39

how to add auto reply after first topic ??

like this
gtgt.jpg



using phpbb latest version and subsilver2
altafali    
Cadet I
Cadet I
 
Posts: 14
Joined: 12 Nov 2010, 02:34
Gender: Male
phpBB Knowledge: 1




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: how to add auto reply after first topic

Postby Sniper_E » 12 Nov 2010, 09:03

What you see there is ads after the first post. You could add a reply template there also.

Open template/viewtopic_body.html
Find
Code: Select all
<!-- END postrow -->
Before add
Code: Select all
<!-- IF postrow.S_FIRST_ROW -->
<!-- INCLUDE first_response.html -->
<!-- ENDIF -->
Then you create a first_response.html template with your message in it. It will show after the first post.

Our codes are for ads after first post and is written like this.
Code: Select all
<!-- IF postrow.S_FIRST_ROW and not S_HIDE_ADS -->
<!-- INCLUDE viewtopic_ads1.html -->
<!-- ENDIF -->
<!-- END postrow -->
We had a topic somewhere giving more details on this but I couldn't find it.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6980
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: how to add auto reply after first topic

Postby stitch626 » 12 Nov 2010, 09:41

This is interesting. Would it be possible to have the auto reply grab the authors username form the first post?

[ Post made via Blackberry] Image
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: how to add auto reply after first topic

Postby altafali » 12 Nov 2010, 11:01

Sniper_E wrote:We had a topic somewhere giving more details on this but I couldn't find it.


plz give a link for detail

i am newbie
altafali    
Cadet I
Cadet I
 
Posts: 14
Joined: 12 Nov 2010, 02:34
Gender: Male
phpBB Knowledge: 1

Re: how to add auto reply after first topic

Postby Sniper_E » 12 Nov 2010, 11:42

stitch626 wrote:This is interesting. Would it be possible to have the auto reply grab the authors username form the first post?

Sure you can, as long as you are between the <!-- BEGIN postrow --> and <!-- END postrow --> tags.
Code: Select all
<!-- IF postrow.S_FIRST_ROW -->
Hello <!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->, thanks for your post.
<!-- ENDIF -->
<!-- END postrow -->
Put the Hello.... codes in your first_response.html template and build it to look like a post.
Example, we would show an added post with our Gonculator as the auto replier thanking the poster.

But Mike, we would need a different IF statement for that. This IF statement will show that after the first post of each page.
You would want this to show after the first post only on the first page.
Like: <!-- IF postrow.S_FIRST_ROW and postrow.S_FIRST_PAGE --> <- I have no idea what IF statement needs to be use.

@ altafali, IF I run across that topic on "Ads After First Post" I'll let you know.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6980
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: how to add auto reply after first topic

Postby altafali » 12 Nov 2010, 13:04

thanks man done it
altafali    
Cadet I
Cadet I
 
Posts: 14
Joined: 12 Nov 2010, 02:34
Gender: Male
phpBB Knowledge: 1

Re: how to add auto reply after first topic

Postby altafali » 04 Jan 2011, 14:19

Sniper_E wrote:What you see there is ads after the first post. You could add a reply template there also.

Open template/viewtopic_body.html
Find
Code: Select all
<!-- END postrow -->


Before add???


Code: Select all
<!-- IF postrow.S_FIRST_ROW -->
<!-- INCLUDE first_response.html -->
<!-- ENDIF -->
Then you create a first_response.html template with your message in it. It will show after the first post.



before or after??

one thing more i wish to add a user profile with this reply like yours board has?

thanks for advice
altafali    
Cadet I
Cadet I
 
Posts: 14
Joined: 12 Nov 2010, 02:34
Gender: Male
phpBB Knowledge: 1

Re: how to add auto reply after first topic

Postby King Rhyono » 04 Jan 2011, 15:34

altafali wrote:
Sniper_E wrote:What you see there is ads after the first post. You could add a reply template there also.

Open template/viewtopic_body.html
Find
Code: Select all
<!-- END postrow -->


Before add???


Code: Select all
<!-- IF postrow.S_FIRST_ROW -->
<!-- INCLUDE first_response.html -->
<!-- ENDIF -->
Then you create a first_response.html template with your message in it. It will show after the first post.



before or after??

one thing more i wish to add a user profile with this reply like yours board has?

thanks for advice


"Before add" means that you add the code below after the code above.

There is also "after add," "in-line add," and "replace with."
King Rhyono
MOD Author
MOD Author
 
Posts: 174
Joined: 01 Aug 2007, 11:20
Gender: Male

Re: how to add auto reply after first topic

Postby Sniper_E » 04 Jan 2011, 18:37

That above would work, but there is another obstacle to get over for this to be right.
Sniper_E wrote:You would want this to show after the first post only on the first page.
Like: <!-- IF postrow.S_FIRST_ROW and postrow.S_FIRST_PAGE --> <- I have no idea what IF statement needs to be use.

And if you add this include statement inside the postrow it can have that first poster's name in your message.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6980
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: how to add auto reply after first topic

Postby Sniper_E » 06 Jan 2011, 00:09

Sniper_E wrote:
stitch626 wrote:This is interesting. Would it be possible to have the auto reply grab the authors username form the first post?

Sure you can, as long as you are between the <!-- BEGIN postrow --> and <!-- END postrow --> tags.
An example, we would show an added post with our Gonculator as the auto replier thanking the poster.

But we would need a different IF statement for that. This IF statement will show that after the first post of each page.
You would want this to show after the first post only on the first page.
Like: <!-- IF postrow.S_FIRST_ROW and postrow.S_FIRST_PAGE --> <- I have no idea what IF statement needs to be use.

I just played around with this and there is an IF statement we could use for this.
Code: Select all
<!-- IF postrow.S_FIRST_ROW and not PREVIOUS_PAGE --><!-- INCLUDE first_response.html --><!-- ENDIF -->
<!-- END postrow -->
This will add a reply post after the first post of a thread and not on any other page/after first post.

Would you want me to write up a first_response.html template of an example welcome/thanks post for this?
This is ready to be transformed into a mod.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6980
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Next

Return to phpBB3 Support

Who is online

Users browsing this forum: VoilaBot [Bot] and 11 guests