51
jensclas
Re: Spotlight view on Xoops.org

Hi

Quote:
Is there someone to help a french newbie



A couple of suggestions. First community support sites are a good place to start. Here is the Franch one. These can be accessed under the community menu here at xoops.org

Second there are a couple of internet sites that allow you to translate text online. Not sure what they are all called but a search here and on Google should find them for you. however, like all translators, you need to proof read the results for meaning very carefully!

Good luck! I watch this thread with interest.

52
davidl2
Re: Spotlight view on Xoops.org
  • 2006/2/9 17:57

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


hhttp://babelfish.altavista.com is one of my favourites

(Mainly because of the Hitchhikers Guide To The Galaxy connection )

53
sidgboy
Re: Spotlight view on Xoops.org
  • 2006/2/10 11:45

  • sidgboy

  • Just popping in

  • Posts: 3

  • Since: 2006/2/8 2


The problem is not really in the translation... I can translate english to french.
The real problem is that I want to put the real name of the author instead of his nickname, and I can't enter to the general settings of xmspotlight.
I post here because I thought that the author of this module could help me.

54
iHackCode
Re: Spotlight view on Xoops.org

I think to make it show real name instead of user name you gotta

Change (File: blocks/xmspotlight_block_news.php)
$news['poster'] = xoops_getLinkedUnameFromId(intval($article->uid()));


To:
$news['poster'] = xoops_getLinkedUnameFromId(intval($article->uid(),true));


But im not sure.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

55
sidgboy
Re: Spotlight view on Xoops.org
  • 2006/2/10 20:14

  • sidgboy

  • Just popping in

  • Posts: 3

  • Since: 2006/2/8 2


Thanks for your help but it doesn't work.
I found a way to have what I wanted, here is the code to replace instead :
$news['poster'] = $article->uname();
                 if ( 
$news['poster'] ) {
                       
$news['posterid'] = $article->uid();
                        
$news['poster'] = '.XOOPS_URL.'/userinfo.php?uid='.$news['posterid'].'">'.$news['poster'].'';
                    } else {
                         
$news['poster'] = '';
                         
$news['posterid'] = 0;
                           if(
getmoduleoption('displayname')!=3) {
                        
$news['poster'] = $xoopsConfig['anonymous'];
    }
}


I just compared the news module and xmspotlight.


56
iHackCode
Re: Spotlight view on Xoops.org

nice job.

lol , i think i may have posted how to show authors name for XOOPS 2.2.x.. and i dont even have a copy of that anywhere.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

57
Athamus
Re: Spotlight view on Xoops.org
  • 2006/2/27 20:44

  • Athamus

  • Just popping in

  • Posts: 17

  • Since: 2005/12/25


Thank you for the date code.

?? i have the time at the end. "Test (2006/2/23 16:30:00)"

How can i remove that and just have the date?

58
iHackCode
Re: Spotlight view on Xoops.org

What Date Code Are You Using.? im using

$dateformat = "M/d/Y"; // Feb/28/2006

PHP: date - Manual
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

59
Athamus
Re: Spotlight view on Xoops.org
  • 2006/3/6 19:01

  • Athamus

  • Just popping in

  • Posts: 17

  • Since: 2005/12/25


the date format is

$dateformat = "D, d/M/Y";

saved and updated the mod and still have the following

(2006/3/6 13:11:30)

everything else looks good. i have double check the other line items from the htm and the php and i'm kinda at a loss right now

thx for the help

60
iHackCode
Re: Spotlight view on Xoops.org

yea that is weird.
what about changing
$dateformat = "D, d/M/Y";

to something like

$xmspotdateformat = "D, d/M/Y";

and use that new variable like $xmspotdateformat to see if it is caused by another script changing the $dateformat variable?
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

Login

Who's Online

346 user(s) are online (277 user(s) are browsing Support Forums)


Members: 0


Guests: 346


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits