21
einherjer
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/8/14 17:28

  • einherjer

  • Just popping in

  • Posts: 30

  • Since: 2002/11/8


Thank you for this great hack, i was looking for something like this a long time.

Currently i try to apply it to a testsite an also integrate it in the modules and blocks i use and into the administration section.

I hope someone can help me with some problems i have:

- Select boxes (drop-down menus)
eg. if i activate the navigation box in the news i have all two languages (german/english) and i found no way to change this :(

the html output of the drop down menu looks like this:
Quote:
<form name="form1" action="index.php" method="get">
<select name='storytopic'>
<option value='0'>----</option>
<option value='2'>[german]Allgemeines[/german][english]Common[/english]</option>
<option value='3'>[german]Gilden intern[/german][english]Guildnews[/english]</option>
<option value='5'>--&nbsp;Homepage</option>
<option value='4'>[german]Gildenausflüge[/german][english]Guild forays[/english]</option>
</select>


i think the following function have to be changed:
Quote:
if ( $xoopsModuleConfig['displaynav'] == 1 ) {
$xoopsTpl->assign('displaynav', true);
$xt = new XoopsTopic($xoopsDB->prefix('topics'));
ob_start();
$xt->makeTopicSelBox(1, $xoopsOption['storytopic'], 'storytopic');
$topic_select = ob_get_contents();
ob_end_clean();
$xoopsTpl->assign('topic_select', $topic_select);
$storynum_options = '';
for ( $i = 5; $i <= 30; $i = $i + 5 ) {
$sel = '';
if ($i == $xoopsOption['storynum']) {
$sel = ' selected="selected"';
}
$storynum_options .= '<option value="'.$i.'"'.$sel.'>'.$i.'</option>';
}
$xoopsTpl->assign('storynum_options', $storynum_options);
} else


as this applys to many select boxes through XOOPS a solution would be great - i have no idea how to get this to work.

- some blocks (eCal)
I got some other blocks to work (polls, whos online,...) but not the next events block from eCal:
Quote:
function eCal_nextn() {
//
// Next N Events block
//
global $xoopsDB, $xoopsConfig;
$block = array(); include($xoopsConfig['root_path']."/modules/eCal/cache/config.php");
$block['title'] = str_replace('%N', $nextncount, _MB_ECAL_NEXTN) ;
// how many events to show?
$numEvents = $nextncount;
$usertimevent = (userTimeOffset()*3600) +time();
$start = date("Y-m-j", addDays(0, $usertimevent))." 00:00:00";
$query = "SELECT subject, stamp FROM ".$xoopsDB->prefix("eCal")
." WHERE valid='yes' AND (stamp >= '$start') AND valid='yes' order by stamp limit 0, $numEvents";
$block['content'] = content( $query,"" );
if ($block['content'] == "") $block['content'] .= _NOEVENTSCHED;
return $block;
}


Don´t worry - i dont want a complete solution but some ideas would help me i hope

PS: Sorry for the long post and ich hope my english ist readable to you



22
einherjer
Re: Forum woes.
  • 2003/2/12 15:43

  • einherjer

  • Just popping in

  • Posts: 30

  • Since: 2002/11/8


I did the following (now again on a different system):

Downloaded the RC2 and installed as i allways did.

First problem:
With chmod -R 666 cache i got the message during the installation that /cache/style.css could not be written. chmod -R 777 cache fix this problem.

Second problem:
After installation i got only a white page. After chmod -R 777 MyXoopsDir it works?
Never run into this permission problems before

In my new installed XOOPS i go to the Admin Section and install the Forum Modul.
Now i go to the Forum Administration an select "Add new category" - i give a name for it - "Create new category"

In the table _bb_categories i have now:
cat_id: 1
cat_title:
cat_order: 1

cat_title stays empty at this point!

Now i add the title manually in the database.

When i then go to "Add a Forum" and fill out the whole page correctly i get this error:

Forum Configuration
You did not fill out all the parts of the form.
Did you assign at least one moderator? Please go back and correct the form.

I know my english....
but i hope you know what i mean and maybe you have any idea

Edit: Remove and edit a category are also not working at the moment

Edit2: It works without problems with Register Global ON in php.ini
thought XOOPS doesnt need this setting anymore?



23
einherjer
Re: Forum woes.
  • 2003/2/12 5:56

  • einherjer

  • Just popping in

  • Posts: 30

  • Since: 2002/11/8


same here!

After creating a new catergory the field cat_title in prefix_bb_categories stays empty.

After writing the Name manually in the database there is another error:

When trying to add a forum this messages appears:
You did not fill out all the parts of the form.
Did you assign at least one moderator? Please go back and correct the form.

Maybe some SQL statements are incorrect?




TopTop
« 1 2 (3)



Login

Who's Online

149 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 149


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