257421
Venezia
xoopstree.php selbox - subcategories not ordered
  • 2004/5/13 3:42

  • Venezia

  • Just popping in

  • Posts: 36

  • Since: 2003/6/24


From the original post:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=19822&forum=28

Bug: Selbox items are only ordered at root level.

Fix:

File:xoopstree.php,
Function: function makeMySelBox($title,$order="",$preset_id=0, $none=0, $sel_name="", $onchange="")

~line 170

Change from:

$arr = $this->getChildTreeArray($catid);

to:

$arr = $this->getChildTreeArray($catid, $order);

Explanation: Pass on the $order parameter to the getChildTreeArray() call.

Venezia







257422
Venezia
Re: categories and subcategories
  • 2004/5/13 3:30

  • Venezia

  • Just popping in

  • Posts: 36

  • Since: 2003/6/24


It looks like the culprit is in the file XoopsTree.php. Take a look at the function makeMySelBox(). It uses the $order parameter to query the database for the root items but doesn't pass on the $order param to the getChildTreeArray() function.

So to fix it change the line ~170

from:

$arr = $this->getChildTreeArray($catid);

to:

$arr = $this->getChildTreeArray($catid, $order);

and it works nicely.

I'll also post this in the Bug Report forum.

Venezia



257423
tuff
Re: Liaise Problem
  • 2004/5/13 3:19

  • tuff

  • Friend of XOOPS

  • Posts: 44

  • Since: 2002/6/5 1


I just had a look into this. Liaise needs XOOPS 2.0.6 because part of the core that Liaise uses does not exist before 2.0.6.
I apologize for any misleading.



257424
yuriko
Re: How create simple template xoops2?
  • 2004/5/13 2:52

  • yuriko

  • Just popping in

  • Posts: 8

  • Since: 2004/5/12


Get only XOOPS content(header, menu,footer), but not content my test module.
Content array test2 & test1 not display.



257425
builderb
categories and subcategories
  • 2004/5/13 2:51

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


Anyone know how to organize the categories and sub categories in a drop down menu in alphabetical order?

it looks like it organizes the parent categories in alphabetical order but the sub categories are not.

Any help would be appreciated.

-builderb



257426
Venezia
Fix for: js calendar - first popup showing start date from setrange()
  • 2004/5/13 2:47

  • Venezia

  • Just popping in

  • Posts: 36

  • Since: 2003/6/24


At present the js Calendar used by XoopsFormTextDateSelect and XoopsFormDateTime pops up the first time showing the date for January 2000. Subsequent popups show the correct date.

FIX:

Filename: /include/calendarjs.php
Function: function showCalendar(id)

Suggested Code:

function showCalendar(id) {
var el = xoopsGetElementById(id);
if (calendar != null) {
calendar.hide();
} else {
var cal = new Calendar(true, <?php if (isset($jstime)) { echo 'new Date('.$jstime.')'; } else { echo 'null';}?>, selected, closeHandler);
calendar = cal;
cal.setRange(2000, 2015);
calendar.create();
}
calendar.sel = el;
calendar.parseDate(el.value);
calendar.showAtElement(el);
Calendar.addEvent(document, "mousedown", checkCalendar);
return false;
}

Explanation:
The only change is to move the parseDate() call to after the calendar has been set to point to the function's element id parameter.

The calendar's selected date is then set correctly whether the calendar is being created for first time or not.


Venezia



257427
Stewdio
Re: Using a php include with mypage.zip
  • 2004/5/13 2:42

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


LH, you can do the same thing for just about any content you have.

For instance, I commonly use the header and footer includes on all my basic pages and just put whatever I need in between. The only difference then is that the files need to be saved as .php instead of html.

Either way you get the same results, just in a different manner.

<?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>


Regular html code and formating.


<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>



257428
limecity
Displaying News by their Category?
  • 2004/5/13 2:25

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


Okay..
i seen too much of these already..
How do you do that?

Displaying the news in blocks by category..
How and how?
template tricks?



257429
longhair
Re: Using a php include with mypage.zip
  • 2004/5/13 2:23

  • longhair

  • Friend of XOOPS

  • Posts: 70

  • Since: 2004/3/29



Your suggestion worked perfectly, thanks JackJ.



257430
brash
Re: New theme in the making Comments Please
  • 2004/5/13 2:15

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


I Like

On a visual fron it looks great in IE6. Have you tested with Mozilla/Firebird, Opera, NN etc?

On the tech side as far as performance goes I think you have done very well .


On initial site load:


Total site size: 54114 bytes (52.8k) (very good!)

Total http requests: 15 (very good!)

Total site loading time: 10.1 seconds (decent)

Average transfer rate: 5.23 KB/S




On browser refresh:

Total site size: 17447 bytes (17.03k) (excellent!)

Total http requests: 15 (very good!)

Total site loading time: 8.4 seconds (good)

Average transfer rate: 2.02 KB/S


I used IBM Page Detailer Basic to get the stats apart from avg transfer rate. I wouldn't put too much weight into the total site loading times or average transfer rates as my work connection despite being a 2MB E1 link is still rather average for accessing a lot of sites. Still, it should give you a good idea of what 56kers experience of your site will be like .












Login

Who's Online

217 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 217


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