vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   New Posting Features - Edit Post Option/Dropdown Menu: (IPBoard Style) (https://vborg.vbsupport.ru/showthread.php?t=173211)

Lynne 03-17-2008 01:42 PM

Try this:
find (in his code):
PHP Code:

     <if condition="$post['editlink']">
     <
span id="editpost_option">
     <
img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" id="editpost_option" />
     <
script type="text/javascript"vbmenu_register("editpost_option"true); 
     </
script>
     </
span>
     </if> 

Replace with:
PHP Code:

     <if condition="$post['editlink']">
     <
span id="editpost_option$post[postid]">
     <
img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" id="editpost_option$post[postid]/>
     <
script type="text/javascript"vbmenu_register("editpost_option$post[postid]"true); 
     </
script>
     </
span>
     </if> 

And then find (in his code):
PHP Code:

     <div class="vbmenu_popups" id="editpost_option_menu" style="display:none"

Replace with:
PHP Code:

     <div class="vbmenu_popups" id="editpost_option$post[postid]_menu" style="display:none"

See if that fixes the issue. (the "id" for each postbit edit drop-down needs to be unique)

codershark 03-17-2008 02:32 PM

@Lynne: YES! Now it works right in Opera too ! Thank you so much !

josepheseven 03-17-2008 06:08 PM

Nice mod but has some problems working with Opera :(

I did what "Lynne" had told to do but it didn't work.
Only the first post of the topic is editable.

I have uninstalled it because of that problem but will install it again when that problem is solved :)

princeedward 03-17-2008 07:05 PM

New Updates:

Version 1.01 (17/03/08):
  • Code re-written.
  • Download files and view text file again, or view some changes here.
  • You must re-edit your template to make it work better now...(I Hope! :p )
  • Reported and tested work for "Opera Browser" now
  • Works for both vb3.6 and vb3.7

princeedward 03-17-2008 07:13 PM

Quote:

Originally Posted by josepheseven (Post 1467240)
Nice mod but has some problems working with Opera :(

I did what "Lynne" had told to do but it didn't work.
Only the first post of the topic is editable.

I have uninstalled it because of that problem but will install it again when that problem is solved :)

please re-edit your template as per Lynne suggested... tested myself also and it work fine now to opera browser...

best regards...

;)

princeedward 03-17-2008 07:40 PM

Quote:

Originally Posted by Lynne (Post 1467018)
(the "id" for each postbit edit drop-down needs to be unique)

Million Thanks Lynne!
:)

todosbaneados 03-17-2008 08:29 PM

When i click in quick edit, the dropdown doesnt dissapears in the quick reply.

princeedward 03-18-2008 06:06 AM

Admin CP > Styles & Templates > Style Manager > ? ? > Postbit Templates > postbit or postbit_legacy(depending on which layout you are using)



FIRST STEP:

====================================
FIND HIGHLIGHT AND DELETE THIS CODE:
====================================

Code:

<if condition="$post['editlink']">
    <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
    <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]">
    <img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" />
    </a>
    </if>

====================================
COPY AND PASTE THIS CODE:
====================================

Code:

<!-- start princeedward editdropdown menu  -->

    <if condition="$post['editlink']">
    <span id="editpost_option$post[postid]">
    <img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" id="editpost_option$post[postid]" />
    <script type="text/javascript"> vbmenu_register("editpost_option$post[postid]", true);
    </script>
    </span>
    </if> 

<!-- / end princeedward editdropdown  menu  -->

====================================

NEXT STEP:

====================================
FIND:
====================================

<!-- post $post[postid] popup menu -->

====================================
COPY AND PASTE THIS CODE ABOVE:
====================================


Code:

<!-- start princeedward editdropdown popup menu -->

    <div class="vbmenu_popups" id="editpost_option$post[postid]_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">

    <tr>
    <td class="tcat"><img src="$stylevar[imgdir_misc]/editpost_arrow.gif" class="inlineimg"  border="0" height="10" width="7">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]">Quick Edit </a>
    </td>
    </tr>

    <tr>
    <td class="tcat"><img src="$stylevar[imgdir_misc]/editpost_arrow.gif" class="inlineimg"  border="0" height="10" width="7">       
<a href="editpost.php?do=editpost&postid=$post[postid]">Full
Edit</a>
    </td>
    </tr>
    </table>
    </div>

<!-- / end princeedward editdropdown popup menu -->

====================================


CLICK SAVE:


;)

todosbaneados 03-19-2008 11:27 AM

OK. installed but sometimes i click in the edit button and it doesn runs!!!

Thanks!

Mike-D 03-19-2008 11:56 AM

Really good work. I've tried your Code and it works great. Because I really don't need it I thought to give the TMS Code to someone who use TMS.

On a side note: For users who are using other languages exept English: Keep in mind to change the...
  • Quick Edit
  • Full Edit
... above Phrases into the desired language ;)


All times are GMT. The time now is 12:49 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.01226 seconds
  • Memory Usage 1,758KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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