vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   More Functions in Edit Post if you are an Admin (https://vborg.vbsupport.ru/showthread.php?t=33761)

Xenon 02-05-2003 11:19 AM

well, yes, you are right here.
the point is, it's possible with one or two extraqueries, but it happens just if you edit the last post in a forum, or edit one into the last post, so it's rarely needet to update the forum, and so it think it's not neccesary.

if you really need a solution, i can give you the code of course :)

sbywebs 02-05-2003 02:16 PM

that would be great, please do! :) I need it for my system log forum.

Xenon 02-05-2003 02:44 PM

ok, in editpost.php just before this:
PHP Code:

  eval("standardredirect(\"".gettemplate("redirect_editthanks")."\",\"showthread.php?s=$session[sessionhash]&postid=$postid#post$postid\");"); 

you should add this:
PHP Code:

if($bbuserinfo['usergroupid'] == and $foruminfo['lastpost'] < $datetime) {
$DB_site->query("UPDATE forum SET lastpost='".$datetime."',lastposter='".addslashes($postusername)."' WHERE forumid IN ($foruminfo[parentlist])");


it should work.
the other method would be tu run the upgrade script automatically if this doesn't work, but that would mean som queries again ;)

sbywebs 02-05-2003 07:11 PM

Nope it doesnt :(

Yesterday 07:32 PM
by JB

is what it says at the home page of the forums (www.xaviasupport.com) even though i edited it to say 8 PM, and i updated all counters :(

Xenon 02-10-2003 04:10 PM

hmm, i will look into this problem deeper within the days :)

for now i've uploaded a new version, which has the edittimelimit modification included which was in this thread already, and also optimized the code a (very) little bit.

subu1 04-11-2003 12:32 PM

hoffe es nimmt mir jetzt keiner krum das ich hier in deutsch reinschreibe, aber ich versuche krampfhaft durch zusteigen, mist mein english *heul*

Wollte nur kurz fragen was muß ich machen das die Moderatoren auch in diesen Deinen Hack Genuß kommen.

sorry for my german post, but my english ist not the best

grüße/greetz subu1

Xenon 04-11-2003 03:56 PM

einfach jedes $bbuserinfo[usergroupid]==6 durch in_array($bbuserinfo['usergroupid'], array(5,6,7)) ersetzen :)

Boofo 04-11-2003 04:13 PM

Quote:

Today at 11:50 AM Xenon said this in Post #107
einfach jedes $bbuserinfo[usergroupid]==6 durch in_array($bbuserinfo['usergroupid'], array(5,6,7)) ersetzen :)
Which means? ;)

Dean C 04-11-2003 05:55 PM

subu1 swore in german lol!

Xenon 04-11-2003 09:03 PM

boofo it means replace $bbuserinfo... with in_array...


All times are GMT. The time now is 02:50 PM.

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.01259 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete