1
thgirblam
XCGallery Hack To Hide User
  • 2007/4/18 2:06

  • thgirblam

  • Just popping in

  • Posts: 32

  • Since: 2004/8/14


I run a XOOPS Photoshop Contest site using XCGallery 1.1 for the contests. I would like to hide the Submitted By information untill the contest is over but only for the current contest album if possible. Is anyone familiar enough with XCGallery 1.1 code to point me in the right direction?

Thanks,

Mark
Thanks,
Mark
______
XOOPS Version XOOPS 2.5.0
PHP Version 5.2.14
mySQL Version 5.0.91-log

2
jmorris2
Re: XCGallery Hack To Hide User
  • 2007/4/20 0:15

  • jmorris2

  • Just popping in

  • Posts: 46

  • Since: 2007/4/17


You'll need to edit the template where it outputs the submitters name, but the following PHP should get you started...

<{php}>if (date('r') < "Thu, 21 Dec 2007 16:01:07 +0200"){
echo(
'');
}else{
echo(
'<{smarty.variable}>');
}


At least, I think that's how it goes.
The lights are on... nobody's home

3
thgirblam
Re: XCGallery Hack To Hide User
  • 2007/4/21 3:20

  • thgirblam

  • Just popping in

  • Posts: 32

  • Since: 2004/8/14


I hadn't looked that close at editing the templates but that sounds logical enough. I'm not finding a template in the xcgallery templates that appear to address displaying the user though - any help here?
Thanks,
Mark
______
XOOPS Version XOOPS 2.5.0
PHP Version 5.2.14
mySQL Version 5.0.91-log

Login

Who's Online

185 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits