vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - View Your Posts/Threads from Navbar Search (https://vborg.vbsupport.ru/showthread.php?t=198592)

Mosh 12-10-2008 10:00 PM

View Your Posts/Threads from Navbar Search
 
1 Attachment(s)
Please click Mark as Installed if you are using this hack.


What Does This Hack Do?[hr]hr[/hr]
This is an update to my 3.7.x version of this hack, with the addition of show additional links to view your threads or posts from a forum you are browsing (if you not in a forum, the links do not appear).

This is a simple hack that adds extra options on the Search drop down list on the navbar which allows your members to search for their own posts and threads start by themselves.

There are no file or template changes at all, and is fully phrased.

This was a request by odeezie in post #22 of this thread.


vBulletin Version Compatibility[hr]hr[/hr]
This hack can be used with vBulletin versions 3.6.0 - 3.8.8.

For the v4.0.x version of this hack - check here.



Hack Support/Feature Requests[hr]hr[/hr]
IMPORTANT: This hack is no longer supported.


Install Instructions[hr]hr[/hr]
  1. Unzip ms_vopt_38.zip
  2. Upload bitfield_ms_vopt_38.xml to your /includes/xml folder.
  3. Import the ms_vopt_38.xml into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
  4. In the Usergroup Manager edit the usergroup(s) you want to see the links (disabled by default for all usergroups).

Uninstall Instructions[hr]hr[/hr]
  1. Delete the bitfield_ms_vopt_38.xml file from your /includes/xml folder.
  2. Uninstall the product in vB using the AdminCP Product Manager.


Version History[hr]hr[/hr]
v3.8.003 - Tuesday 23rd June 2009
-- Added: Category heading to separate the view own threads/posts from other search links
-- Added: Extra links that only appear when browsing forums to view own threads/posts in that forum only

v3.8.002 - Friday 12th December 2008
-- Changed: Phrase type of 3 phrases

v3.8.001 - Thursday 11th December 2008
-- Initial v3.8.x Release


Show Your Appreciation [hr]hr[/hr]
Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.


Donations[hr]hr[/hr]
I would like to thank the following people for their kind donations:

kamrul 12-11-2008 04:52 PM

great mod thanx

Hornstar 12-11-2008 06:49 PM

I suppose this is handy and saves time going to your profile. thanks.

Mosh 12-12-2008 07:42 AM

Update: v3.8.002
-- Changed: Phrase type of 3 phrases

No need to upgrade if you don't want to, there is no added functionality, just changed phrase types to the correct ones.

Sweeks 12-12-2008 11:23 AM

3.7.4 PL1 and great! Thanks for this
________
FFM BABYSITTER

vithorius 01-29-2009 08:08 AM

Sweet hack! :up: :up: :up:

(note: I just installed THIS version on 3.6.11! :p )

Danisty 02-03-2009 02:08 PM

This messed up my admin panel. I tried to edit the usergroups to allow them to view this in the menu and instead of editing the usergroup, it created a new custom group so now I have custom groups for administrator, moderator, etc. with the permission to view the on the menu but no change to the original group i tried to edit. Then I went in and checked to see if those custom groups had permission and they did not. If i tried to give the custom group permission, it created yet another custom group. I tried uninstalling this product but the option block is still on the usergroup permissions page except there is nothing written in the option block. I tried editing a different permission for my admin account and now I get this error. I can't change any permissions on my usergroups at all now!

Database error in vBulletin 3.8.1:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO usergroup
(`title`, `description`, `usertitle`, `opentag`, `closetag`, `passwordexpires`, `passwordhistory`, `forumpermissions`, `genericpermissions`, `attachlimit`, `pmquota`, `pmpermissions`, `pmsendmax`, `pmthrottlequantity`, `calendarpermissions`, `wolpermissions`, `adminpermissions`, `genericpermissions2`, `genericoptions`, `profilepicmaxwidth`, `profilepicmaxheight`, `profilepicmaxsize`, `avatarmaxwidth`, `avatarmaxheight`, `avatarmaxsize`, `signaturepermissions`, `sigpicmaxwidth`, `sigpicmaxheight`, `sigpicmaxsize`, `sigmaxrawchars`, `sigmaxchars`, `sigmaxlines`, `sigmaxsizebbcode`, `sigmaximages`, `albumpermissions`, `albumpicmaxwidth`, `albumpicmaxheight`, `albumpicmaxsize`, `albummaxpics`, `albummaxsize`, `usercsspermissions`, `visitormessagepermissions`, `socialgrouppermissions`, `maximumsocialgroups`, `groupiconmaxsize`, `vbblog_general_permissions`, `vbblog_customblocks`, `vbblog_custompages`, `vbblog_entry_permissions`, `vbblog_comment_permissions`, `fcpermissions`, `ms_vopt_permissions`)
VALUES
('Administrators', '', 'Administrator', '<b><span style=\"color:#660198;\">', '</b></span>', '180', '360', '16777215', '2145386431', '0', '1000', '7', '20', '0', '63', '31', '3', '1', '55', '300', '300', '150000', '150', '150', '120000', '234623', '500', '75', '100000', '1500', '1000', '5', '3', '6', '255', '800', '800', '100000', '2000', '0', '63', '63', '65535', '5', '150000', '262142', '5', '5', '24575', '0', '0', '0');

MySQL Error : Unknown column 'ms_vopt_permissions' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 3rd 2009 @ 04:04:40 PM
Error Date : Tuesday, February 3rd 2009 @ 04:04:40 PM
Script : http://www.allbeliefs.com/admincp/us....php?do=update
Referrer : http://www.allbeliefs.com/admincp/us...&usergroupid=6
IP Address : 72.230.88.206
Username : ?anisty
Classname : vB_Database
MySQL Version : 5.0.75

Danisty 02-03-2009 02:24 PM

I deleted bitfield_ms_vopt_38.xml from my xml folder and reinstalled the old version. My usergroups are still messed up. No matter what edits I make to them, it just creates a new custom group that I also can't edit. I've checked on my forum that does not have this hack installed at all and there is no problem over there so I know it's not vb 3.8.1 that caused this problem. I also disabled the only other hack I upgraded today (https://vborg.vbsupport.ru/showthread.php?t=199975) and I'm still having the problem. Even when I disable the old version of this hack, I have this problem. This is a pretty big deal and I need a fix for this!

peterle1 02-18-2009 09:52 AM

Hi Mosh,

my users tell me, that the version for 3.7 of your mod showed them the threads instead of the posts after clicking on "view your posts"?

I don't remember, but can I do anything to get this button to behave like that?

Mosh 02-18-2009 07:33 PM

Quote:

Originally Posted by peterle1 (Post 1747714)
Hi Mosh,

my users tell me, that the version for 3.7 of your mod showed them the threads instead of the posts after clicking on "view your posts"?

I don't remember, but can I do anything to get this button to behave like that?

Neither version of this hack behaves like that. There have always been two links, one for the threads, the other for the posts, and has been since I released this hack.

Mosh 02-18-2009 07:48 PM

Quote:

Originally Posted by Danisty (Post 1733071)
This messed up my admin panel. I tried to edit the usergroups to allow them to view this in the menu and instead of editing the usergroup, it created a new custom group so now I have custom groups for administrator, moderator, etc. with the permission to view the on the menu but no change to the original group i tried to edit. Then I went in and checked to see if those custom groups had permission and they did not. If i tried to give the custom group permission, it created yet another custom group. I tried uninstalling this product but the option block is still on the usergroup permissions page except there is nothing written in the option block. I tried editing a different permission for my admin account and now I get this error. I can't change any permissions on my usergroups at all now!

Database error in vBulletin 3.8.1:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO usergroup
(`title`, `description`, `usertitle`, `opentag`, `closetag`, `passwordexpires`, `passwordhistory`, `forumpermissions`, `genericpermissions`, `attachlimit`, `pmquota`, `pmpermissions`, `pmsendmax`, `pmthrottlequantity`, `calendarpermissions`, `wolpermissions`, `adminpermissions`, `genericpermissions2`, `genericoptions`, `profilepicmaxwidth`, `profilepicmaxheight`, `profilepicmaxsize`, `avatarmaxwidth`, `avatarmaxheight`, `avatarmaxsize`, `signaturepermissions`, `sigpicmaxwidth`, `sigpicmaxheight`, `sigpicmaxsize`, `sigmaxrawchars`, `sigmaxchars`, `sigmaxlines`, `sigmaxsizebbcode`, `sigmaximages`, `albumpermissions`, `albumpicmaxwidth`, `albumpicmaxheight`, `albumpicmaxsize`, `albummaxpics`, `albummaxsize`, `usercsspermissions`, `visitormessagepermissions`, `socialgrouppermissions`, `maximumsocialgroups`, `groupiconmaxsize`, `vbblog_general_permissions`, `vbblog_customblocks`, `vbblog_custompages`, `vbblog_entry_permissions`, `vbblog_comment_permissions`, `fcpermissions`, `ms_vopt_permissions`)
VALUES
('Administrators', '', 'Administrator', '<b><span style=\"color:#660198;\">', '</b></span>', '180', '360', '16777215', '2145386431', '0', '1000', '7', '20', '0', '63', '31', '3', '1', '55', '300', '300', '150000', '150', '150', '120000', '234623', '500', '75', '100000', '1500', '1000', '5', '3', '6', '255', '800', '800', '100000', '2000', '0', '63', '63', '65535', '5', '150000', '262142', '5', '5', '24575', '0', '0', '0');

MySQL Error : Unknown column 'ms_vopt_permissions' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 3rd 2009 @ 04:04:40 PM
Error Date : Tuesday, February 3rd 2009 @ 04:04:40 PM
Script : http://www.allbeliefs.com/admincp/us....php?do=update
Referrer : http://www.allbeliefs.com/admincp/us...&usergroupid=6
IP Address : 72.230.88.206
Username : ?anisty
Classname : vB_Database
MySQL Version : 5.0.75

That was because the ms_vopt_permissions field was deleted and the bitfield was still there.

Quote:

Originally Posted by Danisty (Post 1733086)
I deleted bitfield_ms_vopt_38.xml from my xml folder and reinstalled the old version. My usergroups are still messed up. No matter what edits I make to them, it just creates a new custom group that I also can't edit. I've checked on my forum that does not have this hack installed at all and there is no problem over there so I know it's not vb 3.8.1 that caused this problem. I also disabled the only other hack I upgraded today (https://vborg.vbsupport.ru/showthread.php?t=199975) and I'm still having the problem. Even when I disable the old version of this hack, I have this problem. This is a pretty big deal and I need a fix for this!

If you have deleted bitfield_ms_vopt_38.xml from your xml folder and you are still having the error Unknown column 'ms_vopt_permissions' in 'field list', then the bitfield file is still there, and has not been deleted.

I am pretty sure this problem is due to mixing up old and new versions of this hack.

Make sure you delete the bitfield file, un-install the product, and check the following:

In the AdminCP, select Maintenance -> Execute SQL Query and run the following query:

[sql]describe usergroup;[/sql]

If there is a ms_vopt_permissions entry in the Field column, then running the following query will get rid of it:
[sql]ALTER TABLE usergroup DROP ms_vopt_permissions;[/sql]

That should fix your problem up. If it does not, then post back with the exact error.

peterle1 02-18-2009 10:43 PM

Quote:

Originally Posted by Mosh (Post 1748368)
Neither version of this hack behaves like that. There have always been two links, one for the threads, the other for the posts, and has been since I released this hack.

Yes, I thought it behaved like that.

Interested in adding a feature like "my answers"?
The lines for search.php looks like that:

HTML Code:

<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=process&exactname=1&searchtype=1&userid=$bbuserinfo[userid]">my answers</a>
</td>
</tr>

I don't want to hack your mod and it seems to be a very usefull search type for the users.
Thanks for your work and time anyway. :)

Do what ever you like to do with it.

bbcentral 02-19-2009 05:30 AM

Works perfectly on 3.8.1, looks fantastic! Thanks for this, might very slightly boost posting rates (as in people checking for replies to their own posts :))

jilly 02-21-2009 01:13 AM

I think you should make it default that this is enabled for all usergroups. Due to my board's own weird purposes, I have well over 100 usergroups and now have to go in and edit each one, unless you might know a query I could run to set them all to yes. I don't know enough to figure that part out (lol) - I would imagine in most cases, this woudl be an option people would want all usergroups to have anyway, or at least the majority of their usergroups...

Mosh 02-21-2009 08:40 AM

Quote:

Originally Posted by jilly (Post 1750306)
I think you should make it default that this is enabled for all usergroups. Due to my board's own weird purposes, I have well over 100 usergroups and now have to go in and edit each one, unless you might know a query I could run to set them all to yes. I don't know enough to figure that part out (lol) - I would imagine in most cases, this woudl be an option people would want all usergroups to have anyway, or at least the majority of their usergroups...

In the AdminCP, select Maintenance -> Execute SQL Query and run the following query:

[sql]UPDATE usergroup SET ms_vopt_permissions = 3;[/sql]

That will enable both view posts and view threads to enabled for every usergroup.

Teresa 02-21-2009 11:46 PM

hmmm. Installed per instructions. Enabled in all usergroups per the query and double-checked.

Nothing is showing. Is there a hook I need somewhere that I may not have in my template?

www.guineapigcages.com/forum

vB 3.8.1

Also have this add-on installed: Member Search on Search Dropdown, 3.0

Thanks,
Teresa

Mosh 02-22-2009 04:52 AM

Quote:

Originally Posted by Teresa (Post 1751058)
hmmm. Installed per instructions. Enabled in all usergroups per the query and double-checked.

Nothing is showing. Is there a hook I need somewhere that I may not have in my template?

www.guineapigcages.com/forum

vB 3.8.1

Also have this add-on installed: Member Search on Search Dropdown, 3.0

Thanks,
Teresa

The hook that needs to be in your navbar template is:
Code:

$template_hook['navbar_search_menu']

trnim.com 02-23-2009 05:00 AM

Thanks

Danisty 02-23-2009 01:30 PM

Quote:

Originally Posted by Mosh (Post 1748380)
That was because the ms_vopt_permissions field was deleted and the bitfield was still there.



If you have deleted bitfield_ms_vopt_38.xml from your xml folder and you are still having the error Unknown column 'ms_vopt_permissions' in 'field list', then the bitfield file is still there, and has not been deleted.

I am pretty sure this problem is due to mixing up old and new versions of this hack.

Make sure you delete the bitfield file, un-install the product, and check the following:

In the AdminCP, select Maintenance -> Execute SQL Query and run the following query:

[sql]describe usergroup;[/sql]

If there is a ms_vopt_permissions entry in the Field column, then running the following query will get rid of it:
[sql]ALTER TABLE usergroup DROP ms_vopt_permissions;[/sql]

That should fix your problem up. If it does not, then post back with the exact error.

I ran the first query and nothing with ms_vopt_permissions came up. The file is not in my xml folder and the product is uninstalled. I'm not getting an error message but I'm still have a problem editing usergroups. It's still creating more groups instead of editing.

Teresa 02-23-2009 05:22 PM

Quote:

Originally Posted by Mosh (Post 1751174)
The hook that needs to be in your navbar template is:
Code:

$template_hook['navbar_search_menu']

I do have that hook, although it does not have the single quotes around it. None of my hooks do (at least in that template). Is that the problem?

Teresa 02-23-2009 05:39 PM

Quote:

Originally Posted by Teresa (Post 1752491)
I do have that hook, although it does not have the single quotes around it. None of my hooks do (at least in that template). Is that the problem?

Nevermind. I'm such a dunce. It was there.

It would be better if it had a Heading Section so it wasn't mixed in with other stuff, so idiots like me wouldn't miss it. Something like "My Posts".

Mosh 02-23-2009 06:24 PM

Quote:

Originally Posted by Danisty (Post 1752292)
I ran the first query and nothing with ms_vopt_permissions came up. The file is not in my xml folder and the product is uninstalled. I'm not getting an error message but I'm still have a problem editing usergroups. It's still creating more groups instead of editing.

It has nothing to do with this hack then, as it is no longer installed. You problem lays elsewhere.

fortforum 03-10-2009 12:36 PM

Cool hack, installed. However, i cant see tag search. Kind of a pitty. Any ideas?

Mosh 03-10-2009 08:45 PM

Quote:

Originally Posted by fortforum (Post 1764862)
Cool hack, installed. However, i cant see tag search. Kind of a pitty. Any ideas?

No ideas at all, as this hack has nothing to do with tag searches.

KAWIE1 03-18-2009 12:27 AM

Thanks...nice mod!

fortforum 03-18-2009 01:44 PM

This is maybe a good idea but it kindof ends there. It messed my usergrous up real bad, taggs not showing and more. Not recomended. Be very carefoul about this one. Uninstalled.

Mosh 03-18-2009 05:35 PM

Quote:

Originally Posted by fortforum (Post 1771114)
This is maybe a good idea but it kindof ends there. It messed my usergrous up real bad, taggs not showing and more. Not recomended. Be very carefoul about this one. Uninstalled.

What is the basis of this? This hack has been installed on more than 200 sites (on 3 different vBulletin versions, I use this on my sites too) that do not have a problem at all, this hack has nothing to do with tags, and if you had a problem, why have you never elaborated on exactly what the problem was? So, not knowing what the problem was, how could I have possibly have helped?

yingzhou 03-19-2009 09:11 AM

I'm using vietnamese language, then I can't see the phrase view all your post or view the threads. But when I change the language to English, it's show fine. Where can I edit that phrase?
~~~~~~~~~~
Fixed it

abqtj 04-14-2009 11:16 PM

Just installed, seems to work find in 3.8.2

THANKS!

Mosh 06-23-2009 01:29 AM

Update: v3.8.003 - Tuesday 23rd June 2009
-- Added: Category heading to separate the view own threads/posts from other search links
-- Added: Extra links that only appear when browsing forums to view own threads/posts in that forum only

MacHack 06-23-2009 02:10 AM

Thanks for the update!!

RedHacker 06-25-2009 05:31 AM

Upgrade in 3.8.1 - Thanks

BENBOBBY 09-18-2009 11:46 AM

Hi Mosh,

This hack looks really good thanks. Im also wondering if it would be possible to add a "View Your Threads" link in the NavBar itself rather than the search?

I made another thread asking about this here: https://vborg.vbsupport.ru/showthread.php?t=223513

If you have any ideas please let me know.
Cheers.

benny92000 09-19-2009 02:22 AM

Cool mod, thanks.

yotsume 09-19-2009 05:34 AM

INSTALLED!

Great mod thanks! Very Useful!

Mosh 11-28-2009 01:59 AM

The vBulletin v4.0.x version of this hack is available here.

microlight 12-10-2009 11:39 AM

Please can you spell out exactly how to install it.

I am stupid. Treat me like a 5 year old, you would be about right

Mosh 12-10-2009 07:47 PM

Quote:

Originally Posted by microlight (Post 1928258)
Please can you spell out exactly how to install it.

I am stupid. Treat me like a 5 year old, you would be about right

The install instructions already come with the hack (read the first post again in full), that is as exact as I am going to get.

Kosmic1 12-12-2009 02:05 AM

Quote:

Originally Posted by Mosh (Post 1748380)
That was because the ms_vopt_permissions field was deleted and the bitfield was still there.



If you have deleted bitfield_ms_vopt_38.xml from your xml folder and you are still having the error Unknown column 'ms_vopt_permissions' in 'field list', then the bitfield file is still there, and has not been deleted.

I am pretty sure this problem is due to mixing up old and new versions of this hack.

Make sure you delete the bitfield file, un-install the product, and check the following:

In the AdminCP, select Maintenance -> Execute SQL Query and run the following query:

[sql]describe usergroup;[/sql]

If there is a ms_vopt_permissions entry in the Field column, then running the following query will get rid of it:
[sql]ALTER TABLE usergroup DROP ms_vopt_permissions;[/sql]

That should fix your problem up. If it does not, then post back with the exact error.

Hey! I've installed this product and uninstalled, then my permissions on user groups for registered members have changed to don't "allow images in signatures", then I set it to allow and still not appearing the pictures.. just in the preview. I've delete the bitfield file too etc etc run query and nothing.

What can I do to fix it, please??

Mosh 12-12-2009 03:29 AM

Quote:

Originally Posted by Kosmic1 (Post 1929120)
Hey! I've installed this product and uninstalled, then my permissions on user groups for registered members have changed to don't "allow images in signatures", then I set it to allow and still not appearing the pictures.. just in the preview. I've delete the bitfield file too etc etc run query and nothing.

What can I do to fix it, please??

Did you do this?

Steps 1 & 2 of the uninstall instructions? If you did, then do the following:

In the AdminCP, select Maintenance -> Execute SQL Query and run the following query:

[sql]describe usergroup;[/sql]

If there is not a ms_vopt_permissions entry in the Field column, then the hack is completely uninstalled and can not be causing the issue.

If there is a ms_vopt_permissions entry in the Field column, then running the following query will get rid of it:
[sql]ALTER TABLE usergroup DROP ms_vopt_permissions;[/sql]

Then this hack will be completely uninstalled, and if your problem is still persists then this hack is not the cause of your issues.


All times are GMT. The time now is 03:10 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.01531 seconds
  • Memory Usage 1,883KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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