Coding-Spot

You are not connected. Please login or register

 
 
 

How to make customize widget like event and contest?

Message (Page 1 of 1)

#1

weeknight

weeknight
 
Senior Member

Posted June 2nd 2013, 11:09 pm

 
Hello all, i want to ask :)

How to make customize widget like event and contest?
more details similar like this :)
How to make customize widget like event and contest? TwVCbK3
http://animeph.4umer.com/forum

please help me, i need be like this,
maybe i can make with title hot thread
with other topic. :D

thanks before ^_^





#2

xKillerZone31

xKillerZone31
 
Advance Member

Posted June 3rd 2013, 7:54 am

 
I'm pretty sure that is from LGForum.





#3

Mark

Mark
 
Administrator
Administrator

Posted June 3rd 2013, 11:13 am

 
I know LG provided the code already on Avacweb. Check it. Wink



https://coding-spot.darkbb.com


#4

weeknight

weeknight
 
Senior Member

Posted June 3rd 2013, 11:34 am

 
ok mr.mark, i done check and try ,

but how to remove for title "multiple news widget"?
more details like this :
How to make customize widget like event and contest? ChpK5WF

this code for JS

Code:
$(function(){
              ('Create Multiple News Widgets for Forumotion. Copyright (c) AvacWeb 2013. No distribution without consent. No use or modification without this entire copyright notice in the original or modified script.');
           
              var forums = [11,15]; //
              var limit = 2; //
           
              var text = function(cont, tag) {
                  tag = cont.getElementsByTagName(tag)[0];
                  return (tag && tag.firstChild && tag.firstChild.nodeValue) || '';
              };
              for(var j = 0, f; (f = forums[j++]); ) {
                  var holder = document.getElementById('LGnews_' + f);
                  if(!holder) continue;
                  $.get('/feed/?f=' + f, function(xml) {
                    var forum_title = text(xml, 'title'), forum_desc = text(xml, 'description'), topics = xml.getElementsByTagName('item'), i = 0, t = null;
                 
                    var html = '<div class="inner_news"><div class="news_title" onmouseover="$(this.nextSibling).show()" onmouseout="$(this.nextSibling).hide()">' + forum_title + '</div>';
                    html += '<div class="news_desc" style="display:none">' + forum_desc + '</div><div class="news_topics">';
                 
                    for(; (t = topics[i++]); ) {
                        var topic_title = text(t, 'title'), preview = text(t, 'description'), link = text(t, 'link'), time = text(t, 'pubDate');
                        var author = t.getElementsByTagName('guid')[0].nextSibling.firstChild.nodeValue;
                        html += '<div class="news_topic"><a href="' + link + '" class="news_topic_title" onmouseover="$(this.nextSibling).show()" onmouseout="$(this.nextSibling).hide()">' + topic_title + '</a>';
                        html += '<div class="news_topic_desc" style="display:none">' + preview + '</div><span class="news_topic_author">' + author + '</span><span class="news_topic_time">' + time + '</span></div>';
                        if(i >= limit) break;
                    }
                    holder.innerHTML = html + '</div></div>';
                  });
              };
            });

http://budokai.indonesianforum.net/
please help me mr.mark, thanks before ^_^[/img]





#5

Mark

Mark
 
Administrator
Administrator

Posted June 3rd 2013, 11:47 am

 
Add to your CSS:
Code:
.LGnews .news_title {
display: none;
}



https://coding-spot.darkbb.com


#6

weeknight

weeknight
 
Senior Member

Posted June 3rd 2013, 12:47 pm

 

*
THANKED

thanks mr.mark, that code its work , problem solved ^_^





#7

Mark

Mark
 
Administrator
Administrator

Posted June 3rd 2013, 12:52 pm

 

*
THANKED

Since the problem is now solved i will locked this and move to archive section. ~Locked and Moved Happy



https://coding-spot.darkbb.com


#8

Sponsored content


 

Posted

 





Message (Page 1 of 1)

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

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None