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. :-\

Boofo 02-05-2008 05:13 AM

Must not be as I get this error when I try to turn it on:

Quote:

Database error in vBulletin 3.7.0 Beta 4:
Invalid SQL:
UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Moderators',
`description` = 'The core of our team!',
`usertitle` = 'Moderator',
`opentag` = '<span class=\"mod\">',
`closetag` = '</span>',
`passwordexpires` = '0',
`passwordhistory` = '0',
`pm_search` = '1',
`forumpermissions` = '3862783',
`genericpermissions` = '1609242315',
`attachlimit` = '0',
`pmquota` = '1000',
`pmpermissions` = '7',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '15',
`adminpermissions` = '0',
`genericpermissions2` = '1',
`genericoptions` = '62',
`profilepicmaxwidth` = '150',
`profilepicmaxheight` = '150',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '100',
`avatarmaxheight` = '100',
`avatarmaxsize` = '20000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '200',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '1000',
`sigmaxchars` = '500',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '4',
`albumpermissions` = '127',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '31',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '255'
WHERE usergroupid=7;
MySQL Error : Unknown column 'pm_search' in 'field list'
Error Number : 1054
Date : Monday, February 4th 2008 @ 11:11:53 PM
Script : xxxxx//xxxxxxxxxxxxxxxxxxx/xxxxxx/xxxxxxxxxxxx/usergroup.php?do=update
Referrer : xxxxx//xxxxxxxxxxxxxxxxxxx/xxxxxx/xxxxxxxxxxxx/usergroup.php?do=edit&usergroupid=7
IP Address : xx.xxx.xx.xxx
Username : xxxxx
Classname : vb_database
MySQL Version : 5.0.19-standard

Conner85 02-05-2008 07:25 AM

Didn't work..

Animparadise 02-05-2008 09:20 PM

Quote:

Originally Posted by Boofo (Post 1436512)
I added that code and never saw a link anywhere.

me 2, with vb 3.6.8
nothing show ,even i removed <if condition="$show['pm_search']"> from it to show to everyone:confused:

***Solved***

Spermy 02-15-2008 05:19 PM

Quote:

Originally Posted by Animparadise (Post 1437010)
***Solved***

What did you do to solve this?

jambo_1969 02-16-2008 11:11 AM

Uninstalled - no way of getting this to work on 3.6.8

mishb68 02-19-2008 10:23 AM

I thought I was going to have to uninstall this because I couldn't make it work.

It does work though but I had to uninstall the "private message enhanced listing" first, then install this hack, then reinstall the first hack.

Also the search link in the User CP wasn't showing up at all until I clicked on "send new message" and it suddenly appeared?? Go figure.

Also, unless I'm blind, I couldn't find anywhere in the instructions that you have to go to the usergroup manager to select which usergroups can use this hack.

So it seems to be working fine now - no problems with mySQL errors.

Clicks installed.

dbtp 03-02-2008 02:32 AM

This seems to have installed properly, however I do not see the pm search feature. Do I need to adjust some settings to get this to work?

Rideharder 03-02-2008 03:07 AM

sweet thanks!

Rideharder 03-02-2008 03:09 AM

This seems to have installed properly, however I do not see the pm search feature. Do I need to adjust some settings to get this to work?

dbtp look in your Control Panel ...

I have 3.6.8

My url www.speedaholic.net

Control Panel
Settings & Options
Edit Signature
Edit Email & Password
Edit Profile
Edit Options
Edit Avatar
Edit Profile Picture
Private Messages
Folders
Inbox
Sent Items

List Messages
Send New Message
Search
Track Messages
Edit Folders
Subscribed Threads
Folders
Subscriptions

List Subscriptions
Edit Folders
Moderation
Deleted Threads
Deleted Posts
Moderated Threads
Moderated Posts
Miscellaneous
Event Reminders
Buddy / Ignore Lists
Attachments

dbtp 03-02-2008 02:25 PM

hmm.. I don't see that. I followed the instructions. I don't have any errors, but the search feature is not there.

dbtp 03-02-2008 02:28 PM

I only download the 2.0 version and installed that. Would that make a difference? I don't see anything that would not allow it to work.

dbtp 03-02-2008 03:54 PM

I also went to my USERCP_SHELL

and this code is there
Quote:

<!-- 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 -->
so I am not sure why this isn't working

dbtp 03-03-2008 12:51 PM

Quote:

Originally Posted by Golzarion (Post 1419498)
I installed this hack( Version: 2.00) for 3.7.0 and it works !

1. You should set the permission for all user groups.

2. To access the search you must go to user cp ! : http://yoursite.com/private.php?pmsearch=1

Ah. This was the problem. thanks. It is working now.

MustangLisa 03-04-2008 12:23 AM

OMG this is great! I am installing it now, and will be so helpful. Thanks!

Parker Clack 03-13-2008 04:13 PM

I have to be a pain here but I am still using vB 3.5.4 and would love to use this hack. I got it install just fine by changing the query_read_slave to just query_read. The search works fine with searching for a username but when you search for words in a folder I get

Quote:

Fatal error: Call to undefined function: split_string() in /usr/local/www/forums/private.php(194) : eval()'d code on line 182
I haven't been able to find a call to that function in this file or private.php.

Do you have an idea of what could be going on and how I could correct it?

Thanks,
Parker

Spermy 03-15-2008 04:03 PM

Is anybody considering making this work for 3.7?

Parker Clack 03-18-2008 10:07 AM

Nevermind. I figured it out.

Thanks for a great hack.

Darkwaltz4 03-22-2008 11:32 PM

really great hack :) thanks!

FlyBoy73 03-23-2008 03:42 PM

Excellent hack. Sure hope there will be a port for it to 3.7x

Dabbi 03-27-2008 01:38 PM

It's not working for me. :( Maybe I'm missing something since I'm still pretty new at this.

I checked the USERCP_SHELL and every thing's there as it should be. I've gone into Usergroup "Admin" and it's showing there as "yes" but although I've refreshed it's still not showing up in my user cp like the screenshot provided shows.

I could really use this great mod and would appreciate any assistance. Thanks!

FWIW here's the screenshot of my Private Message area of my user cp:
Attachment 77812

ETA.... NM... now it's showing up. (not sure why.. but it is.. probably an cookei thing?)

Mike-D 03-27-2008 03:21 PM

Quote:

Originally Posted by FlyBoy73 (Post 1472539)
Excellent hack. Sure hope there will be a port for it to 3.7x

Why? It works under all vB 3.7 Beta 1-6 and at least under the RC1 without any problems :)

Julrou 03-29-2008 04:49 PM

Quote:

Originally Posted by Mike-D (Post 1475946)
Why? It works under all vB 3.7 Beta 1-6 and at least under the RC1 without any problems :)

Not for me. Same thing as here :

Quote:

Originally Posted by Dabbi (Post 1475868)
It's not working for me. :( Maybe I'm missing something since I'm still pretty new at this.

I checked the USERCP_SHELL and every thing's there as it should be. I've gone into Usergroup "Admin" and it's showing there as "yes" but although I've refreshed it's still not showing up in my user cp like the screenshot provided shows.

I could really use this great mod and would appreciate any assistance. Thanks!

FWIW here's the screenshot of my Private Message area of my user cp:
Attachment 77812

ETA.... NM... now it's showing up. (not sure why.. but it is.. probably an cookei thing?)

Hope someone could do something to fixe it. ;)

Julrou 03-29-2008 04:52 PM

Woooops... Sorry for that !

The hack does work on vb 3.7, but i need to go manually to the search page...
The template modification does no longer work...

Anyway, i'll add a link myself.
Thanks :up:

Mike-D 03-30-2008 01:55 PM

Quote:

Originally Posted by Julrou (Post 1477729)
but i need to go manually to the search page...
The template modification does no longer work...

Correct! The whole Code itself is too complex so I have shortened and changed the Code at that time on several spots. Also 2 Plugins are really not needed :)

maestrodamuz 03-30-2008 04:09 PM

Can we have this hack ported on vb 3.5?
Thank U:D

mrtylmzzz 04-09-2008 06:36 PM

i install this hack, but i can searching only my pm, not their user's pm
3.6.8 PL 2

Makc666 04-18-2008 11:45 AM

For version 3.6.9 pmsearch template update...
http://www.vbulletin.com/forum/proje...?issueid=22869

In template pmsearch, find:
Code:

padding: $stylevar[cellpadding]px 0 $stylevar[cellpadding]px $stylevar[cellpadding]px
replace with:
Code:

padding:$stylevar[cellpadding]px; padding-$stylevar[right]:0px

baymortgage99 04-20-2008 05:53 AM

Searching thru PM is time consuming

This hack is awesome

Acrobat 04-20-2008 06:46 PM

Would it be possible to be able to move PM's to a folder? If I searched for al PM's from a user I'd like to be able to move them to a folder.

rnixon 04-23-2008 08:13 AM

Many thanks!


All times are GMT. The time now is 03:11 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.03160 seconds
  • Memory Usage 1,830KB
  • 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
  • (6)bbcode_code_printable
  • (10)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
  • (40)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