21
mawi27
Re: Drop down menu with unserlize function ?
  • 2008/3/10 9:58

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi slyss,

you do it like this:

1. assign your Array to the template:

$xoopsTpl->assign('countries', $countries);

e.g. defined like:
$countries[1]['id']=1
$countries[1]['name']="usa"

2. in the template:

<select name="country">
<{foreach 
item=ci from=$countries}>
<
option value="<{$ci.id}>"><{$ci.name}>option>
<{/foreach}>
select>


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



22
mawi27
Re: Auto backup Module or Script
  • 2008/3/10 9:10

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi onasre,

i can recommend the MySQL database backup script by
http://restkultur.ch/personal/wolf/scripts/db_backup


You can run it by cron or direkt access and it sends the compressed backup file to your eMail Address.
Works perfect on my sites.

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



23
mawi27
Re: Incompatable?
  • 2008/3/5 7:19

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Shandra,
the filename extension doesn't necessarily matter. Please try to open the backup file with a text editor.
Do a Search (ctrl+f) for "INSERT INTO" - If you find some of these statements and afterwards recognize parts of your old website content, you have an SQL Export file, wich can be re-imported to a new XOOPS database.
If you see illegible character stuff, then you probably have a zipped (.zip or .gz) file.
What do you see when opening the file?
Do you have access to the database server of your website?
Do you have some experience with MySQL + phpmyadmin?

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



24
mawi27
Re: Postnuke 2 Xoops?
  • 2008/3/4 21:18

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi Xoonoops,

still waiting on pn 0.8?! I have left pn more than 1 year ago and it was anounced ever since then...

When i changed to XOOPS i had to convert the data manually. Of course it depends on the modules you are using. That is because your text is stored in a module, not in XOOPS itself...
If there are modules very similar for pn and XOOPS maybe you find a migration support on their site but i think chances are zero.

What i did was:

1. find the appropriate modules for XOOPS (forum, news etc.). Play a bit around, examine the db structure ...
2. export the pn database
3. manually edit the data files to match the structure of the new modules using a db tool like ms access or openoffice.base
4. Re-Import the patched data files to XOOPS db
5. Fine Tune your data in the XOOPS tables

I have done this ONLY for the content modules like forum and news. Never tried to do it with the system tables like User Profiles or config. Can't imagine that this would work...

Of course you wanna do this on a test installation first, i am using XAMPP on my local machine for this purpose.
When everything works fine on the test installation you only have to move the data from test to prod environment and you're ready

In my opinion it is worth the pain, as i think XOOPS is much faster and easier to understand than pn.

BTW don't forget the last step:
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



25
mawi27
Xoops Users join Web Ring
  • 2008/2/26 10:13

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hello!
You are invited by the ringManager, mawi27, to add your web site to the WebRing called Xoops User Ring.
On WebRing, similar sites are grouped together in rings and each site
is linked to another by a simple navigation bar.
To become a member of this ring, visit this URL: Join XOOPS User Web Ring

If you have no interest in joining this WebRing, pls simply ignore this post.

Best Regards,
mawi27
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



26
mawi27
Block Browser Compatibility
  • 2008/2/6 6:44

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi guys,

in a block I display a table with rows scrolling vertical. It is done by the tag.
But Problem is, this tag works fine with IE and FF3 but not with FF2 and i don't now if Opera is showing this correct.

So maybe any of you has a better solution to do this:

<marquee behavior='scroll' direction='up' width='100%' height='100' scrollamount='1' scrolldelay='60' onmouseover='this.stop()' onmouseout='this.start()'>
 <
table>
  <{foreach 
item=bi from=$block}>
   <
tr>
    <
td><{$bi.name}>td>
    <
td><{$bi.points}>td>
    <
td><{$bi.wins}> - <{$bi.loss}>td>
   tr>
  <{/foreach}>
 table>
 <
div align="center"><a href="modules/matchdart"><{$smarty.const._BL_XD_GOTOMAIN}>a>div>
marquee>


You can see this working (or not - depends on your browser) on: http://www.matchdart.de

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



27
mawi27
Re: Module Development - Prob with Permissions
  • 2008/2/5 13:17

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


solved - you can handle the group_permission table as any other table in the XOOPS db.

(seems not very elegant, though)

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



28
mawi27
Module Development - Prob with Permissions
  • 2008/2/4 16:50

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi guys,

i am working on a module with simple permission.
Xoops Usergroups can either have "submit" permission or not.

I already managed to check the permission by
$gperm_handler =& xoops_gethandler('groupperm');
 if (
$gperm_handler->checkRight("submit"0$groups$module->getVar('mid')))
{
  
$maysubmit 1;
}


Now I am stuck! My problem is I cannot figure out the correct XOOPS function calls to get the permission into the group_permission table and to read out the group_permission table to display the check boxes in my admin form correctly.

If there are some XOOPS Cracks around your help would be highly appreciated!


TIA
Marco


My Permission Admin Form looks like this:

$grouplist =& $member_handler->getGroupList();
$gperm_handler =& xoops_gethandler('groupperm');
foreach (
array_keys($grouplist) as $i) {
 
$selected = array();
 
$ret_ele  ''.$grouplist[$i].'';
 
$ret_ele .= '';
 
$ret_ele .= '';
 
$ret_ele .= '';
 
$ret_ele .= _AM_XD_SUBMITMATCHES..$i.']" type="checkbox" value="1">';
 
$ret_ele .= '';
 
$ret_ele .= '';
 
$elements[] = $ret_ele;
}
$tray = new XoopsFormElementTray('');
$tray->addElement(new XoopsFormButton('''submit'_SUBMIT'submit'));
$tray->addElement(new XoopsFormButton('''reset'_CANCEL'reset'));
$ret "

nn"
;
$ret .= implode("n",$elements);
$ret .= '';
$ret .= $tray->render();
$ret .= '';
$ret .= '';
echo 
$ret;
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



29
mawi27
Re: Selectbox
  • 2006/5/30 6:06

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi Codyko,

thank you for the tip. Doesn't work but helped me for searching around.
Now here is what does the trick:

$select = new XoopsFormSelect(_CAPTION, "select_data", $defaultid);
while {...
$select->addOptionArray(array($data['ID']=>$data['Name']))
}


Problem solved,

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



30
mawi27
Selectbox
  • 2006/5/29 19:27

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi all,

i have an array of values + names and submit it to a select box :

$select->addOptionArray(array($data['ID']=>$data['Name']))

Works fine.
Now my problem is that i want one of the values preselected, e.g.:

if $data['ID'] = $defaultid

and i cannot find how to do this Any ideas?

THX in advance,

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




TopTop
« 1 2 (3) 4 5 6 ... 10 »



Login

Who's Online

272 user(s) are online (210 user(s) are browsing Support Forums)


Members: 0


Guests: 272


more...

Donat-O-Meter

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

Latest GitHub Commits