xoops forums

Forum Index


Board index » All Posts (rickh)




rickh

Just popping in
Posted on: 2005/12/15 0:13
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#1

Get modulename/page title with PHP

I'm trying to add a few lines to the XOOPS php-code to get some usage statistics. I want to write the date/time, IP-adress, username and modulename to a text file (and then simply analyse is with Excel). In the FAQ i've read how to get the username (https://xoops.org/modules/smartfaq/faq.php?faqid=255). It is:

$uname = $xoopsUser->getVar('uname');

Now I try to get the modulename (the same as shown in the page title) on the same manner. I've tried something like:

$dir = $xoopsModule->getVar('name');

but that won't work. Can someone tell me how to do this? I know there are Smarty tags like <{pagetitle}> (or something like that), but i'm editing directly into the php-code, so it seems not to work.


rickh

Just popping in
Posted on: 2005/6/8 19:30
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#2

Re: Inactive members

I think u can just uncheck their membership from 'registered members' (edit user) or make them member of a custom made group with less access rights.


rickh

Just popping in
Posted on: 2005/6/6 14:26
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#3

Re: SOS: Incorrect Login!!!

Quote:

rickh wrote:
Already tried to turn on 'Update module template .html files from themes/your theme/templates directory'. Don't know where to edit this value in the database. I guess also in config table..

^^ ?


rickh

Just popping in
Posted on: 2005/6/5 13:59
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#4

Re: SOS: Incorrect Login!!!

Already tried to turn on 'Update module template .html files from themes/your theme/templates directory'. Don't know where to edit this value in the database. I guess also in config table..


rickh

Just popping in
Posted on: 2005/6/5 13:15
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#5

Re: SOS: Incorrect Login!!!

try to turn on Debug mode (via phpmyadmin) and look if u get strange messeages which can point to the cause of the problem.

And are u using a custom template set? If yes, try to set it (via phpmyadmin) to default.


rickh

Just popping in
Posted on: 2005/6/5 9:52
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#6

Re: Should i upgrade to 2.1 or wait for 2.2?

It's also a nice idea to documentate all of the changes/hacks you have applied to your 'default' XOOPS install.

A few weeks ago I was also still running 2.0.7.3 and stupid me had not documentated any of the changes I had made. So I didn't dare to upgrade At least I installed a apache/mysql server on my local PC and tested the upgrade patches. It worked without any fatal errors or something, so i installed the new patches at my XOOPS website Most of the changes i had made do I have made again in the 2.0.10 install and since then I'm noting any kind of change in a changelog.


rickh

Just popping in
Posted on: 2005/6/2 7:14
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#7

Re: Cannot set/change notifications (since 2.0.10 patch??)

well, go to admin menu. System -> templates. Then go to 'default', SYSTEM and view 'system_notification_select.html'. Select the code and copy it to the clipboard (ctrl+C).

Then go back to templates index. Select your custom made template. Go to SYSTEM and edit 'system_notification_select.html' with the one you've copied to clipboard (ctrl+V). Then save.

HTH


rickh

Just popping in
Posted on: 2005/6/1 9:58
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#8

Re: Google ads

can't you make a custom HTML block where you put the Google code in? Haven't tried it, but I think that should work.


rickh

Just popping in
Posted on: 2005/5/31 16:40
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#9

Re: Cannot set/change notifications (since 2.0.10 patch??)

I think I found the solution yet :) (always after satrting a topic )

I use a custom template set. The "system_notification_select.html" file is changed in 2.0.10. My site was still using the 2.0.7.3 version. I copied the 'default' template to my own template and now i can change notification settings :)

Maybe a good idea to note in the update instructions of XOOPS patched which template files have been changed?


rickh

Just popping in
Posted on: 2005/5/31 16:21
rickh
rickh (Show more)
Just popping in
Posts: 94
Since: 2004/4/9 6
#10

Cannot set/change notifications (since 2.0.10 patch??)

I've running a XOOPS site for a while since XOOPS 2.0.7.3. A few weeks ago I updated it to 2.0.9.xx and directly after that to 2.0.10.

Today I tried to set a notification for news module and it didn't work. I checked the checkbox and clicked 'update'. Now I get a message:

"Taking you back to where you were...."

and when I go to the notifications block at the news page there is nothing checked
I've also tried with other modules and other accounts, but notifications don't work anymore. Also when I try to unset notifications it won't work.

I'm for 99% sure this is since I updated to 2.0.9 and 2.0.10.



TopTop
(1) 2 3 4 ... 9 »