Mini Twitter
Le service de présence peut aussi être complémenté par un service de micro-blogin en circuit fermé.
Syntaxe sur Twitter
RT @name : retour au sujet d'un article (citation)
DM @name :direct messaging to a follower
@name : répondre à un article
<message> @name : (j'ai rien compris)
Mini Twitter (en alpha et à surveiller de près).
Voir sur sourceforge. Logiciel écrit par Francisco Gálvez Prada (bioscriptsdb.com)
Installation sur SME7
Télécharger
mkdir /opt/minitwitter cd /opt/minitwitter wget http://internap.dl.sourceforge.net/sourceforge/minitt/pre-alfa.0.05.zip unzip pre-alfa.0.05.zip cd install unzip minitwitter2.sql.zip
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
touch/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/97mytwitter
Créer une base de données mysql
mysql -e "create database mytwitter;" mysql -e "grant select, insert, update, delete, create, drop, index, alter onmytwitter.* to 'mytwitter'@'localhost' identified by 'yourpassword';mysql -e "flush privileges;"mytwitter < /opt/minitwitter/install/minitwitter2.sql"
mysql -e "
Éditer /opt/minitwitter/inc/config.php pour l'accès à la BD
Éditer les paramètres pour Apache, compiler et redémarrer:
nano /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/97mytwitter
Alias /twitter /opt/minitwitter
<Directory /opt/minitwitter >
AddType application/x-httpd-php .php .php3 .phtml
AddType text/xml .xml
AllowOverride None
order allow,deny
allow from all
</Directory>
Sauvegarder le fichier, puis:
expand-template /etc/httpd/conf/httpd.conf httpd -t sv t /service/httpd-e-smith
C'est terminé, alors on va à l'adresse:
Micro-blog privé
2 modifs sont requises pour rendre ce micro-blog privé
/inc/login.php
Près de la ligne 415: mettre la ligne en remarques
<!-- input type="checkbox" name="registro" value="registro"> New user? -->
Ensuite, éditer index.php en cherchant le texte "//Uncomment this line to hide global timeline" à 2 endroits:
vers les lignes 533 et 788.
/index.php
//Uncomment this line to hide global timeline
if($logged_in){
##############################################and down like this
<?php
#############################################
//Uncomment this line to hide global timeline
}else{
//echo "<h3>Oops, sorry, but this timeline is private!</h3>";
}
}
?>