11
zzzzsg
Re: Javascript collapsible menu in Custom block
  • 2009/6/8 17:41

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


ok i am able to do this using jquery.



12
zzzzsg
Re: DNS ISSUE - Xoops.org & dev.xoops.org has been redirected
  • 2009/5/27 21:19

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22



got the same problem here in usa too.
now okay.

www.xoops.org got redirected to a site called ConversaAfiada

I think it is an DNS issue.
When www.xoops.org was down, I did a ping to www.xoops.org and got an IP address 66.7.212.214 but no reply.
After www.xoops.org came up, I did a ping again and got a different IP 66.7.217.147 with successful replies.

A reverse dns lookup shows:
66.7.212.214 resolves to
"ns1.paulohenriqueamorim.com.br"
Top Level Domain: "com.br"
Country IP Address: UNITED STATES

Interesting. Somebody made a boo boo... well it happens to almost all sys admins. Don't feel too bad. Be careful next time.





13
zzzzsg
Javascript collapsible menu in Custom block
  • 2009/5/27 0:01

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


I plugged this Javascript collapsible script by Kyle Edwards fromhttp://www.java-scripts.net/javascripts/Collapsible-Menu-Script.phtml to my custom block.
It works fine, but there is one problem.

After I click on one of the expanded menu items and get redirected to the link in the menu item, the parent menu will collapse (close). This is expected since XOOPS will reload to go to the XOOPS link in the menu item.

Question - how to create collapsible menu item in custom block which will not collapse when a expanded item is clicked?
For example
Parent Menu1
-> Child menu1 (goes to XOOPS page 1)
-> Child menu2 (goes to XOOPS page 2)
-> Child menu3 (goes to XOOPS page 3)
At first, Parent Menu1 link in the custom block is collapsed, i.e. Child menu1, Child menu2 and Child menu3 are not displayed.
Clicking on Parent Menu1 will cause it to expand, i.e., Child menu1, Child menu2 and Child menu3 will be displayed.
Clicking Child menu1 will cause the XOOPS page 1 to be displayed. But the Parent Menu1 should stay expanded, displaying all the child menus. Currently, my script will not let Parent Menu1 to stay expanded when a child link is clicked. This is expected since the Javascript has no memory (no cookies implemented here).

Is there a way to do this without cookies?
Use AJAX?

Previously, I used PHP in the custom block to display the child menus when the parent menu is clicked by checking the url. ( Okay I am now able to do this using PHP in custom block -- but it requires adding a querystring to the url for the toggling).

Is there any way to do this using Javascript (and without using cookies or adding a querystring)?

Thank you.






<code>

<table cellspacing="0">



<tr>
<td id="mainmenu">

<tr>
<td id="mainmenu">
<a href="#" onclick="collapse_menu('projectsm1', 0, 0); return false">Repositories</a>
<span id="projectsm1"></span>

</td>
</tr>


</table>

<script language="javascript">
//Collapsible Menu Script.
//Created by Kyle Edwards.
//Please keep this notice intact.

//This defines the arrays that contain info about the menus. Do NOT edit.
var on_off=new Array();
var menu_code=new Array();

//Below, define number_of_menus. It should be equal to the number of menus you have.
number_of_menus=2;

//Here we define the code for the menus. Inside the quotation marks, type in the value of each option.
//Note: After each option, you need to put a <br> tag.
//Note: If you want to indent the options, type &nbsp; for each space of indentation.
//and a </blockquote> tag at the end.
//Example: "&nbsp;&nbsp;Option 1<br>&nbsp;&nbsp;Option 2<br>"
//This puts two spaces at the beginning of each option.

menu_code[0]="<a class='menuSub' href=\"/fxscripts/pubrepo.php\" onclick=\"collapse_menu(\'projectsm1\', 0,-1); return true\">List All Repositories</a>";

menu_code[0]+="<a class='menuSub' href='/fxscripts/websvn1.php'>PA</a>";



menu_code[1]="Option 1<br>Option 2<br>Option 3<br>";

//Everything below this notice is the code that expands and collapses the menus. Do NOT edit.
for (loop=0; loop<number_of_menus; loop++){
on_off[loop]=0;
}

function collapse_menu(menu_id, menu_number, toggle1){


if ( toggle1==-1)
{ on_off[menu_number]=0;

alert( 'xxx toggle1 = ' + toggle1 );
}

if (on_off[menu_number]==0){
// menu_id.innerHTML=menu_code[menu_number];
document.getElementById(menu_id).innerHTML=menu_code[menu_number];

// alert( ' 111 ' );
// alert( menu_id );
// alert( menu_id.innerHTML );
on_off[menu_number]=1;
}else{
// alert( '222') ;
// menu_id.innerHTML="";
document.getElementById(menu_id).innerHTML="";

on_off[menu_number]=0;
}
}
</script>

</code>





14
zzzzsg
Re: external css & js
  • 2009/5/26 21:33

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


good question.
i'm also trying to include javascript in a custom block.
no luck. it just does not run.



15
zzzzsg
Re: XOOPS 2.3.x Upgrade Notes (from 2.0.x)
  • 2009/5/26 19:28

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


thank you mboyden




16
zzzzsg
Re: XOOPS 2.3.x Upgrade Notes (from 2.0.x)
  • 2009/5/23 21:38

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


i managed to fix it. turns out that the old news 1.4 is not compatible with XOOPS 2.3.3. i updated the news module to 1.6.3 and all is well now. and there is no need to modify /modules/news/include/functions.php

the following is okay even though /class/fckeditor/formfckeditor.php does not exist! (it exists in /class/xoopseditor/fckeditor)

case 'fckeditor':
if ( is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) {
require_once(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php');



17
zzzzsg
Re: FCKeditor not working in both upgrade and fresh install of Xoops 2.3.3
  • 2009/5/19 17:19

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22



i managed to fix it. turns out that the old news 1.4 is not compatible with XOOPS 2.3.3. i updated the news module to 1.6.3 and all is well now. and there is no need to modify /modules/news/include/functions.php

the following is okay even though /class/fckeditor/formfckeditor.php does not exist! (it exists in /class/xoopseditor/fckeditor)

case 'fckeditor':
if ( is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) {
require_once(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php');



18
zzzzsg
Re: Custom Blocks not displaying blockContent
  • 2009/5/19 16:17

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


I had the same problem.

Resolved it by manually re-creating the custom blocks. Not so difficult as you can cut and paste from the old site (if you have the old site running somewhere else). Or you can copy and save the contents of the custom blocks to text files first before doing the upgrade.



19
zzzzsg
FCKeditor not working in both upgrade and fresh install of Xoops 2.3.3
  • 2009/5/19 0:01

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


Hi All

I followed the instructions on upgrading from XOOPS 2.2x to 2.3.3. The upgrade went quite smooth, except for FCKeditor which does not work after the upgrade.

1) I did what the instructions say "Since there are some directory structure changes in both fckeditor and tinymce editors, you are recommended to remove existent editors before uploading the new additors." -- I deleted the fckeditor and tinymce folders from class/xoopseditor/ of my existing XOOPS 2.2 server before copying the XOOPS 2.2.3 over.

2) After upgrading to XOOPS 2.3.3 and update the system, profile and news modules, I made sure that news is using fckeditor by going to the module preferences.
But fckeditor does not work. When submitting news, the input boxes for scoop and body do not appear.

3) I went to /modules/news/include and found that functions.php contains this lines
switch($editor_option) {^M
case 'fckeditor':^M
if ( is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) {^M
require_once(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php');^M
$editor = new XoopsFormFckeditor($caption, $name, $value);^M
}^M
break;^M
Now there is NO such folder as "/class/fckeditor/formfckeditor.php" and so I modified the file to
switch($editor_option) {^M
case 'fckeditor':^M
if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php')) {^M
require_once(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php');^M
$editor = new XoopsFormFckeditor($caption, $name, $value);^M
}^M
break;^M
^M

Now, when submitting News, the input boxes for Scoop and Body appear! BUT after I submitted a news with some words and images, the News contains nothing -- blank! No problem submitting News using other editors, e.g., dhtml.

4) Now I went to /class/xoopseditor/fckeditor/module and read the readme.txt file there. It says "1 Copy the three files to your module folder 2 Modify the fckeditor.config.js to set proper configs; if no specific config is needed, remove the file 3 Keep the two php files".
Quite vague -- I copied the 3 files there to /modules/news/
No luck -- so problem.

5) Now I did the same thing on a fresh XOOPS 2.3.3 install. This time, when I click on Submit News, a blank page appears. Wait a minute -- it seems that Submit News results in a blank page for all editor types --- but i used to be able to Submit News in the fresh install before --- now after doing a News module update, Submit News results in blank page.
Okay, i uninstalled the News module (1.6.3) and reinstalled it and managed to get it working now with fckeditor -- but it is confirmed that there is a bug in news/include/functions.php
at first i got this error when submitting a newsThis page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Cannot create fckeditor config file
Backtrace:
/class/xoopseditor/fckeditor/formfckeditor.php (135)
/class/xoopsform/formeditor.php (79)
/class/xoopsform/themeform.php (110)
/class/xoopsform/form.php (404)
/modules/news/include/storyform.inc.php (230)
/modules/news/submit.php (538)

i then changed the functions.php as per above. i also chmod -R 777 all the files in my XOOPS folder.

I found this
http://mark.boyden.name/smartsection.item.52/fckeditor-for-xoops.html
but didn't follow the instructions because isn't the Fckeditor that comes integrated with the new XOOPS 2.3.3 supposed to work?

Thank you.





20
zzzzsg
Re: XOOPS 2.3.x Upgrade Notes (from 2.0.x)
  • 2009/5/18 22:44

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


hi mboyden

thank you for the detailed instructions.

what do you mean by "Merge Core/Module Modifications" ?
how do you do a merge?

what do you mean by "Move new xoops_lib and xoops_data folders into XOOPS_TRUST directory" ?
in the mainfile.php, XOOPS_TRUST_PATH is defined as
the XOOPS_PATH and the XOOPS_PATH is the path of the xoops_lib folder. So "Move new xoops_lib ... into XOOPS_TRUST" is moving the xoops_lib back into itself.
define("XOOPS_TRUST_PATH", XOOPS_PATH);

what do you mean by "Delete and redirect cache and templates_c folders via symbolic link "?

how do we delete a folder than the redirect it?
redirect from where?

"Update FCKeditor module-specific configurations in all modules (if any)"
where are the module-specific configurations in all modules?

my fckeditor is not working after upgrading XOOPS from 2.2 to 2.3.3.

thank you once again.


---


ok i went to change /modules/news/include/functions.php

originally it was "/class/fckeditor/formfckeditor.php"
and i changed it to "/class/xoopseditor/fckeditor/formfckeditor.php"

case "fck":^M
if(!$x22) {^M
if ( is_readable(XOOPS_ROOT_PATH . "/class/xoopseditor/fckeditor/formfckeditor.php")) {^M
include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/fckeditor/formfckeditor.php");^M
$editor = new XoopsFormFckeditor($caption, $name, $value);^M
}^M
} else {^M
$editor = new XoopsFormEditor($caption, "fckeditor", $editor_configs);^M
}^M



now the fckeditor appears in Submit News, but when i submitted a news with some contents and images, the News article submitted is blank ....





TopTop
« 1 (2) 3 4 5 ... 8 »



Login

Who's Online

159 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 159


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