1
mawi27
Re: Drop down menu with unserlize function ?
  • 2008/5/19 14:37

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi slyss,
the unserialize() function explained by trabis is much better than parsing the string as i have worked out in your other posts! You should change your code so that you only use this function.

best regards,
Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



2
mawi27
Re: Drop down menu with unserlize function ?
  • 2008/4/14 11:46

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi Stefano,

thanks for visiting my website

Try this code for your problem:

$countries 'a:2:{s:5:"milan";s:6:"Milano";s:6:"naples";s:6:"Napoli";}';

$token strtok($countries,';:');
$q=1;
while (
$token) {

    if (
substr($token,0,1) == '"') {
        echo 
$q," ",$token," ",substr($token,1,-1);

        if (
$q !=0)
        {
            echo 
" -> number is odd";
            
$country[$q]['id'] = substr($token,1,-1);
        }
            
        else
        {
            echo 
" -> number is even";
            
$country[$q-1]['name'] = substr($token,1,-1);
        }  
        
        
$q++;
        echo 
"<br>";
    }
    
$token strtok(';:');
    
}

echo 
"<br>";

echo
"<select name='countries'>";
foreach (
array_keys($country) as $j) {
 
$country_id $country[$j]['id'];
 
$country_name $country[$j]['name'];
 echo
"<option value=".$country_id.">$country_name</option>n";
}    
echo
"</select>";


arrivederci,

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



3
mawi27
Re: DNS address
  • 2008/3/29 9:53

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi AHLIS,

You have to change your apache web server configuration in the httpd.conf file. In this case you must change the document root, as you don't wanna have any path. It is no great deal.
Bad news is, you will not have access to the xampp admin site + phpmyadmin site any longer, so you have to change their configs too.

So you better have a look in the apache (xampp) doks how to do it!

marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



4
mawi27
Re: Admin email variable
  • 2008/3/28 18:01

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


You get the Admin eMail address in the variable:
$xoopsConfig['adminmail']

To use it with smarty just assign it:
$xoopsTpl->assign('adminmail',$xoopsConfig['adminmail'])


Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



5
mawi27
Re: multiple passwords
  • 2008/3/28 17:49

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi jcortego,

i would try a script like this:

$member_handler = & xoops_gethandler('member');
$allusers $member_handler->getUsers();
foreach (
array_keys($allusers) as $j) {
    
$username $allusers[$j]->getVar("uname");
    
$allusers[$j]->setVar('pass'md5($username), true);
 
}


Attention: I have not tried it out - 'cause i like my passwords as they are

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



6
mawi27
Re: How to fix Blank White Screen with following code
  • 2008/3/27 7:07

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


hi b_ee_z,

there is nothing to fix with the SQL Statements. These are the normal queries, when you open the system module.

Maybe you can find some help for your problem in this thread

marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



7
mawi27
Re: Match Dart Module! How do I use this module for usa based teams?
  • 2008/3/14 13:17

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


I'll have a look into it and contact you soon.
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



8
mawi27
Re: Match Dart Module! How do I use this module for usa based teams?
  • 2008/3/14 8:29

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


I understand 'venues' as a variety of pubs, sportsbars etc. is that correct?
How is the relation of the venues to the league and/or season and/or team? Is there one fix venue for each team?
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



9
mawi27
Re: Match Dart Module! How do I use this module for usa based teams?
  • 2008/3/13 21:42

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi,

in this version you can track only on base of players. Of course you can rename 'player' to 'team' in the language file and then track teams, but you have no possibility to see the single team player results and stats, then.
I have planned to add some team tracking feature in near future.

Please send me a mail with your club rules for playing and the ranking and i have a look, if i can do an update for you.

marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



10
mawi27
Re: News On Front Page Issues
  • 2008/3/10 18:38

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


You have the following possibilities to show the news on your front page:

- in system admin \ preferences \ general settings set the "Module for your start page" to "News"

alternatively add a news block to your front page:

- system admin \ blocks \
click on edit for a news block e.g. Recent News
make the following settings:

block type: center block - center
visible : yes
visible in: top page
select topics to use: Main News

click submit

You will then see your news as headlines on your front page. Experiment a bit with the different news blocks and all their settings to get a layout that suits you.
--
Match Dart!
Darts Ranking, News, Videos, Forum and more




TopTop
(1) 2 3 4 ... 10 »



Login

Who's Online

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


Members: 0


Guests: 129


more...

Donat-O-Meter

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

Latest GitHub Commits