Edit the template you get when you receive the "message sent" info

Discussion forum for MOD Writers regarding MOD Development.
User avatar
Dakoom
Registered User
Posts: 33
Joined: Sun Mar 08, 2015 12:24 pm

Edit the template you get when you receive the "message sent" info

Post by Dakoom »

When you post, when you create a new thread or when you edit something, you get a information message from the board "Your message has been added correctly - View the message (link) - Go back to the last visited forum (link)". Now, I'd like to edit that template and I can't understand where it is. Can you please help me? Which template file should I edit? Thank you a lot in advance for any reply! :D

This is the HTML I need to edit:

Code: Select all

<div class="cap-div"><div class="cap-left"><div class="cap-right">&nbsp;Informazione&nbsp;</div></div></div>
<table class="tablebg" width="100%" cellspacing="0">
<tr>
   <td class="row1" align="center"><br /><p class="gen">Messaggio inserito correttamente.<br /><br /><a href="./viewtopic.php?f=14&t=15&p=114#p114">Visualizza il messaggio</a><br /><br /><a href="./viewforum.php?f=14">Torna all’ultimo forum visitato</a></p><br /></td>
</tr>
</table>
Here Oyabun1 says that I have to look into the posting.php file but I can't understand where! Can you please help me?
currently working on Klayz.com. phpBB at klayz.com/community/
FoulFoot
Registered User
Posts: 262
Joined: Mon Jun 23, 2003 1:04 am
Location: Honolulu, HI

Re: Edit the template you get when you receive the "message sent" info

Post by FoulFoot »

posting.php in the language/en (or whatever language you're using) folder.

Foul
User avatar
Dakoom
Registered User
Posts: 33
Joined: Sun Mar 08, 2015 12:24 pm

Re: Edit the template you get when you receive the "message sent" info

Post by Dakoom »

Thank you so much Foul, but that file contains just the shown texts. I would need the template because I want to have it like this:

Code: Select all

<div class="cap-div"><div class="cap-left"><div class="cap-right">&nbsp;Informazione&nbsp;</div></div></div>
<table class="tablebg" width="100%" cellspacing="0">
<tr>
   <td class="row1" align="center"><br /><p class="gen">

<div class="container">  
	  <div class="row">
	   <div class="col-xs-4 col-md-2">
	   	<img src="my-image-link.png" class="img-responsive" alt="Text" />
	   </div>
	   <div class="col-xs-8 col-sm-8 col-md-10">
	    <div class="bubble border-radius">
	  	 <p>Messaggio inserito correttamente.<br /><br /><a href="./viewtopic.php?f=14&t=15&p=114#p114">Visualizza il messaggio</a><br /><br /><a href="./viewforum.php?f=14">Torna all’ultimo forum visitato</a></p>
	     <span class="arrow-left"></span>		
	    </div>
	   </div>
	   
	   </p>
	   
	   <br /></td>
</tr>
</table>
	   
currently working on Klayz.com. phpBB at klayz.com/community/
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Edit the template you get when you receive the "message sent" info

Post by Lumpy Burgertushie »

those messages are not in any templates. they are in the php files that create them.

it is not that simple to edit/change them.
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53567
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Edit the template you get when you receive the "message sent" info

Post by Brf »

All of the messages use the same message_body.html template.
FoulFoot
Registered User
Posts: 262
Joined: Mon Jun 23, 2003 1:04 am
Location: Honolulu, HI

Re: Edit the template you get when you receive the "message sent" info

Post by FoulFoot »

You can put HTML into the language files. Just put the HTML code you want inside the single quotes, replacing 'This message has been posted successfully.' in language/en/posting.php. Unless I'm misreading what you need.

Foul
User avatar
Dakoom
Registered User
Posts: 33
Joined: Sun Mar 08, 2015 12:24 pm

Re: Edit the template you get when you receive the "message sent" info

Post by Dakoom »

Foul, doing they way you suggested I would have the cointainer repeated for any message shown. And this is not what I want. Anyway, thank you for your reply.

For the others, if I edit the message_body.html template I will need to set a lot of conditionals, I suppose. So, maybe I should leave this idea for now. LOL
Thank you guys for your replies and help.

edit: check the post below! :)
Last edited by Dakoom on Sat May 16, 2015 1:40 pm, edited 1 time in total.
currently working on Klayz.com. phpBB at klayz.com/community/
User avatar
Dakoom
Registered User
Posts: 33
Joined: Sun Mar 08, 2015 12:24 pm

Re: Edit the template you get when you receive the "message sent" info

Post by Dakoom »

Brf wrote:All of the messages use the same message_body.html template.
Solved! Thank you. This is my current code:

Code: Select all

<!-- DEFINE $CA_SKIP_PM_NOTIFY = '1' --><!-- IF S_SIMPLE_MESSAGE -->
	<!-- INCLUDE simple_header.html -->
<!-- ELSE -->
	<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->

{$CA_BLOCK_START}
{$CA_CAP2_START}{MESSAGE_TITLE}{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<tr> 
	<td class="row1" align="center">

	  <div class="row">
	   <div class="col-xs-4 col-md-2">
	   	<img src="http://imgs.klayz.com/klayz-avatar.png" style="height: 100px; width: 100px; float: right" class="img-responsive" alt="Ciao! Io sono Klayz" />
	   </div>
	   <div class="col-xs-8 col-sm-8">
	    <div class="bubble border-radius" style="background: url(http://www.klayz.com/imgs/bg-klayz-guest-msg-community.jpg) repeat scroll; background-size: cover;">
	    <br /><p class="gen">{MESSAGE_TEXT}</p><br />
	     <span class="arrow-left"></span>		
	    </div>
	   </div>
	   <!-- Add the extra clearfix for only the required viewport -->
       <div class="clearfix visible-xs-block"></div>
      </div>
		</td>
</tr>
</table>
{$CA_BLOCK_END}

<br clear="all" />

<!-- INCLUDE breadcrumbs.html -->

<!-- IF S_SIMPLE_MESSAGE -->
	<!-- INCLUDE simple_footer.html -->
<!-- ELSE -->
	<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
and here is the result:
http://s10.postimg.org/vatoeh3ah/phpbb_ ... dy_mod.png
currently working on Klayz.com. phpBB at klayz.com/community/

Return to “[3.0.x] MOD Writers Discussion”