6061
fabou78
Re: Issue instaling XOOPS 2.5.7.1
  • 2015/2/9 14:50

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


Thanks Mamba,

I did try yesterday to copy the file from /extras and noticed an improvement in a sense that I could get to where the install process created the database and also the tables but still later down the line I got that blank page again (sniff) with no error messages even though I have turned PHP debug on.

I will give it a try again tonight and post updates (I have spent the whole yesterday without success), in the meantime;

1) Should I still make "secure.dist.php" writable?
2) Do you have any idea why some hosts have problems with generating the "mainfile.php" file?

This is a test environment that I have setup in preparation for a complete live re-install from 2.5.0 (no migration) so I can enable anything I want for debugging purpose but would need some guidance.

Fabou



6062
sabahan
Re: Custom PHP Page with no header and footer
  • 2015/2/9 8:29

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


Thanks mamba and bitcero

Bitcero method is working and it exactly what i want

xoops is amazing

just one issue .. i put my code in root and my code is like this

test.php

include("/mainfile.php");   
include(
XOOPS_ROOT_PATH."/header.php");   

$meta_keywords "";   
$meta_description "";   
$pagetitle "";   

if(isset(
$xoTheme) && is_object($xoTheme)) {   
    
$xoTheme->addMeta'meta''keywords'$meta_keywords);   
    
$xoTheme->addMeta'meta''description'$meta_description);   
} else {    
// Compatibility for old Xoops versions   
    
$xoopsTpl->assign('xoops_meta_keywords'$meta_keywords);   
    
$xoopsTpl->assign('xoops_meta_description'$meta_description);   
}   

$xoopsTpl->assign('xoops_pagetitle'$pagetitle);   

//this will only work if your theme is using this smarty variables   
$xoopsTpl->assign'xoops_showlblock'0); //set to 0 to hide left blocks   
$xoopsTpl->assign'xoops_showrblock'0); //set to 0 to hide right blocks   
$xoopsTpl->assign'xoops_showcblock'1); //set to 0 to hide center blocks   
?>   

Testing
[en]Testing[/en]
echo "Hello world"?>


echo $xoopsTpl->fetch'test.html' ); 
?>




test.html
DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
        'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
>
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
    <
title><{if $xoops_pagetitle !=''}><{$xoops_pagetitle}> : <{/if}><{$xoops_sitename}>title>
    
    <
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
    <
meta name="keywords" content="<{$meta_keywords}>" />
    <
meta name="description" content="<{$meta_description}>" />
   

    
head>
<
body>
testing
<{$xoops_sitename}>
body>
html>


the content in test.php is display exactly what i would like it to be and multilanguage is working

but the content in my test.html template is not showing in my custom php page




thanks Again..



6063
bitcero
Re: How do I delete email field of the comments ?
  • 2015/2/9 7:21

  • bitcero

  • Quite a regular

  • Posts: 318

  • Since: 2005/11/26


Quote:

sova wrote:
How do I delete email field of the comments ?
How do I add a field name (sender) in the comments section?


I really believe that you shouldn't modify files from XOOPS, and I think that you are trying to modify the comment system to make an email form (maybe I'm wrong). If this is your case, don't do it! Is better to use a module or create a special php script for this purpose.

You can find a lot of freely available email scripts around the web or, better yet, create your own using XOOPS PHPMailer. I'm sure that you can find help here.



6064
bitcero
Re: Custom PHP Page with no header and footer
  • 2015/2/9 7:14

  • bitcero

  • Quite a regular

  • Posts: 318

  • Since: 2005/11/26


All is possible! :) The solution is in two steps: You code is good, but change the last line.

include("../../mainfile.php");  
include(
XOOPS_ROOT_PATH."/header.php");  

$meta_keywords "";  
$meta_description "";  
$pagetitle "";  

if(isset(
$xoTheme) && is_object($xoTheme)) {  
    
$xoTheme->addMeta'meta''keywords'$meta_keywords);  
    
$xoTheme->addMeta'meta''description'$meta_description);  
} else {    
// Compatibility for old Xoops versions  
    
$xoopsTpl->assign('xoops_meta_keywords'$meta_keywords);  
    
$xoopsTpl->assign('xoops_meta_description'$meta_description);  
}  

$xoopsTpl->assign('xoops_pagetitle'$pagetitle);  

//this will only work if your theme is using this smarty variables  
$xoopsTpl->assign'xoops_showlblock'0); //set to 0 to hide left blocks  
$xoopsTpl->assign'xoops_showrblock'0); //set to 0 to hide right blocks  
$xoopsTpl->assign'xoops_showcblock'1); //set to 0 to hide center blocks  
?>  

htmml or php content  

echo $xoopsTpl->fetch'your_template_path' );
?>
Then, create a template with all styles and content that you wish, but remember to provide all HTML structure:
DOCTYPE html>
<
html>
  <
head>...head>
  <
body>...body>
html>
Of course this solution is valid only with Smarty.



6065
Mamba
Re: XOOPS 2.6.0 Alpha 3 for Testing
  • 2015/2/9 6:02

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
is this new block officially in xoops 2.6 ?

Blocks will get a major rewrite in XOOPS 2.6.0.

Please see comment from Richard in this news
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6066
Mamba
Re: Custom PHP Page with no header and footer
  • 2015/2/9 5:55

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
i dont want to apply the theme.html layout.. dont want the header, footer, etc

I think, the easiest way would be to just copy and rename the /default theme, and then modify the theme.html by removing what you don't want, but still taking advantage of the other elements included in the theme?

But this is just my guess, and maybe some of our theme gurus can provide you with a better advise?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6067
Mamba
Re: How do I delete email field of the comments ?
  • 2015/2/9 5:46

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
How do I delete email field of the comments ?

Start by looking in the file:

\include\comment_form.php

You can probably comment out the line:

$cform->addElement(new XoopsFormText(_CM_EMAIL'com_email'5060$com_email), true);

but you would basically hack the core, so it would be your responsibility to test if it doesn't break anything. And make sure that you document all the changes, because if you upgrade XOOPS in the future, you'll have to do it again.

Quote:
How do I add a field name (sender) in the comments section?

You already have the field called "Name" - just rename it to "Sender"

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6068
Mamba
Re: New Responsive Admin Theme
  • 2015/2/9 5:19

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


We don't plan any official changes in Admin 2.5.x, as we are focusing on XOOPS 2.6.0

Of course, once Timgno is done with his Admin theme, you will be able to download it and use it in your installation.

Eduardo (aka Bitcero) is working on a new Admin theme for XOOPS 2.6.0 based on his Common Utilities
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6069
Mamba
Re: Issue instaling XOOPS 2.5.7.1
  • 2015/2/9 5:13

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Hi Fabou,

thank you for you interest in XOOPS.

Some hosts seem to have problems with generating the "mainfile.php" file.

In this case, do not rename any files to "mainfile.php", but instead copy the "mainfile.php" from /extras, and then try to install again.

Also, do NOT rename the "secure.dist.php" to "secure.php". XOOPS needs that and it takes care of everything.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6070
sabahan
Re: New Responsive Admin Theme
  • 2015/2/9 4:24

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


this should be in xoops next version

nice




TopTop
« 1 ... 604 605 606 (607) 608 609 610 ... 29425 »



Login

Who's Online

169 user(s) are online (66 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

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

Latest GitHub Commits