1
kaotik
Re: Using PHP in smarty templates.. How to do it the easy way.
  • 2010/10/4 12:24

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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




2
kaotik
New Theme - An experiment in CSS3 and javascript
  • 2010/9/7 16:29

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.




3
kaotik
Re: Load XOOPS theme w/o headers.
  • 2010/8/20 11:35

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.



4
kaotik
Re: RMCommon Utilities 2 and MyWords 2 (Alpha)
  • 2010/6/2 13:36

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.



5
kaotik
Re: RMCommon Utilities 2 and MyWords 2 (Alpha)
  • 2010/6/2 10:28

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


what is "storyimg"?



6
kaotik
Fonts free for comercial use
  • 2010/5/27 15:51

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.



7
kaotik
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/5/24 13:01

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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



8
kaotik
Re: RMCommon Utilities 2 and MyWords 2 (Alpha)
  • 2010/5/19 15:06

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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?



9
kaotik
Re: Xoops News to Mywords - Migration script
  • 2010/5/19 15:04

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

After that who know's :)



10
kaotik
Re: RMCommon Utilities 2 and MyWords 2 (Alpha)
  • 2010/5/17 15:38

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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 »



Login

Who's Online

191 user(s) are online (64 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

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

Latest GitHub Commits