Bun venit pe Forumul Andrei

Daca vezi aceasta pagina inseamna ca nu ai cont sau nu esti logat.
Daca doresti doar sa vizualizezi forumul poti apasa pe "x-ul" din dreapta si acesta imagine nu va mai fi afisata.

Pentru o vizualizare cat mai buna a acestui forum recomandam
8
Va uram o zi buna in continuare si o navigare cat mai placuta pe acest forum !


   
AcasaSustineFAQInregistrareConectareCautareCalendar
Twitter



Recent post

Navigare :: Scripturi si tutoriale :: Scripturi
AutorMesaj
 nick
avatar
Rang: Administrator


MesajSubiect: Recent post Mar Dec 01, 2009 11:57 pm  
Cod:
<HTML>
<BODY>
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAA7eIzy-nhw15oRi1VFsPIaBQLfwdOeVqlPYn2aeR7PenOUsSEWxRHyJa-h_PHhev828-oDCX0Sqjv1Q"></script>
    <script type="text/javascript">
 
    google.load("feeds", "1");
 
    function initialize() {
      var feed = new google.feeds.Feed("http://www.digg.com/rss/index.xml");
      feed.load(function(result) {
        if (!result.error) {
          var container = document.getElementById("feed");
          for (var i = 0; i < result.feed.entries.length; i++) {
            var entry = result.feed.entries[i];
            var div = document.createElement("div");
            div.appendChild(document.createTextNode(entry.title));
            container.appendChild(div);
          }
        }
      });
    }
    google.setOnLoadCallback(initialize);
 
    </script>

<script type="text/javascript" src="http://googleajaxfeed3_files/rssdisplayer.js"></script>
<script>
google.load("feeds", "1") //Load Google Ajax Feed API (version 1)

function rssdisplayer(divid, url, feedlimit, showoptions){
this.showoptions=showoptions || "" //get string of options to show ("date" and/or "description")
var feedpointer=new google.feeds.Feed(url) //create new instance of Google Ajax Feed API
feedpointer.setNumEntries(feedlimit) //set number of items to display
document.write('<div id="'+divid+'">Loading feed...</div>')
this.feedcontainer=document.getElementById(divid)
var displayer=this
feedpointer.load(function(r){displayer.formatoutput(r)}) //call Feed.load() to retrieve and output RSS feed
}


rssdisplayer.prototype.formatdate=function(datestr){
var itemdate=new Date(datestr)
return "<span style='color:gray; font-size: 90%'>"+itemdate.toLocaleString()+"</span>"
}


rssdisplayer.prototype.formatoutput=function(result){
if (!result.error){ //if RSS feed successfully fetched
var thefeeds=result.feed.entries //get all feed entries as a JSON array
var rssoutput="<ul>"
for (var i=0; i<thefeeds.length; i++){ //loop through entries
var itemtitle="<a href=\"" + thefeeds[i].link + "\">" + thefeeds[i].title + "</a>"
var itemdate=/date/i.test(this.showoptions)? this.formatdate(thefeeds[i].publishedDate) : ""
var itemdescription=/description/i.test(this.showoptions)? "<br />"+thefeeds[i].content : /snippet/i.test(this.showoptions)? "<br />"+thefeeds[i].contentSnippet  : ""
rssoutput+="<li>" + itemtitle + " " + itemdate + itemdescription + "</li>"
}
rssoutput+="</ul>"
this.feedcontainer.innerHTML=rssoutput
}
else //else, output error
alert("Error fetching feeds: "+result.error.message)
}

//USAGE SYNTAX: new rssdisplayer("divid", "rssurl", numberofitems, "displayoptions")
//new rssdisplayer("adiv", "http://www.cssdrive.com/index.php/news/rss_2.0/", 5, "date, description")</script>

<style type="text/css">
#msndiv{
width: 90%;
}

#msndiv li{
clear: both;
margin-bottom: 1em;
}
</style>
</head>

<body>
Recent Posts:
<div id="cssdrive">   <p><!--webbot bot="HTMLMarkup" startspan --><script type="text/javascript">

//USAGE SYNTAX: new rssdisplayer("divid", "rssurl", numberofitems, "displayoptions")
new rssdisplayer("cssdrive", "http://numele forumului/site-ului tau/feed/", 10, "date")

</script></p></div>
</body>
</html>

Inlocuieste "numele forumului/site-ului tau"
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Mier Mai 12, 2010 10:58 am  
Nu prea inteleg , unde anume sunt afisate posturile recente ?
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Mier Mai 12, 2010 9:30 pm  
De exepmplu eu am folosit mesajele recente atat pe prima pagina

, cat si in paginile html
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Mier Mai 12, 2010 10:03 pm  
Si cum fac pagina html ? Fac o noua pagina html si introduc codu de mai sus ?
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Mier Mai 12, 2010 11:25 pm  
Daca vei face asa vor aparea doar ultimile mesaje in acea pagina html.
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 12:17 am  
Pai , in imaginea de mai sus vad ca in Html apare mai multe postari recente ca in Mesaj pe prima pagina.
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Joi Mai 13, 2010 12:21 am  
In cod poti vedea urmatorul cod
Citat :
("cssdrive", "http://numele forumului/site-ului tau/feed/", 10, "date")
Setezi numarul care vrei sa-ti fie afisat ca ultimele mesaje.
In cod vezi ca sunt setate un numar de 10 mesaje
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 12:48 am  
Inlocuieste "numele forumului/site-ului tau"[/quote]

Adica ? Nu ii dau de cap ...imi zice ca nu imi gaseste feed-ul
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Joi Mai 13, 2010 1:35 am  
Conform forumului postat la profil codul pentru Feed este urmatorul:
Cod:
<HTML>
<BODY>
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAA7eIzy-nhw15oRi1VFsPIaBQLfwdOeVqlPYn2aeR7PenOUsSEWxRHyJa-h_PHhev828-oDCX0Sqjv1Q"></script>
    <script type="text/javascript">
 
    google.load("feeds", "1");
 
    function initialize() {
      var feed = new google.feeds.Feed("http://www.digg.com/rss/index.xml");
      feed.load(function(result) {
        if (!result.error) {
          var container = document.getElementById("feed");
          for (var i = 0; i < result.feed.entries.length; i++) {
            var entry = result.feed.entries[i];
            var div = document.createElement("div");
            div.appendChild(document.createTextNode(entry.title));
            container.appendChild(div);
          }
        }
      });
    }
    google.setOnLoadCallback(initialize);
 
    </script>

<script type="text/javascript" src="http://googleajaxfeed3_files/rssdisplayer.js"></script>
<script>
google.load("feeds", "1") //Load Google Ajax Feed API (version 1)

function rssdisplayer(divid, url, feedlimit, showoptions){
this.showoptions=showoptions || "" //get string of options to show ("date" and/or "description")
var feedpointer=new google.feeds.Feed(url) //create new instance of Google Ajax Feed API
feedpointer.setNumEntries(feedlimit) //set number of items to display
document.write('<div id="'+divid+'">Loading feed...</div>')
this.feedcontainer=document.getElementById(divid)
var displayer=this
feedpointer.load(function(r){displayer.formatoutput(r)}) //call Feed.load() to retrieve and output RSS feed
}


rssdisplayer.prototype.formatdate=function(datestr){
var itemdate=new Date(datestr)
return "<span style='color:gray; font-size: 90%'>"+itemdate.toLocaleString()+"</span>"
}


rssdisplayer.prototype.formatoutput=function(result){
if (!result.error){ //if RSS feed successfully fetched
var thefeeds=result.feed.entries //get all feed entries as a JSON array
var rssoutput="<ul>"
for (var i=0; i<thefeeds.length; i++){ //loop through entries
var itemtitle="<a href=\"" + thefeeds[i].link + "\">" + thefeeds[i].title + "</a>"
var itemdate=/date/i.test(this.showoptions)? this.formatdate(thefeeds[i].publishedDate) : ""
var itemdescription=/description/i.test(this.showoptions)? "<br />"+thefeeds[i].content : /snippet/i.test(this.showoptions)? "<br />"+thefeeds[i].contentSnippet  : ""
rssoutput+="<li>" + itemtitle + " " + itemdate + itemdescription + "</li>"
}
rssoutput+="</ul>"
this.feedcontainer.innerHTML=rssoutput
}
else //else, output error
alert("Error fetching feeds: "+result.error.message)
}

//USAGE SYNTAX: new rssdisplayer("divid", "rssurl", numberofitems, "displayoptions")
//new rssdisplayer("adiv", "http://www.cssdrive.com/index.php/news/rss_2.0/", 5, "date, description")</script>

<style type="text/css">
#msndiv{
width: 90%;
}

#msndiv li{
clear: both;
margin-bottom: 1em;
}
</style>
</head>

<body>
Recent Posts:
<div id="cssdrive">  <p><!--webbot bot="HTMLMarkup" startspan --><script type="text/javascript">

//USAGE SYNTAX: new rssdisplayer("divid", "rssurl", numberofitems, "displayoptions")
new rssdisplayer("cssdrive", "http://www.mamicionline.com/feed", 10, "date")

</script></p></div>
</body>
</html>
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 1:52 am  
A mers , dar e prea simplu tongue

Si vreau sa imi apara asa. si in plus alea nu sunt ultimele 5 posturi , daca te uiti la data...sunt cu mult in urma posturile nu sunt ultimele 5 postari recente tongue

 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Joi Mai 13, 2010 2:03 am  
Dupa ultimul cod "horoscop" pune <br>
iar codul de la ultimele mesaje centreazal.
[quote]<center>continutul codului</center>[/quote]
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 2:09 am  
Gata , am rezolvat dar postarile sunt vechi , de ce ? ca doar s-a raspuns recent la alte topicuri
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Joi Mai 13, 2010 2:18 am  
Sunt actualizate ultimele topicuri nu mesaje din topicuri
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 2:20 am  
aaaaaaaaa , bine atunci.

Si daca vreau sa scrie cu alta culoare unde anume scriu fontul ?
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 3:02 am  
Inca o intrebare , vreau sa arata arate asa.

 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:19 am  
Ai un cod care blocheaza aparitia butoanelor.Mai jos ai un demo pentru codul postat de mine mai sus


[Trebuie sa fiti inscris si conectat pentru a vedea acest link]
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:21 am  
Pai , care e codu acela frate ?

Apropo , nici acuma nu sa actualizat recetele topicuri
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:24 am  
[Trebuie sa fiti inscris si conectat pentru a vedea acest link]
Vezi ca in demo ai mai multe linkuri ale topicurilor.Eu vad ca sunt actualizate
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:28 am  
Tot nu s-au afisat topicurile cu SEX pe care le-am facut straight face
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:34 am  
Daca nu este un forum / categorie deschis/a fluxurile Rss nu sunt functionale.Topicurile vor fi deschise vizitatorilor pentru ca acele fluxuri sa fie afisate
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:36 am  
Aaaaaaaaaa , de la asta e buba straight face si atunci ce fac trebuie sa le dau acces vizitatorilor la toate forumurile.

Si la problemele de mai sus ai incercat? merge ce vreau eu ?
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:38 am  
Da trebuie sa dai acces vizitatorilor.
Nu am avut timp sa m-a uit la cealalta problema legata de culori.O sa m-a uit si revin cu un nou post
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:40 am  
Sa nu uiti si de acel print cu punctele acelea in dreptul lor sa fie una sub alta. adica sti tu..
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Joi Mai 13, 2010 11:52 am  
Bre , tu lasa mesaje ca ma uit eu maine dimineatza ce fac.

Noapte buna.

Apropo , tot nu s-a actualizat topicurile laughing)))
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Vin Mai 14, 2010 8:30 am  
Nici un raspuns ? straight face
 nick
avatar
Rang: Administrator


MesajSubiect: Re: Recent post Vin Mai 14, 2010 11:24 am  
Eu am vazut ca se actualizeaza.
Culoare linkurile este data de culoarea setata pentru linkuri din pagina de administrare.
Pentru alinierea linkurilor foloseste urmatorul cod in locul celui postat mai sus , la fel le pui dupa codul folosit pentru horoscop

Cod:
<br>

<span style="float: left; margin-left:250px; display: block;">
  <strong><font color="black"><b><img border="0"src="http://i93.servimg.com/u/f93/12/63/64/97/sageat10.gif">Recent post:</b></font></strong><br>
  <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAA7eIzy-nhw15oRi1VFsPIaBQLfwdOeVqlPYn2aeR7PenOUsSEWxRHyJa-h_PHhev828-oDCX0Sqjv1Q"></script>
    <script type="text/javascript">
 
    google.load("feeds", "1");
 
    function initialize() {
      var feed = new google.feeds.Feed("http://www.digg.com/rss/index.xml");
      feed.load(function(result) {
        if (!result.error) {
          var container = document.getElementById("feed");
          for (var i = 0; i < result.feed.entries.length; i++) {
            var entry = result.feed.entries[i];
            var div = document.createElement("div");
            div.appendChild(document.createTextNode(entry.title));
            container.appendChild(div);
          }
        }
      });
    }
    google.setOnLoadCallback(initialize);
 
    </script>

<script type="text/javascript" src="http://googleajaxfeed3_files/rssdisplayer.js"></script>
<script>
google.load("feeds", "1") //Load Google Ajax Feed API (version 1)

function rssdisplayer(divid, url, feedlimit, showoptions){
this.showoptions=showoptions || "" //get string of options to show ("date" and/or "description")
var feedpointer=new google.feeds.Feed(url) //create new instance of Google Ajax Feed API
feedpointer.setNumEntries(feedlimit) //set number of items to display
document.write('<div id="'+divid+'">Loading feed...</div>')
this.feedcontainer=document.getElementById(divid)
var displayer=this
feedpointer.load(function(r){displayer.formatoutput(r)}) //call Feed.load() to retrieve and output RSS feed
}


rssdisplayer.prototype.formatdate=function(datestr){
var itemdate=new Date(datestr)
return "<span style='color:gray; font-size: 90%'>"+itemdate.toLocaleString()+"</span>"
}


rssdisplayer.prototype.formatoutput=function(result){
if (!result.error){ //if RSS feed successfully fetched
var thefeeds=result.feed.entries //get all feed entries as a JSON array
var rssoutput="<ul>"
for (var i=0; i<thefeeds.length; i++){ //loop through entries
var itemtitle="<a href=\"" + thefeeds[i].link + "\">" + thefeeds[i].title + "</a>"
var itemdate=/date/i.test(this.showoptions)? this.formatdate(thefeeds[i].publishedDate) : ""
var itemdescription=/description/i.test(this.showoptions)? "<br />"+thefeeds[i].content : /snippet/i.test(this.showoptions)? "<br />"+thefeeds[i].contentSnippet  : ""
rssoutput+="<li>" + itemtitle + " " + itemdate + itemdescription + "</li>"
}
rssoutput+="</ul>"
this.feedcontainer.innerHTML=rssoutput
}
else //else, output error
alert("Error fetching feeds: "+result.error.message)
}

//USAGE SYNTAX: new rssdisplayer("divid", "rssurl", numberofitems, "displayoptions")
//new rssdisplayer("adiv", "http://www.cssdrive.com/index.php/news/rss_2.0/", 5, "date, description")</script>

<style type="text/css">
#msndiv{
width: 90%;
}

#msndiv li{
clear: both;
margin-bottom: 1em;
}
</style>
</head>

<body><div id="cssdrive">  <p><!--webbot bot="HTMLMarkup" startspan --><script type="text/javascript">

//USAGE SYNTAX: new rssdisplayer("divid", "rssurl", numberofitems, "displayoptions")
new rssdisplayer("cssdrive", "http://www.mamicionline.com/feed/", 6, "date")

</script>

</p></div>
</span><br style="clear: both;"><div class="mes-txt"><font style="font-family: Verdana;" size="2"><span style="color: Red;"><br></span><span style="color: Red;"></span></font><span style="color: Red;">

</span>
</div></div>
 ValenTinBr
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Vin Mai 14, 2010 11:44 am  
Nu sa sublianiat , lasa asa cum este. tongue

Astept urmatoarele coduri alte tale sa le incerc
 George130
avatar
Rang: Prieten

Respetarea regulilor 100%

MesajSubiect: Re: Recent post Vin Oct 29, 2010 11:36 am  
Bravo nick la mine merge.
 Continut sponsorizat
Rang:


MesajSubiect: Re: Recent post  

*Scrie romaneste
*Sterg mesajele inutile sau scrise cu CAPS
*Nu fa spam
*Linkurile relevante în context sunt binevenite.

Transferul se face din contul dumnevoastra de Paypal




Copyright © 2008-2014 Forumul Andrei. Toate drepturile rezervate. Termeni si conditii
Aspect creat si codat de Alexandru Miron & Nick

.