Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2002, 10:01 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default post editing question.

Hopefully this is a simple question.

I want to know if there is a way I can set my forums so when a Supermod (or a specific Mod) Edits someones post it will not showup as "edited by xxx"? A few of my mods don't like it when it shows that. I want it to show up for Admins and moderators, but not super mods or if possible individual users. If Im not clear enough I can elaborate.

Basically is this possible and how would i do it?


also I appoligize if this is in the wrong forum.


Thanks.
Reply With Quote
  #2  
Old 09-20-2002, 11:02 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

open editpost.php

find
PHP Code:
  $editedbysql="";
  if (
$showeditedby and $postinfo[dateline]<(time()-($noeditedbytime*60)) and !($getperms[ismoderator] and !$showeditedbyadmin)) {
    
$editedbysql=",edituserid='$bbuserinfo[userid]',editdate='".time()."'";
  } 
replace with:
PHP Code:
  $editedbysql="";
  if (
$showeditedby and $postinfo[dateline]<(time()-($noeditedbytime*60)) and !($getperms[ismoderator] and !$showeditedbyadmin) and $bbuserinfo[usergroupid]!=5) {
    
$editedbysql=",edituserid='$bbuserinfo[userid]',editdate='".time()."'";
  } 
Reply With Quote
  #3  
Old 09-21-2002, 05:16 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help. Just one little question, is it possible to do this for individual users? It's not important, but I'd just like to know for future reference.

Thanks again.
Reply With Quote
  #4  
Old 09-21-2002, 05:38 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Parse error: parse error, unexpected '}' in /web/thecolds/public_html/editpost.php on line 331

and also on line 332 after I copied and pasted the second time.

I don't know much about coding. Did i do something wrong?

edit: I have the "Reason for edit Hack installed" Will this make a difference?
Reply With Quote
  #5  
Old 09-21-2002, 06:17 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Re did this again. it's showing the error on line 331, from what i'm reading it has an extra bracket? We remove the bracket and it creates a totally different error message.

Thanks for the help
Reply With Quote
  #6  
Old 09-21-2002, 06:26 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind. Fixed it. it had an extra bracket on the very last line

PHP Code:
$editedbysql=",edituserid='$bbuserinfo[userid]',editdate='".time()."'";
  } 
I just deleted the last bracket...


Thanks for your help. I really need to learn PHP
funny. thats exactly what the error message said
Reply With Quote
  #7  
Old 09-21-2002, 06:51 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by User_001
Thanks for the help. Just one little question, is it possible to do this for individual users? It's not important, but I'd just like to know for future reference.
yes.. if you change
PHP Code:
and $bbuserinfo[usergroupid]!=
as
PHP Code:
and $bbuserinfo[userid]!=
and X with the userid of the user, it will work for the individual user..
Reply With Quote
  #8  
Old 09-21-2002, 08:15 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
yes.. if you change
PHP Code:
and $bbuserinfo[usergroupid]!=
as
PHP Code:
and 
$bbuserinfo[userid]!=
and X with the userid of the user, it will work
for the individual user..
Thanks, Just what I wanted to know.
Reply With Quote
  #9  
Old 06-25-2003, 02:21 PM
DaveG DaveG is offline
 
Join Date: Apr 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would i do this for more than 1 user? Can I put in the userID and then just ,9,20,44 to add those other userIDs, or must I use other code?

Example: $bbuserinfo[userid]!=5,9,20,44


Quote:
09-21-02 at 03:51 AM Logician said this in Post #7
yes.. if you change
PHP Code:
and $bbuserinfo[usergroupid]!=
as
PHP Code:
and $bbuserinfo[userid]!=
and X with the userid of the user, it will work for the individual user..
Reply With Quote
  #10  
Old 06-25-2003, 02:46 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
and $bbuserinfo['userid']!=AND $bbuserinfo['userid']!=AND $bbuserinfo['userid']!=20 AND $bbuserinfo['userid']!=44 
Reply With Quote
Reply


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 01:30 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.05020 seconds
  • Memory Usage 2,280KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (10)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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