xoops forums

Forum Index


Board index » All Posts (sabahan)




sabahan

Quite a regular
Posted on: 2015/3/3 3:07
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#11

Re: xBootstrap XOOPS Theme - Development

In xbootstrap site closed template
the text placeholder for username and password are hardcoded

should use
<{$smarty.const.THEME_PASS}>
<{$smarty.const.THEME_LOGIN}>


sabahan

Quite a regular
Posted on: 2015/2/9 8:29
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#12

Re: Custom PHP Page with no header and footer

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
<?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]
<?php echo "Hello world"?>


<?php   
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..


sabahan

Quite a regular
Posted on: 2015/2/9 4:24
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#13

Re: New Responsive Admin Theme

this should be in xoops next version

nice


sabahan

Quite a regular
Posted on: 2015/2/9 4:19
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#14

Re: XOOPS 2.6.0 Alpha 3 for Testing

is this new block officially in xoops 2.6 ?

this will be great if it is


sabahan

Quite a regular
Posted on: 2015/2/9 4:12
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#15

Custom PHP Page with no header and footer

i have this custom php page fro xoops...How do i have page with no header and footer, just some simple white background

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

i just want to have a white background with my html/php content

i want to use multilingual tag in my custom page so i can't use a normal html file

is this possible ?

<?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 
?> 

htmml or php content 

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


sabahan

Quite a regular
Posted on: 2014/5/6 5:30
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#16

Re: MyLinks 3.11 RC2 Ready for Testing

suggestion : add option to sort by weight


sabahan

Quite a regular
Posted on: 2014/5/6 4:53
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#17

Re: MyLinks 3.11 RC2 Ready for Testing

where to download latest and final version ?


sabahan

Quite a regular
Posted on: 2013/5/22 14:23
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#18

Re: Xoopspoll v1.40 Beta 1 - Ready for testing

thank you to all for this new version


sabahan

Quite a regular
Posted on: 2013/5/22 14:20
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#19

Re: question about <a href="<{$xoops_url}>

in theme or modules templates

<a href="<{$xoops_url}>/modules/news">News</a>

in blocks we can use this

<a href="{X_SITEURL}/modules/news/">News</a>

in editor not sure if its the correct way..it is something like this

<a href="/../modules/news/">News</a>


sabahan

Quite a regular
Posted on: 2013/4/2 5:40
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#20

Re: MyLinks 3.11 RC2 Ready for Testing

nice.. so far so good thank you for the update...congrats zyspec..

a suggestion maybe add the ability to disable rating, report broken link, tell a friend, comment link (after disable comment) etc



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