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)

MindTrix 02-07-2004 10:29 AM

Thanks for that Nuclion!!

Colicab-d, what version of vbindex?

gmarik 02-07-2004 11:02 AM

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.

colicab-d 02-07-2004 11:05 AM

latest version mindtrix mate :D

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 :p (if u can accomplish it by mysql ur a god)

memobug 02-08-2004 06:29 AM

Is it possible to illustrate what this hack does using photographs of people with their clothes on not having sex?

assassingod 02-08-2004 09:06 AM

MindTrix, could you please upload a non-pornographic attachment please - thanks.

MindTrix 02-08-2004 10:04 AM

My bad :p Didnt realise to be honest, New screenshot uploaded (and they was not pornographic pictures if you saw them in full size)

Oblivion Knight 02-08-2004 12:19 PM

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.!

MindTrix 02-08-2004 07:01 PM

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

Boofo 02-08-2004 07:40 PM

Or you could use:

PHP Code:

 if ($bbuserinfo['userid']) 


MindTrix 02-08-2004 07:41 PM

In the php file?


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.01077 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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