View Single Post
  #104  
Old 06-09-2004, 04:13 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is for those that have the quick edit hack installed

ok i got it to work .... somewhat... i just need one more step

this is what i did so far....

i have this code in the showthread_quickedit
Code:
                        <span id="quickedit_$post[postid]">
                                <img src="$stylevar[imgdir_button]/quickedit_icon.gif" alt="Quick Edit" border="0" />
                                <script type="text/javascript"> vbmenu_register("quickedit_$post[postid]", true); </script>
                        </span>
<div class="vbmenu_popup" id="quickedit_$post[postid]_menu" style="display:none">
<form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="updatepost" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="emailupdate" value="9999" />
<input type="hidden" name="disablesmilies" value="0" />
<input type="hidden" name="parseurl" value="1" id="cb_parseurl" />        
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td class="tcat" align="left">
<strong>$vbphrase[edit_post]</strong>
</td>
</tr>
<tbody> 
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div align="left">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('editpost_advanced')"><img id="collapseimg_editpost_advanced" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_editpost_advanced].gif" alt="" border="0" /></a>
                Advanced Editing Options
        </td>
</tr>
<tbody id="collapseobj_editpost_advanced" style="$vbcollapse[collapseobj_editpost_advanced]">
        <tr>
                <td class="panelsurround" align="center">
                <div class="panel">
                        <div style="width:$stylevar[formwidth]" align="$stylevar[left]">
                        
                        <div class="fieldset">
                                <div>This Form allows you to change advanced settings of this post</div>
                        </div>
                        
                        <fieldset class="fieldset">
                                <legend>Advanced options</legend>
                                <div style="padding:$stylevar[formspacer]px">
                                        <div>
                                                <label for="sb_editable">
                                                        <select name="editable" id="sb_editable">
                                                                <option value="$editlevel[author]"<if condition="$postinfo['editlevel'] == $editlevel['author']"> selected="selected"</if>>
                                                                        Author
                                                                </option>
                                                                <option value="$editlevel[mod]"<if condition="$postinfo['editlevel'] == $editlevel['mod']"> selected="selected"</if>>
                                                                        Moderator
                                                                </option>
                                                                <if condition="$bbuserinfo['editlevel'] >= $editlevel['smod']">
                                                                        <option value="$editlevel[smod]"<if condition="$postinfo['editlevel'] == $editlevel['smod']"> selected="selected"</if>>
                                                                                Supermoderator
                                                                        </option>
                                                                </if>
                                                                <if condition="$bbuserinfo['editlevel'] >= $editlevel['admin']">
                                                                        <option value="$editlevel[admin]"<if condition="$postinfo['editlevel'] == $editlevel['admin']"> selected="selected"</if>>
                                                                                Admin
                                                                        </option>
                                                                </if>
                                                        </select>
                                                        or above can edit this post!
                                                </label>
                                        </div>
                                        
                                        <!-- Specific Section for Admin -->
                                        <if condition="$bbuserinfo['editlevel'] == $editlevel['admin']">
                                                <div>
                                                        <label for="tb_dateline">
                                                                <input type="text" name="newday" value="$posttime[mday]" size="1" maxlength="2" id="tb_dateline_day" />.
                                                                <input type="text" name="newmonth" value="$posttime[mon]" size="1" maxlength="2" id="tb_dateline_month" />.
                                                                <input type="text" name="newyear" value="$posttime[year]" size="3" maxlength="4" id="tb_dateline_year" />  -
                                                                <input type="text" name="newhour" value="$posttime[hours]" size="1" maxlength="2" id="tb_dateline_day" />:
                                                                <input type="text" name="newminute" value="$posttime[minutes]" size="1" maxlength="2"  id="tb_dateline_day" />
                                                                Date posted (d.m.Y - H:i)
                                                        </label>
                                                </div>
                                                <div>
                                                        <label for="tb_username">
                                                                <input type="text" name="newusername" value="$postinfo[username]" id="tb_username" /> Author of this post (if user doesn't exist, it will be set to a guest post)
                                                        </label>
                                                </div>
                                                <div>
                                                        <label for="tb_ipaddress">
                                                                <input type="text" name="newipaddress" value="$postinfo[ipaddress]" id="tb_ipaddress" /> IP Address
                                                        </label>
                                                </div>
                                        </if>
                                </div>
                        </fieldset>
                        
                        </div>
                </div>
                
                </td>
        </tr>
</tbody>
</table>
<br />
        <div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
         <div>$vbphrase[title]:</div>
         <div><input type="text" class="bginput" name="title" value="$post[title]" size="60" maxlength="85" tabindex="1" /></div>
        </div>
        <div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
         <div>$vbphrase[message]:</div>
         <div><textarea name="message" class="bginput" style="width:433px; height:125px;" wrap="virtual" tabindex="1">$edittext</textarea></div>
        </div>
</div>
</div>
<div style="margin-top:6px">
        <input type="submit" class="button" name="sbutton" value="Save Changes" accesskey="s" tabindex="1" />
        <input type="submit" class="button" name="preview" value="Preview Changes" accesskey="p" tabindex="1" />

         <if condition="$bbuserinfo['signature'] != ''"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" checked /><span class="smallfont">Signature</span></label></if>
</div>
</td>
</tr>
</tbody>
</table>
</form>
</div>
and i get (see thumbnail for details) the advanced edit screen in the quick edit but the fields in the advanced edit are blank... as well as the dropdown

im not sure what i have left to add... any suggestions?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01104 seconds
  • Memory Usage 1,823KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete