Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 27

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 04.04.2007, 18:06   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2007
Posts: 3
itanic80 is on a distinguished road
Flame Nome e Cognome contro la privacy

Ciao a tutti.
Ho realizzato una propria community con joomla ultima 1.0.12 e Community Builder, ultima release stabile.

Purtroppo, mi ritrovo con il problema come descritto nel titolo di questo post.
In pratica, in home page, nei blog, nel componente DatsoGallery (non so se lo conoscete), come autore, al posto dello username mi da Nome e Cognome.

Questo purtroppo è un grosso problema, per via della legge sulla privacy.
Ho provato la soluzione postata in un vecchio post su questo forum, e precisamente questo:

Quote:
mambers.com/showthread-t_32705-highlight_nome.html
ma il problema è che in home page, si risolve, mentre quando clicco su Leggi tutto... e vado all'interno della notizia, o del blog, mi da cmq nome e cognome dell'autore.

Lo stesso dicasi con il componente akoComment:
Se utilizzo mambo blog per i blog, e clicco sul titolo di un blog, mi riporta all'interno del blog con lo username dell'autore.
Mentre se clicco su Vedi/Aggiungi commenti, mi riporta si all'interno del blog, ma visualizza nome e cognome dell'autore.

Tutto questo mi sta facendo impazzire, chi sarebbe così gentile da aiutarmi?
grazie.
itanic80 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05.04.2007, 17:08   #2 (permalink)
Baby Mamber
 
Join Date: Apr 2007
Posts: 3
itanic80 is on a distinguished road
Talking RISOLTO: Nome e Cognome contro la privacy



Ho risolto da solo il problema circa Joomla che mette il Nome e Cognome al posto dello username in tutte le sezioni che fanno parte del com_content di Joomla, ad esempio: Notizie, FAQ, BLOG ed altri.

Posto con piacere la soluzione se possa servire a qualcuno:

Percorso dei file da modificare:

ROOT/COMPONENTS/COM_CONTENT

1° File da modificare: content.php

Modifica da effettuare:

Inserire in tutte le query u.username AS username come nell'esempio qui riportato:

Riga 201 del file content.php :

da:

Code:
// query records
$query = "SELECT a.id, a.title, a.title_alias, a.introtext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by,"
	. "\n a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.urls, a.ordering, a.metakey, a.metadesc, a.access, a.hits,"
	. "\n CHAR_LENGTH( a.fulltext ) AS readmore, u.name AS author,  u.usertype, s.name AS section, cc.name AS category, g.name AS groups"
a:

Code:
// query records
$query = "SELECT a.id, a.title, a.title_alias, a.introtext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by,"
	. "\n a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.urls, a.ordering, a.metakey, a.metadesc, a.access, a.hits,"
	. "\n CHAR_LENGTH( a.fulltext ) AS readmore, u.name AS author, u.username AS username, u.usertype, s.name AS section, cc.name AS category, g.name AS groups"
e così da fare per tutte le query del file dove c'è: u.name AS author

2° File da modificare: content.html.php

Riga: 321 del file content.html.php :

da:

Code:
<?php echo $row->created_by_alias ? $row->created_by_alias : $row->author; ?>
a:

Code:
<?php echo $row->created_by_alias ? $row->created_by_alias : $row->username; ?>
Riga: 655 del file content.html.php :

da:

Code:
$author		= $row->created_by_alias ? $row->created_by_alias : $row->author;
a:

Code:
$author		= $row->created_by_alias ? $row->created_by_alias : $row->username;
Riga: 794 del file content.html.php :

da:

Code:
<?php echo _WRITTEN_BY . ' '.( $row->created_by_alias ? $row->created_by_alias : $row->author ); ?>
a:

Code:
<?php echo _WRITTEN_BY; ?> <a href="<?php echo sefRelToAbs( "index.php?option=$option&amp;Itemid=$Itemid&amp;task=show&amp;action=user&amp;id=$blog->created_by" ); ?>"><?php echo $row->username; ?></a>
Spero che questo possa essere di aiuto.
itanic80 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.04.2007, 08:14   #3 (permalink)
Elite Mamber
 
theprincy's Avatar
 
Join Date: Apr 2004
Location: Paestum (SA) ITALY
Posts: 2,326
theprincy will become famous soon enough
Send a message via ICQ to theprincy Send a message via MSN to theprincy
Default Riferimento: Nome e Cognome contro la privacy

ottimo lavoro
__________________
Supporto Vendita Computer, Web Graphic, Realizzazioni e Assistenza Software www.powerpcweb.it - Mamboserver -- www.revhost.eu
theprincy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.04.2007, 13:30   #4 (permalink)
Baby Mamber
 
Join Date: Apr 2007
Posts: 3
itanic80 is on a distinguished road
Talking Riferimento: Nome e Cognome contro la privacy

Grazie mille...
però posto un'altra soluzione riguardante DatsoGallery 1.3.8
per chi lo usa si sarà accorto che quando vengono visualizzate le foto nei dettagli, in pratica nella sezione dove si possono votare e commentare le foto, nei commenti appare il Nome e Cognome dell'utente che mette il commento.

Bene, ho risolto anche questo problema, e quindi posto la soluzione:

Root del sito/components/com_datsogallery

File da modificare: sub_viewdetails.php

Riga: da 335 a 338

da:
Quote:
$database->setQuery("select username from #__users where name='$my->username'");
$ubn = $database->loadObjectList();
echo "<tr class='sectiontableentry" . $linecolor . "'><td width='30%' valign='top'><strong>" . $ubn[0]->name . "</strong>
<input type='hidden' name='cmtname' value='".$ubn[0]->name."' />";
a:
Quote:
$database->setQuery("select username from #__users where username='$my->username'");
$ubn = $database->loadObjectList();
echo "<tr class='sectiontableentry" . $linecolor . "'><td width='30%' valign='top'><strong>" . $ubn[0]->username . "</strong>
<input type='hidden' name='cmtname' value='".$ubn[0]->username."' />";
ciao
itanic80 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problemi con informativa su privacy P3P Chatlatina Problematiche generali 1 15.12.2005 16:39
Accesso con nome anzichè username gian65 Problematiche generali 0 21.06.2005 18:10
ako comment, come sostituire gli user name con il nome Daby2k Componenti 0 12.04.2005 11:05
Open Letter to Arthur Konze:: Privacy Guarantee leolam Community Smalltalk 13 10.12.2004 14:42
Lycos in Privacy Protection versus Privacy Release Law-Suit leolam Community Smalltalk 1 09.12.2004 22:36


All times are GMT +2. The time now is 06:43.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.