[MorpheusX] Attachment mod

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

Postby PostBot on Sun Jan 02, 2005 11:17 pm

Did you add {postrow.ATTACHMENTS} in viewtopic_post_left.tpl?
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

yes

Postby Gargoyle on Mon Jan 03, 2005 2:18 am

Below is my code for that file....

Code: Select all
<td align="left" valign="bottom" class="post-bottom"><table height="8" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <td class="post-signature" colspan="3"><span class="gensmall">{postrow.EDITED_MESSAGE}</span>{postrow.ATTACHMENTS}<!-- IF TPL_CFG_SIG -->{postrow.SIGNATURE}<!-- ENDIF --></td>
   </tr>
   <tr>
User avatar
Gargoyle
Registered User
Registered User
 
Posts: 52
Joined: Sun Jan 02, 2005 6:13 pm

Postby minaskin on Mon Jan 03, 2005 8:22 am

okay i recapitulate all steps

  • First you must install attach_mod and if u can, check if it works with an another style than MorpheusX
  • Then in attach_mod installation with MorpheusX style, only things change are : i advise you add {postrow.ATTACHMENTS} just after {postrow.MESSAGE} in 4 files viewtopic_post_above.tpl, viewtopic_post_left.tpl, viewtopic_post_none.tpl and viewtopic_post_right.tpl instead of in viewtopic_body.tpl
  • At last in viewtopic_body.tpl make
    Code: Select all

    #-----[ OPEN ]------------------------------------------------ 

    templates/MorpheusX/viewtopic_body.tpl 


    #-----[ FIND ]------------------------------------------------ 

    </table> 

    {POLL_DISPLAY} 


    #-----[ AFTER, ADD ]------------------------------------------ 

    <!-- BEGIN postrow --> 


    #-----[ FIND ]------------------------------------------------ 

    $postrow_item['TPL_CLASS_PROFILE'] = 'post-left' . $num; 


    #-----[ AFTER, ADD ]------------------------------------------ 

    ob_start();   
      ?>{postrow.ATTACHMENTS}<?php   
      $postrow_item['ATTACHMENTS'] = ob_get_contents();   
      ob_end_clean();   


    #-----[ FIND ]------------------------------------------------ 

    }     
    ?> 


    #-----[ AFTER, ADD ]------------------------------------------ 

    <!-- END postrow -->
User avatar
minaskin
Registered User
Registered User
 
Posts: 28
Joined: Tue Dec 28, 2004 8:00 am

Postby Subz on Mon Jan 03, 2005 3:25 pm

[quote user="CyberAlien" post="12203"]Did you add {postrow.ATTACHMENTS} in viewtopic_post_left.tpl?[/quote]


didn't know there was such a file :oops:



edit: thank you minaskin for your code as that really helped
User avatar
Subz
Registered User
Registered User
 
Posts: 924
Joined: Sat Aug 21, 2004 12:54 am
Location: North London

Postby Gargoyle on Mon Jan 03, 2005 5:17 pm

Works like a champ!!! Thanks a ton!! :D
User avatar
Gargoyle
Registered User
Registered User
 
Posts: 52
Joined: Sun Jan 02, 2005 6:13 pm

Postby Julz on Tue Jan 04, 2005 4:02 am

[quote user="Subz" post="12292"]didn't know there was such a file :oops:[/quote]That file is new to MorpheusX.
Julz
Registered User
Registered User
 
Posts: 618
Joined: Tue Dec 07, 2004 9:22 am
Location: Hobart, Tasmania

Postby PostBot on Tue Jan 04, 2005 11:32 am

MorpheusX supports several types of topic view. Instead of putting code for all topic views in viewtopic_body.tpl and using lots of <!-- IF --> statements I desided to move that code in separate files. For topic view when profile is on left file is viewtopic_post_left.tpl, for vBulletin3-like topic view file is viewtopic_post_top.tpl, etc...

And the same for search_results_posts.tpl - postbit is moved to search_results_left.tpl, search_results_top.tpl, etc...
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby maharajah on Mon Jan 10, 2005 11:28 am

ok guys, i did as you guys said, but i cant post attachments.

The boxes when posting forums are not available.
I get the poll boxes and thats it.

:-(

Any help please ...i am so close .....

once it all works, i will post up a link to all my modded tpl files for anyone else who wants it.

.
maharajah
Registered User
Registered User
 
Posts: 42
Joined: Thu Jan 06, 2005 3:19 pm

Postby PostBot on Mon Jan 10, 2005 12:01 pm

You probably forgot to edit posting_body.tpl
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby maharajah on Mon Jan 10, 2005 12:09 pm

Thats the first thing i checked :-D

I edited that fine.

Any other ideas ?
maharajah
Registered User
Registered User
 
Posts: 42
Joined: Thu Jan 06, 2005 3:19 pm

Postby PostBot on Mon Jan 10, 2005 12:11 pm

Maybe attachments are disabled in admin control panel? Or you forgot to chmod directory "files"?
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby maharajah on Mon Jan 10, 2005 9:36 pm

Nope, checked all that as well. Thats all fine too.

Its only the Attachment boxes that are not showing up when i go to post.

.
maharajah
Registered User
Registered User
 
Posts: 42
Joined: Thu Jan 06, 2005 3:19 pm

Postby PostBot on Mon Jan 10, 2005 9:43 pm

Then recheck posting_body.tpl again. There should be variable in that file.. I think its {ATTACH_BOX} or something like that.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby mkot on Mon Jan 10, 2005 10:01 pm

just before {PULLBOX}
there should be a {ATTACHBOX}
check if it is there in posting_body.tpl
Sorry but I don't speak English well
Please excuse me
User avatar
mkot
Registered User
Registered User
 
Posts: 154
Joined: Fri Nov 05, 2004 8:06 am
Location: doh

Postby maharajah on Mon Jan 10, 2005 10:54 pm

Ok, i got it working.

I must have altered other codes as well somewhere by mistake or missed something.
But i redid the whole Attach mod again, re uploaded the files, followed minaskin's instructions again and it worked like a charm :-)

You guys are awesome for helping us ninexperienced users. Thanks a lot guys !!

.
maharajah
Registered User
Registered User
 
Posts: 42
Joined: Thu Jan 06, 2005 3:19 pm

PreviousNext

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 1 guest