Maybe something for CVS?

Frode

--- Den tor 2009-02-19 skrev ba5gk@yahoo.de <ba5gk@yahoo.de>:
Fra: ba5gk@yahoo.de <ba5gk@yahoo.de>
Emne: [videodb-devel] Random tab and userseen with option in config
Til: videodb-devel@lists.sourceforge.net
Dato: Torsdag 19. februar 2009 23.02

Hi,

I changed it so you have an option to choose in the configuration.

In /show.php/ just put

/ if ($config['onlyunseen'])
{
// limit random to not seen!
$WHERES .= ' AND ('.TBL_DATA.'.id NOT IN (SELECT
video_id
FROM '.TBL_USERSEEN.')) ';
}/

over line
/
// find a random id

/In /setup.core.php /add

/ ,'onlyunseen' /
/
/
to variable

/ $SETUP_GLOBAL = array(...)

/and/

$setup[] = setup_addOption($isprofile, 'onlyunseen',
'boolean');

/below/

$setup[] = setup_addOption($isprofile, 'showtools',
'boolean');

/
Last put the appropriate description in your language file in the
section /# Config Help/ like this:

$lang[help_onlyunseenn] = "Only unseen films";
$lang[help_onlyunseen] = "If you only want to see unseen
films with the random tab activate this option.";

Greetings and have fun

Thomas Reißer


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
videodb-devel mailing list
videodb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/videodb-devel



Alt i ett. Få Yahoo! Mail med adressekartotek, kalender og notisblokk.