SocialAcademy • Forum

Social Academy Community Support Forum & Free Tutorial's & Skins



SocialAcademy • Forum » Support Section » Ask Question 's & Problems » Solved & Trash Files  →   [Archived] How can I add the refresh button on Recent Topics System Activity?

[Archived] How can I add the refresh button on Recent Topics System Activity?


    Go to page : 1, 2  Next

  • Please log in to Reply

View previous topic View next topic Go down  Message [Page 1 of 2]

#1

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Sat Jul 12, 2014 10:36 pm

 
Details: How can I add the refresh button on Recent Topics System Activity?
Screenshot: http://prntscr.com/42215o
Forum Address: http://linux-team.forumgreek.com/
Forum Version: PunBB

#2

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Mon Jul 14, 2014 1:19 am

 
Hello [tag]Dark-Avenger[/tag], what version do you use in latest topic system ?

https://socialacademy.forumotion.com
#3

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Mon Jul 14, 2014 1:22 am

 
Hello,
I think the version 5, with five columns.

#4

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Mon Jul 14, 2014 1:40 am

 
First go to your > MOD_RECENT_TOPICS

and replace all by this

Code:
<!-- BEGIN classical_row -->
<tr>
  <th class="double">
      <h2>Newest post
        <span class="right">Latest reply</span>
      </h2>
  </th>
  <th>
      <select class="changeLast" data-group="post">
        <option value="top_posters">Top Poster</option>
        <option value="active_starters">Most Topic Users</option>
      </select>
  </th>
  <th>
      <select class="changeLast" data-group="time">
        <option value="users_week">Most Active Poster of Week</option>
        <option value="users_month">Most Active Poster this Month</option>
      </select>
  </th>
</tr>
<tr><div class="takemylast">
  <td class="double unbelievable" rowspan="3">
      <ul id="recent_topics">
        <!-- BEGIN recent_topic_row -->
        <li>
            <a href="{classical_row.recent_topic_row.U_TITLE}">{classical_row.recent_topic_row.L_TITLE}</a>
            <div class="tooltip_data" style="display:none">
              <p>
                  <span style="color:red">Subject</span>: {classical_row.recent_topic_row.L_TITLE}
              </p>
              <p>
                  <span style="color:blue">Posted</span>: {classical_row.recent_topic_row.S_POSTTIME}
              </p>
            </div>
 
            <!-- BEGIN switch_poster -->
            <a class="lastRight" href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}  </a>
            <!-- END switch_poster -->
            <!-- BEGIN switch_poster_guest -->
            <span class="lastRight">
              {classical_row.recent_topic_row.switch_poster_guest.S_POSTER}
            </span>
            <!-- END switch_poster_guest -->
        </li>
        <!-- END recent_topic_row -->
      </ul>
  </td></div>
<!-- </tr> -->
<!-- END classical_row -->
 
 
 
  <script>function refreshfmvi ()
  {
    $("#immor").show();
    $(".unbelievable").css("opacity", 0.5).load("/forum  .unbelievable", function ()
    {
      $("#immor").hide();
      $(".unbelievable").css("opacity", 1)
    })
  }</script>


after that go to your INDEX_BODY and find this

Code:
        <div id="{ID_LEFT}" class="main">
          <div class="main-head">
              <div class="page-title">
                <h2>Latest Topic System v5</h2>
              </div>
          </div>
            <div class="main-content">
              <table cellspacing="0" class="table">
                <tbody class="statused">
                    <!-- BEGIN giefmod_index1 -->
                    {giefmod_index1.MODVAR}
                    <!-- END giefmod_index1 -->
                </tbody>
              </table>
          </div>
          <script type="text/javascript">
              //<![CDATA[
              var versionMinor = parseFloat(navigator.appVersion),
                versionMajor = parseInt(versionMinor),
                IE = document.all && !window.opera && 7 > versionMajor,
                IE7 = document.all && !window.opera && 7 <= versionMajor,
                OP = window.opera,
                FF = document.getElementById,
                NS = document.layers;
       
              function get_item(a, c) {
                if (IE) return c ? window.opener.document.all[a] : document.all[a];
                if (FF) return c ? window.opener.document.getElementById(a) : document.getElementById(a);
                if (NS) return c ? window.opener.document.layers[a] : document.layers[a]
              }
       
              var current_tooltip;
       
              function show_tooltip(a, c) {
                var b = get_item("tooltip");
                b || (b = document.createElement("div"), b.setAttribute("id", "tooltip"), document.body.appendChild(b));
                b.style.zIndex = 1000;
                b.style.position = "absolute";
                b.innerHTML = "<p>" + c + "</p>";
                b.style.visibility = "visible";
                a.onmousemove = move_tooltip;
                a.onmouseout = function() {
                    b.style.visibility = "hidden"
                };
                a.title = ""
              }
              var offsetxpoint = -60,
                offsetypoint = 20,
                real_body = document.compatMode && "BackCompat" != document.compatMode ? document.documentElement : document.body,
                real_body = document.documentElement ? document.documentElement : document.body;
       
              function move_tooltip(a) {
                var c = !IE ? a.pageX : event.clientX + real_body.scrollLeft,
                    d = !IE ? a.pageY : event.clientY + real_body.scrollTop,
                    b = IE && !window.opera ? real_body.clientWidth - event.clientX - offsetxpoint : window.innerWidth - a.clientX - offsetxpoint - 20,
                    e = IE && !window.opera ? real_body.clientHeight - event.clientY - offsetypoint : window.innerHeight - a.clientY - offsetypoint - 20,
                    f = 0 > offsetxpoint ? -1 * offsetxpoint : -1E3;
                current_tooltip = get_item("tooltip");
                current_tooltip.style.left = b < current_tooltip.offsetWidth ? IE ? real_body.scrollLeft + event.clientX - current_tooltip.offsetWidth + "px" : window.pageXOffset + a.clientX - current_tooltip.offsetWidth + "px" : c < f ? "5px" : c + offsetxpoint + "px";
                current_tooltip.style.top = e < current_tooltip.offsetHeight ? IE ? real_body.scrollTop + event.clientY - current_tooltip.offsetHeight - offsetypoint + "px" : window.pageYOffset + a.clientY - current_tooltip.offsetHeight - offsetypoint + "px" : d + offsetypoint + "px"
              }
              $("#recent_topics li a:first-child").mouseover(function() {
                show_tooltip(this, $(this).next().html())
              });
              $("#active_topics a, #viewed_topics a").mouseover(function() {
                show_tooltip(this, $(this).prev().text().replace(/(.*)\s-\s\d+.+/, "$1"));
              }).after(function() {
                return '<span class="lastRight">' + this.title.replace(/.*\s-\s(\d+.+)/, "$1") + '</span>'
              });
              $(".changeLast").change(function() {
                $(".half.group_" + $(this).data("group")).hide();
                $("#" + this.value).show();
              });
              //]]>
          </script>
        </div>
        </div>

replace that into this


Code:
<style>.immor {
cursor: pointer;
float: right;
}
</style>
<div id="{ID_LEFT}" class="main">
  <div class="main-head">
<img src="http://i15.servimg.com/u/f15/16/58/89/73/reload10.png" title="Refresh" onclick="refreshfmvi()" class="immor"/>
      <div class="page-title">
        <h2>Recent Topics System Activity</h2>
      </div>
  </div>
  <div class="main-content">
      <table cellspacing="0" class="table">
        <tbody class="statused">
            <!-- BEGIN giefmod_index1 -->
            {giefmod_index1.MODVAR}
            <!-- END giefmod_index1 -->
        </tbody>
      </table>
  </div>
  <script type="text/javascript">
      //<![CDATA[
      var versionMinor = parseFloat(navigator.appVersion),
        versionMajor = parseInt(versionMinor),
        IE = document.all && !window.opera && 7 > versionMajor,
        IE7 = document.all && !window.opera && 7 <= versionMajor,
        OP = window.opera,
        FF = document.getElementById,
        NS = document.layers;
 
      function get_item(a, c) {
        if (IE) return c ? window.opener.document.all[a] : document.all[a];
        if (FF) return c ? window.opener.document.getElementById(a) : document.getElementById(a);
        if (NS) return c ? window.opener.document.layers[a] : document.layers[a]
      }
 
      var current_tooltip;
 
      function show_tooltip(a, c) {
        var b = get_item("tooltip");
        b || (b = document.createElement("div"), b.setAttribute("id", "tooltip"), document.body.appendChild(b));
        b.style.zIndex = 1000;
        b.style.position = "absolute";
        b.innerHTML = "<p>" + c + "</p>";
        b.style.visibility = "visible";
        a.onmousemove = move_tooltip;
        a.onmouseout = function() {
            b.style.visibility = "hidden"
        };
        a.title = ""
      }
      var offsetxpoint = -60,
        offsetypoint = 20,
        real_body = document.compatMode && "BackCompat" != document.compatMode ? document.documentElement : document.body,
        real_body = document.documentElement ? document.documentElement : document.body;
 
      function move_tooltip(a) {
        var c = !IE ? a.pageX : event.clientX + real_body.scrollLeft,
            d = !IE ? a.pageY : event.clientY + real_body.scrollTop,
            b = IE && !window.opera ? real_body.clientWidth - event.clientX - offsetxpoint : window.innerWidth - a.clientX - offsetxpoint - 20,
            e = IE && !window.opera ? real_body.clientHeight - event.clientY - offsetypoint : window.innerHeight - a.clientY - offsetypoint - 20,
            f = 0 > offsetxpoint ? -1 * offsetxpoint : -1E3;
        current_tooltip = get_item("tooltip");
        current_tooltip.style.left = b < current_tooltip.offsetWidth ? IE ? real_body.scrollLeft + event.clientX - current_tooltip.offsetWidth + "px" : window.pageXOffset + a.clientX - current_tooltip.offsetWidth + "px" : c < f ? "5px" : c + offsetxpoint + "px";
        current_tooltip.style.top = e < current_tooltip.offsetHeight ? IE ? real_body.scrollTop + event.clientY - current_tooltip.offsetHeight - offsetypoint + "px" : window.pageYOffset + a.clientY - current_tooltip.offsetHeight - offsetypoint + "px" : d + offsetypoint + "px"
      }
      $("#recent_topics li a:first-child").mouseover(function() {
        show_tooltip(this, $(this).next().html())
      });
      $("#active_topics a, #viewed_topics a").mouseover(function() {
        show_tooltip(this, $(this).prev().text().replace(/(.*)\s-\s\d+.+/, "$1"));
      }).after(function() {
        return '<span class="lastRight">' + this.title.replace(/.*\s-\s(\d+.+)/, "$1") + '</span>'
      });
      $(".changeLast").change(function() {
        $(".half.group_" + $(this).data("group")).hide();
        $("#" + this.value).show();
      });
      //]]>
  </script>
</div>


you can replace this icon what ever you want [Archived] How can I add the refresh button on Recent Topics System Activity? Reload10

https://socialacademy.forumotion.com
#5

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Mon Jul 14, 2014 2:05 am

 
Its working but when I press the refresh button of recent topics system it is increasing the width of the first column http://prntscr.com/42f8vm

#6

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Mon Jul 14, 2014 2:35 am

 
go to your latest topic system CSS and edit the width ..

https://socialacademy.forumotion.com
#7

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Mon Jul 14, 2014 10:30 am

 
Hi Red,
I tried it for few hours but I can't fix it. Something is goind wrong with the class unbelieavable.

#8

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Mon Jul 14, 2014 12:38 pm

 
Hello , try to replace your Latest topic System with this
Code:
/* Latest topics */
#content-container div#main{margin-bottom:0}
*+ html #content-container div#main{margin-left:0;margin-right:0}
#content-container div#left{float:none;width:100%}
#left{margin:30px 0}
#left,#left *,#left li:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
#left table.table{border-collapse:collapse;empty-cells:show;table-layout:fixed;width:100%}
#left a{text-decoration:none}
#left td{width:25%;vertical-align:top;border-width:0 1px}
#left .double{border-left:0;width:50%}
#left li{position:relative;width:100%;list-style-type:none;height:22px;line-height:24px;border-bottom:1px dashed #CCC;counter-increment:Zzindex}
#left li:before{content:counter(Zzindex);display:block;height:16px;background:#98D0FF;position:absolute;left:-23px;font-size:11px;top:5px;border-radius:2px;text-align:center;width:18px;color:#FFF;line-height:16px}
#left li:after{content:" ";background:#98D0FF;display:block;width:6px;height:6px;position:absolute;top:10px;left:-8px;transform:rotate(45deg);-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg)}
#left li:nth-child(1):before,#left li:nth-child(1):after{background:red}
#left li:nth-child(2):before,#left li:nth-child(2):after{background:#d47a2a}
#left li:nth-child(3):before,#left li:nth-child(3):after{background:#b9ba45}
#left li:nth-child(4):before,#left li:nth-child(4):after{background:#aad655}
#left li:nth-child(5):before,#left li:nth-child(5):after{background:#55e7aa}
#left a{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;width:60%;height:inherit}
#active_topics a,#viewed_topics a{width:70%}
#left #recent_topics a{width:80%}
#left .lastRight{right:0;text-align:right;position:absolute;top:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;left:auto}
#left ul,#left th{padding-left:34px;padding-right:10px;margin:0}
#left ul{height:114px}
#left .changeLast{border:0 none!important;background:inherit;margin-top:0!important;margin-bottom:-1px;padding:0!important}
#left .changeLast,#left th h2{color:#ffffff}
#left th{width:25%;vertical-align:middle}
th.topicLast{border-top:1px solid #F3F3F3!important}
th.double{text-align:left}
#recent_topics li{margin:.5px 0}
#left #recent_topics .lastRight{width:20%!important}
.half li:nth-child(6),.half li:nth-child(7),.half li:nth-child(8),.half li:nth-child(9),.half li:nth-child(10),#active_starters,#users_month{display:none}
/* Tooltip */
#tooltip{background-color:#FFF;border:2px solid #333;color:#131313;max-width:550px;padding:10px}

https://socialacademy.forumotion.com
#9

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Mon Jul 14, 2014 1:08 pm

 
Hello,
Now I have problem with the second column http://prntscr.com/42jb3d due words posts in greek languge are more long for that reason I was modified the old CSS Code. Is there a way to adapt it without affecting the other columns?

#10

OfflineDustin

Dustin
 
Forum Helper
Forum Helper

Posted Mon Jul 14, 2014 10:00 pm

 
Probably has something to do with your forum language as that tutorial was written for English. That seems to be a common problem.

#11

OfflineSponsored content


 

Posted

 

Message (Page 1 of 2)


    Go to page : 1, 2  Next


Share Topics Url

Url
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum

 
  • Free forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com


Social Academy Forum
© Social Academy 2013-2022