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)

TeH Z0mB1E 10-13-2003 08:11 PM

help me please, when i set it so that only mods/super mods/admins can edit posts and save it, it reverts back to author/mods/super mods/admins. i dont think ive got this line of code either :

PHP Code:

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

at least i dont think ive got it, ive looked in editpost.php and the adminedit template.
where is it supposed to be?

Xenon 10-13-2003 09:33 PM

if this line isn't in your editpost.php you haven't followed the install file correctly.

do so and the hack will work.

TeH Z0mB1E 10-13-2003 10:59 PM

that lines not in the install file, at least not in mine.... where abouts in editpost.php is this line supposed to be?

if i PM you my editpost.pm file can you have a look at it please?

Xenon 10-14-2003 05:31 PM

it's very visible in the install file:
Quote:

Step 2: File changes
---------------------
open file editpost.php
the particular line you mentioned is line 85 in install file.


and no i don'T do private requests right now

TeH Z0mB1E 10-14-2003 05:56 PM

ok i do have that line, but im still getting the problem on my forums, can you suggest something please? ive tried re-installing the hack but the error still comes up, help.

Xenon 10-14-2003 06:09 PM

hmm, are you sure you have made everything correct now?

it sounds like it doesn't save the changes to the post

be sure
PHP Code:

$DB_site->query("UPDATE post SET " $adminsql "title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'"); 

is in your editpost.
and i mean the " . $adminsql . " part of it.

if that's not, then i don't know what else could it be.

TeH Z0mB1E 10-15-2003 12:09 AM

its there, could it be a template problem?

PHP Code:

<tr>
    <
td bgcolor="{secondaltcolor}" nowrap><normalfont><b>Thread ID:</b></normalfont></td>
    <
td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="pthreadid" value="$postinfo[threadid]size="40" maxlength="85"></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="{firstaltcolor}" nowrap><normalfont><b>Author ID:</b></normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont><input type="text" class="bginput" name="userid" value="$postinfo[userid]size="20" maxlength="85">  $postinfo[username] </normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="{firstaltcolor}" nowrap><normalfont><b>Editable by (and higher):</b></normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont><input type="radio" name="editable" $editable[4value="4">Author (no timelimit)| <input type="radio" name="editable" $editable[1value="1">Author | <input type="radio" name="editable" $editable[2value="2">Moderators |<input type="radio" name="editable" $editable[3value="3">Supermods | <input type="radio" name="editable" $editable[0value="0">Admins</normalfont></td>
</
tr>

<
tr>
    <
td bgcolor="{secondaltcolor}" nowrap><normalfont><b>Date/Time:</b></normalfont></td>
    <
td bgcolor="{secondaltcolor}"><normalfont>
                <
input type="text" class="bginput" name="datetime[mday]" value="$datetime[mday]size="1" maxlength="2">.<input type="text" class="bginput" name="datetime[mon]" value="$datetime[mon]size="1" maxlength="2">.<input type="text" class="bginput" name="datetime[year]" value="$datetime[year]size="3" maxlength="4"> - <input type="text" class="bginput" name="datetime[hours]" value="$datetime[hours]size="1" maxlength="2">:<input type="text" class="bginput" name="datetime[minutes]" value="$datetime[minutes]size="1" maxlength="2">

</
normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="{firstaltcolor}" nowrap><normalfont><b>IP Address:</b></normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont><input type="text" class="bginput" name="ipadd" value="$postinfo[ipaddress]size="40" maxlength="85"></normalfont></td>
</
tr

there is my admineditpost template. one of my other admins just pointed this out to me, but my forums is vB 2.3.2 is this hack compatible?

Xenon 10-15-2003 03:45 PM

the template seems like it should, so it shouldn't be a template problem.

i hope you can fix it yourself, as i cannot reproduce it, and therefore also cannot fix it.


All times are GMT. The time now is 08:23 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.01410 seconds
  • Memory Usage 1,785KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete