FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 10 users online :: 0 Registered, 0 Hidden and 10 Guests :: 2 Bots

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Possible widget?

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Tue 17 Feb 2015, 05:16

First topic message reminder :

I just wondered if anything like this as a widget was possible? This is shown for each individual member who is logged on ie since I was logged on it shows me and the links below available to me as Admin.



Possible widget? - Page 2 Captur10

FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Mon 09 Mar 2015, 14:35

Ange Tuteur wrote:It appears to be working for me, as you can see :
Possible widget? - Page 2 Captu119

When you added the widget, did you make sure that you pasted it in source mode ?

Forgive my ignorance but what is source mode ?

Possible widget? - Page 2 Captur24
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Mon 09 Mar 2015, 14:57

That's correct, it's when the sheet of paper is highlighted in white.
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Mon 09 Mar 2015, 14:59

So I haven't made any mistakes then Very Happy
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Mon 09 Mar 2015, 16:17

Just to let you know I have also tried on another forum http://bangernomics.editboard.com/portal and it still doesn't work that one is phpBB2 (subsilver)

FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Mon 09 Mar 2015, 18:44

Just noticed another issue I have which is if I click View your posts (5870) it takes me to the search as shown below...

Possible widget? - Page 2 Captur25
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Tue 10 Mar 2015, 08:44

I'm not sure why it isn't getting the number when you're using phpbb2. It should be in the title of the search page. Does it show a number on the search page of view posts since your last visit, like this : https://i.servimg.com/u/f38/18/45/41/65/captu119.png
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Tue 10 Mar 2015, 08:50

This is what I have

Possible widget? - Page 2 Captur27


Last edited by FiB on Tue 10 Mar 2015, 08:55; edited 1 time in total
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Tue 10 Mar 2015, 08:54

This is what I get when I click view new posts even though it says '0'

Possible widget? - Page 2 Captur28
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Tue 10 Mar 2015, 18:46

Although I don't understand anything about coding I have made a little change to the code until we can find away to resolve it. I have removed the bold items to stop any confusion on my forum........... View new posts (<span class="fa-newposts">0</span>)</a>



Code:
        <style type="text/css">
    #membre-profil a {
      font-size:10px;
      display:block;
      padding:3px 0 3px 12px;
      background:url(http://2img.net/i/fa/subsilver/right_arrow.gif) no-repeat 0 50%;
    }
    </style>
    <div id="membre-profil">
      <div style="text-align:center;">
        <div class="fa-name"></div>
        <div class="fa-ava"></div>
        <div class="fa-rang"></div>
      </div>
      <hr/>
      <div class="link-list">
        <div>Menu</div>
        <a href="/search?search_id=newposts">View new posts (<span class="fa-newposts">0</span>)</a>
        <a href="/search?search_id=unanswered">View unanswered posts (<span class="fa-unanswered">0</span>)</a>
        <a href="/spa/" class="fa-named-url">View your posts (<span class="fa-posts">0</span>)</a>
        <a href="/search?search_id=favouritesearch">Favourites</a>
        <a href="/search?search_id=watchsearch">Watched topics</a>
        <a href="/privmsg?folder=inbox"><span class="fa-pm-new">0</span> new messages</a>
        <a href="/profile?mode=editprofile">Profile settings</a>
        <span class="fa-admin"></span>
        <a href="/login?logout=1">Logout [<span class="fa-name"></span>]</a>
      </div>
      <div style="padding:3px;text-align:center;"><a href="#" id="refresh_data">Refresh</a></div>
    </div>

    <script type="text/javascript">//<![CDATA[
    (function() {
      var storage = window.localStorage, npm = document.getElementById('i_icon_mini_new_message'), ref = document.getElementById('refresh_data');
      jQuery('.fa-name').html(_userdata.username);
      jQuery('.fa-posts').html(_userdata.user_posts);
      jQuery('.fa-ava').html(_userdata.avatar);
      jQuery('.fa-rang').html(_lang.rank_title);
      _userdata.user_level == 1 && jQuery('.fa-admin').html('<a href="/admin">Admin Panel</a>');
   
      jQuery('.fa-named-url').attr('href',jQuery('.fa-named-url').attr('href') + _userdata.username);
      npm && jQuery('.fa-pm-new').html(document.getElementById('i_icon_mini_new_message').title.match(/(\d+)/)[1]);
   
      if (storage.fa_dataEXP > +new Date - 4*59*1000) {
        jQuery('.fa-newposts').html(storage.fa_newposts);
        jQuery('.fa-unanswered').html(storage.fa_unanswered);
      } else getData();
     
      ref.onclick = function() {
        ref.style.opacity = 0.3;
        getData(function(){ ref.style.opacity = 1 });
        return false;
      };
     
      function getData(cb) {
        jQuery.get('/search?search_id=newposts',function(d){
          storage.fa_newposts = jQuery('h1.cattitle',d).text().match(/(\d+)/) ? jQuery('h1.cattitle',d).text().match(/(\d+)/)[1] : 0;
          jQuery('.fa-newposts').html(storage.fa_newposts);
        });
        jQuery.get('/search?search_id=unanswered',function(d){
          storage.fa_unanswered = jQuery('h1.cattitle',d).text().match(/(\d+)/) ? jQuery('h1.cattitle',d).text().match(/(\d+)/)[1] : 0;
          jQuery('.fa-unanswered').html(storage.fa_unanswered);
          cb && cb();
        });
        storage.fa_dataEXP = +new Date;
      }
    })();
    //]]></script>

Possible widget? - Page 2 Captur29

Do you think these 2 issues are related?

If I click View your posts (5870) it takes me to the search as shown below...

Possible widget? - Page 2 Captur25

Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 11 Mar 2015, 00:56

It's a strange one.. Do you have a test account I can use ? Something on your forum has to be different than the default phpbb2 I'm using.. reflect
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Wed 11 Mar 2015, 03:53

Sent you a pm Wink
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 11 Mar 2015, 16:49

I forgot that if you're not using the fa_toolbar the object _lang is undefined, so it was causing some errors. I also updated how the value was set. It should be working now, let me know if it isn't. Wink

This is the updated code for phpbb2 :
Code:
<style type="text/css">
#membre-profil a {
  font-size:10px;
  display:block;
  padding:3px 0 3px 12px;
  background:url(http://2img.net/i/fa/subsilver/right_arrow.gif) no-repeat 0 50%;
}
</style>
<div id="membre-profil">
  <div style="text-align:center;">
    <div class="fa-name"></div>
    <div class="fa-ava"></div>
    <div class="fa-rang"></div>
  </div>
  <hr/>
  <div class="link-list">
    <div>Menu</div>
    <a href="/search?search_id=newposts">View new posts (<span class="fa-newposts">0</span>)</a>
    <a href="/search?search_id=unanswered">View unanswered posts (<span class="fa-unanswered">0</span>)</a>
    <a href="/spa/" class="fa-named-url">View your posts (<span class="fa-posts">0</span>)</a>
    <a href="/search?search_id=favouritesearch">Favourites</a>
    <a href="/search?search_id=watchsearch">Watched topics</a>
    <a href="/privmsg?folder=inbox"><span class="fa-pm-new">0</span> new messages</a>
    <a href="/profile?mode=editprofile">Profile settings</a>
    <span class="fa-admin"></span>
    <a href="/login?logout=1">Logout [<span class="fa-name"></span>]</a>
  </div>
  <div style="padding:3px;text-align:center;"><a style="background:none" href="#" id="refresh_data">Refresh</a></div>
</div>

<script type="text/javascript">//<![CDATA[
(function() {
  var storage = window.localStorage, npm = document.getElementById('i_icon_mini_new_message'), ref = document.getElementById('refresh_data');
  jQuery('.fa-name').html(_userdata.username);
  jQuery('.fa-posts').html(_userdata.user_posts);
  jQuery('.fa-ava').html(_userdata.avatar);
  typeof _lang != 'undefined' && jQuery('.fa-rang').html(_lang.rank_title);
  _userdata.user_level == 1 && jQuery('.fa-admin').html('<a href="/admin">Admin Panel</a>');
 
  jQuery('.fa-named-url').attr('href',jQuery('.fa-named-url').attr('href') + _userdata.username);
  npm && jQuery('.fa-pm-new').html(document.getElementById('i_icon_mini_new_message').title.match(/(\d+)/)[1]);
 
  if (storage && storage.fa_newposts && storage.fa_dataEXP > +new Date - 4*59*1000) {
    jQuery('.fa-newposts').html(storage.fa_newposts);
    jQuery('.fa-unanswered').html(storage.fa_unanswered);
  } else getData();
 
  ref.onclick = function() {
    ref.style.opacity = 0.3;
    getData(function(){ ref.style.opacity = 1 });
    return false;
  };
 
  function getData(cb) {
    jQuery.get('/search?search_id=newposts',function(d){
      var val = jQuery('h1.cattitle',d).text().match(/(\d+)/) ? jQuery('h1.cattitle',d).text().match(/(\d+)/)[1] : 0;
      storage.fa_newposts = val;
      jQuery('.fa-newposts').html(val);
    });
    jQuery.get('/search?search_id=unanswered',function(d){
      var val = jQuery('h1.cattitle',d).text().match(/(\d+)/) ? jQuery('h1.cattitle',d).text().match(/(\d+)/)[1] : 0;
      storage.fa_unanswered = val;
      jQuery('.fa-unanswered').html(val);
      cb && cb();
    });
    storage.fa_dataEXP = +new Date;
  }
})();
//]]></script>
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Wed 11 Mar 2015, 16:58

Well what can I say except thank you again, I am at your disposal.

Possible widget? - Page 2 BowPossible widget? - Page 2 BowPossible widget? - Page 2 BowPossible widget? - Page 2 BowPossible widget? - Page 2 BowPossible widget? - Page 2 Bow




Last edited by FiB on Fri 24 Jul 2015, 07:02; edited 1 time in total
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Fri 24 Jul 2015, 07:02

For some reason the counter on the 'View new posts' isn't going down as I read them, see pic below, I have read all of them yet it still shows (6) unread?

Possible widget? - Page 2 Captur11
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sat 25 Jul 2015, 04:55

The data is cached for 5 minutes. Once the data expires it will send another request to update the numbers.
FiB
FiB

Gender : Male
Posts : 185
Points : 3867
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Mon 03 Aug 2015, 18:20

Thank you Wink
Sponsored content

PostSponsored content

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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