vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Enable anonymous posting, and thumbs up/down ratings (https://vborg.vbsupport.ru/showthread.php?t=244070)

michelle86 06-06-2010 01:38 PM

Enable anonymous posting, and thumbs up/down ratings
 
I would love to have a forum category where members can post anonymously as well as have people give the posts a thumbs up/thumbs down rating with the number of thumbs up/downs displayed. And possibly be able to sort posts by number of thumb ups.

The reason being, I have a women's forum and would like to have a separate forum category where members can post embarrassing stories, and other members can rate the thread.

Anyone want to make it for me??? :D

If anyone else wants this please reply and request it as well! I'm sure a lot of other people would be interested in using at least one of the ideas on their sites :D

Marco van Herwaarden 06-07-2010 05:28 AM

You could embed the postsers name in the postbot template with a condition that will not show it for those forumid's.

michelle86 06-07-2010 05:09 PM

I am a real noob. Can you walk me through the steps?

Thanks by the way!

michelle86 06-12-2010 03:03 PM

Still have no idea how to enable annoymous posting, really need someone to walk me through it.

Also, I'm still looking for a thumb up/thumb down rating system for threads. Just like youtube's rating system.

BirdOPrey5 06-14-2010 08:16 PM

In postbit/postbit_legacy (whichever one you use) find the code:

Code:

<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]" $post[mh_unm_username_history]>$post[musername]</a>
Then "wrap" it in an IF conditional that says IF your in a particular forum display the Username as Anonymous, otherwise display the username... the code for that would be:

Code:

<if condition="$thread['forumid'] == 99">
Anonymous
<else />
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]" $post[mh_unm_username_history]>$post[musername]</a>
</if>

Replace 99 with the forumid of the forum you want this to apply to.

Note- after thinking about this a little more you probably also want to wrap the same if tag around all the other fields in the postbit so that you can't tell who a user is by reputation, location, age, or any other field. You could make 1 long if statement that only shows "Anonymous" and otherwise processes as normal if not the anonymous forum.

You'd also want to disable signatures in the forum or use a similar if statement around the signature to kill it too.

michelle86 06-14-2010 08:23 PM

Thank you, I'll give it a shot :D

BirdOPrey5 06-14-2010 08:31 PM

I'm actually going to make an anonymous forum for my site as well, will let you know how it goes.

--------------- Added [DATE]1276552318[/DATE] at [TIME]1276552318[/TIME] ---------------

Note- had a bug in the code, updated the IF statement to: <if condition="$thread['forumid'] == 51">

--------------- Added [DATE]1276552695[/DATE] at [TIME]1276552695[/TIME] ---------------

OK That code is working to remote the username, but I can't get it to work to remove anything else... will work on it.

--------------- Added [DATE]1276557392[/DATE] at [TIME]1276557392[/TIME] ---------------

OK, after starting this became a bigger project then I thought- I kept having to remove different ways of identifying the poster, now I'm pretty sure I got it.

Instructions below:

OK there are quite a few edits to make, but if you do this right it works.
User's won't be able to quote (or multi-quote) a post because that would reveal the original poster's name.
They can still use the "Reply" button or Quick-Reply if enabled...

First replace the username with "Anonymous" if your in your anonymous forum... for me I used forumid = 51, set this to your forum id for all if statements below.

Find:
Code:

<div id="postmenu_$post[postid]">
ABOVE this add:
Code:

<!-- START ANON IF -->
<if condition="$thread['forumid'] == 51">
<span class="bigusername">Anonymous<br /></span>
<else />


Find:
Code:

$post[yahooicon] $post[skypeicon]</div>
                        </div>

Below this add:
Code:

</if> <!-- END ANON IF -->
Now kill the infractions and IP address... if you want to keep these mods will be able to see who posted but other users won't.
Find:
Code:

$post[onlinestatus]
ABOVE it add:
Code:

<if condition="$thread['forumid'] != 51"> <!-- START ANON IF -->
Find:
Code:

$post[iplogged]
Below it add
Code:

</if> <!-- END ANON IF -->
Now kill the signature in the Anonymous forum. If you've disabled sigs some other way you can skip this part.

Find:
Code:

<if condition="$post['signature']">
Replace With
Code:

    <!-- ANON FORUM EDIT 'AND' STATEMENT BELOW -->
                <if condition="$post['signature'] AND $thread['forumid'] != 51">

Now we need to remove the quote and multi quote buttons in the anon forum else they can be used to identify the original poster.

Find:
Code:

                  <if condition="$post['replylink']">
Replace With
Code:

    <!-- ANON FORUM EDIT 'AND' STATEMENT BELOW -->
                <if condition="$post['replylink'] AND $thread['forumid'] != 51">

Find:
Code:

<if condition="$show['multiquote_post']">
Replace With
Code:

<!-- ANON FORUM EDIT 'AND' STATEMENT BELOW -->
<if condition="$show['multiquote_post'] AND $thread['forumid'] != 51">

And that's it, you now have an Anonymous forum.
Of course an admin can see who posted what by viewing with an un-altered style, keep this style from public use of course.

I'm pretty sure I got every way for the users go see who posted, less confident about mods but I can't think of any way off hand besides moving athread to a different forum in which case all bets are off.
On the flip side any threads moved into this forum will become fully anonymous.

--------------- Added [DATE]1276563519[/DATE] at [TIME]1276563519[/TIME] ---------------

after all that I see there is a anonymous posting mod here:
https://vborg.vbsupport.ru/showthread.php?t=177694

It's probably better to use that though you still might want to use my edits to kill the ip address from being viewable to moderators...also my implementation allows for attachments and polls, the mod doesn't.

--------------- Added [DATE]1276579592[/DATE] at [TIME]1276579592[/TIME] ---------------

Don't bother with the above edits...
I forgot this does nothing for the other pages that display the threads, you can still see who started the thread and the last person to post in it... There would be too many edits IMO to try and fix this so your best bet is the mod I linked to.

Vishaaldesiking 01-09-2013 06:46 PM

Is it possible to get this codes for vbulletin 4.1.x
And need some changes in this mod.
Not all post must be anonymous in the forum, when the checkbox is click then it must anonymous


All times are GMT. The time now is 11:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01013 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete