Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
Jamroom 4.2 Control Panel template upgrade notes
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 08/03/10 13:00 
I'm posting this here to help anyone that has customized their Jamroom control panel to get a better idea of what changes are in Jamroom 4.2.0, and what you'll need to add to your templates to support the new Jamroom 4.2.0 changes.

If you HAVE NOT customized your control panel form, and your control panel is based on one of our Skins (i.e. Nova, Flashback), the simplest way to "upgrade" is to simply upload the new templates in jamroom/skins/Skin_name/cp to your server, overwriting your existing files.

Otherwise, updating your control panel form.tpl file to support Jamroom 4.2.0 is really the only thing required - your skin and theme templates will continue to function as they did in Jamroom 4.1.x, but you will want to make sure and update your jamroom/skins/Skin_Name/cp/form.tpl to support the new Jamroom Progress Meter.

Edit the file and find the "form_progress" section - it needs to be changed to:

Code

{elseif $_element.type == 'form_progress_meter'}
  <tr>
    <td width="100%" colspan="2">
      <div id="progress_box" align="center">

        {* this hidden iframe is REQUIRED for the progress meter to function! *}
        {jr_random_number min="0" max="1000" assign="rand_id"}
        <iframe id="jr_progress_iframe" height="0" width="0" style="display:none;" src="progress.php?mode=template&amp;rand={$rand_id}"></iframe>

        <div id="progress_bar" style="display:none;height:146px;padding:6px 0px 6px 0px;border-top:3px solid #F7DD4F;border-bottom:3px solid #F7DD4F">

          <div class="inner" id="progress_div">
            <div id="upload_status_wrap" align="center" class="outer" style="position:relative;text-align:left;width:600px;padding:3px;">
              <img id="upload_status" src="skins/Nova/cp/images/bar.png" title="600" height="24" alt="..." style="width:0px;">
            </div>
            <table width="60%" cellpadding="0" cellspacing="0" align="center">
              <tr>
                <td width="50%" align="right" style="padding:5px;">
                  {$_LANGUAGE.progress.1}:<br>
                  {$_LANGUAGE.progress.2}:<br>
                  {$_LANGUAGE.progress.3}:<br>
                  {$_LANGUAGE.progress.4}:<br>
                  {$_LANGUAGE.progress.5}:<br>
                  {$_LANGUAGE.progress.6}:
                </td>
                <td width="50%" align="left" style="padding:5px;">
                  <span id="percent">0%</span><br>
                  <span id="uploaded_files">0</span> / <span id="total_uploads">0</span><br>
                  <span id="current">0</span> / <span id="total_kbytes">0</span><br>
                  <span id="time">0</span><br>
                  <span id="remain">0</span><br>
                  <span id="speed">0</span>/s
                </td>
              </tr>
            </table>
          </div>

          {* once the upload is complete, if the Conversion Server is installed, then this next
             section will be shown so they can see the file conversion in process *}

          <div class="inner" id="con_progress" style="display:none;">
            <br>
            {$_LANGUAGE.misc.142}
            <br>
            {$_LANGUAGE.misc.143}
            <br><br>
            <img src="skins/Nova/images/loading.gif" alt="...">
            <br><br>
            <div id="pr_message" style="font-weight:bold;"></div>
          </div>

        </div>
      </div>

    </td>
  </tr>


With that done, your progress meter should now work properly.

There are other optional changes in the Jamroom templates (such as adding in support for new JS and CSS handling), but they are not required in the upgrade.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation

Last edited by Brian on 06/14/11 12:06; edited 1 time in total
Back to top
iLoveHouseMusic



Joined: 21 Apr 2009
Posts: 1482
Location: San Francisco CA

Posted: 10/30/10 06:23 

Code
There are other optional changes in the Jamroom templates (such as adding in support for new JS and CSS handling), but they are not required in the upgrade.


Is there documentation on adding support for new JS and CSS handling?

Is there a thread that talks more in depth about this?

Thanks

Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 10/30/10 12:59 
Check out the newest nova templates and look at the jr_header.tpl file to see exactly how the jr_javascript_src and jr_css_src functions are used:

http://www.jamroom.net/Jamroom4_jr_javascript_src
http://www.jamroom.net/Jamroom4_jr_css_src

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.