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

None

[ View the whole list ]


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

only topic widget

View previous topic View next topic Go down

Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 4032
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Sat 07 Mar 2015, 10:26

Hi all,

is there away to make an only topic widget that will update when posted on the forum? maybe like by a icon that is used in the topic icons?
Michael_vx
Michael_vx

Gender : Male
Age : 32
Posts : 302
Points : 4307
Reputation : 76
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
http://miccsoft.net https://www.facebook.com/Michaelvx2008

PostMichael_vx Sat 07 Mar 2015, 21:40

you reminded me by this
http://help.forumotion.com/t138665-is-there-a-recent-topics-with-auto-update-script
lol you already a stuff
and missed my question in there Very Happy
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 Sun 08 Mar 2015, 03:13

Something that would load all only topics into a widget ? We could probably use the search query http://help.forumotion.com/search?search_keywords=[only+topic]

However, as you can see it provides results that aren't exact to what you're searching. You can filter results based on their text content though. reflect
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 4032
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Sun 08 Mar 2015, 10:15

ok some thing like this.

make a widget like we always do but it will look for this icon only topic widget Only_t10 when its marked with that icon it would then place the title of that post in the widget and just link it so when clicked it will bring it to that topic Wink i would also like to use the Update icone aswell so when i post a thread with an update it will show in the same place using this icon only topic widget Update10
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:19

humm.. do you have a specific forum only topics go into ? I think it might be hard to do since there's no way to search by topic icon unless you're willing to send multiple AJAX requests to a handful of forums. reflect
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 4032
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Wed 11 Mar 2015, 09:08

Sad it would go in this forum http://www.achatworld.com/f28-site-news-updates if it is tomuch hard work then Don't worry Sad i will leave it
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:32

It's a single forum then ? It should be possible to write a script that grabs the topic based on their icon from it. I didn't want to give you a script that was too AJAX heavy, but if it's one forum then I can write something efficient up.

So you want the following topics from that forum :
- Those with only topic icon
- Those with new update icon
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 4032
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Thu 12 Mar 2015, 05:34

Ange Tuteur wrote:It's a single forum then ? It should be possible to write a script that grabs the topic based on their icon from it. I didn't want to give you a script that was too AJAX heavy, but if it's one forum then I can write something efficient up.

So you want the following topics from that forum :
- Those with only topic icon
- Those with new update icon

YES please Embarassed For you
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 Thu 12 Mar 2015, 17:48

@Ape,

See how this works :
Code:
<div id="SujetSpecial"></div>
<a id="sujetRef" href="#">Refresh</a>
<script type="text/javascript">// <![CDATA[
(function(){
  var list = document.getElementById('sujetSpecial'), ref = document.getElementById('sujetRef'), storage = window.localStorage;
 
  if (storage && storage.sujetSpec && storage.sujetSpecExp > +new Date - 9*59*1000) list.innerHTML = storage.sujetSpec;
  else sendReq();
 
  ref.onclick = function() {
    ref.style.opacity = 0.3;
    sendReq(function() { ref.style.opacity = 1 });
    return false;
  };
 
  function sendReq(cb) {
    list.innerHTML = 'Refreshing...';
    jQuery.get('/f28-', function(d){
      list.innerHTML = '';
      for (var a = jQuery('.dterm', d), i = 0, j = a.length; i<j; i++) if (/update10.png|only_t10.png/.test(a[i].style.backgroundImage)) list.appendChild(a[i].getElementsByTagName('A')[0]);
      cb && cb();
     
      if (storage) {
        storage.sujetSpec = list.innerHTML;
        storage.sujetSpecExp = +new Date;
      }
    });
  };
})();
// ]]></script>

Add it to a widget, and place it on the forum. Let me know if there's any problems or want to change something.. Smile
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 4032
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Sat 14 Mar 2015, 17:51

I added it but all i see is the refresh button
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 Sun 15 Mar 2015, 15:51

Oups, I made a mistake with the ID. I had the first letter in capital in the ID, but not in the script. Try now :
Code:
<div id="sujetSpecial"></div>
<a id="sujetRef" href="#">Refresh</a>
<script type="text/javascript">// <![CDATA[
(function(){
  var list = document.getElementById('sujetSpecial'), ref = document.getElementById('sujetRef'), storage = window.localStorage;
 
  if (storage && storage.sujetSpec && storage.sujetSpecExp > +new Date - 9*59*1000) list.innerHTML = storage.sujetSpec;
  else sendReq();
 
  ref.onclick = function() {
    ref.style.opacity = 0.3;
    sendReq(function() { ref.style.opacity = 1 });
    return false;
  };
 
  function sendReq(cb) {
    list.innerHTML = 'Refreshing...';
    jQuery.get('/f28-', function(d){
      list.innerHTML = '';
      for (var a = jQuery('.dterm', d), i = 0, j = a.length; i<j; i++) if (/update10.png|only_t10.png/.test(a[i].style.backgroundImage)) list.appendChild(a[i].getElementsByTagName('A')[0]);
      cb && cb();
   
      if (storage) {
        storage.sujetSpec = list.innerHTML;
        storage.sujetSpecExp = +new Date;
      }
    });
  };
})();
// ]]></script>

Dooh Face palm
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 4032
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Sun 15 Mar 2015, 16:52

yes that works now but the text for each one is all mixed up is there anyway i can have them so there on there own line

This is how it is now
only topic widget Captur35

I want it some thing like this

>> maximize the editor so it takes up the whole screen.
>> Theme Update
>> Hashtags # on your PostsTag members on your Posts.

reflect or maybe add in the place of the >> put an icon next to it like this
only topic widget 20120910
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 Sun 15 Mar 2015, 20:21

You can use a bit of CSS to do that. Add the following rule to your stylesheet :
Code:
#sujetSpecial a {
  display:block;
  background:url(/img.gif) no-repeat 0 50%;
  padding-left:0;
}

This'll display the links as block-level elements so they take up a whole line. For the icon, you can set it as a background image, then just use padding to add spacing to the left of the link so your icon is visible. I'd probably size that icon down a bit. Smile
Ape
Ape

Gender : Male
Age : 49
Posts : 136
Points : 4032
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

PostApe Mon 16 Mar 2015, 13:58

Yay lol it worked i had to play about with the codes a little to get it to look right and add a small icon but it works like a dream thank you XX
Sponsored content

PostSponsored content

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