xoops forums

Forum Index


Board index » All Posts (olivee)




olivee

Just popping in
Posted on: 2015/11/30 10:24
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#1

Re: Admin interface for theme

I think the best framework is Bootstrap
So I used it as a base with some modification.
I forgot to show you in the video. The theme is responsive so it can be adapted for any size of Desktop


olivee

Just popping in
Posted on: 2015/11/29 22:32
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#2

Re: Admin interface for theme

Hello
it is a pleasure to see my little project interest.
it's impressive to see my name appear in the list of developer of xoops.
since I have not stopped working on Themebuilder whenever I had some free time, I have completely rewritten the code.
Now I'm pretty happy with the result.
I'll make a video to show you where I am.
I still need some time to finish.

part1




part2




olivee

Just popping in
Posted on: 2014/7/29 15:41
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#3

Re: Need help for adding $vidsource in xoopstube title bar.

you are welcome


olivee

Just popping in
Posted on: 2014/7/23 14:44
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#4

Re: smarty in php file

thank you. all I need is $xoTheme

I got it

if ($xoTheme->template->_tpl_vars['xoops_showlblock']):
        
         
$_from $xoTheme->template->_tpl_vars['xoBlocks']['canvas_left']; if (!is_array($_from) && !is_object($_from)) { settype($_from'array'); }if (count($_from)):
    foreach (
$_from as $xoTheme->template->_tpl_vars['block'] => $kex):

            
                echo 
$kex["content"];
         endforeach; endif; unset(
$_from); 
        
     endif;


if (
$xoTheme->template->_tpl_vars['xoBlocks']['page_topleft'] || $xoTheme->template->_tpl_vars['xoBlocks']['page_topcenter'] || $xoTheme->template->_tpl_vars['xoBlocks']['page_topright']):
             
$_from $xoTheme->template->_tpl_vars['xoBlocks']['page_topcenter']; if (!is_array($_from) && !is_object($_from)) { settype($_from'array'); }if (count($_from)):
    foreach (
$_from as $xoTheme->template->_tpl_vars['block'] => $kex):

                    echo 
$kex["content"];
 
                 endforeach; endif; unset(
$_from);


olivee

Just popping in
Posted on: 2014/7/22 14:04
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#5

Re: smarty in php file

mamba thank you for the answer.
thank you for the links. in my case it is different. does not play with smarty, the solution is to use php directly.
echo '<{$xoops_slogan}> => "'.htmlspecialchars($GLOBALS['xoopsConfig']['slogan'], ENT_QUOTES).'"';

<{
$xoops_sitename}> - "'.htmlspecialchars($GLOBALS['xoopsConfig']['sitename'], ENT_QUOTES).'"


My problem now is to find the php code that generates the blocks. left center and right column.
have you a pist for this
<{if $xoops_showlblock}> 
<{foreach 
item=block from=$xoBlocks.canvas_left}> 
<{if 
$block.title}> 
<
div class="blockTitle"><{$block.title}></div
<{/if}> 
<
div class="blockContent"><{$block.content}></div
<{/foreach}> 
<{/if}>



olivee

Just popping in
Posted on: 2014/7/22 12:29
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#6

Re: smarty in php file

I think it is not possible to use smarty code in my case.

then I want to use php directly.

who can give me the php code for output as the left column.

in other words, have the php code that corresponds to

<{if $xoops_showlblock}>
<{foreach 
item=block from=$xoBlocks.canvas_left}>
<{if 
$block.title}>
<
div class="blockTitle"><{$block.title}></div>
<{/if}>
<
div class="blockContent"><{$block.content}></div>
<{/foreach}>
<{/if}>


olivee

Just popping in
Posted on: 2014/7/21 14:03
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#7

smarty in php file

I need your help

I want to add a php file to xoops so I have done this
create page.php in the root of xoops.

add this code in page.php

<?php 

 
if (file_exists("mainfile.php")) {   
include(
"mainfile.php");  
}

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

echo 
'<{$xoops_banner}>';
 
include(
XOOPS_ROOT_PATH."/footer.php"); 
?>


the problem is that <{$xoops_banner}> des not execute. so how can I do to execute default smarty code like <{$xoops_slogan}> <{$xoops_sitename}>


olivee

Just popping in
Posted on: 2014/7/21 11:07
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#8

Re: Need help for adding $vidsource in xoopstube title bar.

hello I am using a personalised mytube. I think you can do like this

add this line in /include/videoloadinfo.php
$video['sourceico'] = '<img src="' XOOPS_URL '/modules/' $xoopsModule -> getVar'dirname' ) . '/images/icon/' $video_arr['vidsource'] . '.png" alt="Source" title="Source" style="width: 16px; vertical-align: middle;">';

after
$video['icons']          = xtubeDisplayIcons($video_arr['published'], $video_arr['status'], $video_arr['hits']);


add the smarty code in /templates/xoopstube_singlevideo.html
<{$video.sourceico}>
after
<{$video.icons}>


the same think in /templates/xoopstube_videoload.html

than you must add one icon for each vidsource in /images/icon/ folder like 100.png 101.png ....


olivee

Just popping in
Posted on: 2014/7/20 10:25
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#9

Re: Asking for your opinion about QuickPages

good work

missing
// SQL file
'sqlfile' => array( 'mysql' => "sql/mysql.sql" ),

can I ask what is this code how can i use it.

$ht = new RMHtaccess('page: '.$page->id());
        
$rewrite $ht->canWrite() && $ht->isCapable();
        
$rewriteRule "# begin page: ".$page->id()."nRewriteRule ^".$page->getVar('custom_title')."/?(.*)$ modules/qpages/index.php?page=".$page->getVar('nameid')." [L]n# end page: ".$page->id();


I am trying to add almost the same thing to my project themebuilder


olivee

Just popping in
Posted on: 2014/4/30 11:51
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#10

Re: Admin interface for theme

you're right I note this on my list todo.



TopTop
(1) 2 3 »