Customizing SMF > Tips and Tricks
Share user database for 2 (or more) different forums.
Wh0CaREs:
I have question well when i go to online members i see
User Time Action
Online SworDFisH 04:27:18 PM Viewing Who's Online.
Online Gallardo 04:19:38 PM Viewing the topic Welcome to SMF!.
And when i want to lick one Welcome to SMF it redirect me to 2 forum because i watch secund forum, but this theme was on first forum... How i can fix that it link to right forum and right post?
Eudemon:
that's one of the conflict issue with sharing log_online
for example
when an user view one topic, its action will be recorded and stored to database with the board, topic id, but not domain
so even he is actually viewing one topic in 2nd forum, when the 1st forum fetches info from that table, that row will be loaded as if he is on the 1st forum doing the action in that specific topic/board id
there are two solutions to this problem i can think of (if you have other idea please share it)
1, do not share log_online, each site will display its own traffic, obviously less than when share the log which combines two sites' traffics
2, modify that part of smf function, for example, add domain name to the query when storing to db, and also modify the function when fetch from db, simply read and add domain to the action link, to make it fancy, if you want to make it display whole link only when it's not the same domain, just add a condition check before hand
of course, it's easier to say than do it, but this theory(logic) should probably work
luuuciano:
I do not remember how pmx-subforums mod handle it... (in fact, I have disabled the who section of our forum)
Wh0CaREs:
--- Quote from: Eudemon on March 29, 2012, 08:38:42 PM ---that's one of the conflict issue with sharing log_online
for example
when an user view one topic, its action will be recorded and stored to database with the board, topic id, but not domain
so even he is actually viewing one topic in 2nd forum, when the 1st forum fetches info from that table, that row will be loaded as if he is on the 1st forum doing the action in that specific topic/board id
there are two solutions to this problem i can think of (if you have other idea please share it)
1, do not share log_online, each site will display its own traffic, obviously less than when share the log which combines two sites' traffics
2, modify that part of smf function, for example, add domain name to the query when storing to db, and also modify the function when fetch from db, simply read and add domain to the action link, to make it fancy, if you want to make it display whole link only when it's not the same domain, just add a condition check before hand
of course, it's easier to say than do it, but this theory(logic) should probably work
--- End quote ---
Then i wont share log :D
denden60:
I need to develop a forum that includes a lot of sub forums. Anyone remembers smfxxl? Someone used to specialize in this a few years back?
Thanks
Denis
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version