vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - User PM Search (https://vborg.vbsupport.ru/showthread.php?t=149609)

Makc666 02-01-2008 05:29 PM

There is a small bug here...

You use code to insert in template "USERCP_SHELL"

Code:

<!-- PM Search -->
<if condition="$show['pm_search']">
  <tr class="alt2">
    <td class="$navclass[pm_search]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]pmsearch=1">$vbphrase[search]</a></td>
  </tr>
</if>
<!-- /PM Search -->


Then, if you go to to USERCP and look into HTML source code you will see that:
class="" is empry there.
Code:

        <!-- PM Search -->
                <tr class="alt2">
                        <td class="" nowrap="nowrap"><a class="smallfont" href="private.php?pmsearch=1">Поиск</a></td>
                </tr>
        <!-- /PM Search -->

Now I understand why you use <tr class="alt2">, but it not the right sollution here...

But <tr class="alt2"> and <td class="alt2"> are the different things!
The cell "Search" will look differently if you use some custom style.

The quickest way to fix this one is to replace the code with this one:
Code:

        <!-- PM Search -->
        <if condition="$show['pm_search']">
                <tr>
                        <td <if condition="$navclass['pm_search']">class="$navclass[pm_search]"<else />class="alt2"</if> nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]pmsearch=1">$vbphrase[search]</a></td>
                </tr>
        </if>
        <!-- /PM Search -->

As you see I added a condition:
Code:

<if condition="$navclass['pm_search']">class="$navclass[pm_search]"<else />class="alt2"</if>
And we don't need any hooks to call here :)

TheInsaneManiac 02-04-2008 03:00 AM

I installed this on 3.6.8 and it does not work. I checked the templates and it looks exactly like the text in the read me. It's just not working. *Unistalled

EvErDrEaMs 02-04-2008 03:39 AM

thanks..

adnedarn 02-05-2008 12:24 AM

I installed this and it didn't work. I modified the code as per recommended by Makc666 and it seems to be working now. although, the search doesn't show above the PM list. You have to click the "pm search" on the left and the search comes up on a new page.

Thanks!
Andrew

Edit: this is for the 2.0 version on 3.6.4

Boofo 02-05-2008 01:32 AM

Where do you set the permissions? It is not showing up in 3.7.0 beta 4.

adnedarn 02-05-2008 03:18 AM

Should be in Usergroup Manager in the admin panel. Select the usergroup, and it is right there near the top.

Boofo 02-05-2008 03:32 AM

I didn't see it. Is this turned on by default because I never saw any link for it.

adnedarn 02-05-2008 03:57 AM

for admin it is on by default. for other groups it is off... as I said in my first post, I had to do that edit recommended by the other coder in order to see the search stuff. Have you tried that?

Boofo 02-05-2008 03:59 AM

I added that code and never saw a link anywhere.

adnedarn 02-05-2008 04:22 AM

maybe not compatible with 3.7 then :shrug: I don't think there are any other of these mods either. :-\


All times are GMT. The time now is 01:09 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.01342 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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