Coding-Spot

You are not connected. Please login or register

 
 

How to make customize widget like event and contest?

Message (Page 1 of 1)


 
Senior Member

Posted on Sun Jun 02, 2013 4:09 pm

 
Hello all, i want to ask :)

How to make customize widget like event and contest?
more details similar like this :)

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 ^_^



View user profile



 
Advance Member

Posted on Mon Jun 03, 2013 12:54 am

 
I'm pretty sure that is from LGForum.



View user profile



 
Administrator
Administrator

Posted on Mon Jun 03, 2013 4:13 am

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



View user profile http://coding-spot.darkbb.com



 
Senior Member

Posted on Mon Jun 03, 2013 4:34 am

 
ok mr.mark, i done check and try ,

but how to remove for title "multiple news widget"?
more details like this :


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]



View user profile



 
Administrator
Administrator

Posted on Mon Jun 03, 2013 4:47 am

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



View user profile http://coding-spot.darkbb.com



 
Senior Member

Posted on Mon Jun 03, 2013 5:47 am

 

*
THANKED

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



View user profile



 
Administrator
Administrator

Posted on Mon Jun 03, 2013 5:52 am

 

*
THANKED

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



View user profile http://coding-spot.darkbb.com


#8

Sponsored content


 

Posted Today at 11:49 am

 





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