This is the Content module with a few changes to work in 2.3.1 version of xoops! In extend there have been a few minor modifications in the layout and a few problems were fixed when adding content and selecting what kind of content to add in the admin area. Moreover a SEO patch has been made in the index page to change the title of the page accordingly.

Updated now to work with 2.4.1

Features:


System Requirements:



Other files by: kerkyra

Calendar (2011/08/23)

The comments are owned by the author. We aren't responsible for their content.
user

 Re: Content Module


@ the admin side I get:

WarningCall-time pass-by-reference has been deprecated argument passed by value; If you would like to pass it by referencemodify the declaration of [runtime function name](). If you would like to enable call-time pass-by-referenceyou can set allow_call_time_pass_reference to true in your INI fileHoweverfuture versions may not support this any longerin W:wwwphpcmsxoops231Hebmodulescontentadminmanage_content.php on line 173

Warning
Call-time pass-by-reference has been deprecated argument passed by value; If you would like to pass it by referencemodify the declaration of [runtime function name](). If you would like to enable call-time pass-by-referenceyou can set allow_call_time_pass_reference to true in your INI fileHoweverfuture versions may not support this any longerin W:wwwphpcmsxoops231Hebmodulescontentadminmanage_content.php on line 175

in my local test site
xoops 2.3.1

and wysiwyg is just partly English.

 
user

 Re: Content Module


can you download it again mate? i think i have fixed those errors now! The link is updated. Thanks for the feedback. cheers :)

 
user

 Re: Content Module


when I add a link, I get blank page with this error:

Notice: Undefined index: tag in file /modules/xlanguage/include/functions.php line 258
Notice: Undefined index: showerror in file /modules/content/index.php line 40
Notice: Undefined index: cont_permits_advnaced in file /modules/content/index.php line 49
Notice: Undefined variable: crumbsout in file /modules/content/index.php line 169
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in file /modules/content/index.php line 166
Warning: array_reverse() [function.array-reverse]: The argument should be an array in file /modules/content/index.php line 88


THK !!!

XOOPS 2.3.1 FInal
PHP 5.2.5

 
user

 Re: Content Module


@ kerkyra
The new version is without the warnings, but adding content us giving a broken page (seems like wysiwyg issue) .
I read @ your site you intend to add the system wysi ....

 
user

 Re: Content Module


well if you see in admin/fckeditor/fckconfig.js you can change tha language settings from there. The templates for the editors is in the folder admin/fckeditor/editor, in there you can change the charset of the tmplates to whatever you like, the files you need to edit are fckdialog.html, fckeditor.original.html and fckeditorarea.html right now they are set to utf-8 and are working fine for me! In XOOPS 2.3.1 php 5 and mysql > 4.

Actually I just needed the module so a made the modifications to make it work! Haven't examined or tested all aspects of the module! Besides the notices and warning does it work for you? Furthermore please try to work without debug on cause i'm not sure if its working properly that way! Cheers

 
user

 Re: Content Module


lapsa i tried to add a link in my site and seems to work for me...I have to look into it to see what could be wrong...

 
user

 Re: Content Module


Quote:

Actually I just needed the module so a made the modifications to make it work! Haven't examined or tested all aspects of the module! Besides the notices and warning does it work for you? Furthermore please try to work without debug on cause i'm not sure if its working properly that way! Cheers


Your changes are a great addition to this forgotten module.
I also made my version of the module, but your's is nicer.
(In my version I hardcoded tinyEditor into it since I didn't wanted the site-wide wysiwyg installation)

Back to bugs:
I still have the "pass-by-reference" warnings @ the "Page Permissions"

The "add content is broken ... gives this on debug:

Fatal errorCall to a member function on a non-object in W:/www/php/cms/xoops231Heb/modules/content/admin/add_content.php on line 260

 
user

 Re: Content Module


thanks for your kind words mate! can you be a bil more specific with the pass-by-reference warnings (line?)

Tha add-content seems to work for me! I really dont get this...! Can you try it on a server perhaps? Not locally...and see what happens!

Sorry to ask you this but perhaps we could help each other and make this work for all!

 
user

 Re: Content Module


The lines are (Page Permissions) :

WarningCall-time pass-by-reference has been deprecated argument passed by value; If you would like to pass it by referencemodify the declaration of [runtime function name](). If you would like to enable call-time pass-by-referenceyou can set allow_call_time_pass_reference to true in your INI fileHoweverfuture versions may not support this any longerin W:/www/php/cms/xoops231Heb/modules/content/adminmanage_permissions.php on line 204

Warning
Call-time pass-by-reference has been deprecated argument passed by value; If you would like to pass it by referencemodify the declaration of [runtime function name](). If you would like to enable call-time pass-by-referenceyou can set allow_call_time_pass_reference to true in your INI fileHoweverfuture versions may not support this any longerin W:/www/php/cms/xoops231Heb/modules/content/admin/manage_permissions.php on line 209


The add content worked before your last changes - maybe just a typo made in last changes ...

 
user

 Re: Content Module


O.k. .... got it
the add-content issue is due to the fact that you forgot to pack the "content" folder this time
I simply looked around line 160 ( admin/add_content.php )

$folder dir("../content/");
    while(
$file $folder->read()) {
      if (
$file != "." && $file != "..") {
         
$address_select->addOption($file"".$file."");


so just the warning lines out there and seems like all issues are solved .

 
user

 Re: Content Module


you know i could be searching for the solution for ages till i find that out!lol
So now it works fine for you?
The file is updated now!

 
user

 Re: Content Module


The lines in the permissions page are result of a typo @ manage_permissions.php

line 204 - &$myts should be $myts
line 209 - &$myts should be $myts

 
user

 Re: Content Module


thought i fixed that! hmm i updated the file again!

 
user

 Re: Content Module


Great !!!
So now we have a revised content module.

The only important feature request I see here is using the system-wide editor instead of the module's one.

It's definately one of my most used modules
It even works with our affiliates stores - samples: Gifts45 TigerDirect Shop , Gifts45 CompUSA and on ... which still wasn't tested on this new version.

 
user

 Re: Content Module


Are files attachments (e.g. pdfs) possible?

Good work - this sounds really promising.

 
user

 Re: Content Module


Quote:

Are files attachments (e.g. pdfs) possible?


Yep - to the content page according to wysiwyg abilities, but extra image can be attached to the content beside of the wysiwyg.

 
user

 Re: Content Module


nice! I think it's one of the most useful modules out there for lots of reasons! As soon as i have some time i'll try to add the system's editors as well as a few more SEO optimizations like content keywords and description and see where else that might lead us!:) thanks for the testing and the feedback mate!

In the future do you think i should upload any changes in this file so people won't get confused?? :/

 
user

 Re: Content Module


Is there any way to make this work with a type of Content (or even pagewrap) with a html/php file? Or is there any module which would allow such a thing?

This is a great module, btw - good job on the updates. :)

 
user

 Re: Content Module


@ hmarcbower

It does pagewrap php and html files ...
you need to put the files in the "content" dir and choose "pagewrap"

 
user

 Re: Content Module


I keep getting this message: You need to upgrade your installation of Content. Please use the upgrade page

When I am taken to the upgrade page there is nothing I can see to do, also when I try to add content there is no button to submit the new content?

 
user

 Re: Content Module


@ kevcar
turn on 'debug mode' and quote the result on the problematic pages ...
it's made especially for this staff

 
user

 Re: Content Module


try downloading the module again and update it through admin>modules! I have made a few changes and the button should be visible now!

 
user

 Re: Content Module


I am having the same problem - no button to run upgrade script. Have re-intalled a couple of times and still no joy. Any advice?

Cheers,

Simon

 
user

 Re: Content Module


hi can you upgrade through modules section?

 
user

 Re: Content Module


Have upgraded through modules and then when I go to change content I get the message about upgrade required.

Same as the other guy in a couple of posts before me.

I have put debug on but no error messages.

 
user

 Re: Content Module


hmm i cant replicate the problem...:(

 
user

 Re: Content Module


this module can run under 2.0.x?

 
user

 Re: Content Module


i havent made any major changes to the code so i think it should run in 2.0! Havent test it either though. So please try and see if it does.

 
user

 Server error and no module "banner"


Hi, I've uploaded and installed the module two times onto my new 3.1 Xoops. Both times the image/icon/banner of Content doesn't show up. Installation works, but then I can't enter any Content-page, from the site or from the admin, except for "Preferences".

Attempts at opening other pages results in the below server error. Is there something I've missed in the installation? Do I need certain permissions on my server? Any help.

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@one.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."

 
user

 Re: Server error and no module "banner"


hey mate! can we have a look at the srever log? What do you mean by 'the image/icon/banner of Content doesn't show up'...?

cheers

 
user

 Re: Server error and no module "banner"


I have downloaded from the link and installed on a clean installation of 2.3.1, but I get a blank page when trying to add content.

The link version states Content v1.3, but the downloaded version shows as v1.0 in my XOOPS installation.

Do I have the wrong version or is there another problem I need to fix?

Thanks

 
user

 Re: Content Module


Hello there,

I've noticed three problems using the latest content version with the latest XOOPS on a clean install:

a) It isn't possible to set the default page permissions so that anyone will be able to read new pages (anonymous). Thus you have to manually change permissions for every new page.
b) Whenever a page changes, its permissions are lost and it becomes invisible to the anonymous user (at the Site Menu).
c) Even though a page has no permissions, it is possible to view it.

Is there something wrong with me or is this intended behaviour?

Thanks.

 
user

 Re: Content Module


Steakman: The version number its just a typo error in xoopsversion.php, can you set debug on so that we can see why the blank page error?

sharhalakis:the permissions should be set from global permission by group! unless you need specific permissions for a specific content. So i think at least mate.

 
user

 Re: Content Module


Error when when adding content:
>>
Warning: dir(../content/) [function.dir]: failed to open dir: No such file or directory in file /modules/content/admin/add_content.php line 259
>>

Line 259 to 262
$folder = dir("../content/");
while($file = $folder->read()) {
if ($file != "." && $file != "..") {
$address_select->addOption($file, "".$file."");

Any ideas ?

 
user

 Re: Content Module


make a new folder inside the content module and name it content too with write permissions!

I think i included this to the zip file! tzvook figured out that i forgot to pack this folder and i updated the download file onc he let me know!

Anyways it should work if you do that! Or just download the file again! The folder tree should be complete now. :)

 
user

 Re: Content Module


I must be missing something here ?

I created the folder as suggested but it made no difference, so I downloaded the module again, but when I unpack the module it does not contain the "content" directory!

Please confirm the download link to the latest version of this module.

Thanks

 
user

 Re: Content Module


link points to an rar file that reports format error (#17540)

 
user

 Re: Content Module


mate i just downloaded the module from the link here and seems to wrok fine! The content folder is in too! make sure its writable!

 
user

 Re: Content Module


Ok, got it now. Thanks.

 
user

 Re: Content Module


No matter what the group permissions are, a not-logged-in user doesn't see the pages in site-menu.

Let me explain: Create a page 'A'. This page will be shown in 'Site Menu' only if you explicitly set appropriate permissions on it (no matter what the group permissions say). Now, suppose that you've done this and the page is visible in the 'Site Menu'. If you edit the page, its permissions are reset to 'none' and it also disappears from the site menu.

 
user

 Re: Content Module


hi, I was having problems with the old version of this module on a XOOPS 2.3.1 page i'm doing.. so i uploaded this version and now I've lost all the content pages i had. they appear on the list of content list but they are blank when I try to see or edit them! any ideas??? also I got that message about upgrading.. i all ready did that. i'm gonna start crying soon..

 
user

 Re: Content Module


do you get any kind of errors mate? can you turn debugging on?

Regarding the menu permissions issues I will have to have a look, right now i'm a bit busy at work!So not as much time as i'd like to have...

 
user

 Re: Content Module


here's a good one:

i have 2 sites on the same server both running the same versions of XOOPS (2.3.2b) and the latest content module (1.3).

On site A i can add content but whenever i make a change, the page permissions are lost and i have to reset them.

On site B, when i modify content i get a "error updating database" message and the changes are not saved.

what could possible cause that??

 
user

 Re: Content Module


i will try to fix the permissions problem as soon as i have a bit more time! I know about this problem! Regarding the second one...i have no clue! are you sure its the same version in both sites? Any errors on debug? This is a good one indeed lol

 
user

 Re: Content Module


yeah it's the same version. i used the same download of the module when i installed it.

i even tried copying the module from the working one. i also reinstalled XOOPS and and db from scratch

Also what i just noticed is the wysiwyg editor for site B does not appear. thats wack.

attached below is a screen shot of what happens after i submit on a content change.
Resized Image

 
user

 Re: Content Module


I also just noticed that the wysiwyg editor for site B does not appear!

UPDATE, appears is IE but not Chrome. nevermind!

 
user

 Re: Content Module


Nevermind, it appears in IE but not Chrome.

 
user

 Re: Content Module


Hi, I have just been installing the Content module, and it looks like it should do every I need, and it installs without errors.

I can create pages and links, without any errors and it all appears to work fine, in the module menu. However, when I go to use the module and visit the site I only get to see one page, the page that is set to "home". I do not see any of the other pages I have created, or links to the other pages.

I have tried switching on and off different blocks, changing permissions, and changing browsers, but I sill only see one page.

Any suggestions?

Thanks Rob

 
user

 Re: Content Module


hi mate you should edit permisions through the module for each page you create!

 
user

 Re: Content Module


Resized Image

 
user

 Re: Content Module


@andrey3761
That is a theme problem, just ignore the debug message.

You may need to add a min-heigth in style.css to avoid that.

 
user

 Re: Content Module


the content module is throughing 500 server internal error tested in local host and the live both place same thing it installs but when i click on the module it give server internal error. plz help

 
user

 Re: Content Module


fixed up. actually my server was not allowing mod rewrite so i deleted the .htaccess file it working now

 
user

 Re: Content Module


just to inform you, i have updated the link with a fix so that when you modify a content page it doesnt alter the permission. Cheers

 
user

 Re: Content Module


another update on the module... it is using the XOOPS fckeditor now, so the one included in the module is removed! The link is updated so you can check it out and let me know if its working for you. Cheers

 
user

 Re: Content Module


Hi
I have installed in version 2.3.2 - I can add content but I cannot edit - I get the error
makeTboxData4Edit is deprecated in file
Hope you can help
Cheers
TOny

 
user

 Re: Content Module


this must be just a warning! can you turn debug on to see what happens? Anybody else is having difficulties editing an article?

 
user

 Re: Content Module


when im trying to access any of the content module i get this message

Quote:


ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://myname.myhostaccount.info/main/modules/content/

The following error was encountered:

* Zero Sized Reply

Squid did not receive any data for this request.

Your cache administrator is webmaster.

 
user

 Re: Content Module


is it in a subfolder mate? i see a /main/ subfolder there! make sure the folder content inside the content module is writable. Can you turn debug on in XOOPS to see what you get?

 
user

 Re: Content Module


wheni try to update a content page i get a "Error while updating database!" message and it returns to the page without the changes.

I turned on XOOPS debugging and here's the result:

Resized Image

This doesn't always happen to all content pages. I have some that I can update.

Also, when i use content without the wysiwyg editor i can edit content but i cannot save it because the submit button does not appear. When I click Preview, it says "Server is not responding, try again latter (sic)".

 
user

 Re: Content Module


When creating a new content of type LINK, and i select the New Window option, the link does not open in a new window.

 
user

 Re: Content Module


I am having the same problem as lupaloma, posted on 12/1/08. I am working on upgrading my site, which is in XOOPS 2.2.4, to 2.3.3. It's not going as smoothly as I'd like, including this problem.

When I upgrade to 2.3.3 page content for the old Content module showed up but could not be edited. I therefore upgraded to Content 1.3. After copying the files to overwrite the existing ones, I updated the module in the system modules menu.

Now I get no content in my pages. I've looked at the Content table in the db and the content is there. It just doesn't show up and can't be edited. When I access the admin pages I get a notice:
"You need to upgrade your installation of Content. Please use the upgrade page". I've clicked on the upgrade page link and get this:

Page title: Yes
Error page: Yes
Last modified: Created
Associate Module: Created
Header Image: Created

Database upgraded to: 1-rc1

The notice about upgrading persists even after clicking the link.

I think this might be a permissions problem because when I try to set the permissions for pages I get a transient page full of error notices. With a bit of quick keyboard work I managed to copy it. I'm going to paste it at the bottom of this message. Sorry that it will make this a long post. I've also appended a subset of messages I get with debug on. I think these are the lines relevant to Content.

Any suggestions for how I fix this problem. I really don't want to have to redo all my pages.

Because the error log is so long I am putting a link here to it on my server. I didn't take the time to properly format it. I hope someone can make sense of it.

errors

 
user

 Re: Content Module


hi, installation works but when i try to add an element i recive blank page with XOOPS 2.3.3, php 5 and mysql 4
Managing and other sections of content should work but add_content nor in admin neither in normal view.
No debug output becouse there's nothing.
Thank you

 
user

 Re: Content Module


I can't help with this problem but I wanted to comment that following my earlier post about problems updating I installed content 1.03 and copied and pasted the html from my old 2.2.4 site. That was quite a bit of work but Content seems to be working fine now.

 
user

 Re: Content Module


i really havent worked with any previous versions of the module! the error log i saw in the link shows that there is something wrong with the date field of the database. If the old db is different than the one in the new content module then its not going to work! If you were using a version previous to 1.02 this might be the cause! I was working on version 1.0.2 to come up with the current version of the content module! There are quite some things i need to fix as it seems, but havent got the time right now! I will though and i will keep you posted! In new installations it seems to be working fine though comparing the (errors) feedback with the number of the file downloads! Is it not? Any comments from the rest of the people who downloaded would help me identify such problems and correct them in the future.cheers

 
user

 Re: Content Module


Yes, after the update didn't go well, I "bit the bullet" and did a new install. Then I remade all my content pages by copying and pasting from the old pages to the new. It seems to be working fine.

BC

 
user

 Re: Content Module


Now content works if i disable wysywig editor, else i recive blank page.

Morevover with common editor it does not replace bbcode but visualize it...but this maybe a problem of my editor...

that's some error viewing a page

Notice: Undefined index: showerror in file /modules/content/index.php line 40
Notice: Undefined index: cont_permits_advnaced in file /modules/content/index.php line 49
Notice: Undefined variable: crumbsout in file /modules/content/index.php line 169
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in file /modules/content/index.php line 166
Warning: array_reverse() [function.array-reverse]: The argument should be an array in file /modules/content/index.php line 88
Warning: xoopsOption[template_main] should be defined before including header.php in file /footer.php line 68

 
user

 Re: Content Module


Now i've installed all again with more attention and add/edit page works!! but if in the uri for example

http://xxx.net/modules/content/admin/add_content.php?id=2&return=1&showshort=1

appear the parameter "showsort" it doesn't work!!!
for examlpe same url but without it works:
http://xxx.net/modules/content/admin/add_content.php?id=2&return=1

so in the admin i can edit create page but in user page not.
i hope can be helpful

 
user

 Re: Content Module


do you get any error messages? strange!it works for me! and as far as i understand it works with the other parameters too! what do you mean it doesnt work? the parameter is not passed in the php file? do you get a blank page? any debug error messages?

 
user

 Re: Content Module


just the blank white pop up

in admin section all works well, it's only in the popup it does not works.

the only errors or warning i recive are in other content page/sections and i write them some post before!
ps: it's now available in italian

 
user

 Re: Content Module


can you replace the code in edit_content.php with this one and see if it works? This one is working for me. Perhaps i haven't updated the download file. By the way you can send me the italian language files if you want to include them in the package :)

Quote:



// ------------------------------------------------------------------------ //
// Author: Ben Brown //
// Site: http://xoops.thehandcoders.com //
// Project: The XOOPS Project //
// ------------------------------------------------------------------------- //
include_once "admin_header.php";

// ------------------------------------------------------------------------- //
// Switch Statement for the different operations //
// ------------------------------------------------------------------------- //
$xoopsDB =& Database::getInstance();
global $op, $showshort;
$menuModule = array();
$module_handler =& xoops_gethandler('module');
$criteria = new CriteriaCompo(new Criteria('hasmain', 1));
$criteria->add(new Criteria('isactive', 1));
$modules =& $module_handler->getList($criteria);
asort($modules);


$groupPermHandler =& xoops_gethandler('groupperm');
$module = $module_handler->getByDirname('content');
($xoopsUser) ? $groups = $xoopsUser->getGroups() : $groups = XOOPS_GROUP_ANONYMOUS;
$allowedItems = $groupPermHandler->getItemIds("content_page_write", $groups, $module->getVar("mid"));

if (!$groupPermHandler->checkRight("content_page_write", $id, $groups, $module->getVar("mid"))) {
//redirect_header(XOOPS_URL, 2, _NOPERM, false);
}
// ------------------------------------------------------------------------- //
// Do the edit of the Content //
// ------------------------------------------------------------------------- //
if ($op == "add" || $op == "link"){
$myts =& MyTextSanitizer::getInstance();

$title=$myts->makeTboxData4Save($title);
$ptitle=$myts->makeTboxData4Save($ptitle);
//$message=$myts->makeTareaData4Save($message);

//update permissions
$module_handler =& xoops_gethandler('module');
$groupPermHandler =& xoops_gethandler('groupperm');
$module = $module_handler->getByDirname('content');
$groupPermHandler->DeleteByModule($module->getVar("mid"), "content_page_view", $id);
if ($xoopsModuleConfig['cont_permits_advnaced'] > 0){
$groupPermHandler->DeleteByModule($module->getVar("mid"), "content_page_view", $id);
foreach ($group_read_perms as $group){
$groupPermHandler->addRight("content_page_view", $id, $group, $module->getVar("mid"));
}
if ($xoopsModuleConfig['cont_permits_advnaced'] == 2){
$groupPermHandler->DeleteByModule($module->getVar("mid"), "content_page_write", $id);
foreach ($group_write_perms as $group){
$groupPermHandler->addRight("content_page_write", $id, $group, $module->getVar("mid"));
}
}
}

if ($_FILES[imageupload]){
$uploadpath = XOOPS_ROOT_PATH."/modules/"._MIC_DIR_NAME."/headers/";
$source = $_FILES[imageupload][tmp_name];
$fileupload_name = $_FILES[imageupload][name];
if ( ($source != 'none') && ($source != '' )) {
$dest=$uploadpath.$fileupload_name;
if(file_exists($uploadpath.$fileupload_name)) {
redirect_header("add_content.php",2,_C_ERRORUPL);
} else {
if (copy($source, $dest)) {
$header_img = $fileupload_name;
} else {
redirect_header("add_content.php", 2, _C_ERRORUPL);
}
unlink ($source);
}
}
}

if ($op == "add"){
$externalURL = "";
}

$sqlinsert="UPDATE ".$xoopsDB->prefix(_MIC_CONTENT_PREFIX)." SET parent_id='".intval($parent_id)."', title='".$title."', ptitle='".
$ptitle."', text='".$message."', visible='".intval($visible)."', nohtml='".intval($nohtml)."', nosmiley='".intval($nosmiley)."', nobreaks='".
intval($nobreaks)."', nocomments='".intval($nocomments)."', address='".$externalURL."', submenu='".intval($submenu)."', newwindow='".
intval($newwindow)."', date=NOW(), link=0, header_img='" . $header_img . "' WHERE storyid='".intval($id)."'";

if ( !$result = $xoopsDB->query($sqlinsert) ){
echo _C_ERRORINSERT;
}
if ($return == 1) {
echo "";
//redirect_header(XOOPS_URL."/modules/content/index.php?id=" . $id, 2, _C_DBUPDATED);
}else{
redirect_header("manage_content.php" . ((isset($showshort)) ? "?showshort=" . $showshort : ""), 2, _C_DBUPDATED);
}
}elseif ($op == "pagewrap"){
$myts =& MyTextSanitizer::getInstance();

$title=$myts->makeTboxData4Save($title);
$address=$myts->makeTboxData4Save($address);

//update permissions
$module_handler =& xoops_gethandler('module');
$groupPermHandler =& xoops_gethandler('groupperm');
$module = $module_handler->getByDirname('content');

if ($xoopsModuleConfig['cont_permits_advnaced'] > 0){
$groupPermHandler->DeleteByModule($module->getVar("mid"), "content_page_view", $id);
foreach ($group_read_perms as $group){
$groupPermHandler->addRight("content_page_view", $id, $group, $module->getVar("mid"));
}
if ($xoopsModuleConfig['cont_permits_advnaced'] == 2){
$groupPermHandler->DeleteByModule($module->getVar("mid"), "content_page_write", $id);
foreach ($group_write_perms as $group){
$groupPermHandler->addRight("content_page_write", $id, $group, $module->getVar("mid"));
}
}
}

if ($_FILES[fileupload]){
$uploadpath = XOOPS_ROOT_PATH."/modules/"._MIC_DIR_NAME."/content/";
$source = $_FILES[fileupload][tmp_name];
$fileupload_name = $_FILES[fileupload][name];
if ( ($source != 'none') && ($source != '' )) {
$dest=$uploadpath.$fileupload_name;
if(file_exists($uploadpath.$fileupload_name)) {
redirect_header("add_content.php", 2, _C_ERRORUPL);
} else {
if (copy($source, $dest)) {
$address = $fileupload_name;
} else {
redirect_header("add_content.php", 2, _C_ERRORUPL);
}
unlink ($source);
}
}
}

$sqlinsert="UPDATE ".$xoopsDB->prefix(_MIC_CONTENT_PREFIX)." SET parent_id='".intval($parent_id).
"', title='".$title."', visible='".intval($visible)."', nocomments='".intval($nocomments).
"', address='".$address."', submenu='".$submenu."', date=NOW(), link=1 WHERE storyid='".intval($id)."'";
if ( !$result = $xoopsDB->query($sqlinsert) ){
echo _C_ERRORINSERT;
}
redirect_header("manage_content.php" . ((isset($showshort)) ? "?showshort=" . $showshort : ""), 2, _C_DBUPDATED);

}else{
// ------------------------------------------------------------------------- //
// Show Edit Content Page //
// ------------------------------------------------------------------------- //
global $xoopsDB, $xoopsModuleConfig;
$myts =& MyTextSanitizer::getInstance();
print_header();

$result = $xoopsDB->query("SELECT storyid, parent_id, ptitle, title, text, visible, nohtml, nosmiley,
nobreaks, nocomments, address, submenu, newwindow, assoc_module, link, header_img FROM ".$xoopsDB->prefix(_MIC_CONTENT_PREFIX)." WHERE storyid=".intval($id));

list($storyid, $parent_id, $ptitle, $title, $text, $visible, $nohtml, $nosmiley, $nobreaks,
$nocomments, $externalURL, $submenu, $newwindow, $assoc_module, $link, $header_img) = $xoopsDB->fetchRow($result);

$contentItems = array();
$result = $xoopsDB->query("SELECT *, blockid AS priority, 'content' AS type FROM ".$xoopsDB->prefix('content')." ORDER BY visible DESC, blockid");
while($tcontent = $xoopsDB->fetchArray($result)) {
$contentItems[] = $tcontent;
}
$allMenuItems = return_children($contentItems, 0);

$title=$myts->makeTboxData4Edit($title);
$message = $text;

$form = new XoopsThemeForm(_C_EDITCONTENT, "form_name", "edit_content.php");
$categoria_select = new XoopsFormSelect(_C_POSITION, "parent_id", $parent_id);
$categoria_select->addOption("", _C_MAINMENU);
foreach ($allMenuItems as $ct_item) {
$categoria_select->addOption($ct_item["storyid"], str_repeat("  ", ($ct_item['depth'] + 1)) . str_repeat("-", ($ct_item['depth'])) . $ct_item["title"]);
}
$form->addElement($categoria_select);
$text_box = new XoopsFormText(_C_LINKNAME, "title", 50, 255, $title);
$ptext_box = new XoopsFormText(_C_PAGENAME, "ptitle", 50, 255, $ptitle);
$form->addElement($text_box);
$url_box = new XoopsFormText(_C_EXTURL, "externalURL", 50, 255, $externalURL);
$form->addElement($url_box);

$newwindow_checkbox = new XoopsFormCheckBox('', 'newwindow', $newwindow);
$newwindow_checkbox->addOption(1, _C_NEWWINDOW);

$visible_checkbox = new XoopsFormCheckBox('', 'visible', $visible);
$visible_checkbox->addOption(1, _C_VISIBLE);

if ($xoopsModuleConfig['cont_wysiwyg'] == '1') {
$fckeditor_root = XOOPS_ROOT_PATH.'/modules/content/admin/fckeditor/';
include XOOPS_ROOT_PATH.'/modules/content/admin/fckeditor/fckeditor.php';
ob_start();
$oFCKeditor = new FCKeditor('message') ;
$oFCKeditor->BasePath = XOOPS_URL."/modules/content/admin/fckeditor/" ;
$oFCKeditor->Value = $message ;
$oFCKeditor->Height = 500 ;
$oFCKeditor->Create() ;
$editor = new XoopsFormLabel(_C_CONTENT, ob_get_contents());
ob_end_clean();
} else {
$editor = new XoopsFormDhtmlTextArea(_C_CONTENT, 'message', $message, 37, 35);
}

$form->addElement($t_area);

//user permissions
$module_handler =& xoops_gethandler('module');
$groupPermHandler =& xoops_gethandler('groupperm');
$module = $module_handler->getByDirname('content');
$page_groups = $groupPermHandler->getGroupIds("content_page_view", $id, $module->getVar("mid"));
$readpermits = new XoopsFormSelectGroup(_C_PERMITREAD, 'group_read_perms', true, $page_groups, 4, true);

$page_groups = $groupPermHandler->getGroupIds("content_page_write", $id, $module->getVar("mid"));
$writepermits = new XoopsFormSelectGroup(_C_PERMITWRITE, 'group_write_perms', true, $page_groups, 4, true);

$form->addElement($permissionField);

$option_tray = new XoopsFormElementTray(_OPTIONS,'
');
$option_tray->addElement($newwindow_checkbox);
$option_tray->addElement($visible_checkbox);

if ($xoopsModuleConfig['cont_wysiwyg'] == '1') {
$nohtml = new XoopsFormHidden(_DISABLEHTML, 0);
$nosmile = new XoopsFormHidden(_DISABLESMILEY, 0);
} else {
$nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', 0);
$nohtml_checkbox->addOption(1, _DISABLEHTML);
$option_tray->addElement($nohtml_checkbox);
}
if ($xoopsModuleConfig['cont_wysiwyg'] == '1') {
$form->addElement(new XoopsFormHidden('nobreaks', 1));
} else {
$breaks_checkbox = new XoopsFormCheckBox('', 'nobreaks', 0);
$breaks_checkbox->addOption(1, _C_DISABLEBREAKS);
$option_tray->addElement($breaks_checkbox);
}

$comments_checkbox = new XoopsFormCheckBox('', 'nocomments', $nocomments);
$comments_checkbox->addOption(1, _C_DISABLECOM);
$option_tray->addElement($comments_checkbox);

if (isset($return) && $return == 1) {
$return_field = (new XoopsFormHidden('return', 1));
}

$editid = new XoopsFormHidden('id', $storyid);

$submit = new XoopsFormButton("", "submit", _SUBMIT, "submit");

$modules_select = new XoopsFormSelect(_C_MODULENAME, "assoc_module", $assoc_module);
$modules_select->addOption("", _C_NONE);

foreach ($modules as $key => $value){
$modules_select->addOption($key, $value);
}

$form->addElement($submit);

$address_select = new XoopsFormSelect(_C_SELECTFILE, "address", $externalURL);
$address_select->addOption("", _C_NONE);
$folder = dir("../content/");
while($file = $folder->read()) {
if ($file != "." && $file != "..") {
$address_select->addOption($file, "".$file."");
}
}
$folder->close();

$uplfile = new XoopsFormFile(_C_UPLOADFILE, "fileupload", 500000);

$header_img = new XoopsFormSelect(_C_SELECTIMG, "header_img", $header_img);
$folder = dir("../headers/");
$header_img->addOption("", _C_NONE);
while($file = $folder->read()) {
if ($file != "." && $file != "..") {
$header_img->addOption($file, "" . $file . "");
}
}
$folder->close();
$uplimage = new XoopsFormFile(_C_UPLOADIMG, "imageupload", 500000);

//$form->display();
echo "

"._C_ADMINTITLE."

" . showMenu();
echo "";
echo '';
show_form_line($categoria_select);
show_form_line($text_box);
echo '


';

echo ' 0 ) ? "" : ' style="display:none;"' ) . '>';
show_form_line($url_box);
show_form_line($modules_select);
echo '';

echo '';
show_form_line($ptext_box);
echo '


';
show_form_line($uplimage);
show_form_line($editor);
echo '';

echo '';
echo '


';
show_form_line($uplfile);
echo '';

echo '';
if ($xoopsModuleConfig['cont_permits_advnaced'] > 0){
show_form_line($readpermits);
if ($xoopsModuleConfig['cont_permits_advnaced'] == 2){
show_form_line($writepermits);
}
}
show_form_line($option_tray);
echo $editid->render();
if (isset($nohtml))
echo $nohtml->render() . $nosmile->render();
if (isset($return_field))
echo $return_field->render();
show_form_line($submit);
echo "";

echo "
' . _C_CNTTYP . '


";
if (isset($showshort)) {
echo "";
}
echo ""; ?>

print_footer();
}
?>

 
user

 Re: Content Module


ok, i'll try!!i sent you my translation

 
user

 Re: Content Module


I encountered a SQL error in the version I downloaded today. In ct_navigation.php I changed line 22 to

$result = $xoopsDB->query("SELECT child.link, child.storyid, child.blockid, child.title, child.visible, child.parent_id, child.address,CASE parent.parent_id WHEN 0 THEN parent.blockid ELSE child.blockid END 'menu_block', CASE child.parent_id WHEN 0 THEN child.storyid ELSE child.parent_id END 'menu_id', child.newwindow FROM ".$xoopsDB->prefix('content')." child LEFT JOIN ".$xoopsDB->prefix('content')." parent ON child.parent_id = parent.storyid WHERE child.visible='1' ORDER BY menu_block, menu_id, parent_id, blockid");


There is just a comma missing after 'menu_block'. This was preventing the Content Menu block from drawing anything.

 
user

 Re: Content Module


i try to change "edit_content.php" but it does not work :(
this time with firebug ( javascript debugger ) i obtain this error while try to edit/copy/remove content by user ( with the four yellow icon ) while i does not happen with the same icon on the admin side.

xoops 2.3.3 php5 mysql5



Permission denyed to obtain the property XULElement.accessibleType
openEditWindow
("http://palocco.jalone.net/modules/content/admin/edit_content.php?id=1&return=1&showshort=1")content (riga 282)
onclick(click clientX=352clientY=210)hHoIZd3S...MHQ%3D%3D (riga 2)
[Break 
on this erroreditwin window.open(filePath,'editw...bar=0,menubar=0,width=640,height=640');

 
user

 Re: Content Module


Hi guys!
I try Content module and found it very usefull
but i have a big trouble. Content pages i've been created does'nt adds to Mainmenu. So i can not access to any content from the site. Help me pls.
xoops 2.3.3 PHP Version 5.1.6 MySQL 5.0.45

 
user

 Re: Content Module


you need to enable the menu block which comes with the module. Content doesn't use the original menu that comes with XOOPS mate. If you are indeed using this block, set the content permissions of your content.

 
user

 Re: Content Module


i don't know the reason but now it works... and without any changes or cache...
:)

 
user

 Re: Content Module


I've have a strange problem with Content 1.3.2 (with XOOPS 2.3.3), I have no problem adding content, but editing fails on a few items with the following problem: Error with updating database!
Strange thing is, when I add more content it's not to say what content will be editable or not. It's random. I looked at the content table in mysql and I don't see strange things there. It was a fresh Content install btw.

 
user

 Re: Content Module


I have updated the module mate. I think it should be working now without the 'edit' problem. I have also added the ability to add a page description and keywords for SEO. You will need a fresh installation though for it to work because the database is changed now.

However you could just add those two fileds via phpmyadmin in the content table

`keywords` longtext,
`page_description` longtext

and just overwrite the rest of the files in the old content folder.

 
user

 Re: Content Module


Thanks! It works like a charm now

 
user

 Re: Content Module


Page permissions don't seem to work. Groups, including anonymous, can access pages by typing in the URL even when they are set to not have access in the page permission view.

 
user

 Re: Content Module


Fixed mate! Can you download and check now?

 
user

 Re: Content Module


Greetings! I just downloaded this module this morning and installed it into a fresh install of XOOPS that I installed yesterday. The install went fine and adding content works fine. However, I have a problem when I edit content. The page loads fine, but for some reason the "Submit" button is missing at the bottom of the page! I thought this was pretty bizarre! Anyone seen anything like that before?

I tried to turn on debugging, but then when I try to edit a page all I get is a white screen. This module looks great, but I need to be able to edit! If you have any ideas, let me know. Thanks!

 
user

 Re: Content Module


Didn't have time to test it yesterday, but hopefully tonight.

If you feel like developing the module a bit more, I think page based edit permissions would be really nice
(as opposed to now where you have to give a user full admin control to the module for them to edit content)

 
user

 Re: Content Module


Yes, now it works. Thanks for that fix.

However, a word of WARNING: Do not try to upgrade your existing module. When I did that all content went missing (and couldn't be edited or viewed by admin either) and there were several errors when trying to write to the database with modified or new content.

 
user

 Re: Content Module


I already commented on this mate! But its a good thing to be clear with this.

Quote:

I have updated the module mate. I think it should be working now without the 'edit' problem. I have also added the ability to add a page description and keywords for SEO. You will need a fresh installation though for it to work because the database is changed now.

However you could just add those two fileds via phpmyadmin in the content table

`keywords` longtext,
`page_description` longtext

and just overwrite the rest of the files in the old content folder.

 
user

 Re: Content Module


My bad. Sry.

 
user

 Re: Content Module


Seems the "Content menu" block isn't working. All I'm getting is "Add main menu item", regardless of content already there and permissions set.

 
user

 Re: Content Module


For some reasons, links doesn't seem to work. The page just shows the link as text, but doesn't redirect to the page. Am I missing something obvious?

 
user

 Re: Content Module


you mean if you add a link (content item) or when you insert a link in your content?? Can we see this in action??

 
user

 Re: Content Module


I mean when I add a link as content item (as opposed to content or pagewrap). All I get is a white page with the actual URL displayed as text on the page.

I can upload an image when I get home (but I don't think that will help you much).

 
user

 Re: Content Module


OK, I've checked the code of the index.php file and at least to my uninitiated eyes it is truly a mystery how anyone can get the links to work. If you look at line 92, which is the code that is executed, all it does is print the address and exits! No wonder that's exactly what I get.

Shouldn't there be some kind of redirect there and some kind of connection to the module parameter?

 
user

 Re: Content Module


actually mate the links are supposed to link somewhere. Their purpose in the module is to have an external link in the dhtml menu, where the user clicks and visits an external or even internal page, if you want to make a redirect or something like that, you need to add a 'content' page not a 'link' page and in the content, view source code and add the javascript redirect code in the source. Save and thats it.

 
user

 Re: Content Module


D-oh! Of course, it only works from the menu block and not the page itself. Thanks for setting me straight

(I only intended to use it from the block, but for some reason I decided to test it from the actual page first)

 
user

 Re: Content Module


hallo there i have made an update to the module. The new version is 1.32.

There have been a few bug correction in this release

1. breadcrumbs not showing

2. There seemed to be a conflict resulting to a blank screen if you selected plain text editor (or not wysiwyg in version 1.3) which is now corrected.

3. Furthermore instead of selecting if you are gonna use wysiwyg editor or not, i replaced that option with a list of available editors of XOOPS to choose which one you prefer to use.

It has been also tested with XOOPS 2.4.1 and 2.3.3 and seems to be working.

The download link is the same i just replaced the file.

I think someone should update the version number in the module repository and the platform.

Please update your current version with this one and let me know of any problems or not.

 
user

 Re: Content Module


I am having trouble when I try to embed windows media,
the code I need to work with both IE and Firefox is

<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701" standby="loading microsoft windows media player components..." type="application/x-oleobject" width="320" height="310">
  <
param name="filename" value="http://www.familylifetv.com/VOD/FLTVLive.asx">
  <
param name="animationatstart" value="true">
  <
param name="transparentatstart" value="true">
  <
param name="autostart" value="true">
  <
param name="showcontrols" value="true">
  <
param name="ShowStatusBar" value="true">
  <
param name="windowlessvideo" value="true">
  <
embed src="http://www.familylifetv.com/VOD/FLTVLive.asx" autostart="true" showcontrols="true" showstatusbar="1" bgcolor="white" width="320" height="310">
object>


when I submit I end up with
<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" height="310" id="mediaplayer" width="320">
  <
param name="filename" value="http://www.familylifetv.com/VOD/FLTVLive.asx" />
  <
param name="animationatstart" value="true" />
  <
param name="transparentatstart" value="true" />
  <
param name="autostart" value="true" />
  <
param name="showcontrols" value="true" />
  <
param name="ShowStatusBar" value="true" />
  <
param name="windowlessvideo" value="true" />
  <
param name="bgcolor" value="white" />
  <
param name="url" value="http://www.familylifetv.com/VOD/FLTVLive.asx" />
object>

as you can see the classid is changed and the embed is striped.
Even when I add the code directly in html this is still the case
Any ideas how to fix this for now I have been inserting the code directly into the DataBase field and it works fine but it takes time and novice users can't do this.

 
user

 Re: Content Module


Good work with the module Kerkyra. I will probably end up using this for a new site

Really like the advanced permissions too.

 
user

 Re: Content Module


thanks mate! hope it helps you :)

 
user

 Re: Content Module


I know I've seen reference to this problem somewhere on the XOOPS site, but I haven't been able to find it.

When I edit a page, using Content 1.32, it enters additional / characters in front of any " that are present (and there are lots of those around values like image names, etc.). Here is a short snippet of what the source code ends up looking like:

<p style="">     <img alt=""N." height=""235"" src=""http://www.aka.org/UserFiles/Image/nwk_img/fusco_oval.png"" width=""350"" />

 

     Arial,Helvetica,Geneva,Swiss,SunSans-Regular""">NWK is a new affiliate club of the American Killifish Association. Our intent is to represent the interests of killie keepers of the Pacific Northwest region of the United States, and beyond.

 

     Arial,Helvetica,Geneva,Swiss,SunSans-Regular""">Membership is open to all killie people in the region and, ultimately, to anyone who is interested.



Can anyone remind me of what the fix for this is? I'm pretty sure I remember that there was one. BTW, I've tried two editors. Also, oddly enough, I have Content installed on another site, on the same server but a different XOOPS installation (both 2.4.4) and I don't see this problem there.

barryc

 
user

 Re: Content Module


I'm struggling with the same problem. Also, when using the XOOPS image manager with TinyMCE, the images disappear when the content is saved

 
user

 Re: Content Module


I managed to find the other thread that discusses this problem in the content module on 2.4.x. It is here. The last few posts in this long thread deal with the added slashes issue. I tried modifying the edit_content.php file, as suggested, and it does fix the problem. As I don't usually copy pages, I haven't changed copy_content.php. I would like to know if this raises security or other issues, however.

I am seeing a couple of other problems in Content 1.32. The option in preferences not to show the page title seems not to work for me. Second, the link title is also shown on the content page. I would prefer that not be the case. In my other XOOPS installation, running Content 1.3, the link title doesn't show. I don't understand why they are different in that respect.

Kerkyra, I'd appreciate your comments.

[Edit]I belatedly realized that what I was seeing as the link title was the breadcrumbs function and I turned that off. It still appears that if I mark No for Show Page Title in preferences, it still shows up.[/Edit]

barryc

 
user

 Re: Content Module


i will try and see why this happens mate! I know i had the same problem when the addslashes configuration was on in my php. I dont face this problem any more.

I'll check the other two bugs you mention and update the link as soon as i can.

Thanks for your comments mate.

 
user

 Re: Content Module


To clarify, the presence of the link title on the page was due to my having the breadcrumbs function turned on. As I had only one page set up at that time (in a new installation), I didn't realize that. I have now turned it off.

However, the page title appears even if I turn it off in prefs. I've temporarily fixed that by commenting out the code in the template file.

I'm not quite sure what you mean by having the addslasshes on in your php. Are you referring to the smartquotes in your php config file? Smartquotes is on on my server.

barryc

 
user

 Re: Content Module


HI kerkyra,
How do i add fckeditor in content module 1.32.

Thanks

 
user

 Re: Content Module


Mechs, out of curiosity, why would you prefer FCK to CK?

 
user

 Re: Content Module


Hi Mazarin,
Only one reason. In FCK there's a universal keyboard where i can add arabic text and together with english / malay translation.

If someone can add this feature in CK also will be good enough.

 
user

 Re: Content Module


Hi kayrkira you forgot stripslashes in edit-content.php and index.php.

in admin/edit_content.php in line 173 find

$editor_configs['value'] = $message;


replace with
$editor_configs['value'] = stripslashes($message);


in index.php finde line 126 find
$xoopsTpl->assign('content'$text);

replace with

$xoopsTpl->assign('content'stripslashes($text));


it should solve the magic quotes issue

 
user

 Re: Content Module


Hi mates,

@barryc : yes i was talking about magic_quotes values in php.ini configuration file. If it is on then php escapes quotes by default.

I added the stripslashes as ladyHacker suggested and should work now, haven't tested that myself yet.

I also fixed the show title issue, it shouldn't be showing now if is set to off in the preferences.

@Mechs : if you want fckeditor mate you'll have to add it in the /class/xoopseditor folder of your XOOPS installation and then update the module from the modules config. This should do the trick and add fck or any other editor in there.

I have updated the file with the fixed one so please be kind enough check if this one is working for you.

Thanks for your comments, hope this one works for everybody. If not we are still here to patch it up :)

 
user

 Re: Content Module


I made these changes to /index.php and /admin/edit_content.php and it worked. I still have the problem on the Page Title showing on the page even if I disable that in prefs.

Thanks Ladyhacker

barryc

 
user

 Re: Content Module


hi barry. download the module and replace index.php with the one in the archive. I have fixed this problem, and just tested it.

 
user

 Re: Content Module


Quote:

@Mechs : if you want fckeditor mate you'll have to add it in the /class/xoopseditor folder of your XOOPS installation and then update the module from the modules config. This should do the trick and add fck or any other editor in there.


I've tried, until i gave-up, and try my luck here.
Still could not get the FCKeditor in the selection list.

xoops: 2.4.2
content: 1.32

 
user

 Re: Content Module


Kerkyra,

thanks. I just updated my site by uploading all files and doing an update. The addslashes problem is fixed, as is the ability to show/not show page title.

Getting close to perfect now.

barryc

 
user

 Re: Content Module


Great work kerkyra! Fixed the slashes as well as my problems with disappearing slashes and small editing window in TinyMCE.

Thanks a lot!

 
user

 Re: Content Module


@Mechs: you mean fckeditor is under /class/xoopseditor/ folder mate?

Try clearing the cache folder, update the module again and then go to module options and check if it is there to select...

 
user

 Re: Content Module


kerkyra,

I just noticed one more problem on my installation. I didn't notice it before because I am usually logged on as admin. I am rebuilding a site that was badly out of date, now using XOOPS 2.4.4, php5, mySQL5. If I access it without logging on, I see the icon for editing the page. Clicking on it generates a message that I am not allowed access, but that icon should not appear if not logged on as admin.

You can see this by accessing http://www.aka.org/nwk1/

I'd appreciate you taking a look.

barryc

 
user

 Re: Content Module


@kerkyra,

1. I took fckeditor from content v0.5 & placed it in class/xoopseditor/
2. clear all the caches in /xoops_data/caches/smarty_compile/
3. Updated the content module
4. Still doesn't show up

Since i don't have much time to check further, i use back the content v0.5 and make some changes to make it compatible with PHP 5.0

If anyone still want to use their content v0.5, feel free to download here.
No changes to the sql.

 
user

 Re: Content Module


@Mechs: i think you should take the originall fckeditor from an older package of XOOPS mate. Not the one included in the older version of the module.

 
user

 Re: Content Module


@kerkyra,

Thanks kerkyra, now it work & it shows in the selection, i thought both editor are the same for having the same name, never check the files inside.
I even downloaded from sf.

Unfortunately it has no universal keybord.

 
user

 Re: Content Module


@barryc: i'll fix this later today and update the link mate. Sorry for the delay.

 
user

 Re: Content Module


hi barry, was looking at the bug you mentioned earlier. In my pages i dont see the edit icon if not logged in? Can you check your permissions and let me know if thats it?

 
user

 Re: Content Module


@barryc

Try clear all your caches first in:

/xoops_data/caches/smarty_compile/

delete all files inside the folder except for index.html

 
user

 Re: Content Module


@kerkyra,

you were right, it was a permissions error on my part, due to a misinterpretation of what each category of permissions in advanced did. I fixed that.

Now, I have one more observation/small problem. I have been updating a small site for a local aquarium club and I'm using the default theme. It has a blue header bar at the top. When I access Content pages on the site, that bar is surrounded by a white margin, which is not correct. If I access a different module, that white margin is not there. You can see this by accessing http://www.aka.org/nwk. The home pages and the first three pages in the Main Menu are Content pages. Click on Forums and you will see the difference in the header.

[Edit] Looking more closely, what is actually happening is that the whole page has a white margin around it so the banner code is presumably the wrong place to look. I'll take another look at the source.

I have looked at the source for the Content pages vs that for other modules and the only differences I can see are in the customized header contents. I cannot see a difference in the code for the header itself. You can see this difference by viewing the source of these pages. I think this might be a problem relating to css but I'm not sure.

Anyway, I'd appreciate it if you could take a look at this to see if you can identify the problem. That header is incorrect only in the Content pages, while all other modules render it correctly.

Thanks for the effort you put into this module. I think it's the best one for presenting static html.

barryc

 
user

 Re: Content Module


@barryc: Hey mate. I've been looking at the aquarium site but i'm not sure i got what you mean. Could you please post an image so i'd where to look exactly.

One thing i noticed is that when i visited the content pages, the logo was shown on the header whereas when i clicked on the forum link and on the news the logo is not there only the alt text is showing.

In those two pages the logo is searched in this folder
http://www.aka.org/nwk/img/header-logo_big.png

this should be in
http://www.aka.org/nwk/themes/zetagenesis/img/header-logo_big.png

not sure why this is happenning (if you manage to find out why i'm curious to know) otherwise just copy the logo in both folders.

 
user

 Re: Content Module


@kerkyra,

You happened to look when I was trying the zetagenesis theme to see if the problem is theme specific. It seems to be because I don't see a problem with the zetagenesis theme. I haven't finally settled on a theme for that little site yet anyway.

I noticed the same bug in the zetagensis theme with respect to the header image. I did what you suggest, which is to have the header image in both places. I assume there is a coding error in the theme somewhere.

Now, I finally have to ask - you use the term "mate" a lot. I'm quite comfortable with that, as I grew up in Australia. I'm just wondering where you picked it up.

barryc

 
user

 Re: Content Module


@barryc: I spent some time (4 years actually) in Brighton - UK during my studies so i guess i picked it up from there. I know its not american-english :)

Anyway if you switch the theme let me know so i can have a look. :)

 
user

 Re: Content Module


kerkyra,

I sent you a PM.

barryc

 
user

 Re: Content Module


I'll have a look on Tuesday mate and let you know.

 
user

 Re: Content Module


I have spent several hours researching content modules and this one did exactly what I needed it to do!

Thanks!

 
user

 Re: Content Module


glad it helped you out mate :)

 
user

 Menu Links


I am new to Xoops and anxious to use it. I am using the content module but having problems with the menu. Are there any examples or help files?

I have entered three item, item1 connected to main menu and Item2 and Item3 both connected to Item1. All have permissions be everyone. Should I see Item2 and Item3 form the menu as sub-menu items? (I do not). Item2 and Item3 are set to new window; I have tried both for Item1 without luck and cannot see or get to Item2 and 3.

I am using 2.4.4 and Content 1.32

Thanks in advance for any guidance!

 
user

 Re: Menu Links


hi'

For a customized main menu, you should use iMenu module, developed by freeformsolutions.ca

 
user

 Re: Menu Links


you should activate the dhtml vertical menu block of the content module, not the main menu block from the system.

 
user

 Re: Content Module


Thanks - I am not sure where to "activate the dhtml vertical menu block"...

The first content item (item1) has a "position" of Main Menu when looking at the Content summary page.

The next two items show the "position" as Item1.

I tried removing the pointer to Main Menu, but that generated error messages. Can you point me to the correct form?

Thanks in advance.

 
user

 Re: Content Module


I tend to agree with Burning. If it's static content you're after I can wholeheartedly recommend this module, but if it's the menu features you're after I recommend a menu module.

You can try MultiMenu.

 
user

 Re: Content Module


Thanks - I will check out both menu modules.

 
user

 Re: Content Module


try activating it through the system->blocks admin area

 
user

 Re: Content Module


kerkyra,

Many thanks! That was the piece I was missing! All working now.

 
user

 Re: Content Module


glad i helped mate :)

 
user

 Re: Content Module


Hi all, i updated the package, i did some minor fixes in this release. the only major thing is the upgrade.php code.

the new version is 1.33 so if someone could update it here.

Changelog

1.fixed upgrade code, so if you see the message in the admin area to upgrade the module, the link works now.
2.fixed some http_get in parts of the code.
3.added the version in the language file modinfo.php
4.deleted some junk files

thats it for now... hope it helps someone :)

 
user

 Re: Content Module


I have Xoops 2.4.4

And i have some things not working. But Content seems to be exactly what i need.

Problem is items do not apear in main menu, as they should. What could be the problem?

Here are the problems while submitting new content:
Notice: Use of undefined constant imageupload - assumed 'imageupload' in file /modules/content/admin/add_content.php line 35
Notice: Use of undefined constant imageupload - assumed 'imageupload' in file /modules/content/admin/add_content.php line 37
Notice: Use of undefined constant tmp_name - assumed 'tmp_name' in file /modules/content/admin/add_content.php line 37
Notice: Use of undefined constant imageupload - assumed 'imageupload' in file /modules/content/admin/add_content.php line 38
Notice: Use of undefined constant name - assumed 'name' in file /modules/content/admin/add_content.php line 38
Notice: Undefined variable: nohtml in file /modules/content/admin/add_content.php line 54
Notice: Undefined variable: nosmiley in file /modules/content/admin/add_content.php line 54
Notice: Undefined variable: nobreaks in file /modules/content/admin/add_content.php line 54
Notice: Undefined variable: nocomments in file /modules/content/admin/add_content.php line 54
Notice: Undefined variable: submenu in file /modules/content/admin/add_content.php line 54
Notice: Undefined variable: newwindow in file /modules/content/admin/add_content.php line 54

While editing:
Notice: Undefined variable: epage in file /modules/content/admin/manage_content.php line 19
Notice: Undefined variable: nocomments in file /modules/content/admin/manage_content.php line 22
Undefined variable: submenu in file /modules/content/admin/manage_content.php line 22
Notice: Undefined variable: epage in file /modules/content/admin/manage_content.php line 19
Notice: Undefined variable: nocomments in file /modules/content/admin/manage_content.php line 22
Notice: Undefined variable: submenu in file /modules/content/admin/manage_content.php line 22

 
user

 Re: Content Module


these are just notices mate.

1st check permisions for your content pages.

2nd the menu items appear in the dhtml block menu of the content module, not the main menu of the system module. Enable it through system->blocks admin

 
user

 Re: Content Module


Drop us a download link please.. Sourceforge still gives 1.32 and Xoops not even..

 
user

 Re: Content Module


hey mate,

this is the link to the 1.33 version, the update script is also fixed to work so that you wont have to uninstall any old version of the module to make it work, or make changes to the db manually.

hope it helps. Let me know if there is something wrong.

http://www.guidemap.gr/uploads/modules/Xoops 2_3_1_module_Content.rar

 
user

 Re: Content Module


This link downloads a file labeled 2_3_1. Is it the correct one? Shouldn't it be labeled 2_3_3?

barryC

 
user

 Re: Content Module


it's just the minimum xoops version with which this module is tested and works.

 
user

 Re: Content Module


Ahh! OK, thanks. I do think it would be useful though to have the version number in the file name. One ends up with multiple copies downloaded and it would be nice to be able to easily tell them apart.

barryC

 
user

 Re: Content Module


Seems there is a problem with advanced permissions (or maybe me ). If I had write access to a group four only a specific page, the users of that group will see the edit icon, but when the edit window opens it says they don't have access to the page.

Could it be that the edit page is actually on the admin side of the module and that they need to be global admins to be able to edit?

 
user

 Re: Content Module


Fixed now. I Updated the download file mate. Please have a look and confirm tha everything is OK.

 
user

 Re: Content Module


Works great now. Thanks a lot kerkyra!

 
user

 Re: Content Module


nice :) i'm glad its ok now

 
user

 Only variables should be assigned by reference


I have just loaded this Content module into a site that I have recently upgraded to 2.5.9 under php5.5

I am getting a lot of "Only variables should be assigned by reference " errors which I don't know how to fix. Can anybody give me some guidance, please.


When I go to the module and go to Manage Content" I get (in the debug window):
Errors:
Notice: Only variables should be assigned by reference in file modules/content/admin/admin_header.php line 27
Notice: Only variables should be assigned by reference in file modules/content/admin/admin_header.php line 28
Unknown: Non-static method Database::getInstance() should not be called statically in file modules/content/admin/manage_content.php line 10
Notice: Only variables should be assigned by reference in file modules/content/admin/manage_content.php line 10
Notice: Only variables should be assigned by reference in file modules/content/admin/manage_content.php line 127

The code for these lines are:

admin_header.php
27 $groupPermHandler =& xoops_gethandler('groupperm');
28 $moduleHandler =& xoops_gethandler('module');

manage_content.php
10 $xoopsDB =& Database::getInstance();
127 $myts =& MyTextSanitizer::getInstance();



And when I go to the home page I get:
Errors
Notice: Only variables should be assigned by reference in file modules/content/blocks/ct_sitenavigation.php line 14
Notice: Only variables should be assigned by reference in file modules/content/blocks/ct_sitenavigation.php line 18
Notice: Only variables should be assigned by reference in file modules/content/blocks/ct_sitenavigation.php line 19
Notice: Only variables should be assigned by reference in file modules/content/blocks/ct_sitenavigation.php line 48
Notice: Only variables should be assigned by reference in file modules/content/index.php line 14
Notice: Only variables should be assigned by reference in file modules/content/index.php line 20
Notice: Only variables should be assigned by reference in file modules/content/index.php line 119

Best wishe

Adrian

 
user

 Re: Only variables should be assigned by reference


OK got it! it is something about =& and the version on Github doesn't have that. It is still not working, but for some other reason.
Sorry to have bothered you.

Best wishes

Adrian

 


Login

Top Module Downloads

Who's Online

310 user(s) are online (40 user(s) are browsing Module Repository)


Members: 0


Guests: 310


more...

Donat-O-Meter

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