1
bleu_
Re: Upgrade from 2.0.16 ==> 2.0.17.1
  • 2007/11/3 7:48

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


The only reference I could see to this kind of smarty in the changelog was :


============================
2007/08/24: Version 2.0.17
============================
+ Update smarty class (version 2.6.18) (dugris)


because it is right those files don't exist anymore in 2.0.17, the developers should confirm their deletion



2
bleu_
Re: how to hide the menus
  • 2007/11/3 7:36

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


By entering the administration system you can use a combination of setting up functions for Blocks and for Groups. The Operations Guide could help you some.



3
bleu_
Re: New installation - Missing Official Modules
  • 2007/10/23 19:45

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2





4
bleu_
Re: An aproach with Xoops and Cakephp
  • 2007/6/23 6:57

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


A translation to Saganxis post, NOT done by a translator software but by a human being


Since some time ago I've been wanting to to do an interface with XOOPS with a known framework, like Cakephp. I searched alot if someone had done something with XOOPS and Cakephp and I couldn't find anything.
What I did find was several interesting articles like:

http://www.gigapromoters.com/blog/2007/01/28/joining-powers-of-two-great-systems-joomla-and-cakephp/

http://www.thinkingphp.org/2006/05/04/using-cakephp-in-external-php-systems-cmss-weblogs-etc/

and

http://www.gigapromoters.com/blog/2007/02/13/finally-a-practical-solution-joomla-with-cakephp-together-jake/

so I started trying to create a bridge for XOOPS.

I will tell you here what I did. Of course this is just an expermiment/try so therefore there are many things left to do.

I explain to you that what I tried to do was follow the explanation of Jake in his initiation to this and downloading his example, and from that I was able to build this package for XOOPS,

Those who are interested can help for this to get a better a structure.

What I tried to do was a sort of module that contained Cakephp inside the main directory where XOOPS is.

This small project was named Koops.

You can download it from

HERE
###############################################
IMPORTANT:

Make sure that mod_rewrite is set to True in the Apache, and configured correctly

###############################################

The directories are set this way:



wwwroot
xoops
cache
class
...
koops
...
an so on...

1 )

Modify the file header.php of the main XOOPS directory

Adding at the end the following line:

require_once( 'koops/cake.php');

We can of course modify here the directory where koops will be included, but afterwards we must have in mind the ROOT_PATH variables for Cakephp.

2 )

Inside koops we copy all that is contained in the Cakephp directory.
It would result this way:

koops/
app
cake
index.php
...

3 )

Inside koops/app/webroot/index.php comment the two following lines:
...

if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
} else {
// $Dispatcher=new Dispatcher();
// $Dispatcher->dispatch($url);
}

....

Then a trigger has to be made to unite cake and XOOPS. Create en the directory /koops
the archives cake.php and cake.inc.php:

cake.php :

require_once("cake.inc.php");
$xoops_path dirnamedirname__FILE__ ) );

require_once( 
$xoops_path '/mainfile.php' );


$controller$_GET['option'];

$action=$_GET['task'];

$param $_GET'id' ];

HTML_cake::requestCakePHP('/'.$controller.'/'.$action.'/'.$param);


?>


and cake.inc.php


class HTML_cake {

function 
requestCakePHP($url)
{
$_GET['url']=$url;
require_once (
'app/webroot/index.php');

$Dispatcher=new Dispatcher();
$Dispatcher->dispatch($url);


}

}

?>


This will manage that controlador/acción/vista will reach Cakephp.

At this point the directory will look like this:

koops/
app
cake
index.php
cake.php
cake.inc.php
...


4 )

Then in koops/app/config/ modifico/ create the following files:

bootstrap.php


function reform_url($url)
{

$temp=explode('/',$url);
$controller=$temp[1];
$action=$temp[2];
$param=@$temp[3];
$url=XOOPS_URL.'/index.php?option='.$controller.'&task='.$action;
if(
$param)
$url=$url.'&id='.$param;
return 
$url;
}
?>


With the aim that it interprets and modifies the URL's that Cakephp needs.

In the following file: /koops/app/config/core.php

We configure this:

define('AUTO_SESSION', false);

So the session control is still being kept done by XOOPS.

In koops/app/config/database.php


class DATABASE_CONFIG
{
var 
$default = array('driver' => XOOPS_DB_TYPE,
'connect' => 'mysql_connect',
'host' => XOOPS_DB_HOST,
'login' => XOOPS_DB_USER,
'password' => XOOPS_DB_PASS,
'database' => XOOPS_DB_NAME,
'prefix' => 'yourprefix_' );
}
?>




5 )

With this it would be enough for now. The download archive includes an example.

To use it all you have to do is create a table 'names' with the following fields:

id
names

Then to use it:

http://localhost/index.php?option=names&task=index

That's all. This is only an approximation. Those who are interested are welcome, and suggestions also.



5
bleu_
Re: Need help with LDAP authentication
  • 2007/6/23 6:10

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


Please respect the work done at xoops.org, it is not junk, there are respectfull developers making things better, I use XOOPS LDAP and it works fine.



6
bleu_
Re: Information about XOOPS official sites under-construction
  • 2007/6/23 5:56

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


"What is the difference?"

none



7
bleu_
Re: XOOPS Codes Explained
  • 2007/6/23 5:51

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


the DHTML extended view which is obtained after installing Frameworks can give you an optimized default XOOPS bbcode editor (includes wiki links and you can select text and apply bbcode directly to it)



8
bleu_
Re: HELP!!! I can't login to my site.
  • 2007/6/23 5:46

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


first thing I think of is that to make sure your browser is accepting cookies, is it this?



9
bleu_
Re: Links at the bottom of my page as XOOPS
  • 2007/6/23 5:34

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


As I see wfchannel is for static html pagesAm I correct?


I would recommend rather smartsection or news to be used, they are more updated than wfchannel.

To use the modules go into Adminitration menu > and click on the module icon after you have installed it.

See if SmartSection 2.13 Final works.



10
bleu_
Re: Embedded windows media player
  • 2007/3/9 0:09

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


with HTML view you can insert any wmv file like this:
<div align="center">
  <
object width="320" height="286" id="MediaPlayer" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
    <
param name="filename" value="http://pathtoyourmovie.wmv" />
    <
param name="Showcontrols" value="True" />
    <
param name="autoStart" value="True" />
    <
embed width="320" height="240" type="application/x-mplayer2" src="http://pathtoyourmovie.wmv" name="MediaPlayer" />  object>
div>


you set the height and width you want and the path where your file is you can also set the parameters to true or false to what with you want. (tested with Koivi checking the HTML view)




TopTop
(1) 2 3 »



Login

Who's Online

185 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits