The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
A little something I whipped up for one of our busier sites, which has several thousand image attachments.
Basically, it allows you to perform searches for attachments across your forums, or just a single forum, by username. You can also sort by date posted, forum it was posted in, thread title, or the attachment filename. This is a rewrite from the initial version. Due to popular demand, it now uses the vB template system. Yes, Virginia, including your headers and footers. It also uses attachment icons now - kind of a nice touch. To install, copy attachment_browser.php to your main forums directory. Then, you'll need to create 3 templates:
A sample .SQL file is included with the distribution. To create the templates using this file, simply run it through the mysql client as follows: Code:
/path/to/mysql -u user -ppassword db_name template < attachment_browser_templates.sql Cheers. Scott Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Here's the file:
Cheers. Scott |
|
#3
|
||||
|
||||
|
any screenshot?? or something can make this hack clear~~
|
|
#4
|
|||
|
|||
|
very useful hack thanks
|
|
#5
|
|||
|
|||
|
It isn't a hack - and no screenshots, you can see a vanilla example (no header, and a simple footer) here though:
http://www.wetcanvas.com/forums/browse_attach.php Search for "scottb" for an example. Cheers. Scott |
|
#6
|
||||
|
||||
|
oh~~~it's great !!
nice work !! |
|
#7
|
||||
|
||||
|
I would use it but it's not template driven...
Is it supposed to be something external to the forum? |
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
|||
|
|||
|
Getting it to use the headers/footers from the forums is a simple SELECT from the database. I'll post something tomorrow - going to bed now.
With regard to the look and feel of the actual results - you can simply customize the HTML in the script to do what you want. Cheers. Scott |
|
#10
|
||||
|
||||
|
[QUOTE]Originally posted by incursio
With regard to the look and feel of the actual results - you can simply customize the HTML in the script to do what you want. |
![]() |
|
|