292421
bevege
Xoopsgallery only showing some albums after move to new server
  • 2003/8/14 23:17

  • bevege

  • Just popping in

  • Posts: 17

  • Since: 2003/2/24


I'm moving my XOOPS install from one server to another. After reading several post on this forum the move went very smooth (only took like 20 minutes) except my xoopsgallery module.

When I click gallery in the menu it goes to the gallery but only 2 or 3 of the albums actually have pictures. When I look at the total number of pictures it is correct and the pictures are actually in the albums on the hard drive but they don't show up. I've checked the file permissions and all of the albums are the same whether the pictures show up or not. BTW, the random picture function will show pictures that done't show up in the galleries.

Any help would be appreciated.

Old server:
RH 7.3
256 MB ram
Apache 1.3.27
PHP 4.1.2
Mysqld 3.23.56-1.73

New Server
RH 9.0
256 MB ram
Apache 2.0.40
PHP 4.2.2
Mysql 3.23



292422
hsalazar
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/8/14 18:15

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


einherjer:

One thing at a time. Here's what you need to do to successfully hack the options in a select box.

1) First, go to your database and in the table xoops_topics change the field topic_title from varchar(50) to varchar(255). This is so you have ample space to write the topic name in the database.

2) Open your file admin/index.php and look for the function modTopic() around line 226. Look for the place where the input text box is defined and instead of having 20 and 40 as the values for size and maxlength, set them to 40 and 250, so the page lets you write enough characters.

3) The function you mention is not the place to change site-wide the select boxes. For that, open your file class/xoopstree.php and look for function makeMySelBox(...). There, just before the line:

echo "$catid'$sel>$name\n";

add a line saying:

$name $myts->makeTboxData4Show($name);


This has the effect of passing the variable $name through the sanitizer, and since this is hacked, it will display the correct string in your site's select boxes.

I think that should do it. Hope it helps.

Cheers.



292423
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:



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 .= '';
}
$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



292424
eponges
Magalerie 1.6 and comments
  • 2003/8/14 2:40

  • eponges

  • Just popping in

  • Posts: 1

  • Since: 2003/2/2 1


hy,
does anyone manage to integrate comments in the magalerie module ?
I mean to really integrate it in the XOOPS comments system !

the website of the module developer doesn't work anymore so I can't find help !
thank you !



292425
jhobbs
Re: fantastico intaller
  • 2003/8/13 13:34

  • jhobbs

  • Just popping in

  • Posts: 10

  • Since: 2003/2/4 1


Site name and slogan changed, seems to work. The new values were retained, and displayed properly on the beautiful Imago06 theme!



292426
mvandam
Re: fantastico intaller
  • 2003/8/13 4:35

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Much appreciated!! Thank you, very kind of you to provide those images. I registered and viewed the screenshots.

For anyone else interested, fantastico simplifies the install procedure. It seems the ISP must do some preliminary configuration (database and path configuration) but then the user is left only to specify: an install directory, admin username/pass, site name, site slogan and admin email. The remainder is done transparently.

Very nice.

Well, since fantastico is a completely different install script than the xoops-installer, it is *possible* that errors in writing this script were made. However, jhobbs site appears to be working properly as far as I can see, so maybe the other problems were in fact unrelated to fantastico.

jhobbs: if it is not too much trouble, would you mind checking if you are able to change the site name and/or slogan via the admin preferences? Not being able to do so is one symptom of the broken database that another user observed.

Thanks again!



292427
jhobbs
Re: fantastico intaller
  • 2003/8/13 4:02

  • jhobbs

  • Just popping in

  • Posts: 10

  • Since: 2003/2/4 1


Perhaps you can infer what Fantastico does by examining some screenshots Here

Sorry, you have to register first.

This xoopstest site will probably disappear in a few days...



292428
mvandam
Re: fantastico intaller
  • 2003/8/13 0:25

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Thanks for your reply. The problem with the broken tables was described here:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=11396&forum=7

Of course we can never be sure if it was some kind of user error, or a bug/problem with the database or something else on the server... that is why I am fishing to see if there are any other problems.

I thought I had also read here a couple of instances where permissions were not set correctly.

But I must admit I do not really know what fantastico does *exactly*... I assume it automatically enters all your DB settings and does all the CHMODing (based on the hoster's setup), or am I wrong and it just runs the XOOPS installer? If it only does the latter, then I guess my post is irrelevant, but if it is the former, then it is possible the makers of fantastico accidentally ommitted a necessary chmod, etc... If anyone could enlighten me here, I would appreciate that too!



292429
jhobbs
Re: fantastico intaller
  • 2003/8/12 23:39

  • jhobbs

  • Just popping in

  • Posts: 10

  • Since: 2003/2/4 1


I've had good results with my host's Fantastico installer, it installs XOOPS 2.02. I think it's Fantastico v7.1, but I don't know how to check.

Before Fantastico was upgraded to install XOOPS 2.02, I installed XOOPS manually a couple of times. There are no differences that I'm aware of.

What are the symptoms of the problems and broken tables?



292430
mvandam
fantastico intaller
  • 2003/8/12 21:45

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


As many people are aware, there is this CPanel "Fantastico" installer which an increasing number of people are using to install Xoops.

https://xoops.org/modules/news/article.php?storyid=467

http://cpanelthemes.com/fantastico.php

Several people have reported problems and there are a few instances where Fantastico installation is associated with creation of broken database tables, incorrect permission settings, and missing files.

Does anybody have experience with this installer and know if such problems are reproducible? If they are, I'd like to organize something along the lines of a "bug report" for the makers of Fantastico. It would be a shame if potential XOOPS users were having a frustrating first-time installing XOOPS due to problems with this installer. Also, anyone know how widely used CPanel or Fantastico is?

Please let me know your experiences with Fantastico (good or bad) here... Thanks!!







Login

Who's Online

158 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

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

Latest GitHub Commits