11
sabahan
Re: xBootstrap XOOPS Theme - Development
  • 2015/3/3 3:07

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


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

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



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



13
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



14
sabahan
Re: XOOPS 2.6.0 Alpha 3 for Testing
  • 2015/2/9 4:19

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


is this new block officially in xoops 2.6 ?

this will be great if it is



15
sabahan
Custom PHP Page with no header and footer
  • 2015/2/9 4:12

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


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"); 
?>



16
sabahan
Re: MyLinks 3.11 RC2 Ready for Testing
  • 2014/5/6 5:30

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


suggestion : add option to sort by weight



17
sabahan
Re: MyLinks 3.11 RC2 Ready for Testing
  • 2014/5/6 4:53

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


where to download latest and final version ?



18
sabahan
Re: Xoopspoll v1.40 Beta 1 - Ready for testing
  • 2013/5/22 14:23

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


thank you to all for this new version



19
sabahan
Re: question about <a href="<{$xoops_url}>
  • 2013/5/22 14:20

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


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>



20
sabahan
Re: MyLinks 3.11 RC2 Ready for Testing
  • 2013/4/2 5:40

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


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 »



Login

Who's Online

224 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

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

Latest GitHub Commits