xoops forums

Forum Index


Board index » All Posts (mschmid)




mschmid

Just popping in
Posted on: 2013/2/4 17:38
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#1

Individual Theme Header per Module in xoops 2.6

Hi Gurus

I do try to implement a Theme in xoops V2.6.0. There I wanna have for each Module a different Theme Header. Have seen in the default theme that there is the var <{$xoops_module_header}> in the theme_head.html file. Any idea how I can specify this <{$xoops_module_header}>. Or any other Idea how I can implement this different Headers (Menus) in the Theme?

Any hint will help
Markus


mschmid

Just popping in
Posted on: 2012/7/27 14:30
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#2

dojo integration in xoops

Hi Gurus

I do wanna integrate the Dojo Framework into xoops (http://dojotoolkit.org/).
The xoops System loads for most of the actions the full webpage. As we know, the xoops page designe is done with the theme.html. I have the dojo script load defined in the theme. Also the dojo design is in the theme. I do not wanna reload always the page again. Just inside the new dojo design framework some content from xoops (like iframe).
- Do you know what is the best practice for such a setup?
- is it possible to just call xoops api for user login without reloading html (as example)
- Did some one do this already?

Any hint would help
Markus


mschmid

Just popping in
Posted on: 2011/1/13 0:45
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#3

Re: how to read sessionid in version 2.5

Sorry I do not see the seesionid in the xoops config.

If I do twice the following I only get once the session ID:

echo "<br>session_id 1: " . session_id($_COOKIE[$xoopsConfig['session_name']]);
echo "<br>session_id 2: " . session_id($_COOKIE[$xoopsConfig['session_name']]);

Output:
session_id 1: cif3msoorkoct6co9pi010ctjm
session_id 2:

what do I wrong?


mschmid

Just popping in
Posted on: 2011/1/13 0:10
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#4

how to read sessionid in version 2.5

Hi Gurus

in earlier version it was possible to get the session id:

echo session_id();
or
echo "session_id: " . session_id($_COOKIE[$xoopsConfig['session_name']]);

now it is empty ?!

if I do read out the xoops config, I get the session id:

foreach ($xoopsConfig as $key => $req) {
echo "<tr><td width=200>_xoopsConfig[" . $key . "] </td><td> " . $req . "</td></tr>";
$n = $n + 1;
}

==> How can I read / access the session ID

any hint will help
Markus


mschmid

Just popping in
Posted on: 2009/3/30 19:09
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#5

Re: smarty template in admin area

kaotik
Many thx for your replay. It works the way you describe it.
=> Your Documentation Page is great


mschmid

Just popping in
Posted on: 2009/3/30 18:24
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#6

smarty template in admin area

I do try to use the XOOPS admin area. This works fine, but not with smarty enabled. I like to have smarty templates also in the admin area. My understanding is that this is supported with XOOPS version 2.3.3. This version I do have.
Modules reload/refresh in sytem admin is done.
The form does not get loaded!?

=> any hint will help
Markus

xoops_version.php:
---------------
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";
$modversion['templates'][3]['file'] = 'adminmenu.html';
$modversion['templates'][3]['description'] = 'Admin Template';


index.php called from the admin menu:
------------------------------
<?php
  
include '../../../include/cp_header.php';
  
xoops_cp_header();
  
//echo "Aber Hallo";  // for debug only
  
$xoopsOption['template_main'] = "adminmenu.html";
  
$xoopsTpl->assign('itemSuchbegrif',"Cool it works");
  include_once 
XOOPS_ROOT_PATH."/class/xoopsformloader.php";     // get the form creation classes
  
$hidden_form->assign($xoopsTpl);        // pass the form to SMARTY
xoops_cp_footer();



mschmid

Just popping in
Posted on: 2008/6/30 14:10
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#7

Re: Our Xoops 2.0.17 site used to sent lots of spam

Is this your own server? Linux? Windows? sendmail? check the processes you have running on your box


mschmid

Just popping in
Posted on: 2008/6/30 13:29
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#8

Re: Our Xoops 2.0.17 site used to sent lots of spam

Try to disable the modules that have email forms. If the SPAM still goes on, you don't have problems with your email forms. If still SPAM is sent out by your page. Implement an exact email topic filter in your forms. Allow only exact email addresses, only normal topic text in the subject and now email addresses, only one sender and receiver email address. Do a google search on php form mailer and spam.

hope it helps
Markus


mschmid

Just popping in
Posted on: 2006/10/26 22:55
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#9

Re: date week names in german instead english

I was a bit offline.....
=> thx for the answer. It helped

I add to the header.php:

setlocale(LC_ALL, 'de_DE.ISO8859-1');

the lang code I got by doing a "locale -a" on the FreeBSD console. If I did de_DE as the normal default = It does not work. So you have to use the one the system shows you.
BTW: On linux was the de_DE runing.


mschmid

Just popping in
Posted on: 2006/10/18 18:52
mschmid
mschmid (Show more)
Just popping in
Posts: 28
Since: 2002/9/19
#10

date week names in german instead english

I have in the html code this:

<{$smarty.now|date_format:"%A %e %B %Y"}>

It works fine. Only the language for the Weekdays are in english and not in german.
I have the german language files installed and selectet.
=> does not help
Have read on the web that the language for this smarty cal is defined in php!?
I have XOOPS v2.0.14 and PHP 4.4.0 Zend Engine v1.3.0,
Has some one an idea how I can change this? Any hint will help

thx
Markus



TopTop
(1) 2 3 »