Tokyo hotels: get the best Tokyo hotel deal by cheap rates. No booking fees. You pay for the hotel room in Tokyo at the check-out. Free cancellation.

USD

Tokyo Japan /socialnetworkphpbb3hackscom/viewtopic?f=27&t=266

phpBB Social Network • View topic - [SOLUTION] Supernova for SN

[SOLUTION] Supernova for SN

Discussion about styles how to implement the phpBB Social Network.

[SOLUTION] Supernova for SN

Postby Boardtalk » Sat Mar 12, 2011 2:30 am

To get the style Supernova and Social Network 0.5.1 to work together.

Replace:
*.*/styles/supernova/template/cats.js
cats.zip



Open styles/supernova/template/overall_header.html
Find:
Code: Select all
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery-1.4.2.min.js"></script>

Replace with:
Code: Select all
<!--<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery-1.4.2.min.js"></script>-->

Find:
Code: Select all
<script type="text/javascript">
$(document).ready(function() {
   $('#sn-not-logged-in').mouseenter(function() {
      $('#sn-not-logged-in-hover').fadeIn('medium');
   });
   $('#sn-not-logged-in-hover').mouseleave(function() {
      $('#sn-not-logged-in-hover').fadeOut('medium');
   });
});
</script>
<script type="text/javascript">
$(document).ready(function(){
   $("input:checkbox").each( function() {
      (this.checked) ? $("#fake"+this.id).addClass('fakechecked') : $("#fake"+this.id).removeClass('fakechecked');
   });
   $(".fakecheck").click(function(){
      ($(this).hasClass('fakechecked')) ? $(this).removeClass('fakechecked') : $(this).addClass('fakechecked');
      $(this.hash).trigger("click");
      return false;
   });
});
</script>
<!-- IF $SN_TOOLTIP -->
<script type='text/javascript'>
   $(function() {
      $('div.colour-block').tipsy({fade: true, gravity: 's'});
   });
</script>

Replace with:
Code: Select all
<script type="text/javascript">
jQuery.noConflict();

(function($) {

   $(document).ready(function() {
      $(document).ready(function() {
         $('#sn-not-logged-in').mouseenter(function() {
            $('#sn-not-logged-in-hover').fadeIn('medium');
         });
         $('#sn-not-logged-in-hover').mouseleave(function() {
            $('#sn-not-logged-in-hover').fadeOut('medium');
         });
      });
   });

})(jQuery);
</script>
<script type="text/javascript">
jQuery.noConflict();

(function($) {

   $(document).ready(function() {
      $(document).ready(function(){
         $("input:checkbox").each( function() {
            (this.checked) ? $("#fake"+this.id).addClass('fakechecked') : $("#fake"+this.id).removeClass('fakechecked');
         });
         $(".fakecheck").click(function(){
            ($(this).hasClass('fakechecked')) ? $(this).removeClass('fakechecked') : $(this).addClass('fakechecked');
            $(this.hash).trigger("click");
            return false;
         });
      });
   });

})(jQuery);
</script>
<!-- IF $SN_TOOLTIP -->
<script type='text/javascript'>
jQuery.noConflict();

(function($) {

    $(document).ready(function() {
      $(function() {
         $('div.colour-block').tipsy({fade: true, gravity: 's'});
      });
    });

})(jQuery);   
</script>

Find:
Code: Select all
<script type="text/javascript">
      if($.cookie("sn_board_style")) {
         $("link.colour-switcher").attr("href",$.cookie("sn_board_style"));
      }
   $(document).ready(function() {
      $("div.colour-block span a").click(function() {
         $("link.colour-switcher").attr("href",$(this).attr('rel'));
         $.cookie("sn_board_style",$(this).attr('rel'), {expires: 365, path: '/'});
         return false;
      });
   });
</script>

Replace with:
Code: Select all
<script type="text/javascript">
jQuery.noConflict();

(function($) {

    $(document).ready(function() {
        if($.cookie("sn_board_style")) {
          $("link.colour-switcher").attr("href",$.cookie("sn_board_style"));
        }
      $(document).ready(function() {
        $("div.colour-block span a").click(function() {
          $("link.colour-switcher").attr("href",$(this).attr('rel'));
          $.cookie("sn_board_style",$(this).attr('rel'), {expires: 365, path: '/'});
          return false;
        });
      });
     });

})(jQuery); 
</script>


Don't forget to refresh your template, Purge the cache and clear your browser's cache.

Let me know how it goes,


Update:
The above works fine for me on version SN 0.5.2
You do not have the required permissions to view the files attached to this post.
Boardtalk

 
Posts: 22
Joined: Sat Feb 26, 2011 12:30 am
Location: Ireland
Top

Re: [SOLUTION] Supernova for SN

Postby w7oshy » Sun Apr 24, 2011 6:15 pm

could you help me with this please
in overal header.php
find
Code: Select all
<ul class="linklist navlinks">


add after
Code: Select all
<!-- IF SN_MODULE_MAINPAGE_ENABLED --><li class="icon-home"><a href="{U_SN_MAINPAGE}">{L_SN_MP_MAINPAGE}</a></li><!-- ENDIF -->

find
Code: Select all
<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
          <li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x">{L_LOGIN_LOGOUT}</a></li>
        <!-- ENDIF -->
      </ul>

      <span class="corners-bottom"><span></span></span></div>
    </div>


add after
Code: Select all
        <!-- IF SN_MODULE_USERSTATUS_ENABLED -->
            <!-- INCLUDE socialnet/userstatus_index.html -->
        <!-- ENDIF -->


i don't know where i have add it it's diffrent in supernova
w7oshy
 
Posts: 15
Joined: Fri Apr 22, 2011 7:43 pm
Top

Re: [SOLUTION] Supernova for SN

Postby kas5986 » Sun Apr 24, 2011 8:13 pm

w7oshy wrote:could you help me with this please
in overal header.php
find
Code: Select all
<ul class="linklist navlinks">


add after
Code: Select all
<!-- IF SN_MODULE_MAINPAGE_ENABLED --><li class="icon-home"><a href="{U_SN_MAINPAGE}">{L_SN_MP_MAINPAGE}</a></li><!-- ENDIF -->

find
Code: Select all
<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
          <li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x">{L_LOGIN_LOGOUT}</a></li>
        <!-- ENDIF -->
      </ul>

      <span class="corners-bottom"><span></span></span></div>
    </div>


add after
Code: Select all
        <!-- IF SN_MODULE_USERSTATUS_ENABLED -->
            <!-- INCLUDE socialnet/userstatus_index.html -->
        <!-- ENDIF -->


i don't know where i have add it it's diffrent in supernova



for mainpage link on the board index

open style/supernova/overall_header.html
find
Code: Select all
<div class="sn-breadcrumbs">


add after
Code: Select all
<!-- IF SN_MODULE_MAINPAGE_ENABLED --><img src="{T_THEME_PATH}/images/house.png" width="16" height="16" alt="" /><a href="{U_SN_MAINPAGE}">{L_SN_MP_MAINPAGE}</a></li><!-- ENDIF -->


to show share bar in the index page

find :
Code: Select all
</div><!-- /sn-navbar -->


add after
Code: Select all
        <!-- IF SN_MODULE_USERSTATUS_ENABLED -->
            <!-- INCLUDE socialnet/userstatus_index.html -->
        <!-- ENDIF -->


hope it will work for you
Regards,
Syed Muhammad Shafiq
phpBB Support In Urdu/Roman
No Help Via PM !

kas5986

 
Posts: 168
Joined: Sun Jan 16, 2011 3:07 pm
Location: Karachi, Pakistan
Top

Re: [SOLUTION] Supernova for SN

Postby w7oshy » Sun Apr 24, 2011 8:21 pm

this adding hiding other link

Code: Select all
<!-- IF SN_MODULE_USERSTATUS_ENABLED -->
            <!-- INCLUDE socialnet/userstatus_index.html -->
        <!-- ENDIF -->


w7oshy
 
Posts: 15
Joined: Fri Apr 22, 2011 7:43 pm
Top

Re: [SOLUTION] Supernova for SN

Postby kas5986 » Mon Apr 25, 2011 5:54 pm

w7oshy wrote:this adding hiding other link

Code: Select all
<!-- IF SN_MODULE_USERSTATUS_ENABLED -->
            <!-- INCLUDE socialnet/userstatus_index.html -->
        <!-- ENDIF -->




if it is hiding other links simply leave this step coz i didn't see any other suitable place for add share button in the index page if someone other can help you it would be great but from my opinion leave to add share button in the index page for supernova
Regards,
Syed Muhammad Shafiq
phpBB Support In Urdu/Roman
No Help Via PM !

kas5986

 
Posts: 168
Joined: Sun Jan 16, 2011 3:07 pm
Location: Karachi, Pakistan
Top

Re: [SOLUTION] Supernova for SN

Postby Vojacek » Mon Apr 25, 2011 6:40 pm

I make you the recommended treatment, but I have a problem to the modification. The page can not display the avatars.

Screen
Překlady na phpBB modifikace

Vojacek

 
Posts: 7
Joined: Sun Feb 13, 2011 9:44 pm
Location: root/*
Top

Re: [SOLUTION] Supernova for SN

Postby Culprit » Tue Apr 26, 2011 6:27 am

@Vojacek:
Control your phpBB script path. Seems to be wrong set.
Development continues. But on June 24 I leave for vacation.

My English is bad, I try to write in English as my skills allow.

Culprit

Developer
 
Posts: 780
Joined: Wed Oct 27, 2010 9:33 am
Top

Re: [SOLUTION] Supernova for SN

Postby w7oshy » Tue May 03, 2011 4:05 pm

i still can't add the status bar on index could you help me please
w7oshy
 
Posts: 15
Joined: Fri Apr 22, 2011 7:43 pm
Top

Re: [SOLUTION] Supernova for SN

Postby kas5986 » Tue May 03, 2011 9:29 pm

w7oshy wrote:i still can't add the status bar on index could you help me please


i have send you the right way the only place is what i share with you for supernova if you want to hide your links you can add it but the better way is leave to add share on index page coz it will hide other links
Regards,
Syed Muhammad Shafiq
phpBB Support In Urdu/Roman
No Help Via PM !

kas5986

 
Posts: 168
Joined: Sun Jan 16, 2011 3:07 pm
Location: Karachi, Pakistan
Top

Re: [SOLUTION] Supernova for SN

Postby w7oshy » Wed May 04, 2011 3:54 pm

kas5986 wrote:
w7oshy wrote:i still can't add the status bar on index could you help me please


i have send you the right way the only place is what i share with you for supernova if you want to hide your links you can add it but the better way is leave to add share on index page coz it will hide other links



i find away to show the link by add <br> code but the shar buttun still hide
totally there is something wrong with in the code
and i can't find how to fix the code
w7oshy
 
Posts: 15
Joined: Fri Apr 22, 2011 7:43 pm
Top

Next

Return to Style support



Who is online

Users browsing this forum: Alexa [Bot]

We offer 8050 hotels in Tokyo Japan with low prices and discount rates. Our reservation system features cheap and luxury hotels in Tokyo, hostels, motels, B&B and other affordable accommodations in Tokyo. We have great hotel deals in central Tokyo. You can also book Tokyo airport hotels at cheap rates. Our system is secure and absolutely free of charge.

Find a hotel

Tokyo City, Japan

Tokyo map

Attractions and Sights

Your First Time in Tokyo