vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Recent Attachments (https://vborg.vbsupport.ru/showthread.php?t=61244)

Marco van Herwaarden 05-12-2005 03:36 PM

PHP Code:

showthread.php?t=$recentattachment[threadid]

or something like that probably.

NuclioN 05-12-2005 05:39 PM

No that's not it. :) Attachments are showing up but links to nowhere

darkon 06-07-2005 11:30 PM

I worked on the problem to build a link to the posting/thread including the attachment.

I still have to figure out where in the database the "Postcount"-number is stored.. until then i have built a workaround.

In index.php you have to replace the code from the original-hack with this:

PHP Code:

//Start recent attachments by Trix
$trix $DB_site->query("SELECT attachmentid, a.dateline, filename, a.postid, threadid FROM " TABLE_PREFIX "attachment  a JOIN ".TABLE_PREFIX."post b ON a.postid=b.postid WHERE a.dateline < " TIME() ." ORDER BY a.dateline DESC LIMIT 3"); 

And in the recent_attachments template:

PHP Code:

<tr
<
td class="alt2">

<
div align="center"><a href="attachment.php?attachmentid=$recentattachment[attachmentid]">
<
img src='attachment.php?attachmentid=$recentattachment[attachmentid]&thumb=1' alt='$recentattachment[filename]' width="70">
</
a></div>
<
brAttachment number $recentattachment[attachmentid]<br/>
<
a href="showthread.php?t=$recentattachment[threadid]">In this thread</a><br/>
<
a href="showpost.php?p=$recentattachment[postid]">In this posting</a><br/>
 </
td>
</
tr

(i have included the block into a sidebar on the forumhome)

Take a look at http://www.infam.net/forum/index.php


Hopefully someone could help me to figure out how to get the postcount...

VanAusdal 06-20-2005 03:07 PM

Great!! Thank you for taking the time to work this out!!!!!

Borimikan 07-09-2005 03:04 PM

is there possibility to change the background color of the recent atachment box?

and there is a fix to be able to use this hack in Firefox and IE with no displaying errors?

Thanks advanced!

Borimikan 07-12-2005 03:48 AM

there is some posibility to change the background color of the recents attachments box? or maybe the letters colors!!

Gutspiller 08-02-2005 02:55 PM

How would I get the latest attachments to appear on a non-vb page though?


All times are GMT. The time now is 06:16 AM.

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.01087 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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