Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases

Reply
 
Thread Tools
Allow Your Users to Post Anonymously Without Logging Out Details »»
Allow Your Users to Post Anonymously Without Logging Out
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-19-2005 Last Update: 03-23-2005 Installs: 21
Is in Beta Stage  
No support by the author.

When I released my Post As Anonymous Mod Hack (now obsolete), many users wanted the ability to allow ANY user to post anonymously. This hack fulfils that request.

It is a VERY long and difficult hack to install. Therefore, I have written the instruction file radically different than any I have ever written before. This one is written in discrete steps. Rather than having you blindly edit files and hope everything works when it's done, I have you do the hack in steps and TEST each step.

IF YOU DO NOT KNOW HOW TO CODE, I SUGGEST YOU POST A SERVICE REQUEST AND ASK SOMEBODY TO INSTALL THIS FOR YOU.

Features:
A. Control anonymous posting at the board, forum, usergroup, and user level.

This means that you can use the anonymous posting in any combination that you can use features such as allowing users to reply to posts.

B. Users can post anonymously, but still subscribe to the thread.

C. You can set the anonymous username per usergroup. For example, Admins can post as Anonymous Admin, while regular users post as Anonymous Registered Member.

D. Mods and Admins can see who truly posted.

E. Users can see their name on their own anonymous post.

F. The "edited by" message does not show on anonymous posts.

G. Lastposter works properly.

H. Search will not pull up a user's anonymous posts under their name. But, you can search for all anonymous posts.

I. Anonymous posts are marked so that you don't forget the post is anonymous and "out" yourself.

J. Anonymous posts can be safely quoted.

I will not support this hack for any version of vbulletin other than 3.0.7.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Gophers

Comments
  #52  
Old 03-24-2005, 03:36 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by adielsh
never mind i found the problem but why i can't writ anonymi when i use administration user?
You have to enable it for the user group that you want to be allowed to use it. You also have to run that query to update the permissions of existing users.
Reply With Quote
  #53  
Old 03-24-2005, 03:37 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Greebo
Great hack so far - I'm on step 7 now - but one omission in your instructions:

Step 6r is missing instructions to upload showthread.php -- took me a while to figure out why I couldn't see who I was posting as when logged in as my admin account.
Thank you. I'll fix that in a few minutes.
Reply With Quote
  #54  
Old 03-24-2005, 04:27 PM
Greebo Greebo is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an excellent hack! I really needed this for my forums. Can I make a contribution?

I do have one question tho - for some reason my "anon" post still shows my avatar to me - but others see the avatar I specified (I liked the eyes listed above). What am I missing?
Reply With Quote
  #55  
Old 03-24-2005, 05:16 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should be seeing your own user profile - avatar and all. But, others should see the profile for the anon user. So, what you are describing is how it should work.
Reply With Quote
  #56  
Old 03-24-2005, 05:38 PM
Greebo Greebo is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok your statements:
ALTER TABLE `post` ADD `postanon` TINYINT( 4 ) DEFAULT '0' NOT NULL ;
ALTER TABLE `post` ADD `anonname` VARCHAR( 50 ) NOT NULL ;
ALTER TABLE `forum` ADD `postanon` TINYINT( 4 ) DEFAULT '0' NOT NULL ;
ALTER TABLE `forum` ADD `anonname` VARCHAR( 50 ) NOT NULL ;
ALTER TABLE `thread` ADD `postanon` TINYINT( 4 ) DEFAULT '0' NOT NULL ;
ALTER TABLE `thread` ADD `anonname` VARCHAR( 50 ) NOT NULL ;

Should *NOT* be TINYINT.

My tester account user id is 257 but its being changed to 127 because the column is too small. Change it to standard int
Reply With Quote
  #57  
Old 03-24-2005, 05:56 PM
Greebo Greebo is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should users who have posted anonymously be able to edit their anonymous post?

My test account sees the edit button, but gets a permissions error when attempting to edit. However, if my admin account goes in to edit, it works.

I'm guessing there's a test in editpost thats not taking anonymity into account? Or is this intended?
Reply With Quote
  #58  
Old 03-24-2005, 06:13 PM
Greebo Greebo is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, here's what I ended up doing to make this work:

In editpost.php I replaced:
PHP Code:
    if ($bbuserinfo['userid'] != $postinfo['userid'])
   {
    
// check user owns this post
    
print_no_permission();
   }
   else
   {
    
// check for time limits
    
if ($postinfo['dateline'] < (TIMENOW - ($vboptions['edittimelimit'] * 60)) AND $vboptions['edittimelimit'] != 0)
    {
     eval(
print_standard_error('error_edittimelimit'));
    }
   } 
With
PHP Code:
   if ($postinfo['postanon'])
   {
    if (
$bbuserinfo['userid'] != $postinfo['postanon'])
    {
     
// check user owns this post
     
print_no_permission();
    }
   }
   else
   {
    if (
$bbuserinfo['userid'] != $postinfo['userid'])
    {
     
// check user owns this post
     
print_no_permission();
    }
   }
   
// check for time limits
   
if ($postinfo['dateline'] < (TIMENOW - ($vboptions['edittimelimit'] * 60)) AND $vboptions['edittimelimit'] != 0)
   {
    eval(
print_standard_error('error_edittimelimit'));
   } 
Hope that helps if anyone else is having this issue. I suspect the install instructions just missed a step here...unless I missed them but I checked several times.
Reply With Quote
  #59  
Old 03-24-2005, 07:03 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Greebo
Ok your statements:
ALTER TABLE `post` ADD `postanon` TINYINT( 4 ) DEFAULT '0' NOT NULL ;
ALTER TABLE `post` ADD `anonname` VARCHAR( 50 ) NOT NULL ;
ALTER TABLE `forum` ADD `postanon` TINYINT( 4 ) DEFAULT '0' NOT NULL ;
ALTER TABLE `forum` ADD `anonname` VARCHAR( 50 ) NOT NULL ;
ALTER TABLE `thread` ADD `postanon` TINYINT( 4 ) DEFAULT '0' NOT NULL ;
ALTER TABLE `thread` ADD `anonname` VARCHAR( 50 ) NOT NULL ;

Should *NOT* be TINYINT.

My tester account user id is 257 but its being changed to 127 because the column is too small. Change it to standard int
Doh. Can't believe I did the tinyint thing. I'll change the directions right now.
Reply With Quote
  #60  
Old 03-24-2005, 07:05 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Greebo
Ok, here's what I ended up doing to make this work:

In editpost.php I replaced:
PHP Code:
    if ($bbuserinfo['userid'] != $postinfo['userid'])
   {
    
// check user owns this post
    
print_no_permission();
   }
   else
   {
    
// check for time limits
    
if ($postinfo['dateline'] < (TIMENOW - ($vboptions['edittimelimit'] * 60)) AND $vboptions['edittimelimit'] != 0)
    {
     eval(
print_standard_error('error_edittimelimit'));
    }
   } 
With
PHP Code:
   if ($postinfo['postanon'])
   {
    if (
$bbuserinfo['userid'] != $postinfo['postanon'])
    {
     
// check user owns this post
     
print_no_permission();
    }
   }
   else
   {
    if (
$bbuserinfo['userid'] != $postinfo['userid'])
    {
     
// check user owns this post
     
print_no_permission();
    }
   }
   
// check for time limits
   
if ($postinfo['dateline'] < (TIMENOW - ($vboptions['edittimelimit'] * 60)) AND $vboptions['edittimelimit'] != 0)
   {
    eval(
print_standard_error('error_edittimelimit'));
   } 
Hope that helps if anyone else is having this issue. I suspect the install instructions just missed a step here...unless I missed them but I checked several times.
Good catch. Editing has been the bane of my existance from day one. I'll test your tweaks and see how it goes on my test board.
Reply With Quote
  #61  
Old 03-24-2005, 09:30 PM
adielsh adielsh is offline
 
Join Date: Feb 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
You have to enable it for the user group that you want to be allowed to use it. You also have to run that query to update the permissions of existing users.
I enable the permission of the administarator user group to write anonymous
and i run all query and it dosn't work, all user group can write as anonymous but only administarator user group can't
mybe i don't run right the query which query i need to run for the administarator user group?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05589 seconds
  • Memory Usage 2,339KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete