1
mschmid
Individual Theme Header per Module in xoops 2.6
  • 2013/2/4 17:38

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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



2
mschmid
dojo integration in xoops
  • 2012/7/27 14:30

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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



3
mschmid
Re: how to read sessionid in version 2.5
  • 2011/1/13 0:45

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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 "
session_id 1: " . session_id($_COOKIE[$xoopsConfig['session_name']]);
echo "
session_id 2: " . session_id($_COOKIE[$xoopsConfig['session_name']]);

Output:
session_id 1: cif3msoorkoct6co9pi010ctjm
session_id 2:

what do I wrong?



4
mschmid
how to read sessionid in version 2.5
  • 2011/1/13 0:10

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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 "_xoopsConfig[" . $key . "] " . $req . "";
$n = $n + 1;
}

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

any hint will help
Markus



5
mschmid
Re: smarty template in admin area
  • 2009/3/30 19:09

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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



6
mschmid
smarty template in admin area
  • 2009/3/30 18:24

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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:
------------------------------
  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();




7
mschmid
Re: Our Xoops 2.0.17 site used to sent lots of spam
  • 2008/6/30 14:10

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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



8
mschmid
Re: Our Xoops 2.0.17 site used to sent lots of spam
  • 2008/6/30 13:29

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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



9
mschmid
Re: date week names in german instead english
  • 2006/10/26 22:55

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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.



10
mschmid
date week names in german instead english
  • 2006/10/18 18:52

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


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 »



Login

Who's Online

201 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

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

Latest GitHub Commits