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 07-29-2002 02:59 PM

it's not allowed to send full vb-files don't forget that ;)

as you said every post would be only admin-editable, you must recheck all the queries if they are exactly what i said...

and default value at post.editable must be 1
recheck that also with phpmyadmin

Chris M 07-29-2002 03:13 PM

Did you back it up before making that change?

Satan

MarkyBuzz 07-29-2002 09:42 PM

Hi Xenon Install has been clicked - thanX for a brilliant hack.

I just wish I new about this one when I copied and pasted all indivdual posts from Postnuke Xforum over to VB which took two days - it looked a little suspiciously like I had made posts and members up due to the irregularity of time and date - now I can go and put the date and times into each post again! Jeez - another 2 days :D

Well Done!

Boofo 07-29-2002 09:49 PM

Thanks again, Xenon for clearing this up for me. This hack rocks! :)

ladyfyre 08-01-2002 02:55 AM

i have a question here......
will this hack allow (and if it won't, could you tell me how to make it) an author to edit a post beyond the boardwide edit time limit if you set the author edit option?

We use the time limit to keep users from causing chaos (we had several who would incite flamewars, then go back and edit what they said so it made others look like the instigators), but occasionally, we run into issues where we need edits made, and it would be MUCH easier if the mods could let the authors do it, rather than having them email the edits to the staff and the staff doing it.

Please help me out on this.......If it takes a lot of work, I will be happy to pay you for it...PPN can verify i am good for the money :)

Xenon 08-01-2002 12:28 PM

For now this function isn't included, but it should be easy to include it.

perhaps i can post a solution later this day, but now i haven't time to do it ;)

no money needed ;)

ladyfyre 08-01-2002 06:40 PM

You will DEFINITELY hit my list of PHP heros if you work this out Xenon :)

Btw.....i have a number of your hacks installed on my site, and have gained a lot from following your work :)

(ok...so yeah, i am kissing butt here....but it never hurts right??)

*grinz*
Seriously though....i do enjoy your hacks.....keep up the outstanding work :)

Xenon 08-01-2002 08:22 PM

Thanks for the nice words ;)

ok, here you are:
open hacked editpost.php

find this:
PHP Code:

if ($postinfo[dateline]<(time()-($edittimelimit*60)) and $edittimelimit!=0) { 

replace it with:
PHP Code:

if ($postinfo[dateline]<(time()-($edittimelimit*60)) and $edittimelimit!=and $postinfo[editable]!=4) { 


then find this:
PHP Code:

for($i=0;$i<4;$i++) $editable[$i]=iif($postinfo[editable]==$i,"CHECKED",""); 

change it to:
PHP Code:

for($i=0;$i<5;$i++) $editable[$i]=iif($postinfo[editable]==$i,"CHECKED",""); 



then in template admineditpost:
find
<input type="radio" name="editable" $editable[1] value="1">Author |

before it add:
<input type="radio" name="editable" $editable[4] value="4">Author (no timelimit)|

i think this should be all

ladyfyre 08-01-2002 09:50 PM

hmmm.....i appreciate it bunches Xenon....just one problem :(

i am getting this error when i click the edit post link:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /var/www/html/editpost.php(208) : eval()'d code on line 11

could this be getting hosed by another hack??? or am i more clueless than i thought ???



Sorry...forgot to add....my line 208 is this:


eval("\$admineditpost = \"".gettemplate("admineditpost")."\";");

Xenon 08-01-2002 10:02 PM

yes tested it myself and also get this error, seems there are no -1 allowed, i'll edit my post above and change it so it'll work :)


All times are GMT. The time now is 09:56 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.01206 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_php_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