1
rickh
Get modulename/page title with PHP
  • 2005/12/15 0:13

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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.



2
rickh
Re: Inactive members
  • 2005/6/8 19:30

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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.



3
rickh
Re: SOS: Incorrect Login!!!
  • 2005/6/6 14:26

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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..

^^ ?



4
rickh
Re: SOS: Incorrect Login!!!
  • 2005/6/5 13:59

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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..



5
rickh
Re: SOS: Incorrect Login!!!
  • 2005/6/5 13:15

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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.



6
rickh
Re: Should i upgrade to 2.1 or wait for 2.2?
  • 2005/6/5 9:52

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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.



7
rickh
Re: Cannot set/change notifications (since 2.0.10 patch??)
  • 2005/6/2 7:14

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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



8
rickh
Re: Google ads
  • 2005/6/1 9:58

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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.



9
rickh
Re: Cannot set/change notifications (since 2.0.10 patch??)
  • 2005/5/31 16:40

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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?



10
rickh
Cannot set/change notifications (since 2.0.10 patch??)
  • 2005/5/31 16:21

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


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 »



Login

Who's Online

275 user(s) are online (162 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