xoops forums

Forum Index


Board index » All Posts (kaotik)




kaotik

Just can't stay away
Posted on: 2010/10/4 12:24
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#1

Re: Using PHP in smarty templates.. How to do it the easy way.

Thanks Catz
This really is a great way to work with select boxes and dropdowns.



kaotik

Just can't stay away
Posted on: 2010/9/7 16:29
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#2

New Theme - An experiment in CSS3 and javascript

I've created a new theme to test CSS3 and javascript.

Test Site

This theme uses some interesting javascript code I found:
Bubbleup - My main menu grabs the module icon of installed and active modules and uses it.You can easily customize these images.

Bokehs - For my background I'm using generated cirles. These change position, color and size with each page reload.

I've tested this theme on several browsers and in terms of javascript speed it works best in Google Chrome, next in opera and last in firefox (which can get choppy with main menu). I haven't tested on any IE. Bokeh doesn't work properly in opera.

Let me know what you think. If there's interest I could release this theme.



kaotik

Just can't stay away
Posted on: 2010/8/20 11:35
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#3

Re: Load XOOPS theme w/o headers.

You could probably do this with preloads on your module. It would take quite a bit of work to accomplish it though.
An easier way to do it is to insert some <{if}> statements in your themes to check wich is the current module. This way it will display the pieces you want depending on the current module.


kaotik

Just can't stay away
Posted on: 2010/6/2 13:36
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#4

Re: RMCommon Utilities 2 and MyWords 2 (Alpha)

You can do this quite easily!
In the post create a custom field called: "storyimg" and place the url of the img you want inside it.

Now in php block add this code:
$storyimg=$post->get_meta('storyimg',false); 
#xoopsTpl->assign('storyimg',$storyimg);


in your template this code:
<img src="<{$storyimg}>">


and your done. Customize to your likeing!

I haven't actually tested this code so there might be some bugs to iron out.


kaotik

Just can't stay away
Posted on: 2010/6/2 10:28
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#5

Re: RMCommon Utilities 2 and MyWords 2 (Alpha)

what is "storyimg"?


kaotik

Just can't stay away
Posted on: 2010/5/27 15:51
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#6

Fonts free for comercial use

We have all seen many sites that offer free fonts for personal use.
This one has free fonts for comercial use!
font squirrel
Plus it has a very nifty section that automaticly generates eot fonts.
The author asks that you don't hammer his font-face generator.


kaotik

Just can't stay away
Posted on: 2010/5/24 13:01
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#7

Re: Tutorial: Add rmcommon comments to your modules

Hi deka87: Sorry I haven't responded earilier, just saw your post. Sure I'll help you.


kaotik

Just can't stay away
Posted on: 2010/5/19 15:06
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#8

Re: RMCommon Utilities 2 and MyWords 2 (Alpha)

I've used rmcommon without redmexico admin theme.
Granted the admin theme should be separate from rmcommon module, maybe some virtual beers sent to BitC3R0 could get it done?


kaotik

Just can't stay away
Posted on: 2010/5/19 15:04
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#9

Re: Xoops News to Mywords - Migration script

hello cerbero
I was refering to mywords migrations.
Next I'm going to do publisher migrations.

After that who know's :)


kaotik

Just can't stay away
Posted on: 2010/5/17 15:38
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#10

Re: RMCommon Utilities 2 and MyWords 2 (Alpha)

noob, solution:
open rmcommon/loader.php, around line 12 find:
// Check locations for system module
if (FALSE !== strpos($_SERVER['REQUEST_URI'], 'modules/system/admin.php')){
    
$fct = isset($_REQUEST['fct']) ? $_REQUEST['fct'] : '';
    
    switch(
$fct){
        case 
'modulesadmin':
            
header('location: ../rmcommon/modules.php');
            break;
    }
    
}


replace with:
function chechAdminTheme(){
include_once 
XOOPS_ROOT_PATH.'/class/logger/xoopslogger.php';
include_once 
XOOPS_ROOT_PATH.'/class/database/databasefactory.php';

$db XoopsDatabaseFactory::getDatabaseConnection();
$res $db->query("SELECT conf_value FROM ".$db->prefix("config")." WHERE conf_name='cpanel' ");
    while(
$row $db->fetchArray($res)){
        
$tst[1] = $row['conf_value'];
    }
return 
$tst;
}

$tst=chechAdminTheme();


if (
$tst[1] =='redmexico'){
// Check locations for system module
if (FALSE !== strpos($_SERVER['REQUEST_URI'], 'modules/system/admin.php')){
    
$fct = isset($_REQUEST['fct']) ? $_REQUEST['fct'] : '';
    
    switch(
$fct){
        case 
'modulesadmin':
            
header('location: ../rmcommon/modules.php');
            break;
    }
    
}
}
//---------------------------*/


The new code checks the database for the selected admin theme. If it's redmexico, then execute the rest.



TopTop
(1) 2 3 4 ... 59 »