Telli, your collapsible attachment mod???

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Telli, your collapsible attachment mod???
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Hi Telli,

I have the attchment mod istalled on my site and have been trying to make it collapsible like yours is.
I am failing dismally,

PLEASE !!!!!......could you tell me how you achieved this. icon_mrgreen.gif
Thanks in advance.

Jon




_________________
PHP Super NooB
Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
I just edited the attachments_body.tpl and added a fieldset where the table was.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
icon_eek.gif

LOL, any chance you can tell me how to do that..........

pleeeeeeaaaaassseeeeeee lol icon_cool.gif




_________________
PHP Super NooB
Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Its at the bottom of the file replace this section:


   <!-- BEGIN attachrow -->
      <fieldset>
               <legend>Attached Files</legend>
               <table cellpadding="0" cellspacing="3" border="0">
               <tr>
   <td>{postrow.attach.attachrow.S_UPLOAD_IMAGE}</td>
   <td><a href="{postrow.attach.attachrow.U_DOWNLOAD_LINK}" {postrow.attach.attachrow.TARGET_BLANK}  class="genmed">{postrow.attach.attachrow.DOWNLOAD_NAME}</a><span class="genmed"> ({postrow.attach.attachrow.FILESIZE} {postrow.attach.attachrow.SIZE_VAR}, {postrow.attach.attachrow.L_DOWNLOADED_VIEWED}: {postrow.attach.attachrow.L_DOWNLOAD_COUNT})</span></td>
</tr>

               </table>
   </fieldset>
   <!-- END attachrow -->




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Telli,

I have searched for how to do this but no joy.

This is the code I currently have:

   <!-- BEGIN attachrow -->
   <tr>
   <td class="{attachrow.ROW_CLASS}" align="center"><span class="gen"> {attachrow.ROW_NUMBER} </span></td>
   <td class="{attachrow.ROW_CLASS}" align="center"><span class="gen">{attachrow.VIEW_ATTACHMENT}</span></td>
   <td class="{attachrow.ROW_CLASS}" align="center"><span class="gen"><b>{attachrow.COMMENT}</b></span></td>
   <td class="{attachrow.ROW_CLASS}" align="center" valign="middle"><span class="gen"><b>{attachrow.SIZE}</b></span></td>
   <td class="{attachrow.ROW_CLASS}" align="center" valign="middle"><span class="gen"><b>{attachrow.DOWNLOAD_COUNT}</b></span></td>
   <td class="{attachrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{attachrow.POST_TIME}</span></td>
   <td class="{attachrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{attachrow.POST_TITLE}</span></td>
   </tr>
   <!-- END attachrow -->


What do I need to add to it to get it to do what your does???

Cheers m8.



_________________
PHP Super NooB
Back to top Reply with quote
#6   re: Telli, your collapsible attachment mod???
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
The above code is from attachments.tpl

The following code is from add_attachments_body.tpl



   <tr>
      <th class="thHead" colspan="2">{L_ADD_ATTACH_TITLE}</th>
   </tr>
   <tr>
      <td class="row1" colspan="2"><span class="gensmall">{L_ADD_ATTACH_EXPLAIN}<br />{RULES}</span></td>
   </tr>

   <tr>
      <td class="row1"><span class="gen"><b>{L_FILE_NAME}</b></span></td>
       <td class="row2"><span class="genmed"><input type="file" name="fileupload" size="40" maxlength="{FILESIZE}" value="" class="post" /></span></td>
   </tr>
   <tr>
      <td class="row1"><span class="gen"><b>{L_FILE_COMMENT}</b></span></td>
       <td class="row2"><span class="genmed"><textarea name="filecomment" rows="3" cols="35" wrap="virtual" size="40" class="post">{FILE_COMMENT}</textarea></span>
      <input type="submit" name="add_attachment" value="{L_ADD_ATTACHMENT}" class="liteoption" /> </span></td>
   </tr>



What do i need to do m8?

This is from T-Platinum theme for Nuke Platinum. 7.6



_________________
PHP Super NooB
Back to top Reply with quote
#7   
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Any help?

Thanks




_________________
PHP Super NooB
Back to top Reply with quote
#8   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
The code you need to replace is at the bottom of the viewtopic_attach_body.tpl. Sorry for delay...




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum