Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-17-2002 Last Update: Never Installs: 121
 
No support by the author.

Well after alot of time leaving it in the beta hacks forums without any problems, I'm now moving it to the Full Releases, I'm satisfied that there isn't any bugs that need to be addressed. Thanks to Jawelin he pointed out most of the mistakes through alot of his testing.
I've attached it as an installer file here, as it needs to make changes to the database. Two new rows to settings and a new column in the attachment table.

Scott

Updated some more

Note the > is missing off the bottom of the file after the ?, add it before trying to install

Show Your Support

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

Comments
  #92  
Old 03-19-2002, 11:34 PM
kidney kidney is offline
 
Join Date: Mar 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I seem llike I can't upload anything anymore, Can anyone help!!
I re-applied the hack, and still no result.....
I'm running a heavelly hacked 2.2.3.
I can send you my function.php files if required.
Reply With Quote
  #93  
Old 03-20-2002, 02:57 AM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ALTER TABLE attachment DROP filedata

..if I was you I wouldn't do that though as that can only cause you problems when you upgrade to v3.0

This would be better:

UPDATE attachment SET filedata = ''
Reply With Quote
  #94  
Old 03-20-2002, 10:23 AM
waddy's Avatar
waddy waddy is offline
 
Join Date: Nov 2001
Location: UK
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Freddie,

I was concerned about dropping the filedata column = issues on future updates.

I hope v 3.0 has Attachments as files. My database has never run better since I did this hack.
Reply With Quote
  #95  
Old 03-20-2002, 02:24 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It might give you the option to choose at your whim
Reply With Quote
  #96  
Old 03-20-2002, 03:10 PM
NitroSimSev NitroSimSev is offline
 
Join Date: Nov 2001
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PPN - I am currently running PHP portals and I am trying to get the attachment mod to work with a news program. Below is a block of code I would like to modify to get it to work. right now the images do not show up:

function centerblocks_topstories_block($row) {
include("config.php");
global $DB_site,$dateformat,$bburl;

$result=$DB_site->query("SELECT dateline,title,threadid FROM thread WHERE forumid=$topStoryForum ORDER BY dateline DESC LIMIT $topStoryNum");


$cc=1;
while ($topStory=$DB_site->fetch_array($result)) {
$postdate{$cc}=vbdate($dateformat,$topStory[dateline]);
$topStoryTitle{$cc}=$topStory[title];
$topStoryID{$cc}=$topStory[threadid];

$result1=$DB_site->query("SELECT pagetext,postid FROM post WHERE threadid=$topStory[threadid]");
$postinfo=$DB_site->fetch_array($result1);
$topStoryTeaser{$cc}=$postinfo[pagetext];
$topStoryImage{$cc}="$bburl/attachment.php?s=&postid=$postinfo[postid]";

The
$topStoryImage{$cc}="$bburl/attachment.php?s=&postid=$postinfo[postid]";
is the part of code I cant seem to get to work right. Any Ideas?
Reply With Quote
  #97  
Old 03-23-2002, 08:34 AM
waddy's Avatar
waddy waddy is offline
 
Join Date: Nov 2001
Location: UK
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BUG ? : When Editing or Delelting a thread with an attachment i am now getting this in the header of the page

Warning: Unlink failed (No such file or directory) in /users/waddy/www.xp-erience.org/forum/admin/functions.php on line 1696

ALSO :

One of my users is uploading an attachment, yet when we try to view the image we get this error

Warning: stat failed for /users/waddy/attchvb/958a09ca32b93cb743bf90ce001d58c0.file (errno=2 - No such file or directory) in /users/waddy/www.xp-erience.org/forum/attachment.php on line 60
Reply With Quote
  #98  
Old 03-23-2002, 07:46 PM
HellRazor HellRazor is offline
 
Join Date: Mar 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only problem I am having is that once you select the file for uploading, the "Use Custom Avatar?" radio button turns off. People often miss that, and what happens is the avatar defaults to the first avatar in the normal list.

Is there any way to make this default to "use custom avatar" when a file is uploaded?
Reply With Quote
  #99  
Old 03-27-2002, 10:17 AM
Wayne2k1.com's Avatar
Wayne2k1.com Wayne2k1.com is offline
 
Join Date: Nov 2001
Location: Italy
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by HellRazor
The only problem I am having is that once you select the file for uploading, the "Use Custom Avatar?" radio button turns off. People often miss that, and what happens is the avatar defaults to the first avatar in the normal list.

Is there any way to make this default to "use custom avatar" when a file is uploaded?
Same problem 4 me...
Reply With Quote
  #100  
Old 03-27-2002, 03:39 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll look into this now, I presume that the avatar upload uses the accept_upload function within the admin panel and it might require a bit of editing.
Reply With Quote
  #101  
Old 03-27-2002, 06:04 PM
xware's Avatar
xware xware is offline
 
Join Date: Nov 2001
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by HellRazor
The only problem I am having is that once you select the file for uploading, the "Use Custom Avatar?" radio button turns off. People often miss that, and what happens is the avatar defaults to the first avatar in the normal list.

Is there any way to make this default to "use custom avatar" when a file is uploaded?
Same to me.
IS a bug?
Reply With Quote
Reply


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 01:56 AM.


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.05127 seconds
  • Memory Usage 2,307KB
  • 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_quote
  • (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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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