Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Recent Attachments Details »»
Recent Attachments
Version: 1.00, by MindTrix MindTrix is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 02-05-2004 Last Update: Never Installs: 16
 
No support by the author.

Hack Author: MindTrix
Email: slimshadyandd12@hotmail.com


Description:

Simply adds a box to your forumhome page displaying the 5 most recent attachments and linking to them.

Credits:

Thanks go to assassingod for his incredible help and patients with me. He truely deserves his Mod spot so i would like to say thank you, And sorry for beeing such a pain. And thank you to Boofo who moaned at me for beeing a slacker and giving up easily Cheers Mate!!

Screenshot and installation text file attached. (Sorry for the poor HTML i am useless with the stuff)

(15/2/04 Update -- If you have Kentaurus brilliant Attachments In Private Messages hack installed you need to do this fix he posted here

https://vborg.vbsupport.ru/showpost....&postcount=113

To stop PM attachments showing on forumhome.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-07-2004, 10:29 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for that Nuclion!!

Colicab-d, what version of vbindex?
Reply With Quote
  #13  
Old 02-07-2004, 11:02 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please, make a 2 and 3 and 4 row mode, so it would be more comact - will you?
Thanks, man - you're only 18, but what you code is really fine.
Reply With Quote
  #14  
Old 02-07-2004, 11:05 AM
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Location: Glasgow
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

latest version mindtrix mate

also i know this a bi to ask but.... would it be also possible to show say the latest x attachments, but with only from x forum id (if u can accomplish it by mysql ur a god)
Reply With Quote
  #15  
Old 02-08-2004, 06:29 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to illustrate what this hack does using photographs of people with their clothes on not having sex?
Reply With Quote
  #16  
Old 02-08-2004, 09:06 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MindTrix, could you please upload a non-pornographic attachment please - thanks.
Reply With Quote
  #17  
Old 02-08-2004, 10:04 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bad Didnt realise to be honest, New screenshot uploaded (and they was not pornographic pictures if you saw them in full size)
Reply With Quote
  #18  
Old 02-08-2004, 12:19 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just noticed by visiting your forum that the attachment thumbnails are broken. Is this because I'm a guest? If so, is this default behaviour of the mod?

If it is, instead of displaying the latest attachments box, you may well just want to hide them from guests all together.. Lots of red x's don't exactly attract guests to registering. Just a suggestion.!
Reply With Quote
  #19  
Old 02-08-2004, 07:01 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry i didnt think of that, or try it, Try this

replace the code in the php file with

PHP Code:
if ($bbuserinfo['usergroupid']!= 0) {
//Start recent attachments by Trix
$trix $DB_site->query("SELECT attachmentid, dateline, filename FROM attachment WHERE dateline < " TIME() ." ORDER BY dateline DESC LIMIT 5");

while (
$recentattachment $DB_site->fetch_array($trix))
{
    eval(
'$latestattachments .= "' fetch_template('recent_attachments') . '";');
}
//End recent attachments by Trix


Its just a rough guess but i assume it will work
Reply With Quote
  #20  
Old 02-08-2004, 07:40 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or you could use:

PHP Code:
 if ($bbuserinfo['userid']) 
Reply With Quote
  #21  
Old 02-08-2004, 07:41 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the php file?
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 11:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05848 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete