T O P I C R E V I E W |
leatherlips |
Posted - 01 June 2008 : 22:06:18 Currently, there is a link at the top of the forum that says "Active Topics". I would like to possibly add the number of new topics added since a users last visit. It would look something like this:
Active Topics (5)
The number would represent the additional topics that were new since a users last visit. It would change dependent on the actual number of active topics for that user. If no new topics were added then it would either look like:
Active Topics
or
Active Topics (0)
Does anyone know how to do this?
Of course the formatting of the way the link looks does not have to be limited to what I suggested. It could also look something like this:
5 Active Topics< |
15 L A T E S T R E P L I E S (Newest First) |
MaD2ko0l |
Posted - 04 June 2008 : 09:17:21 eerrmm...well seen as it works fine as an admin, you will need to look for mlev's that are below 4
and i do belive that it is to do with the privateforums statement.
but i dont know who all you links go to the same forum.
i cannot replicate that problem no matter who i am logged in as on my test site.< |
leatherlips |
Posted - 04 June 2008 : 08:35:08 If I'm logged in as the admin it all works great. If I log in as a normal user then the link acts up. What should I be looking for?< |
leatherlips |
Posted - 03 June 2008 : 21:38:49 quote: Originally posted by MaD2ko0l
if you remove the active topic cout does the forums work as normal?
Yes. Thanks for sticking with me on this.< |
MaD2ko0l |
Posted - 03 June 2008 : 18:07:01 intreasting...my copy dont do that, howevere after a bit of messing about, as a normal memebr i woudl alwasy get a "you dont have acces to this forum" error and while looking around the code its somthign to do with private forums.
but also what i noticed, it seems as the stats page on default.asp doesnt filter out private forums as well.
i am either missing somthing or this is beyong my knowledge.
will have another look and see what i can come up with
P.S make sure you havent messed up of the code placements as somthign isnt quite right there, its liek it looking at a fixed value when goign to the forum.asp page.
if you remove the active topic cout does the forums work as normal?< |
leatherlips |
Posted - 03 June 2008 : 17:22:00 quote: Originally posted by MaD2ko0l
as for the other problem, what do you mean by all the links took him to the same topic?
can you recreate this problem youself?
Yes. You can see it on my test forum:
http://mangionemagic.com/forumtest/
Login: demo/demo
If you try to read or post a topic it always goes to my "About This Section" post.< |
MaD2ko0l |
Posted - 03 June 2008 : 10:58:41 quote: Originally posted by leatherlips
That did it! I added it to inc_func_common.asp. That won't cause a problem with the site will it? Or would it be better to add it to the private messages pages?
I didn't see the problem either while logged in as the admin. It seemed to only effect normal users.
eermm you could add it to the pm pages, but you would need to add it to all pages that didnt have it included.
so you could go through all the pages and add the include to the pages that dont have it,
or
you coudl go through all the asp pages and delete the include and just use it in inc_func_common as inc_func_common is included in everypage the forum uses.
as for the other problem, what do you mean by all the links took him to the same topic?
can you recreate this problem youself?< |
leatherlips |
Posted - 03 June 2008 : 09:33:43 Dang it...
I had a user let me know that he could no longer view the forum. All links took him to the same topic. It only seems to effect normal users because I as the admin never noticed these issues.< |
leatherlips |
Posted - 03 June 2008 : 09:18:39 quote: Originally posted by MaD2ko0l
<!--#INCLUDE FILE="inc_func_secure.asp" -->
That did it! I added it to inc_func_common.asp. That won't cause a problem with the site will it? Or would it be better to add it to the private messages pages?
I didn't see the problem either while logged in as the admin. It seemed to only effect normal users.
Thanks again! < |
MaD2ko0l |
Posted - 02 June 2008 : 22:22:58 doh, you even said the answer yourself ;-)
inc_func_secure.asp
the reason its messing up on that function is because the page you are trying to view doesnt have inc_func_secure.asp included.
try this
add the folloeing to the very 1st line as in before the <% and then try it.
<!--#INCLUDE FILE="inc_func_secure.asp" -->
the reason i wasnt seeing these errors is i was logged in as the admin :-(< |
MaD2ko0l |
Posted - 02 June 2008 : 21:57:31 god dam it..why can i never re create these errors tht you guys get?
i will have another look tomorrow. and see what/if i can get the error< |
leatherlips |
Posted - 02 June 2008 : 19:57:34 I've tried changing line 165 from this:
if chkForumAccessNew(Forum_PrivateForums,Forum_FPasswordNew,Forum_Subject,Forum_ID,MemberID) = true then
To this:
chkForumAccessNew(fPrivateForums,fFPasswordNew,fForum_Subject,fForum_ID,UserNum) = true then
But it didn't fix it. I changed it to that because that is how it looks now in inc_func_secure.asp. I'm thinking there are other parts of the code that just need to be updated to the current forum code. The topics count code is for an older version of Snitz. Can anyone let me know what other things in the code need to be revised to reflect the newer Snitz code?< |
Andy Humm |
Posted - 02 June 2008 : 19:39:14 Following on from leatherlips latest error message, I also tried to send a New PM to him and as soon as I clicked on the PM New button/link I received the same error message: Microsoft VBScript runtime error '800a000d' Type mismatch: 'chkForumAccessNew' /forum/inc_func_common.asp, line 165 It appears the 'chkForumAccessNew' needs addressing! < |
leatherlips |
Posted - 02 June 2008 : 19:32:09 I just found a problem. 
I also have the private messages mod installed.
One of my users tried to pm me with a quote and got the following error:
Microsoft VBScript runtime error '800a000d' Type mismatch: 'chkForumAccessNew' /forum/inc_func_common.asp, line 165
Line 165 is below in red. I've included some of the surrounding code:
if mLev = 4 then ModerateAllowed = "Y" elseif mLev = 3 and ModOfForums <> "" then if (strAuthType = "nt") then if (chkForumModerator(Forum_ID, Session(strCookieURL & "username")) = "1") then ModerateAllowed = "Y" else ModerateAllowed = "N" else if (instr("," & ModOfForums & "," ,"," & Forum_ID & ",") > 0) then ModerateAllowed = "Y" else ModerateAllowed = "N" end if else ModerateAllowed = "N" end if if chkForumAccessNew(Forum_PrivateForums,Forum_FPasswordNew,Forum_Subject,Forum_ID,MemberID) = true then if allAllowedForums = "" then allAllowedForums = Forum_ID else allAllowedForums = allAllowedForums & "," & Forum_ID end if end if next end if if allAllowedForums = "" then allAllowedForums = 0 end if
Any ideas what is going on?< |
leatherlips |
Posted - 02 June 2008 : 18:39:19 That seems to have done it! I'll do some more testing to verify. Thanks for sticking with me! Great job! I really appreciate it!< |
MaD2ko0l |
Posted - 02 June 2008 : 16:54:38 |