Tutti gli orari sono UTC +2 ore [ ora legale ]




Apri un nuovo argomento Rispondi all’argomento  [ 9 messaggi ] 
  Stampa pagina

[Wordpress] Sk Latest Posts Widget
Autore Messaggio
MessaggioInviato: 29/08/2009, 17:52 
Amministratore
Avatar utente
Non connesso

Iscritto il: 02/06/2008, 12:32
Messaggi: 358
Crosspost da phpbb3 o altri forum.

Questo plugin crea un widget con gli ultimi post del tuo forum.
Per fare in modo che funzioni devi inserire un file nella cartella del tuo forum, questo file è facilmente configurabile in modo da prendere i post da una categoria specifica o da tutto il forum.
Questo plugin supporta istanze multiple così puoi mostrare gli argomenti da diversi forum o diverse categorie in più widget separati.


This plugins adds a widget with the latest posts from your forum.
To make it work you have to add a file on your forum directory wich is easily configurable to fetch the posts from a specific category or the whole forum.
This plugins supports multiple istances so you can display topics from different forums or categories in multiple widgets.


Download:
http://wordpress.org/extend/plugins/sk-latest-posts-widget/


Top
 Profilo E-mail  
 

Re: [Wordpress] Sk Latest Posts Widget
MessaggioInviato: 11/10/2009, 19:32 
Non connesso

Iscritto il: 11/10/2009, 19:30
Messaggi: 1
how can i integrate my forum with the blog like you have here?

i don't understand very well how to use this plugin


Top
 Profilo E-mail  
 

Re: [Wordpress] Sk Latest Posts Widget
MessaggioInviato: 11/10/2009, 19:43 
Amministratore
Avatar utente
Non connesso

Iscritto il: 02/06/2008, 12:32
Messaggi: 358
Just download the plugin from the link above, you'll find two php files.
One is the wordpress plugin, activate the plugin from the wordpress panel and place the widget as with any other widget in wordpress.

Put latest_posts.php where you installed the forum.
So if your forum is at www.yoursite.com/index.php the file will be at www.yoursite.com/latest_posts.php

From the widget configuration you can do all the rest, put
http:// www.yoursite.com/latest_posts.php where it says Latest posts file url: and you're done


Top
 Profilo E-mail  
 

Re: [Wordpress] Sk Latest Posts Widget
MessaggioInviato: 16/12/2009, 16:09 
Non connesso

Iscritto il: 16/12/2009, 15:59
Messaggi: 3
Hello and THANK you for this great plugin.

It seems to work nicely except one thing: it does NOT display correctly the non-latin utf-8 titles of the posts.

You can have a look at: http://gvrteam.gr/portal (I have placed the widget last on the right sidebar).

Our forums are in Greek, so many titles are written in Greek. Those titles are displayed messed up inside the widget!

I'd really appreciate instructions on how to fix it.

Thanks in advance!


Top
 Profilo E-mail  
 

Re: [Wordpress] Sk Latest Posts Widget
MessaggioInviato: 17/12/2009, 2:49 
Amministratore
Avatar utente
Non connesso

Iscritto il: 02/06/2008, 12:32
Messaggi: 358
OMG they're really messed up!
Thanks for letting me know and using my plugin, i did publish a quick fix for that as the former version died messing up all the site but as i can see is not enough.

You'll see a new version on your plugin admin panel as i publish the next version of the plugin, it will take a few days.

you'll have to change the latest-posts.php file on your forum as well, that part has to be done manually

bye


Top
 Profilo E-mail  
 

Re: [Wordpress] Sk Latest Posts Widget
MessaggioInviato: 17/12/2009, 3:21 
Non connesso

Iscritto il: 16/12/2009, 15:59
Messaggi: 3
Thank you very much for the quick answer and for your intension to fix the problem!

I will try the new version as soon as you release it and I will get back to you with more feedback (negative or positive :)

Best regards!


Top
 Profilo E-mail  
 

Re: [Wordpress] Sk Latest Posts Widget
MessaggioInviato: 18/12/2009, 19:02 
Amministratore
Avatar utente
Non connesso

Iscritto il: 02/06/2008, 12:32
Messaggi: 358
i'm affraid it's not easy as i hoped

this fix on the latest_posts.php file works on my website when i add some greek characters to post titles (utf 8)

Codice:
<?php
    
/*
        Here you just have to put your forum address in $urlPath
        
        If you're having trouble editing this file you can ask for support here:        
        http://forum.me2web.net/viewtopic.php?f=112&t=173
    
    */

    
    // ENG: Forum home url address (starting with http://)
    // ITA: Indirizzo della home del forum (deve iniziare con http://)
    
    //   es. http://forum.me2web.net
    
$urlPath 'http://forum.me2web.net';
 
    
/* Shouldn't have to edit below this */
    
    
    // Where your phpBB config.php file is located
    // Dove si trova il file config.php di phpbb3
    
include 'config.php';
    
    
    
    
$topicnumber = (isset($_GET['n']) && is_numeric($_GET['n']) && $_GET['n'] > 0)? ceil($_GET['n']) : 1;
    
$forumIds '';
    if(!empty(
$_GET['f'])){
        
$fids explode('-'$_GET['f']);
        
$i 0;
        foreach(
$fids as $fid){
            if(
is_numeric($fid) && $fid 0){
                
$forumIds .= ($i 0)? ' or ' '';
                
$forumIds .= 'f.forum_id = '.ceil($fid).' ';
                
$i++;                
            }
        }
        if(
$i 1$forumIds ' ( '.$forumIds.' ) ';
        if(
$i 0$forumIds .= ' AND ';
    }
    
 
    
$table_topics $table_prefix'topics';
    
$table_forums $table_prefix'forums';
    
$table_posts $table_prefix'posts';
    
$table_users $table_prefix'users';
    
$link mysql_connect($dbhost$dbuser$dbpasswd) or die();
    
mysql_select_db($dbname) or die();
 
    
$query "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username
    FROM $table_topics t, $table_forums f, $table_posts p, $table_users u
    WHERE t.topic_id = p.topic_id AND
    f.forum_id = t.forum_id AND 
    $forumIds 
    t.topic_status <> 2 AND
    p.post_id = t.topic_last_post_id AND
    p.poster_id = u.user_id
    ORDER BY p.post_id DESC LIMIT $topicnumber"
;
    
$result mysql_query($query) or die($query.mysql_error());    
                                
     
header'Content-Type: text/xml; charset=UTF-8' );

    echo 
'<?xml version="1.0" encoding="UTF-8" ?>
<xml>
        <topics>'
,"\n";     
    while (
$row mysql_fetch_array($resultMYSQL_ASSOC)) {    
    echo  
'<topic>'."\n".'<url><![CDATA[',$urlPath,'/viewtopic.php?f=',$row['forum_id'],'&t=',$row['topic_id'],'&p=',$row['post_id'],'#p',$row['post_id'],']]></url>',"\n",
          
'<title><![CDATA[',htmlentities($row['topic_title']),']]></title>',"\n",
          
'<profile><![CDATA['$urlPath,'/memberlist.php?mode=viewprofile&u=',$row['user_id'],"]]></profile>\n",
          
'<author><![CDATA[',$row['username'],']]></author>',"\n",
          
'<date>',date('F j, Y, g:i a'$row['post_time']),"</date>\n</topic>";
    }
    echo 
"</topics>
    </xml>"
;
    
mysql_free_result($result);
    
mysql_close($link);
?>


but i can't be sure it will work on your site as well

i'm leaving for the holydays so i'm sorry but i won't be able to work on it for a couple of weeks, anyway i see it's fine now on your website so maybe you found another plugin.
If so, please link it here for others might have the same problem (also i could have a look at it)


Top
 Profilo E-mail  
 

Re: [Wordpress] Sk Latest Posts Widget
MessaggioInviato: 19/12/2009, 16:14 
Non connesso

Iscritto il: 16/12/2009, 15:59
Messaggi: 3
Thank you so much for your effort, I really appreciate it!

I have indeed found another plugin which seems to work ok, the one you already saw on the site. It is called: WP-Recent-phpBB (click the link).

It provides a lot of predefined template tags so you can customize it completely. In the downsize, you have to enter the db login info in every instance of the widget.

Happy holidays :)


Top
 Profilo E-mail  
 

Re: [Wordpress] Sk Latest Posts Widget
MessaggioInviato: 19/12/2009, 23:18 
Amministratore
Avatar utente
Non connesso

Iscritto il: 02/06/2008, 12:32
Messaggi: 358
good to know :-)

Sadly the target of my plugin as what gives trouble is the main difference between the two.
In other words the fact that mine use xml to transfer data when your forum is in another domain or you can't access the forum database from a wordpress plugin.

Happy holidays :)


Top
 Profilo E-mail  
 

Visualizza ultimi messaggi:  Ordina per  
Apri un nuovo argomento Rispondi all’argomento  [ 9 messaggi ] 

Tutti gli orari sono UTC +2 ore [ ora legale ]


Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite


Non puoi aprire nuovi argomenti
Non puoi rispondere negli argomenti
Non puoi modificare i tuoi messaggi
Non puoi cancellare i tuoi messaggi
Non puoi inviare allegati

Cerca per:
Vai a:  
cron
Style by phpBB3 skins, witaminy witaminy zdrowie
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Traduzione Italiana phpBB.it