31
allnewtome
Smartsection - private articles - comments on all articles visible in "recent comments" block
  • 2007/10/5 20:18

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Hi

Some of my smartsection articles are not visible to anonymous users.

On the home page I have the "recent comments" block. It displays the title of comments on ALL articles. E.g. "Re: private article..." Even for anonymous users.

(However, anonymous users cannot read the actual comment.)

Is there any way to alter the "recent comments" box so as only to display the title of the comment if the relevant article is also visible to the user?

Thanks again.



32
allnewtome
Re: Change URL paths of modules
  • 2007/9/4 17:20

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


You could do that with modrewrite. Google it. I hope that points you in the right direction but unfortunately I don't understand it!!



33
allnewtome
Re: Got error 134 from storage engine
  • 2007/9/1 16:40

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


I have XOOPS 2.0.16 and have just upgraded from cbb 3.0.4 to 3.0.8. Php 5 and MySQL 5.

I also saw the "error 134 from storage engine" when upgrading. It still said "upgraded successfully" - and appears to work OK.

Any error message worries me. What should I do?

(I will upgrade to 2.0.17 once the problems with that release have been ironed out, but I am upgrading my modules now.)

Thanks!



34
allnewtome
Re: Email adresses having . added to the end of them
  • 2007/3/13 21:11

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Hi there, this rang a bell so I searched Google for it and came across a post of my own... hope it helps!!!

https://xoops.org/modules/newbb/viewtopic.php?topic_id=37773&forum=15&post_id=224379

I use 2.0.16 now and the problem doesn't arise any more.



35
allnewtome
Re: Module that can build a form
  • 2006/12/20 0:08

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


I couldn't get Formulaire to work at some stage (can't remember why). Have a look at Liaise:http://www.brandycoke.com/home/modules/cryptica/showfile.php?file_id=31 I use it with XOOPS 2.0.16 with no apparent problem.



36
allnewtome
Smartsection 2.12RC1 error when url includes "keywords=(blank)"
  • 2006/12/16 10:57

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Hi there

I'm using XOOPS 2.0.16

Google provided a link to a page of mine like this:

smartsection/item.php?itemid=50&keywords=

The page text displayed as:

r /br /br /br /a href="http://www.thelink.co.uk/"/

When I enter either of these into the search bar it works fine:

smartsection/item.php?itemid=50
smartsection/item.php?itemid=50&keywords=xxx

I assume that, because XOOPS would never come up internally with keywords=(blank), this is a mini bug that hadn't been noticed.

Any advice?



37
allnewtome
Re: Email on PM
  • 2006/12/9 9:27

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


I'm pretty sure the hack itself works with 2.0.16 but the files supplied are older versions than the 2.0.16 files. Does anyone have the 2.0.16 with the hack applied?

By the way, how do you get a message saying "You have X new PMs" (It's on the forum somewhere I know...)



38
allnewtome
Re: Notification-management module
  • 2006/11/26 12:27

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


OK here is what I know.

Here is how the notifications table is structured:

mysqlshow columns from prefix_xoopsnotifications;   
+--------------+-----------------------+------+-----+---------+----------------+
Field        Type                  Null Key | Default | Extra          |
+--------------+-----------------------+------+-----+---------+----------------+
not_id       mediumint(8unsigned |      | PRI NULL    auto_increment |
not_modid    smallint(5unsigned  |      | MUL 0       |                |
not_itemid   mediumint(8unsigned |      | MUL 0       |                |
not_category varchar(30)           |      | MUL |         |                |
not_event    varchar(30)           |      | MUL |         |                |
not_uid      mediumint(8unsigned |      | MUL 0       |                |
not_mode     tinyint(1)            |      |     | 0       |                |
+--------------+-----------------------+------+-----+---------+----------------+
7 rows in set (0.00 sec)


And here is an example if its content:

mysqlselect from prefix_xoopsnotifications;
+--------+-----------+------------+---------------+------------------+---------+----------+
not_id not_modid not_itemid not_category  not_event        not_uid not_mode |
+--------+-----------+------------+---------------+------------------+---------+----------+
|      
|         |          category_item bookmark         |       |        |
|      
|         |          global_item   published        |     150 |        |
|      
|         |          global_item   category_created |       |        |
|      
|         |          | global        | new_fullpost     |       |        |
|      
|         |          global_item   published        |       |        |
|      
|         |          forum         new_thread       |       |        |
|      
|         |          forum         new_post         |       |        |
|     
10 |         |          global_item   published        |     153 |        |
|     
11 |         |          | global        | new_post         |      12 |        |
|     
12 |         |          global_item   published        |      12 |        |
|     
13 |         |          global_item   published        |      11 |        |
|     
14 |         |          | global        | new_post         |      11 |        |
|     
15 |         |          global_item   published        |       |        |
|     
16 |         |          | global        | new_post         |       |        |
|     
17 |         |          global_item   published        |      13 |        |
|     
18 |         |          | global        | new_post         |      13 |        |
|     
19 |         |          global_item   published        |      14 |        |
|     
20 |         |          | global        | new_post         |      14 |        |
|     
21 |         |          global_item   published        |      16 |        |
|     
22 |         |          | global        | new_post         |      16 |        |
|     
23 |         |          global_item   published        |      17 |        |
|     
24 |         |          | global        | new_post         |      17 |        |
|     
25 |         |          global_item   published        |      18 |        |
|     
26 |         |          | global        | new_post         |      18 |        |
|     
27 |         |          global_item   published        |      19 |        |
|     
28 |         |          | global        | new_post         |      19 |        |
|     
29 |         |          global_item   published        |      20 |        |
|     
30 |         |          | global        | new_post         |      20 |        |
|     
31 |         |          global_item   published        |      21 |        |
|     
32 |         |          | global        | new_post         |      21 |        |
|     
33 |         |          global_item   published        |      22 |        |
|     
34 |         |          | global        | new_post         |      22 |        |
|     
35 |         |          global_item   published        |      23 |        |
|     
36 |         |          | global        | new_post         |      23 |        |
|     
37 |         |          global_item   published        |      24 |        |
|     
38 |         |          | global        | new_post         |      24 |        |
|     
39 |         |          global_item   published        |     218 |        |
|     
40 |         |          | global        | new_post         |     218 |        |
|     
41 |         |          global_item   published        |      25 |        |
|     
42 |         |          | global        | new_post         |      25 |        |
|     
43 |         |          global_item   published        |     173 |        |
|     
44 |         |          | global        | new_post         |     173 |        |
|     
45 |         |          global_item   published        |      68 |        |
|     
46 |         |          | global        | new_post         |      68 |        |
|     
48 |         |          global_item   published        |      27 |        |
|     
49 |         |          | global        | new_post         |      27 |        |
|     
50 |         |          global_item   published        |      39 |        |
|     
51 |         |          | global        | new_post         |      39 |        |
|     
54 |         |        113 thread        new_post         |       |        |
+--------+-----------+------------+---------------+------------------+---------+----------+
49 rows in set (0.00 sec)


not_id is the notification identity number. When a notification is cancelled, XOOPS deletes the relevant row (and doesn't change any of the other not_id row numbers). New notifications are given the next highest not_id number (auto_increment) rather than filling in any gaps.

not_modid identifies the relevant module. On my site 2 is smartsection and 4 is cbb.

not_itemid is module-specific and identifies the relevant item. Most here are 0 as they refer to the module generally, but note not_id 54 where the not_itemid is 113 (the thread number to be notified about).

not_category and not_event explain themselves and are module-specific again.

not_uid identifies the relevant user by his user number.

not_mode - well, I honestly don't know what it means, but stick with 0 and you can't go wrong!



For 20 users you could easily use MySQL commands to add 20 rows for 20 new notifications. For more users I suppose you could write a PHP script to do it automatically. If you do that then submit it here! It could make a good module.

To delete users who haven't logged in for a while you'd just need to delete (or not) the relevant prefix_xoopsnotifications rows depending the value of the last_login column of the prefix_users table. I haven't time now to think it through fully.

I don't think that the table is referred to elsewhere so don't think there would be any problems with adding to it via MySQL (back it all up first though!) I've deleted rows with no problems but haven't had to add any yet.

Good luck!



39
allnewtome
Re: Notification-management module
  • 2006/11/25 16:36

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


As far as I can see it you have these options:

1. Tell your 20 members how to log in and change their own notification settings.

2. Log in using their usernames and do this if you know their passwords (this is what I did in the end as I also had 20 users to change!)

3. Change the notifications table in the database. As far as I see it's as simple as adding one row for each notification. I don't think it's cross-referenced anywhere else, so I don't think you can break anything by doing this. Recently I deleted a row from that table (it was causing a problem on the notifications.php page) and it didn't seem to have any knock-on effects.

I can try to explain option 3 if you feel it would be useful. If anyone knows that that option would break anything then please say so



40
allnewtome
Re: Blank page appearing with "notifications.php" - Error produced from debug
  • 2006/11/23 22:47

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


This has been a very useful thread.

I am using SMARTSECTION 2.12 RC1 (and now XOOPS 2.0.16) and the notification.php page was blank, but not for all users.

The debug showed this:

SELECT FROM prefix__modules WHERE dirname 'smartsection'
SELECT FROM prefix__config WHERE (conf_modid '2'ORDER BY conf_order ASC
SELECT title
short_url FROM prefix__smartsection_item WHERE itemid 170
Error number
1146
Error message
Table 'database.prefix__smartsection_item' doesn't exist


N.B. smartsection_items is a table name.

The content of prefix_xoopsnotifications included this:

52 |         |        170 item          approved         |       |        |
|     
53 |         |        185 item          approved         |       |        |


(There was also another one for the admin, that he be notified when article approved.)

I logged in as admin and deselected the "notify when articles approved" option.

I used sql to get rid of the rows above (delete from x__xoopsnotifications where not_id=52; delete from x__xoopsnotifications where not_id=53;)

Now it works fine.

I don't really need to have the "notify on approval" option, so just won't use it any more. I am assuming (perhaps wrongly) that that was causing the problem.

Perhaps this will help someone.




TopTop
« 1 2 3 (4) 5 6 7 ... 15 »



Login

Who's Online

174 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

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

Latest GitHub Commits