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)

Boofo 07-27-2002 11:14 PM

This is the change you were talking about? The value variable? That is the only change, right? :ducks: :) Thank you, again, sir. :)

PHP Code:

| <input type="radio" name="editable" $editable[4value="4">Author/Supermods/Admins 


Boofo 07-27-2002 11:24 PM

Oh-oh, I'm in trouble now. It still keeps defaulting to just Admin being able to edit it no matter what I pick. :)

Edit: If I leave it alone and don't change it, it will stay on Author. It will only always default to Admin if I change it from Author. Any ideas how to fix this, sir? :)

Xenon 07-28-2002 08:51 PM

sure you apllied all the changes correct?
i don't see the possibility to get that weird bug..

recheck that you surely have this line:
PHP Code:

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

if not please post your admineditpost template, will see if i can find an error

Boofo 07-29-2002 01:37 AM

Here's the line I have for that. there is a small difference, bit it should cause it to act wierd should it?

PHP Code:

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

The only difference I see is you have the bold tags around the 5. That wasn't in the code you gave me. :)

Quote:

Originally posted by Xenon
PHP Code:

for($i=0;$i<[b]5<b>sure you apllied all the changes correct?
i don't see the possibility to get that weird bug..

recheck that you surely have this line:</b>;$i++) $editable[$i]=iif($postinfo[editable]==$i,"CHECKED",""); 

if not please post your admineditpost template, will see if i can find an error [/B]

Boofo 07-29-2002 02:26 AM

And here's my admineditpost template, as you requested. :)

PHP Code:

<tr>
    <
td bgcolor="#1C5780" nowrap><normalfont><b>Thread ID:</b></normalfont></td>
    <
td bgcolor="#1C5780"><normalfont><input type="text" class="bginput" name="pthreadid" value="$postinfo[threadid]size="40" maxlength="85"></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#13486D" nowrap><normalfont><b>Author ID:</b></normalfont></td>
    <
td bgcolor="#13486D"><normalfont><input type="text" class="bginput" name="userid" value="$postinfo[userid]size="20" maxlength="85">  $postinfo[username] </normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#13486D" nowrap><normalfont><b>Editable by (and higher):</b></normalfont></td>
    <
td bgcolor="#13486D"><normalfont><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 | <input type="radio" name="editable" $editable[4value="4">Author/Supermods/Admins</normalfont></td>
</
tr>

<
tr>
    <
td bgcolor="#1C5780" nowrap><normalfont><b>Date/Time:</b></normalfont></td>
    <
td bgcolor="#1C5780"><normalfont>
                <
input type="text" class="bginput" name="datetime[mon]" value="$datetime[mon]size="1" maxlength="2">.<input type="text" class="bginput" name="datetime[mday]" value="$datetime[mday]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="#13486D" nowrap><normalfont><b>IP Address:</b></normalfont></td>
    <
td bgcolor="#13486D"><normalfont><input type="text" class="bginput" name="ipadd" value="$postinfo[ipaddress]size="40" maxlength="85"></normalfont></td>
</
tr


Xenon 07-29-2002 10:30 AM

damn, boldtags should have been parsed not shown as tags *gg*

hmm, i don't see a bug in this code, it should work perfectly....

Boofo 07-29-2002 10:35 AM

I just took out the code for the extra option you wrote for me and it still defaults to Admin, no matter what I pick. So it wasn't that extra code. Is anyone else experiencing this?

Quote:

Originally posted by Xenon
damn, boldtags should have been parsed not shown as tags *gg*

hmm, i don't see a bug in this code, it should work perfectly....


Xenon 07-29-2002 11:06 AM

sure you have installed everything correct?

i'd say restart with an unhacked editpost.php and install it again
this shouldn't happen and it doesn't happen on my board and my testboard...

Chris M 07-29-2002 11:09 AM

It must be that Boofo didnt do something, or did something wrong...

It works fine at my boards:) - And I followed Xenon's instructions, just as you did/should have done Boofo...

Satan

Boofo 07-29-2002 11:22 AM

hellsatan: For your information, sport, I did it EXACTLY as per the instructions and never had a problem with the hack until this final version. Everything else in it works great. I wasn't something I did or didn't do. Maybe I have another hack messing with it, I don't know.

Xenon: I could do it with a fresh editpost, but then any other hack I have installed concerning the editpost.php would not work and I have installed too many hacks to remmeber which ones deal with that file. Is there any way to go back to the hack before you added that part since it won't work for me? If you want to look at my editpost.php, I would be more than happy to pm it to you. You might see something I don't see. :)

Quote:

Originally posted by hellsatan
It must be that Boofo didnt do something, or did something wrong...

It works fine at my boards:) - And I followed Xenon's instructions, just as you did/should have done Boofo...

Satan



All times are GMT. The time now is 01:03 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.01411 seconds
  • Memory Usage 1,790KB
  • 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
  • (5)bbcode_php_printable
  • (3)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