NEW UPDATE : Attachments and global announcements!

Leeloo at 10h29
25
Mar
2010
NEW UPDATE : Attachments and global announcements!


Hello,

In order to continuously improve our services and to bring you the best in the world of forums, we offer you today a new update that will add two brand new features. Very Happy

Without making you wait longer, here are the contents of this update:




1. Global announcement: Indeed, in addition to the normal post,post-it and stickies, now you can make global announcements in your forum.
Unlike a normal post, the overall listing is automatically applied in all the forums in your forum in one go! A real time saver for admins Wink
As for the normal post, the wording of the overall text is customizable via the admin panel.



This gives on your forum:



You will find all the explanations needed on this new feature in THIS TUTORIAL!


2. Attachments: An innovative feature that allows you to attach files to messages on a topic of your forum.
The forum admin has the option to enable or disable attachments on the forum and the distribution of storage space between the attachments and gallery on the one hand, and between members and moderators of the forum on another hand.
Many extensions are supported and total management is possible directly via the admin panel, transforming the forums in real trade platforms for the happiness of its members.



On the forum, it gives:

  • Before sending the attached file:



  • After sending the attached file:



You will find all the explanations needed on this new feature in THIS TUTORIAL!


Important:Admins with custom templates on their forums like phpBB2 or PunBB must necessarily consider the following changes on the templates




Finally, A big THANK YOU to the entire Forumotion community for all those brilliant ideas! : thumleft:

See you soon with other ideas!

Best,
Forumotion Team
1 Leeloo, on 25/03/2010 at 10h29
Templates modification for the attachments
* * * * *


Version: PhpBB2 and PunBB

template:viewtopic_body


After

Code:
{postrow.displayed.MESSAGE}


Add the code :

Code:

<!-- BEGIN switch_attachments -->
<dl class="attachbox">
<dt>{postrow.displayed.switch_attachments.L_ATTACHMENTS}</dt>
<dd>
<!-- BEGIN switch_post_attachments -->
<dl class="file">
<dt>
<img src="{postrow.displayed.switch_attachments.switch_post_attachments.U_IMG}" />

<!-- BEGIN switch_dl_att -->
<a class="postlink" href="{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}
<!-- END switch_dl_att -->

<!-- BEGIN switch_no_dl_att -->
{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT}
<!-- END switch_no_dl_att -->
</dt>

<!-- BEGIN switch_no_comment -->
<dd>
<em>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</em>
</dd>
<!-- END switch_no_comment -->

<!-- BEGIN switch_no_dl_att -->
<dd>
<em>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</em>
</dd>
<!-- END switch_no_dl_att -->

<dd>({postrow.displayed.switch_attachments.switch_post_attachments.FILE_SIZE}) {postrow.displayed.switch_attachments.switch_post_attachments.NB_DL}</dd>
</dl>
<!-- END switch_post_attachments -->
</dd>
</dl>
<!-- END switch_attachments -->




Special case :

If your attachment appears at the same level as the last line of the message and / or signature:



simply add this code At the beginning and at the end of the first code added to detach the block attachments. :

Code:
<div class="clear"></div>


At the beginning :



At the end:



Result:





Template : mod_news.tpl

Before the following code :

Code:
{post_row.OPEN}
<a href="{post_row.U_READ_FULL}">{post_row.L_READ_FULL}</a>
{post_row.CLOSE}


Add this code :

Code:
<!-- BEGIN switch_attachments -->
<dl class="attachbox">
<dt>{post_row.switch_attachments.L_ATTACHMENTS}</dt>
<dd>
<!-- BEGIN switch_post_attachments -->
<dl class="file">
<dt>
<img src="{post_row.switch_attachments.switch_post_attachments.U_IMG}" />

<!-- BEGIN switch_dl_att -->
<a class="postlink" href="{post_row.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{post_row.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {post_row.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}
<!-- END switch_dl_att -->

<!-- BEGIN switch_no_dl_att -->
{post_row.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT} {post_row.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT_DEL}
<!-- END switch_no_dl_att -->
</dt>

<!-- BEGIN switch_no_comment -->
<dd>
<em>{post_row.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</em>
</dd>
<!-- END switch_no_comment -->

<!-- BEGIN switch_no_dl_att -->
<dd>               <em><strong>{post_row.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</strong></em>
</dd>
<!-- END switch_no_dl_att -->

<dd>({post_row.switch_attachments.switch_post_attachments.FILE_SIZE}) {post_row.switch_attachments.switch_post_attachments.NB_DL}</dd>
</dl>
<!-- END switch_post_attachments -->
</dd>
</dl>
<!-- END switch_attachments -->




Template : viewcomments_body.tpl

Search :

{postrow.displayed.MESSAGE}


And add underneath :

Code:
<!-- BEGIN switch_attachments -->
               <div class="clear"></div>
               <dl class="attachbox">
                  <dt>{postrow.displayed.switch_attachments.L_ATTACHMENTS}</dt>
                  <dd class="attachments">
                     <!-- BEGIN switch_post_attachments -->
                     <dl class="file clearfix">
                                <dt>
                           <img src="{postrow.displayed.switch_attachments.switch_post_attachments.U_IMG}" />
                        </dt>
                        <dd>
                           <!-- BEGIN switch_dl_att -->
                           <span><a class="postlink" href="{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}</span>
                           <!-- END switch_dl_att -->

                           <!-- BEGIN switch_no_dl_att -->
                           <span>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT} {postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT_DEL}</span>
                           <!-- END switch_no_dl_att -->

                           <!-- BEGIN switch_no_comment -->
                           <span>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</span>
                           <!-- END switch_no_comment -->

                           <!-- BEGIN switch_no_dl_att -->
                           <span><strong>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</strong></span>
                           <!-- END switch_no_dl_att -->

                                    <span>({postrow.displayed.switch_attachments.switch_post_attachments.FILE_SIZE}) {postrow.displayed.switch_attachments.switch_post_attachments.NB_DL}</span>
                                </dd>
                     </dl>
                     <!-- END switch_post_attachments -->
                  </dd>
               </dl>
               <!-- END switch_attachments -->



Search :

{comment.displayed.MESSAGE}


And add :

Code:
<!-- BEGIN switch_attachments -->
                     <div class="clear"></div>
                     <dl class="attachbox">
                        <dt>{comment.displayed.switch_attachments.L_ATTACHMENTS}</dt>
                        <dd class="attachments">
                           <!-- BEGIN switch_post_attachments -->
                           <dl class="file clearfix">
                                      <dt>
                                 <img src="{comment.displayed.switch_attachments.switch_post_attachments.U_IMG}" />
                              </dt>
                              <dd>
                                 <!-- BEGIN switch_dl_att -->
                                 <span><a class="postlink" href="{comment.displayed.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{comment.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {comment.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}</span>
                                 <!-- END switch_dl_att -->

                                 <!-- BEGIN switch_no_dl_att -->
                                 <span>{comment.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT} {comment.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT_DEL}</span>
                                 <!-- END switch_no_dl_att -->

                                 <!-- BEGIN switch_no_comment -->
                                 <span>{comment.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</span>
                                 <!-- END switch_no_comment -->

                                 <!-- BEGIN switch_no_dl_att -->
                                 <span><strong>{comment.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</strong></span>
                                 <!-- END switch_no_dl_att -->

                                          <span>({comment.displayed.switch_attachments.switch_post_attachments.FILE_SIZE}) {comment.displayed.switch_attachments.switch_post_attachments.NB_DL}</span>
                                      </dd>
                           </dl>
                           <!-- END switch_post_attachments -->
                        </dd>
                     </dl>
                     <!-- END switch_attachments -->




Template : posting_body.tpl

After part "roll_dice" :

<!-- END switch_roll_dice -->


Add :

Code:
<!-- BEGIN switch_attachment_list -->
   <div class="h3" id="attachments">{L_ATTACHMENTS}</div>
   <div class="panel row3">
      <div class="inner"><span class="corners-top"><span></span></span></div>
       <fieldset class="fields1">
       <!-- BEGIN attachments -->
            <dl>
                <dt><label>{L_ATTACHMENT_FILENAME}</label></dt>
                <dd>
                    <!-- BEGIN switch_is_orphan -->
                 <span class="gen">{switch_attachment_list.attachments.switch_is_orphan.FILENAME}</span> 
                    <!-- END switch_is_orphan -->
                    <!-- BEGIN switch_is_not_orphan -->
                 <a href="{switch_attachment_list.attachments.switch_is_not_orphan.U_ATTACH_URL}" class="gen">{switch_attachment_list.attachments.switch_is_not_orphan.FILENAME}</a> 
                    <!-- END switch_is_not_orphan -->
                 <input class="liteoption" type="submit" value="{L_ATTACHMENT_DELETE}" name="delete_file[{switch_attachment_list.attachments.ATTACH_POS}]" />
                </dd>
            </dl>
            <dl>
             <dt><label for="filecomment{switch_attachment_list.attachments.ATTACH_POS}">{L_ATTACH_COMMENT}</label></dt>
             <dd>
                 <!--textarea name="comment_list[{switch_attachment_list.attachments.ATTACH_POS}]" cols="35" rows="3" style="color:#000000;width:100%">{switch_attachment_list.attachments.ATTACH_COMMENT}</textarea><br /-->
                 <input class="inputbox medium" type="text" id="filecomment{switch_attachment_list.attachments.ATTACH_POS}" name="comment_list[{switch_attachment_list.attachments.ATTACH_POS}]" value="{switch_attachment_list.attachments.ATTACH_COMMENT}" maxlength="255" />
                 <input type="hidden" value="{switch_attachment_list.attachments.ATTACH_ID}" name="attachment_data[{switch_attachment_list.attachments.ATTACH_POS}][attach_id]" />
                 <input type="hidden" value="{switch_attachment_list.attachments.IS_ORPHAN}" name="attachment_data[{switch_attachment_list.attachments.ATTACH_POS}][is_orphan]" />
                 <input type="hidden" value="{switch_attachment_list.attachments.REAL_FILENAME}" name="attachment_data[{switch_attachment_list.attachments.ATTACH_POS}][real_filename]" />
                 <input type="hidden" value="{switch_attachment_list.attachments.ATTACH_COMMENT}" name="attachment_data[{switch_attachment_list.attachments.ATTACH_POS}][attach_comment]" /><br /><br />
             </dd>
          </dl>
       <!-- END attachments -->
       </fieldset>
      <span class="corners-bottom"><span></span></span>
   </div>
   <!-- END switch_attachment_list -->

   <!-- BEGIN switch_attachment -->
   <div class="h3" id="attachment">{L_ATTACHMENT_ADD}</div>
   <div class="panel row3">
      <div class="inner"><span class="corners-top"><span></span></span></div>
      <div id="attachment_show">
         <fieldset class="fields1">
            {L_ATTACHMENT_ADD_HELP}<br /><span class="info">{EXT_LIST}</span><br /><br />
            <dl>
               <dt><label>{L_ATTACHMENT_FILENAME}</label></dt>
               <dd><input type="file" id="fileupload" name="fileupload" /><input type="submit" name="add_file" /> ({L_MAX_ATT_SIZE})</dd>
            </dl>

            <dl>
               <dt><label>{L_ATTACH_COMMENT}</label></dt>
               <dd><input class="inputbox medium" type="text" value="" id="filecomment" name="filecomment" value="" maxlength="255" /></dd>
            </dl>
         </fieldset>
      </div>

      <span class="corners-bottom"><span></span></span>
   </div>
   <!-- END switch_attachment -->




Template : posting_body_wysiwyg.tpl

Search :

<!-- END switch_roll_dice -->


Add :

Code:
<!-- BEGIN switch_attachment_list -->
<div class="h3" id="attachments">{L_ATTACHMENTS}</div>
<div class="panel row3">
   <div class="inner"><span class="corners-top"><span></span></span></div>
   <fieldset class="fields1">
   <!-- BEGIN attachments -->
        <dl>
            <dt><label>{L_ATTACHMENT_FILENAME}</label></dt>
            <dd>
                <!-- BEGIN switch_is_orphan -->
             <span class="gen">{switch_attachment_list.attachments.switch_is_orphan.FILENAME}</span> 
                <!-- END switch_is_orphan -->
                <!-- BEGIN switch_is_not_orphan -->
             <a href="{switch_attachment_list.attachments.switch_is_not_orphan.U_ATTACH_URL}" class="gen">{switch_attachment_list.attachments.switch_is_not_orphan.FILENAME}</a> 
                <!-- END switch_is_not_orphan -->
             <input class="liteoption" type="submit" value="{L_ATTACHMENT_DELETE}" name="delete_file[{switch_attachment_list.attachments.ATTACH_POS}]" />
            </dd>
        </dl>
        <dl>
         <dt><label for="filecomment{switch_attachment_list.attachments.ATTACH_POS}">{L_ATTACH_COMMENT}</label></dt>
         <dd>
             <!--textarea name="comment_list[{switch_attachment_list.attachments.ATTACH_POS}]" cols="35" rows="3" style="color:#000000;width:100%">{switch_attachment_list.attachments.ATTACH_COMMENT}</textarea><br /-->
             <input class="inputbox medium" type="text" id="filecomment{switch_attachment_list.attachments.ATTACH_POS}" name="comment_list[{switch_attachment_list.attachments.ATTACH_POS}]" value="{switch_attachment_list.attachments.ATTACH_COMMENT}" maxlength="255" />
             <input type="hidden" value="{switch_attachment_list.attachments.ATTACH_ID}" name="attachment_data[{switch_attachment_list.attachments.ATTACH_POS}][attach_id]" />
             <input type="hidden" value="{switch_attachment_list.attachments.IS_ORPHAN}" name="attachment_data[{switch_attachment_list.attachments.ATTACH_POS}][is_orphan]" />
             <input type="hidden" value="{switch_attachment_list.attachments.REAL_FILENAME}" name="attachment_data[{switch_attachment_list.attachments.ATTACH_POS}][real_filename]" />
             <input type="hidden" value="{switch_attachment_list.attachments.ATTACH_COMMENT}" name="attachment_data[{switch_attachment_list.attachments.ATTACH_POS}][attach_comment]" /><br /><br />
         </dd>
      </dl>
   <!-- END attachments -->
   </fieldset>
   <span class="corners-bottom"><span></span></span>
</div>
<!-- END switch_attachment_list -->


<!-- BEGIN switch_attachment -->
<div class="h3" id="attachment">{L_ATTACHMENT_ADD}</div>
<div class="panel row3">
   <div class="inner"><span class="corners-top"><span></span></span></div>
   <div id="attachment_show">
      <fieldset class="fields1">
         {L_ATTACHMENT_ADD_HELP}<br /><span class="info">{EXT_LIST}</span><br /><br />
         <dl>
            <dt><label>{L_ATTACHMENT_FILENAME}</label></dt>
            <dd><input type="file" id="fileupload" name="fileupload" /><input type="submit" name="add_file" /> ({L_MAX_ATT_SIZE})</dd>
         </dl>

         <dl>
            <dt><label>{L_ATTACH_COMMENT}</label></dt>
            <dd><input class="inputbox medium" type="text" value="" id="filecomment" name="filecomment" value="" maxlength="255" /></dd>
         </dl>
      </fieldset>
   </div>

   <span class="corners-bottom"><span></span></span>
</div>
<!-- END switch_attachment -->
2 komiks0916, on 25/03/2010 at 10h40
wow.. this is what im waiting for.. so where is it hosted? and do we have a limit for file attachments? and do we have access to all the attachments as admins? thanks for this..
3 Leeloo, on 25/03/2010 at 10h55
It is hosted by us. You can see all information in the tutorial :
/frequently-asked-questions-f5/attachments-t66572.htm
4 komiks0916, on 25/03/2010 at 11h03
so how big is the allotted space for the whole forum? is it like the SERVIMG? or is it limited like the gallery?
5 Leeloo, on 25/03/2010 at 11h04
By default, you have 20 Mb to share between gallery and attachments.
6 komiks0916, on 25/03/2010 at 11h07
i thought so.. how i wish it was like the servimg hosting.. Sad
7 identityproof, on 25/03/2010 at 12h01
hey Typlo, i cant seem to attach files! I edited all the settings already. But i dont know how to attach.
8 komiks0916, on 25/03/2010 at 12h36
i can now access it.. is there a way to make the allotted 20mb more bigger? any way for credits to be bought without using credit cards? i dont have a credit card.. Sad
9 Russel, on 25/03/2010 at 12h45
Avatar has gone! why?
also, i cant attach
10 Codyy, on 25/03/2010 at 13h27
I do like the Global announcement thing as this will make things SO much easier. However, the attachment should be allowed to host off an external host. Like mega-upload. Because 20$ for 500 megs is NOT alot of space for alot of cash.
11 komiks0916, on 25/03/2010 at 13h47
Try fileden.com.. Its free and hosts a bigger size.. 1gig storage..
12 Milunice259, on 25/03/2010 at 14h29
I can't see attach file in my editor.Why????
13 --kml--, on 25/03/2010 at 14h38
OMG THX FORUMOTION xD

i wonder if there are limits? i meant like if we upload lots of file , by different users , will there be limit for all the size alltogether?
14 bethemiracle, on 25/03/2010 at 15h02
Our avatar button has completely vanished for all members. I read thru the tutorial and there is a notification saying if we have personalized templates go "here" and "here" to edit our templates, but there is NO LINK. Wink

We also cannot attach anything. We just want our avatar button back....really, that's all...

thank you...

http://www.justice4caylee.org
15 !PU!, on 25/03/2010 at 16h16
Milunice259 wrote:I can't see attach file in my editor.Why????


same problem show in my forum i can't see attach file option in my new topic editor and post reply editor Sad
16 ecatodarcus, on 25/03/2010 at 17h40
great feature!!!it was exactly what we needed for our forum!!!
many many thanks!!!!
17 !PU!, on 25/03/2010 at 17h41
my problem is solved :wouhou: and thank u very much forumotion Very Happy
18 matt_m, on 25/03/2010 at 17h58
Oh THANK YOU so much to forumotion for adding attachments!!!!!!! Forumotion is now THE BEST!
19 M&D, on 25/03/2010 at 18h00
Hi, I have a question for the upload, all exstra works all ok, but I wonder if I personally upload, if the max as far as I ask for a day or I can upload it for ever, but I think it's for a day that so many can upload and then again tomorrow from scratch

Hello Hello
20 WickedSoul, on 25/03/2010 at 19h20
Sweet new features, thank you so much!!! :wouhou:
Similar topics
I just realised as our forum takes shape that I no longer have the option to make a post an announcement let alone a global announcement. Even posts I try and edit don't give me the option. I tired editing an announcement made earlier and even that doens'
Sometimes I want to make a global announcement but not for the entire site, only for a single forum and its sub-forums. For example, I have a music section with a bunch of sub-forums. I want to make a global announcement for the music section only. Not th
Just a small update I think would do well. I do not think Global Announcements should appear in Blogs. I have a system where users can buy their own blog in our blog section using their points. Each blog has my Global Announcements in it, and I do
12345
See also
more_less
Informations

87 Replies For the topic :
"NEW UPDATE : Attachments and global announcements!"

This topic has been viewed 10678 times.

Last message :
25/03/2010 at 10h29 by "Leeloo"