1
costi
Adding auto-notifications when a news story is posted
  • 2003/12/15 21:14

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


1. Backup your database.

2. Run this SQL code in MySQL or mysqladmin.
insert into xoops_xoopsnotifications 
(not_modidnot_itemidnot_categorynot_eventnot_uidnot_mode)
select 10 as not_modidas not_itemid"global" as not_category"new_story" as not_eventuidas not_mode from xoops_users;


3. Now, all users are notified by email when a news article is posted to your site.

Status of the hack: works for me.
http://trubadur.usr.ro/



2
costi
Re: Custom block for Coppermine Gallery
  • 2003/10/17 13:38

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


I'm working too at a coppermine module based on coppermine 1.0. I guess I will finish it anyway.



3
costi
Re: How do you develop your modules?
  • 2003/10/16 19:28

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


Quote:
If you can't wait for it, you can get the fixed file (it's resource.db.php) from the CVS repository


Off course I need it now. I got module development to do, man! Thanks, it works now. Magic!



4
costi
Re: How do you develop your modules?
  • 2003/10/16 19:11

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


Quote:
I did see a note under the 2.0.4 or 2.0.5 release that said that the system->general preferences "Update module template .html files from themes/your theme/templates directory?"" now worked. If you look at the XOOPS table tplfile you will see a field called "tpl_lastmodified" which looks like a timestamp.


I have that specific option turned on. I did a grep on XOOPS files and found
grep -Rl tpl_lastmodified trubadur.usr.ro/
trubadur.usr.ro/class/smarty/plugins/resource.db.php
trubadur
.usr.ro/kernel/tplfile.php
trubadur
.usr.ro/modules/system/admin/modulesadmin/main.php
trubadur
.usr.ro/modules/system/admin/modulesadmin/modulesadmin.php
trubadur
.usr.ro/modules/system/admin/tplsets/main.php
trubadur
.usr.ro/modules/system/admin/tplsets/tplform.php


I tracked down the error to the file class/smarty/plugins/resource.db.php, line 42:
if ($filepath != "" && file_exists($filepath)) {


I've put the usual "die debug messages" and before the line with "if..." die($filepath) echoes something like this:
/home/costi/trubadur.usr.ro/themes//templates/system/blocks/system_block_user.html

You see that are two slashes, and file_exists() test fails. I have a XOOPS 2.03 upgraded consecutively (is that an english word?) to 2.04 and 2.05.



5
costi
How do you develop your modules?
  • 2003/10/15 14:27

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


I'm a newbie in XOOPS API and development. I started to develop a module and things are going slow.

What's annoying me the most is that I have to click to "update module" everytime I change a template. Am I stupid or there is another, much easier way? I worked before with smarty templates, and smarty detected when I modified the template and updated templates_c automatically. There is an option in XOOPS to make it behave this way?

And I don't get it why the templates are in a database when it's much easyer and faster on a filesystem.



6
costi
Re: Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/15 12:31

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


Something like that happened to me when I upgraded. It was because I had PHPAccelerator instaled and the cache files were not cleared.

I just uninstalled the damn thing. I needed it for EzPublish, but XOOPS is fast enough.



7
costi
Re: Need testers for XoopsGallery maintenance update
  • 2003/10/14 0:59

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


Just posted the message and just got two visitors . I don't want to dissappoint you, there is not much to see there, just a bunch of photos on a slow connection, and a little modified view_album template. That's it :).

PureLuXus: So, the people have requested the template based navbar. Ok, I the one who wants to do it .



8
costi
Re: Need testers for XoopsGallery maintenance update
  • 2003/10/14 0:41

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


I plan to do some serious hacking to xoopsgallery module because I'm not satisfied with it. The interface is very geeky, with a lot of clutter. I modified the view_album template a little:

http://trubadur.usr.ro/modules/xoopsgallery/view_album.php?set_albumName=album03
I think it's better now. I plan to move the navbar in the template so designers can modify it, and to add a little "quick comment" box on the view_photo template. No one will comment your photos if this means an extra click just to get to the editbox.

Is there an owner for this module? Can I work with him to integrate the hacks to the official module? I never contributed or worked in a open source "team" before, and I want to know how can we work together before I get knee deep into the code.

Thanks.



9
costi
Re: How to save 10K on each Xoops page
  • 2003/10/8 19:36

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


But it's locked in the english language. Why don't put static js in a file and js code with php language constants embedded in the main html?

What about the people with sites other than in english?



10
costi
Re: How to save 10K on each Xoops page
  • 2003/9/26 12:56

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


This is what's left of include/xoopsjs.php, if you want to try it for yourselves. The file static.js is hyperlinked in my previous post.

Edite by costi 8-nov-2003
<tha code deleted 'cause it's obsolete and was too long to post here>




TopTop
(1) 2 »



Login

Who's Online

223 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 223


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