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
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
Top Achievers
Who is online?
In total there are 19 users online :: 0 Registered, 0 Hidden and 19 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[IN PROGRESS] Can this code work on pun version
Page 1 of 2 • Share
Page 1 of 2 • 1, 2
The code i saw here https://fmdesign.forumotion.com/t316-possible-widget
about user menu on widget. I want to know if the code for can also work on punbb. @Ange Tuteur
Thanks
about user menu on widget. I want to know if the code for can also work on punbb. @Ange Tuteur
Thanks
Last edited by Paradiseng on Thu 19 May 2016, 04:13; edited 2 times in total
Van-Helsing wrote:Hello,
I think it can be work but you have to change the h1.cattitle with .main-head in jQuery commands if am correct. You can try it.
@Van-Helsing I did what you directed and it worked
Thanks alot
- GuestGuest
Good work @Van-Helsing
- GuestGuest
Van-Helsing wrote:Thanks @Samantha, glad to help you.
Ermm......Me? Lel! I'm on phpBB3 if you don't mind...
in my punbb forum http://iconskouliki.forumgreek.com/ the new post never becomes zero and i wait the 5 min ..and reload refresh the page many times (when i click the new post direct to zero results )
on the other hand on invision http://keeponblogging.forumotion.com/ the new posts are always 0 even if there are new post to see which if you clik on view the new post you can see them
on the other hand on invision http://keeponblogging.forumotion.com/ the new posts are always 0 even if there are new post to see which if you clik on view the new post you can see them
Hello @skouliki,
Can you post your widget code here? Maybe some links are wrong or needing an update.
Can you post your widget code here? Maybe some links are wrong or needing an update.
hello
Invision
Punbb
Invision
- 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 class="fa-named-url" href="/spa/">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>
<script type="text/javascript">//<![CDATA[
(function() {
var storage = window.localStorage, npm = document.getElementById('i_icon_mini_new_message');
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 - 1*00*0000) {
jQuery('.fa-newposts').html(storage.fa_newposts);
jQuery('.fa-unanswered').html(storage.fa_unanswered);
} else {
jQuery.get('/search?search_id=newposts',function(d){
storage.fa_newposts = jQuery(' .main-head ',d).text().match(/(\d+)/)[1];
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+)/)[1];
jQuery('.fa-unanswered').html(storage.fa_unanswered);
});
storage.fa_dataEXP = +new Date;
}
})();
//]]></script>
Punbb
- 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 class="fa-named-url" href="/spa/">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>
<script type="text/javascript">//<![CDATA[
(function() {
var storage = window.localStorage, npm = document.getElementById('i_icon_mini_new_message');
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 - 1*00*0000) {
jQuery('.fa-newposts').html(storage.fa_newposts);
jQuery('.fa-unanswered').html(storage.fa_unanswered);
} else {
jQuery.get('/search?search_id=newposts',function(d){
storage.fa_newposts = jQuery(' .main-head ',d).text().match(/(\d+)/)[1];
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+)/)[1];
jQuery('.fa-unanswered').html(storage.fa_unanswered);
});
storage.fa_dataEXP = +new Date;
}
})();
//]]></script>
Hello,
Hmm some things needing corrections, well I have been fixed them.
Invision:
PunBB:
Hmm some things needing corrections, well I have been fixed them.
Invision:
- 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 class="maintitle">
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 class="fa-named-url" href="/spa/">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>
<script type="text/javascript">//<![CDATA[
(function() {
var storage = window.localStorage, npm = document.getElementById('i_icon_mini_new_message');
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 - 1*00*0000) {
jQuery('.fa-newposts').html(storage.fa_newposts);
jQuery('.fa-unanswered').html(storage.fa_unanswered);
} else {
jQuery.get('/search?search_id=newposts',function(d){
storage.fa_newposts = jQuery('.maintitle',d).text().match(/(\d+)/)[1];
jQuery('.fa-newposts').html(storage.fa_newposts);
});
jQuery.get('/search?search_id=unanswered',function(d){
storage.fa_unanswered = jQuery('.maintitle',d).text().match(/(\d+)/)[1];
jQuery('.fa-unanswered').html(storage.fa_unanswered);
});
storage.fa_dataEXP = +new Date;
}
})();
//]]></script>
PunBB:
- 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 class="main-head">
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 class="fa-named-url" href="/spa/">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>
<script type="text/javascript">//<![CDATA[
(function() {
var storage = window.localStorage, npm = document.getElementById('i_icon_mini_new_message');
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 - 1*00*0000) {
jQuery('.fa-newposts').html(storage.fa_newposts);
jQuery('.fa-unanswered').html(storage.fa_unanswered);
} else {
jQuery.get('/search?search_id=newposts',function(d){
storage.fa_newposts = jQuery(' .main-head',d).text().match(/(\d+)/)[1];
jQuery('.fa-newposts').html(storage.fa_newposts);
});
jQuery.get('/search?search_id=unanswered',function(d){
storage.fa_unanswered = jQuery('.main-head',d).text().match(/(\d+)/)[1];
jQuery('.fa-unanswered').html(storage.fa_unanswered);
});
storage.fa_dataEXP = +new Date;
}
})();
//]]></script>
ok now both codes show "view new post" 1 instead of 0
when i open a test topic the "view new post " was still 1 even after i saw that topic ..didnt became 0
i dont know if the data takes that long ..cause ange in the other similar topic https://fmdesign.forumotion.com/t316-possible-widget put a refresh button on the code for that reason
notice that the data refresh time original was 5 min in my codes is 1 min
as far as i see now in the morning the default number 1 didnt change to 0
edit : informations added
when i open a test topic the "view new post " was still 1 even after i saw that topic ..didnt became 0
i dont know if the data takes that long ..cause ange in the other similar topic https://fmdesign.forumotion.com/t316-possible-widget put a refresh button on the code for that reason
notice that the data refresh time original was 5 min in my codes is 1 min
as far as i see now in the morning the default number 1 didnt change to 0
edit : informations added
Hmm something may went wrong on your web browser's localstorage cache.
You have decreased the widget refresh time to much, that increases the fires on javascript port in short time and maybe overloads your forums. I think you must setup it back to default (5 minutes). Furthermore you must clear your web browser cookies, cache, history and restart your web browser after this update.
You have decreased the widget refresh time to much, that increases the fires on javascript port in short time and maybe overloads your forums. I think you must setup it back to default (5 minutes). Furthermore you must clear your web browser cookies, cache, history and restart your web browser after this update.
ok so i set the default 5 min in the morning cause i thought about it
now i delete all cache , history cookies in chrome and firefox , restart them , restart pc ..and the result in both versions is that
1) view new posts still with 1 no matter what
2) view unanswered posts shows number 1 but when u click you can see many more posts ( that was ok before)
that informations is similar if you are a visitor , you can see view new posts and unanswered with number (1)
now i delete all cache , history cookies in chrome and firefox , restart them , restart pc ..and the result in both versions is that
1) view new posts still with 1 no matter what
2) view unanswered posts shows number 1 but when u click you can see many more posts ( that was ok before)
that informations is similar if you are a visitor , you can see view new posts and unanswered with number (1)
Hello,
As I checked it right now it seems working ok as you can see in the screenshot below
That means you have an active topic today (from today 00:00 to 23:59) and 168 unanswered topics.
As I checked it right now it seems working ok as you can see in the screenshot below
That means you have an active topic today (from today 00:00 to 23:59) and 168 unanswered topics.
Hmm I dont know why it is happening on your computer only. Lets wait @Ange Tuteur maybe he has a solution. The only thing which I can think is that if you have other widgets which are reading/writing on your web browser's localstorage cache in short time too and conflicts the other widgets.
- demon99New Member
- Gender :
Posts : 4
Points : 2571
Reputation : 0
Language : Indonesia
Browser : Forum Version :
Hi guys, how to rezise the avatar of the widget? its kinda annoys when other members have a more width avatar than the coloumn of the widget, for resizing the widget size, its kinda make the forum look bad and soooo wide.. so how to resize the avatar of this widget?
- Sponsored content
Page 1 of 2 • 1, 2
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum