Advertisement:

Author Topic: Anonymous Board Mod  (Read 65173 times)

Offline Vuhdo

  • Newbie
  • *
  • Posts: 7
Re: Anonymous Board Mod
« Reply #280 on: March 10, 2013, 03:41:27 AM »
I'll see if I can do something later.

Great TY!

Offline flossy

  • Newbie
  • *
  • Posts: 7
Re: Anonymous Board Mod
« Reply #281 on: April 16, 2013, 11:57:54 AM »
I seem to be having one problem.

I am currently using SMF 2.0.4. I have added anonymous board mod and it's working however i am having one slight problem. 4/5 times, The first poster is not anonymous and is showing their usernames however all replies are anonymous. Only first poster is not. Then every now and then. Randomly. i'd say 1/5 times. The first poster would be anonymous. lol

Is there a way i can fix this or do you know why this is happening?

It is not a live forum so i have deleted the boards and mod. Cleared cache and reinstalled the mod and new boards and still doing the same thing. :s

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 515
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: Anonymous Board Mod
« Reply #282 on: April 16, 2013, 06:52:09 PM »
Very strange problem. Unless you can find some pattern in the occurrences of the problem, there really isn't much help anyone can offer. Does the SMF error log say anything? What about the server error log? Generally I would associate any intermittent errors like the one you're having to failing hardware. But I think it could also be lack of hardware resources such as ram shortages or server overloads, etc.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Offline Kindred

  • Support Specialist
  • SMF Master
  • *
  • Posts: 31,451
  • Gender: Male
    • wagner999 on Facebook
    • @Kindred_999 on Twitter
Re: Anonymous Board Mod
« Reply #283 on: April 16, 2013, 07:30:17 PM »
Actually,  can duplicate the problem...   But it becomes even odder.
On boards which are not set to be anon, there is no option...  But the first poster of the  thread is forced anonymous.

It seems like the first post in threads is treated the opposite of the setting.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline flossy

  • Newbie
  • *
  • Posts: 7
Re: Anonymous Board Mod
« Reply #284 on: April 16, 2013, 09:48:02 PM »
Thanks for the fast responses.

@kindred, have you used this mod previously and it was working good? if so, what did you do different between when it worked well to now?

I originally thought maybe it's being on smf 2.0.4 but i read the replies of this topic and nobody else on 2.0.4 has brought it up so ;/

Offline Kindred

  • Support Specialist
  • SMF Master
  • *
  • Posts: 31,451
  • Gender: Male
    • wagner999 on Facebook
    • @Kindred_999 on Twitter
Re: Anonymous Board Mod
« Reply #285 on: April 16, 2013, 10:41:57 PM »
I wrote the mod, back for 1.1.x...   I have not tried it on 2.0.x since then though.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 515
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: Anonymous Board Mod
« Reply #286 on: April 17, 2013, 01:04:58 PM »
Ah, sorry I forgot about that bug. If I recall it has something to do with the way the cache of SMF 2.0 works. There is an anonymous mod variable that would occasionally not get defined, and that is what's causing the problem (iirc). Last year I posted a fix for it: http://www.simplemachines.org/community/index.php?topic=204149.msg3380492#msg3380492

I assumed that the mod had been updated with the fix, but I was mistaken.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Offline Kindred

  • Support Specialist
  • SMF Master
  • *
  • Posts: 31,451
  • Gender: Male
    • wagner999 on Facebook
    • @Kindred_999 on Twitter
Re: Anonymous Board Mod
« Reply #287 on: April 17, 2013, 01:13:44 PM »
yup, MiY4Gi, that's it... :)   thanks for reminding me.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 515
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: Anonymous Board Mod
« Reply #288 on: April 17, 2013, 03:07:58 PM »
Okay, for those that want to hide the "Post un-anonomously" ticky box from all users except admins and mods, here's what you need to do:

Open /Themes/default/Post.template.php

Code: (find) [Select]
// anonymous board mod
if ( $context['anonymous_board'] )
echo ' '. $txt['Post_anonymous'] .' <input type="checkbox" name="post_unanon" />';

Code: (replace) [Select]
// anonymous board mod
if ( $context['anonymous_board'] && $context['user']['is_admin'] || $context['anonymous_board'] && $context['user']['is_mod'] )
echo ' '. $txt['Post_anonymous'] .' <input type="checkbox" name="post_unanon" />';

If you chose to also display that line on your Quick Reply box then:

Open /Themes/default/Display.template.php.

Repeat as for Post.template.php.

Once I learn how to add it as an option under board settings, then I'll post the code here. For now you'll just have to hardcode the membergroups.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Offline flossy

  • Newbie
  • *
  • Posts: 7
Re: Anonymous Board Mod
« Reply #289 on: April 17, 2013, 10:35:27 PM »
@ MiY4Gi, Thank you so much. i did suspect the cache which is why i wrote in my post that i cleared the cache both on my browser and on smf but didn't work. Working perfectly now. thank you.