Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
phpcode Preview in Plugin Manager
Lynne
Join Date: Sep 2004
Posts: 41,180

California/Idaho
by Lynne Lynne is offline 19 Oct 2008

Ever been searching for a plugin and wish you didn't have to open each one to edit to find the one you want? All you need is to see the first couple lines in order to see if it's the one you want, so why not have a preview like you can with threads?

Open up admincp/plugin.php and find this code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Right under it add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Now find this line (a couple lines below the above lines):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


And change it to:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Save the file and upload it. Now when you hover your mouse over the plugin link in the Plugin Manager, you should see the first 200 characters of the phpcode. (If you want more or less than 200 characters, then change that number in the second $preview statement above.)

I've tested this on both my 3.6.8 board and my 3.7.3 board and it worked fine.
Views: 3444
Reply With Quote
Comments
  #2  
Old 21 Oct 2008, 12:24
Nоrman's Avatar
Nоrman Nоrman is offline
 
Join Date: Jul 2008
Location: [Italy]
Real name: Norman
Usefull as always, Lynne. Thank you.
__________________
vB-Italy.org - Italian vBulletin Support Forum
Reply With Quote
  #3  
Old 17 Nov 2008, 14:32
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Real name: Fran
Oh excellent.
I wasn't even looking for this, but it will be so handy
I never remember which plugins have which code.
__________________
Awesome. Awesome to the max.
Reply With Quote
  #4  
Old 03 May 2009, 16:34
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
thanks
Reply With Quote
  #5  
Old 30 Aug 2009, 05:40
dandanch dandanch is offline
 
Join Date: Nov 2008
thanks works great
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Administrative and Maintenance Tools Advanced Plugin Manager akanevsky vBulletin 3.6 Add-ons 32 03 Jul 2009 01:13
Advanced Plugin Manager akanevsky vBulletin 3.5 Add-ons 63 12 Aug 2007 20:04
Advanced Plugin Manager Andreas vBulletin 3.5 Add-ons 79 27 May 2006 23:15



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:42.

Layout Options | Width: Wide Color: