Template Edits for non-subSilver

Since Opentools.de has now gone away I've created this forum to house FAQs and support for this mod in phpBB2.

Moderator: Experts

DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Template Edits for non-subSilver

Post by DavidIQ »

If you're not using subSilver as your default template then you have to do the edits manually. Here's the edits you'll have to make. Obviously replace the "yourtemplate" part with whatever template you're editing. Since not all templates will be the same as subSilver the editing of your selected template will require some extra work to figure out where exactly you have to put the code at.

Code: Select all

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/modcp_body.tpl

#
#-----[ FIND ]-----------
# around line 27 
	  <td class="row1">&nbsp;<span class="topictitle">{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span></td>

# 
#-----[ IN-LINE FIND ]-----------
# around line 27 (directly in that line)
{topicrow.TOPIC_TYPE}

# 
#-----[ IN-LINE BEFORE, ADD ]-----
# 
{topicrow.TOPIC_ATTACHMENT_IMG}

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/posting_body.tpl

# 
#-----[ FIND ]-----------
# around line 258
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">

# 
#-----[ REPLACE WITH ]-----
# 
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>

# 
#-----[ FIND ]-----------
# around line 462
	{POLLBOX} 

# 
#-----[ BEFORE, ADD ]-----
# 
	{ATTACHBOX}

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/posting_preview.tpl

# 
#-----[ FIND ]-----------
# around line 13
					<span class="postbody">{MESSAGE}</span>

# 
#-----[ AFTER, ADD ]-----
# Do NOT make one line out of this, a <!-- --> template statement has to be on one seperate line
					<!-- BEGIN postrow -->
					{ATTACHMENTS}
					<!-- END postrow -->

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/posting_topic_review.tpl

# 
#-----[ FIND ]-----------
# around line 26
				<td colspan="2"><span class="postbody">{postrow.MESSAGE}</span></td>

# 
#-----[ IN-LINE FIND ]-----------
# around line 26 (directly in that line)
{postrow.MESSAGE}</span>

# 
#-----[ IN-LINE AFTER, ADD ]-----
# 
{postrow.ATTACHMENTS}

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/privmsgs_body.tpl

# 
#-----[ FIND ]-----------
# around line 15
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
  <tr> 

# 
#-----[ AFTER, ADD ]-----
# 
	<td align="right"> 
	<!-- BEGIN switch_box_size_notice -->
	<table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
	<tr> 
		<td colspan="3" width="175" class="row1" nowrap="nowrap"><span class="gensmall">{ATTACH_BOX_SIZE_STATUS}</span></td>
	</tr>
	<tr> 
		<td colspan="3" width="175" class="row2">
			<table cellspacing="0" cellpadding="1" border="0">
			<tr> 
				<td bgcolor="{T_TD_COLOR2}"><img src="templates/yourtemplate/images/spacer.gif" width="{ATTACHBOX_LIMIT_IMG_WIDTH}" height="8" alt="{ATTACH_LIMIT_PERCENT}" /></td>
			</tr>
			</table>
		</td>
	</tr>
	<tr> 
		<td width="33%" class="row1"><span class="gensmall">0%</span></td>
		<td width="34%" align="center" class="row1"><span class="gensmall">50%</span></td>
		<td width="33%" align="right" class="row1"><span class="gensmall">100%</span></td>
	</tr>
	</table>
	<!-- END switch_box_size_notice -->
	</td>

# 
#-----[ FIND ]-----------
# around line 106
	  <td width="55%" valign="middle" class="{listrow.ROW_CLASS}"><span class="topictitle">&nbsp;<a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}</a></span></td>

# 
#-----[ IN-LINE FIND ]-----------
# around line 106 (directly in that line)
<span class="topictitle">&nbsp;<a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}

# 
#-----[ IN-LINE BEFORE, ADD ]-----
# 
{listrow.PRIVMSG_ATTACHMENTS_IMG}

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/privmsgs_preview.tpl

# 
#-----[ FIND ]-----------
# around line 23
	<td valign="top" colspan="2" class="row1"><span class="postbody">{MESSAGE}</span></td>

# 
#-----[ REPLACE WITH ]-----
# Do NOT make one line out of this, a <!-- --> template statement has to be on one seperate line
	<td valign="top" colspan="2" class="row1"><span class="postbody">{MESSAGE}</span>
	<!-- BEGIN postrow -->
	{ATTACHMENTS}
	<!-- END postrow -->
	</td>

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/privmsgs_read_body.tpl

# 
#-----[ FIND ]-----------
# around line 47
	  <td valign="top" colspan="3" class="row1"><span class="postbody">{MESSAGE}</span></td>

# 
#-----[ REPLACE WITH ]-----
# Do NOT make one line out of this, a <!-- --> template statement has to be on one seperate line
	  <td valign="top" colspan="3" class="row1"><span class="postbody">{MESSAGE}</span>
<!-- BEGIN postrow -->
	{ATTACHMENTS}
<!-- END postrow -->
	  </td>

# 
#-----[ FIND ]-----------
# around line 74
		<input type="submit" name="delete" value="{L_DELETE_MSG}" class="liteoption" />

# 
#-----[ AFTER, ADD ]-----
# Do NOT make one line out of this, a <!-- --> template statement has to be on one seperate line
<!-- BEGIN switch_attachments -->
		&nbsp; 
		<input type="submit" name="pm_delete_attach" value="{L_DELETE_ATTACHMENTS}" class="liteoption" />
<!-- END switch_attachments -->

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/profile_view_body.tpl

# 
#-----[ FIND ]-----------
# around line 41
		  <td> <b><span class="gen">{INTERESTS}</span></b></td>
		</tr>

# 
#-----[ AFTER, ADD ]-----
# 
<!-- BEGIN switch_upload_limits -->
		<tr> 
			<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_UPLOAD_QUOTA}:</span></td>
			<td> 
				<table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
				<tr> 
					<td colspan="3" width="100%" class="row2">
						<table cellspacing="0" cellpadding="1" border="0">
						<tr> 
							<td bgcolor="{T_TD_COLOR2}"><img src="templates/yourtemplate/images/spacer.gif" width="{UPLOAD_LIMIT_IMG_WIDTH}" height="8" alt="{UPLOAD_LIMIT_PERCENT}" /></td>
						</tr>
						</table>
					</td>
				</tr>
				<tr> 
					<td width="33%" class="row1"><span class="gensmall">0%</span></td>
					<td width="34%" align="center" class="row1"><span class="gensmall">50%</span></td>
					<td width="33%" align="right" class="row1"><span class="gensmall">100%</span></td>
				</tr>
				</table>
				<b><span class="genmed">[{UPLOADED} / {QUOTA} / {PERCENT_FULL}]</span> </b><br />
				<span class="genmed"><a href="{U_UACP}" class="genmed">{L_UACP}</a></span></td>
			</td>
		</tr>
<!-- END switch_upload_limits -->

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/viewforum_body.tpl

# 
#-----[ FIND ]-----------
# around line 26
	  <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />

# 
#-----[ IN-LINE FIND ]-----------
# around line 26 (directly in that line)
{topicrow.NEWEST_POST_IMG}

# 
#-----[ IN-LINE AFTER, ADD ]-----
# 
{topicrow.TOPIC_ATTACHMENT_IMG}

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/viewtopic_body.tpl

# 
#-----[ FIND ]-----------
# around line 39
				<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>

# 
#-----[ IN-LINE FIND ]-----------
# around line 39 (directly in that line)
{postrow.SIGNATURE}

# 
#-----[ IN-LINE BEFORE, ADD ]-----
# 
</span>{postrow.ATTACHMENTS}<span class="postbody">

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/admin/group_edit_body.tpl

# 
#-----[ FIND ]-----------
# around line 48
	<!-- END group_edit -->

# 
#-----[ BEFORE, ADD ]-----
# 
	<tr> 
	  <td class="row1"><span class="gen">{L_UPLOAD_QUOTA}</span></td>
	  <td class="row2">{S_SELECT_UPLOAD_QUOTA}</td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_PM_QUOTA}</span></td>
	  <td class="row2">{S_SELECT_PM_QUOTA}</td>
	</tr>

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/admin/user_edit_body.tpl

# 
#-----[ FIND ]-----------
# around line 267
	  <td class="row1" colspan="2"><span class="gensmall">{L_SPECIAL_EXPLAIN}</span></td>
	</tr>

# 
#-----[ AFTER, ADD ]-----
# 
	<tr> 
	  <td class="row1"><span class="gen">{L_UPLOAD_QUOTA}</span></td>
	  <td class="row2">{S_SELECT_UPLOAD_QUOTA}</td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_PM_QUOTA}</span></td>
	  <td class="row2">{S_SELECT_PM_QUOTA}</td>
	</tr>

# 
#-----[ SAVE/CLOSE ALL FILES ]-------- 
# 
# EoM 
evilledave
Posts: 1
Joined: Wed Dec 27, 2006 5:33 pm

please help

Post by evilledave »

I posted on the other board and was told that there is no support for this mod using other templates. I have tried all these edits many times and still come up with the mod working in the priv mess mode but not posting mode. When I look at the posting.php source file the edits don't show. I am using extremedarkred, is there any support for this anywhere. I hate to give up on this because I am so close seeing that it does work in the priv message mode. Can you tell me why the posting.php edits are not showing up?
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

Did you edit posting_body.tpl? If you're looking at the source for the page the only thing that will produce that is the .tpl files so in any case you're missing the posting_body.tpl edit.
bob
Posts: 6
Joined: Wed Feb 21, 2007 3:51 pm

Post by bob »

I'm having the same problem evilledave is having, and ironically I am using the same exact template. Files work in pm's, but not posts. They are uploaded, but not displayed in posts. Maybe it is a compatibility issue with this template? Please respond when you get the chance :)
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

What template is it?
bob
Posts: 6
Joined: Wed Feb 21, 2007 3:51 pm

Post by bob »

DavidIQ wrote:What template is it?
Extremedarkred, and i'm sure i have all the files right...
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

Save your privmsg.php as privmsg.txt and attach it here. It might not be a template problem.
bob
Posts: 6
Joined: Wed Feb 21, 2007 3:51 pm

Post by bob »

sorry for the long response time, but here's privmsg.txt and viewtopic.txt.

Like I said, attachments work for pm's, but not when I post a topic or response.
Attachments
privmsg.txt
Privmsg.txt
(75.21 KiB) Downloaded 848 times
viewtopic.txt
vietopic.txt
(50.89 KiB) Downloaded 861 times
bob
Posts: 6
Joined: Wed Feb 21, 2007 3:51 pm

Post by bob »

Oh, by the way, I don't know if it matters, but I used easymod for this.

Update: I've seen a few posts on phpbb.com that some people have had problems with extremedarkred and attachment mod :?
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

Both of those look fine. Let's take a look at your site.
bob
Posts: 6
Joined: Wed Feb 21, 2007 3:51 pm

Post by bob »

DavidIQ wrote:Both of those look fine. Let's take a look at your site.
I'll pm you it, ok?
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

Your issue has to do with the posting redirect fix mod you have installed where after you post you don't get the screen confirming your post. It totally skips the posting of the file.
bob
Posts: 6
Joined: Wed Feb 21, 2007 3:51 pm

Post by bob »

DavidIQ wrote:Your issue has to do with the posting redirect fix mod you have installed where after you post you don't get the screen confirming your post. It totally skips the posting of the file.
Oh, I totally forgot about that mod. I'll remove it and then I'll give an update with my results.

Update: Thank you so much! It works now :lol:
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

No prob ;-)
bettie mercury
Posts: 2
Joined: Tue May 01, 2007 9:35 am

Post by bettie mercury »

I'm hoping someone can help. I dug through the long list above, and I'm pretty sure I've gotten all the changes in my templates. (I'm using aphrodite)

I've done a lot of web scripting in cf and cgi, but I'm pretty new to php, so I'm a little stumped as to what else might be wrong. Everything in the mod seems to be working: you can post fine, attach and upload the file, the admin section works, when you reply, it shows up in the iframe....everything works EXCEPT it doesn't show up in the actual post. But the file is actually there and uploaded, and even has the attachment icon associated with the post title!

So I'm at my wits end. I'm thinking it might be the viewtopic_body.tpl file? I've attached it here, maybe I've just stared at it too long?

Any help is appreciated. Thank you!
Attachments
viewtopic_body.txt
viewtopic_body.tpl from aphrodite style
(4.07 KiB) Downloaded 828 times
Locked