11
piar
Re: How to use SSL for login?
  • 2008/11/12 23:45

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


I was searching in code of XOOPS concerning SSL and I found that when that 'Use SSL for login' is set to 'yes' then in login block appears a link to secure login. When user presses that link a new browser window popping up with addres provided in 'URL where SSL login page is located' field. So now I know what for are that three fields and I know that it is not what I am looking for.
I will problably have to implement SSL as it is in that post which ghia linked here.

Thank you sailjapan and ghia for helping me with that problem!



12
piar
Re: How to use SSL for login?
  • 2008/11/12 17:20

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


Yes but apache on that server has already SSL configured (Certificate is generated and installed on server it isn't just registered in Certificate Authority).
And for example I can run in browser: https ://mydomain.com/user.php - it works (page is opened).

But I don't know how to use that three fields concerning SSL in General settings of XOOPS. What should I put there? I changed for example 'Use SSL for login' from default 'no' to 'yes' but I didn't notice any difference in behaviour of site. And I don't know what to put in 'URL where SSL login page is located' - https: //mydomain.com/user.php or something else?



13
piar
Re: How to use SSL for login?
  • 2008/11/12 16:20

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


Thank you!

I've already read that instruction but I still wonder if I couldn't use somehow built-in mechanism of XOOPS. I'm sure that there is something like that because of that three fields concerning SSL in General Settings. Maybe I just should enter there something and I will have secure login (my 2. scenario) without changing anything in code?



14
piar
Re: How to use SSL for login?
  • 2008/11/12 15:15

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


Thank you for your reply to my post.

In my server there is some SSL Certificate. In fact it isn't yet registered in the Certification Authority but this is not a problem. I don't need secure connection for customers of my site - I want it just for editor/administrator purposes.

But I don't know what to do to have this SSL working properly in XOOPS. When I put in my browser: https: //mydomain.com/user.php I get information that there is something wrong with certificate (it is clear because it is not registered), and then after pressing 'continue' I get information that some elements on page aren't secure. After I log in I see administration panel and address in browser become http: // (so after login browser is redirected to unsecure connection).

Could someone give here some quick tutorial what to do to have one of that scenarios:
1) loging into administration panel and making every operations using https;
2) use SSL just for login and then making all operations without SSL?

I see that there are that 3 fields concerning SSL in General Settings of XOOPS but I don't know how to use them :(



15
piar
How to use SSL for login?
  • 2008/11/12 11:33

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


I've found that there are some options in General Settings for making a secure login:
Use SSL for login?
SSL Post variable name
URL where SSL login page is located

Can someone explain me how to use them? I changed Use SSL for login to 'yes', but it seems that it is still done without SSL. And what should I put as URL where SSL login page is located? Now there is just default 'https: //'. Should I put there
https: //mydomain.com/user.php
or there is some another special file for secure login?

Could you also write me what is the difference when I have 'no' in Use SSL for login field but I put in my browser for logging address:
https: //mydomain.com/user.php
?

Regards



16
piar
Blocks on top page with module for start page problem
  • 2008/11/7 15:13

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


I am working in XOOPS 2.3.1.

I wanted to use module WF-Channel as my start page (because in that module you can select one of pages as default - so it can be used as start page of whole service).
I also wanted to have several blocks (from some another modules) only on that start page.

So in Preferences Main »» General Settings I set WF-Channel as 'Module for your start page' and in Blocks Administration I selected that several blocks as visible in 'Top Page'.

The result was that I didn't have that blocks visible on Top Page whereas they were on all other pages of WF-Channel module (so exactly on the contrary to what I wanted).

I've found some probable bug in file: class/theme_blocks.php.
In function: retrieveBlocks() there is a line:
<code>
$isStart = ( substr( $_SERVER['PHP_SELF'], -9 ) == 'index.php' && $xoopsConfig['startpage'] == $dirname );
</code>
I've changed it to:
<code>
$isStart = ( ($_SERVER['PHP_SELF'] == '/index.php' || $_SERVER['PHP_SELF'] == '/') && $xoopsConfig['startpage'] == $dirname );
</code>
and after that I got what I wanted.
My solution may be not perfect (it wouldn't problably work when you will have something like: http ://myserver.com/xoops/
instead of http ://myserver.com/) but it shows what is wrong in original function.

[Moved from XOOPS 2.2 bug reports: sailjapan]



17
piar
Re: TinyMCE - tables problem
  • 2008/11/3 15:09

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


Thank you for helping me!

I just removed 'width:100%' property of table from xoops.css and now it works as it should (I can set width using TinyMCE). I do know if this won't cause some problems with another tables of XOOPS (ie. main layout). If it will then I will search what shall I change in TinyMCE configuration to allow setting width in style field.



18
piar
Re: TinyMCE - tables problem
  • 2008/11/3 13:47

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


Thank you for reply to my post.
In my original project I have modyfied CSS, but to show the problem I set it up on testing server with default configuration of XOOPS:http://piar.net23.net/xoops/modules/news/submit.php
After clickig there on 'inserts a new table' you will see the problem. Whatever you will put in Width field or when you will try to change width of table in WYSIWYG mode table is always full window wide (despite changes in html code are done).



19
piar
TinyMCE - tables problem
  • 2008/11/3 11:54

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


I have problem with tables in TinyMCE editor in every modules which which I've tested. I can not change width of table - it always stay as wide as is the editor window.

There is a possibility to change width of table in TinyMCE and it works correct in example from TinyMCE site:http://tinymce.moxiecode.com/examples/full.php
But in XOOPS it does not work

I tried to configure TinyMCE exactly like in that example from tiny site by changing file: class/xoopseditor/tinymce/settings.php but it still does not work as I want to.

What should I do to allow useres to set width of table as they want in TinyMCE in XOOPS?

Regards



20
piar
Re: HTML Editor
  • 2008/10/30 19:52

  • piar

  • Just popping in

  • Posts: 22

  • Since: 2008/10/30


I've commented one line in file class/xoopseditor/tinymce/tinymce.php:

function setConfig$config )
    {
        
//$config["elements"] = implode(",", $this->getElements($config["elements"]));
        
foreach ($config as $key => $val) {
            
$this->config[$key] = $val;
        }
    }


and now both The Scoop as well as Extended Text are saved to DB :)




TopTop
« 1 (2) 3 »



Login

Who's Online

275 user(s) are online (167 user(s) are browsing Support Forums)


Members: 0


Guests: 275


more...

Donat-O-Meter

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

Latest GitHub Commits