xoops forums

tony_it

Just popping in
Posted on: 2009/12/5 14:21
tony_it
tony_it (Show more)
Just popping in
Posts: 27
Since: 2009/12/3
#41

Re: Content Module and XOOPS 2.4.1

removing the addslashes function from

\modules\content\admin\copy_content.php

and

\modules\content\admin\edit_content.php

solved the problem, but i don't know if this fix can cause security consequence.

Yurdal

Friend of XOOPS
Posted on: 2009/12/10 10:50
Yurdal
Yurdal (Show more)
Friend of XOOPS
Posts: 363
Since: 2005/3/27
#42

Re: Content Module and XOOPS 2.4.1

I removed them but still no luck, or did i something worng with that removing ?

tony_it

Just popping in
Posted on: 2009/12/12 0:29
tony_it
tony_it (Show more)
Just popping in
Posts: 27
Since: 2009/12/3
#43

Re: Content Module and XOOPS 2.4.1

e.g

In edit_content.php on line 69

$sqlinsert="UPDATE ".$xoopsDB->prefix(_MIC_CONTENT_PREFIX)." SET page_description='".addslashes($description)."', keywords='".$keywords."', parent_id='".intval($parent_id)."', title='".$title."', ptitle='".
            
$ptitle."', text='".addslashes($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)."'";


replace with:

$sqlinsert="UPDATE ".$xoopsDB->prefix(_MIC_CONTENT_PREFIX)." SET page_description='$description', keywords='".$keywords."', 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)."'";


do the same with all the rest of addslashes.

Let me know if it works to you...

raydlee_msc

Just popping in
Posted on: 2012/3/14 6:17
raydlee_msc
raydlee_msc (Show more)
Just popping in
Posts: 1
Since: 2012/3/13
#44

Re: Content Module and XOOPS 2.4.1

\modules\content\admin\add_content.php

Permissions and submit box (id = "both"??) not displayed when "Content" (op="add"??) is selected.

Tried various brace manipulations on the "showform()" JScript code.

Intermediate suggestion is to move the if..then..else for "both" up to before the ite for "add" to prevent code issue from the ite for "add" affecting the execution of the ite for op!="".

There you are - bug report *and* a solution - am I good or what??

handrick12

Just popping in
Posted on: 2013/5/19 20:50
handrick12
handrick12 (Show more)
Just popping in
Posts: 3
Since: 2013/5/19
#45

Re: Content Module and XOOPS 2.4.1

in add content it doesnt show submit button ..i am not a coder so plz show me how to fix this ...i installed this on the latest xoops

barryc

Just can't stay away
Posted on: 2013/6/10 16:28
barryc
barryc (Show more)
Just can't stay away
Posts: 480
Since: 2004/3/20
#46

Re: Content Module and XOOPS 2.4.1

I'm having the same problem on Xoops 2.5.6. When adding content there is no submit button. Is there a fix? If not, is there another module for adding static pages to a site?

As a long time Xoops user, I'm feeling very frustrated trying to build a new site in 2.5.6, in that I have looked at the file that Mamba posted, with green and yellow highlighted modules, but it is by no means clear what each module does, and many of those I have looked for I can't find. For example, I looked for xContent but could only find a forum thread about it. The link to download it didn't work.

Barry Cooper

xoobaru

Just can't stay away
Posted on: 2013/6/10 17:28
xoobaru
xoobaru (Show more)
Just can't stay away
Posts: 494
Since: 2010/12/2
#47

Re: Content Module and XOOPS 2.4.1

Try the iframe module.

More here