Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 6 1 2 3 4 5 6
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Gotcha! Thanks!

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Couple issues smile

- There's more than one set of install files in this thread. The ones in the original post have some issues fixed further into the topic.

- There is still one reference to megamoderator in the install file after using Ian's fix, is that ok?

- On a win2k server I'm getting a zero byte file when trying to upload - any idea (besides changing servers tipsy ) what the problem might be?

Will probably be a lot less questions in here if the original post has the latest files/fixes. Any help with the zero byte issue appreciated smile


- Allen wavey
- What Drives You?
#203073 09/16/2004 11:57 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
ok, this is the version that works on win2k servers:

https://www.ubbdev.com/ubb/upload/00000494/ubb_upload.txt

Change the extension to .cgi, upload and there you go smile

It might work on other servers, but I know it works on win2k smile


- Allen wavey
- What Drives You?
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
I am experiencing an issue here...

Whenever a new user registers, they start automatically set to "Never Allow User to Upload" instead of follow default user group rules.

I am having to go in to every new registered profile, and change them 1 by one. Is there a way to fix the default so that it's set to default as opposed to "Never"?

Thanks!

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Hey Phillip, which version did you install?


- Allen wavey
- What Drives You?
Sponsored Links
#203076 01/19/2005 11:20 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
You know, I thought I knew, but now I'm not so sure. I thought that I had 2 file names, 6_7 and 6_7_2 but looking at how it's labeled here, as currently being version 3, I just don't know and I need to look when I get home...

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
This one works on Windows servers and is the most recent code for them:

https://www.ubbdev.com/ubb/upload/00000494/ubb_upload.txt

It should probably also work on other servers, if not look a bit further upstream for the latest code smile


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
bah, that's not what you asked for... re-check your mod work and see if you made a mistake. I believe it works fine for good installs.


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
... Problem solved.


-GATOR

"Pain is temporary, Pride is forever"
#203080 02/08/2005 10:59 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
glad we could help smile


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Aug 2004
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 14
After several months of successful uploading, we're getting the following:
Quote
quote:
Software error:
CGI open of tmpfile: Permission denied

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

[Fri Mar 4 10:33:30 2005] ubb_upload.cgi: CGI open of tmpfile: Permission denied
I'll start working on this but wondered if anyone had seen this before.

Joined: Aug 2004
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 14
BTW, this is a Windows 2K server and we're running 6.7.2

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
ask your host if they recently changed something

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Quote
Originally posted by Alan Thompson:

After several months of successful uploading, we're getting the following:
quote:
[qb]Software error:
CGI open of tmpfile: Permission denied

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

[Fri Mar 4 10:33:30 2005] ubb_upload.cgi: CGI open of tmpfile: Permission denied [/qb]
I'll start working on this but wondered if anyone had seen this before.

Sounds like either the permissions have changed on the folder the server uses to store the temp file for upload in, or the size of the file is possibly too large for the settings in the php.ini, or they updated php.ini and forgot to reset the correct folder for uploads (left it at the default location).


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
doesn't php.ini only pertain to.. well... php?

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Sorry, getting my support sites mixed up tipsy


Then it's the temp folder's permissions tipsy


- Allen wavey
- What Drives You?
#203087 03/05/2005 11:49 PM
Joined: Aug 2004
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 14
so tempfile is in a temp folder? Before I start scouring my web site, is this a particular temp folder within the cgi-bin, or somewhere in the ubb folder? Or is it the temp folder somewhere on the server out of my reach?

Also, since this is a shared Windows server, I suppose I'll have to ask the administrators to reset permissions. Funny it would change...

#203088 05/17/2005 12:26 PM
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hello,

I get this error:

Premature end of script headers: ubb_upload.cgi

chmod is 755

What can I do?


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
open ultimatebb.cgi
Check the first line, and copy it

(the one that is something like #!usr/vkah)

take that line and paste it at the top of ubb_upload.cgi, replacing the line that looks similar to it

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Quote
Originally posted by Brett:

Modification Name: UBB.Uploader

Author(s): Brett

......
Credits: Allen Ayres, LK and freeTV, and Ely_M, Ian Spence(for some of the manager code laugh )


Brett,
Free TV had something like that modified from 6.04 to 6.1-6.2, would you have a copy of that?

Thank you,
Felix

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I thought I did, but I don't know where my copy went. I even tried web.archive.org, google, nothing.

However, the ubbdev database has the multihacks for the hacks. Which I believe has a text export, if your not a big fan of MH.

[6.1.x] ELY_M\'s Upload
[6.2.1] ELY_M\'s Upload
[6.3] ELY_M\'s Upload

I found nothing to mention freeTV's version, but if I remember correctly, all he did was port ely_m's version.

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
I never thought to look for MH. and 6.3.1 was what I was looking for.

However I never used Multihack before, how do I extract a text file from a Mh file?

Thanks for your help Brett.

Felix

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
install multihack (takes <2 minutes), and there's an option to export the text file for whatever .mhp you have smile

Multihack only takes a few minutes to install any mod if you already have it installed tho smile


- Allen wavey
- What Drives You?
Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
I tried last night and couldnt get it. I must be doing something wrong, I am not familiar with MH.

You had a tutorial somewhere about using it, cant find it, do you know where it is?

Thanks Allen

#203095 05/19/2005 10:22 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
It's in the 'reviews' section of the db smile


- Allen wavey
- What Drives You?
#203096 05/20/2005 11:38 AM
Joined: Aug 2004
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 14
Can anyone answer my question from March 5th? I'm still dealing with this problem:

Quote
quote:
Before I start scouring my web site, is this a particular temp folder within the cgi-bin, or somewhere in the ubb folder? Or is it the temp folder somewhere on the server out of my reach?
I rechecked all my files to make sure I didn't overwrite anything and the upload Mods are all still there.

Here is the error we're getting upon attempting uploads:

[Linked Image]

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
It's probably a question you'll need to ask the server admins about. I ran a windows server for quite a few years, but don't remember setting a temp directory. It's quite possible the perl install uses the windows temp directory during an upload, again, the server admins should have an idea.


- Allen wavey
- What Drives You?
Joined: Aug 2004
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 14
Thanks, Allen,

I put this again to yet another server admin and this time they fixed the problem. Of course, they never say what the problem was but it must have been a permissions issue at the root level beyond my reach.

Joined: May 2000
Posts: 1,356
Addict
Addict
Joined: May 2000
Posts: 1,356
Alternatively, you can alter the temp directory that CGI.pm uses:

Code
my $temp_dir = ".";
$CGITempFile::TMPDIRECTORY = $ENV{TMPDIR} = $temp_dir if -d $temp_dir and -w _;
But note that this is not strictly tested (I used it in an earlier code of mine).

Also see the -private_tempfiles pragma...

Joined: Aug 2004
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 14
Thanks, All,

I want to share some "enhancements." Our Forum Members are fairly unsophisticated so I need to make everything as simple as possible. Since our Members like to share image files only, I made some modifications to make it a no brainer to get the image links into posts.

Here is a simple mod to vars_wordlets.cgi to make a clickable link within the results page that will paste the link into the message window using JavaScript:

Find this line in the Upload Mod for vars_wordlets.cgi:

Code
q!upload-_-up_success! => q!The file you uploaded was successful.  You can access it by clicking <a href="%%LINK%%" target="_new">here</a>.
You may also copy the following statement to use the hyperlink in your posts.

%%LINK%%

<a href="%%BACK%%">Click here to upload more files</a> or <a href="%%MANAGER%%">Click here to manage your uploaded files</a>!,
Replace with the following:
Code
q!upload-_-up_success! => q!The file you uploaded was successful.  You can access it by clicking <a href="%%LINK%%" target="_new">here</a>.
Simply click the link below to paste it into your post (you can also copy and paste it).

<a href="javascript:void(0)" onclick="window.opener.insertAtCaret(window.opener.document.replier.message, ' [img]%%LINK%%[/img] '); window.focus();">[img]%%LINK%%[/img]</a>

<a href="%%BACK%%">Click here to upload more files</a> or <a href="%%MANAGER%%">Click here to manage your uploaded files</a>!,

#203101 05/21/2005 11:04 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Glad you got it working and thanks for the code snippet smile


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Quote
Originally posted by Ian Spence:

open ultimatebb.cgi
Check the first line, and copy it

(the one that is something like #!usr/vkah)

take that line and paste it at the top of ubb_upload.cgi, replacing the line that looks similar to it
Hello,

I have changed the ubb_upload.cgi but I get the same error!

Premature end of script headers: ubb_upload.cgi

Can someone have a look at my board?

http://www.time-talk.de

Thanks
d-talk


Webmaster of d-talk & Kabel-Forum.com
Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Quote
Originally posted by AllenAyres:

install multihack (takes <2 minutes), and there's an option to export the text file for whatever .mhp you have smile

Multihack only takes a few minutes to install any mod if you already have it installed tho smile
why bother? you already did that! wink
https://www.ubbdev.com/ubb/upload/00000494/elym_upload.zip

Thanks Allen
smile

Joined: Jan 2003
Posts: 16
Junior Member
Junior Member
Offline
Joined: Jan 2003
Posts: 16
i need some help... after installing this mod it gives me a internal server error when clicking "upload file form" popup window....

any idea?
thank you

Joined: Jan 2003
Posts: 16
Junior Member
Junior Member
Offline
Joined: Jan 2003
Posts: 16
problem solved... was the reference to directory of vars_config at ubb_upload.cgi was not correct.
thanks its now working

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
oops, glad you got it worked out smile


- Allen wavey
- What Drives You?
#203107 12/09/2005 12:48 PM
Joined: Dec 2005
Posts: 8
Junior Member
Junior Member
Offline
Joined: Dec 2005
Posts: 8
With all the different changes to the file, is the link in the first post the right one to use?

Installing on a linux box using a virgin 6.7.3 installed yesterday. Anything to watch out for?

thanks,
elz

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Nope, the link in the first post is the newest version.

Joined: Jun 2002
Posts: 111
Member
Member
Offline
Joined: Jun 2002
Posts: 111
Installed this version without the megamod hack onto 6.7.3. on a w2k3 server.

Seems to work fine, although in case of no megamod several lines need to be removed.

A few thinks already spoken about are not correct in the install.txt

Code
*********************************************************************************
* MOD NAME: UBB.Uploader *
*********************************************************************************
* DESCRIPTION: Lets users upload files. Allowed files are choosable from CP. *
* DEMO: http://www.pavioni.com/ubb/ultimatebb.php *
* username: ubbtest password: test *
* *
*********************************************************************************
* CREATED BY: Brett *
* DATE: 05/04/04 *
* VERSION: version 3.0 *
* CREDITS: Allen Ayres, LK and freeTV, And of course Ely_M :) *
* *
*********************************************************************************
*********************************************************************************
* REQUIREMENTS: Full License *
* COMPATABILITY: works with v6.7x, v6.6? *
*********************************************************************************
* FILES ADDED: ubb_upload.cgi *
* FILES MODIFIED: cp2_vars.cgi, cp2_lib.cgi, cp2_membermanage.cgi, ubb_lib.cgi *
* vars_wordlets_cp2.cgi, vars_wordlets.cgi, cp2_forums2.cgi, *
* cp2_forumedit.pl, cp2_editprofile.pl, *
* public_edit_post.pl, public_new_reply_form.pl, *
* public_new_topic_form.pl, public_pm_form.pl *
* public_topic_page.pl, public_avatar_select.pl *
*********************************************************************************
* DISCLAIMER: By using this modification, the user implicitly agrees *
* that they are willingly modifying any and all files at *
* their own risk. Should any errors occur either as a *
* direct or indirect result of said modifications the user *
* agrees not to hold Infopop Corporation or any of the *
individuals listed accountable. *
* *
* *
* IN OTHER WORDS: PLEASE MAKE BACKUP COPIES OF EVERY FILE YOU PLAN TO *
* MODIFY PRIOR TO MODIFICATION!! *
* *
* *
* FOR MORE TIPS AND TRICKS FOR USE WITH THE ULTIMATE BULLETIN BOARD *
* PLEASE US AT VISIT: *
* *
* https://ubbdev.com/ *
* *
*********************************************************************************
*********************************************************************************

########################################################
###Open cp2_vars.cgi
########################################################

########
# find #
########


&Template($vars_wordlets_cp2{"vars_config-_-enableaccel-description"}, {});


#############
# add below #
#############

use vars qw($UPLOADSUB);
$UPLOADSUB = sub {
no strict;
my $r = ""; # deja vu
foreach(qw(administrators moderators senior_members junior_members)) {
next if($_ eq 'megamoderators' && !&FileExists("$vars_config{VariablesPath}/vars_megamods.cgi"));
$vars_misc{"upload_limit_$_"} &#0124;&#0124;= '15000';

my $check1 = ($vars_misc{"upload_$_"} eq 1 ? ' checked="checked"' : '');
my $check2 = ($vars_misc{"upload_avatar_$_"} eq 1 ? ' checked="checked"' : '');

$r .= qq~
<tr>
<td style="border-right: 1px dotted black">
$vars_wordlets_cp2{"generics-$_"}
</td>

<td>
<span class="autorow-title">
<input type="checkbox" name="vars_misc::upload_$_" value="1"$check1 />
</span>
</td>

<td>
<span class="autorow-title">
<input type="checkbox" name="vars_misc::upload_avatar_$_" value="1"$check2 />
</span>
</td>

<td>
<span class="autorow-title">
<input type="text" name="vars_misc::upload_limit_$_" value="$vars_misc{"upload_limit_$_"}" />
</span>
</td>

<td>
<span class="autorow-title">
<input type="text" name="vars_misc::upload_filelimit_$_" value="$vars_misc{"upload_filelimit_$_"}" />
</span>
</td>
</tr>~}
return $r};



########
# find #
########

vars_misc::FloodCheckSpan
)],


#############
# add below #
#############

{
type => "header",
level => 2,
title => $vars_wordlets_cp2{'upload-_-title'},
},[qw(
vars_misc::upload
vars_misc::upload_unreg
vars_misc::upload_dir
vars_misc::upload_url
vars_misc::upload_extreg
vars_misc::upload_extavt
vars_misc::upload_administrators
vars_misc::upload_avatar_administrators
vars_misc::upload_limit_administrators
vars_misc::upload_filelimit_administrators
vars_misc::upload_moderators
vars_misc::upload_avatar_moderators
vars_misc::upload_limit_moderators
vars_misc::upload_filelimit_moderators
vars_misc::upload_senior_members
vars_misc::upload_avatar_senior_members
vars_misc::upload_limit_senior_members
vars_misc::upload_filelimit_senior_members
vars_misc::upload_junior_members
vars_misc::upload_avatar_junior_members
vars_misc::upload_limit_junior_members
vars_misc::upload_filelimit_junior_members
)], {
type => 'header',
level => 2,
title => "Upload Permissions",
}, {
type => 'raw',
content => qq~
<tr bgcolor="#F1F1DB">
<td width="50%" valign="top" class="paddingtop paddingbottom autorow" align="left" colspan="2">


<table width="100%" cellpadding="4" cellspacing="2" border="0">

<tr style="border-bottom: 1px dotted black">
<td style="border-right: 1px dotted black"></td>

<td>
<span class="autorow-title">
$vars_wordlets_cp2{'upload-_-titlebar-allow'}
</span>
</td>

<td>
<span class="autorow-title">
$vars_wordlets_cp2{'upload-_-titlebar-custom'}
</span>
</td>

<td>
<span class="autorow-title">
$vars_wordlets_cp2{'upload-_-titlebar-limit'}
</span>
</td>

<td>
<span class="autorow-title">
$vars_wordlets_cp2{'upload-_-titlebar-filelimit'}
</span>
</td>
</tr>~
}, {
type => 'raw',
content => &$UPLOADSUB
}, {
type => 'raw',
content => qq~</table></td></tr>~
},


########
# find #
########


}; # end return

} # end define_vars_misc



#############
# add above #
#############


upload => {
type => "checkbox",
values => [qw(yes no)],
default => "yes",
},
upload_unreg => {
type => "checkbox",
values => [qw(yes no)],
default => "yes",
},
upload_dir => {
type => "text",
length => 50,
maxlength => 100,
default => "15",
},
upload_url => {
type => "text",
length => 50,
maxlength => 100,
default => "15",
},
upload_extreg => {
type => "text",
length => 50,
maxlength => 100,
default => "15",
},
upload_extavt => {
type => "text",
length => 50,
maxlength => 100,
default => "15",
},

q!upload_administrators! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_administrators! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_administrators! => { type => "text", private => 1, req => 0, },
q!upload_filelimit_administrators! => { type => "text", private => 1, req => 0, },

q!upload_moderators! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_moderators! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_moderators! => { type => "text", private => 1, req => -1, },
q!upload_filelimit_moderators! => { type => "text", private => 1, req => -1, },

q!upload_senior_members! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_senior_members! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_senior_members! => { type => "text", private => 1, req => -1, },
q!upload_filelimit_senior_members! => { type => "text", private => 1, req => -1, },

q!upload_junior_members! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_junior_members! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_junior_members! => { type => "text", private => 1, req => -1, },
q!upload_filelimit_junior_members! => { type => "text", private => 1, req => -1, },






########################################################
###Open vars_wordlets_cp2.cgi
########################################################

##########
# add in #
##########

q!vars_misc-_-upload! => q!Allow uploading?!,
q!vars_misc-_-upload-description! => q!Allow users on your board to upload files!,
q!vars_misc-_-upload_unreg! => q!Allow uploads by unregistered users?!,
q!vars_misc-_-upload_unreg-description! => q!Do you want allow unregistered user to upload their files? It can pose security risk, if you wish to allow this!,
q!vars_misc-_-upload_dir! => q!Upload Path!,
q!vars_misc-_-upload_dir-description! => q!Path to where files will be placed!,
q!vars_misc-_-upload_url! => q!Upload URL!,
q!vars_misc-_-upload_url-description! => q!The http link to the path where the files will be placed.!,
q!vars_misc-_-upload_extreg! => q!Allowable Extentsions for Regular Files!,
q!vars_misc-_-upload_extreg-description! => q!Seperate each extentsion with spaces. For example, "zip txt tar.gz tar".!,
q!vars_misc-_-upload_extavt! => q!Allowable Extentsions for Avatars!,
q!vars_misc-_-upload_extavt-description! => q!Only these will be available for uploading custom avatars, you can seperate extenstion by a space. Example: "gif jpeg jpg", without the quotes.!,
q!upload-_-forum! => q!Groups Allowed To Upload!,
q!upload-_-title! => q!Upload Settings!,
q!upload-_-titlebar-allow! => q!Allow Uploads!,
q!upload-_-titlebar-custom! => q!Allow Upload Avatars!,
q!upload-_-titlebar-limit! => q!Maximum Size Of Upload!,
q!upload-_-titlebar-filelimit! => q!Maximum # Of Files!,
q!upload-_-profile! => q!Allowed to upload files!,
q!upload-_-profile-description! => q!!,
q!upload-_-profile-all! => q!Allow user to upload all the time. Ignore user group setting.!,
q!upload-_-profile-no! => q!Never allow user to upload.!,
q!upload-_-profile-reg! => q!Follow default user group rules.!,





########################################################
###Open vars_wordlets.cgi
########################################################

##########
# add in #
##########

q!upload-_-link! => q!Upload File Form!,
q!upload-_-form-title! => q!%%BBTITLE%% Upload Form!,
q!upload-_-form-submit! => q! Upload !,
q!upload-_-form-link! => q!Upload File!,
q!upload-_-form-manager! => q!Upload Manager!,
q!upload-_-manager-title! => q!%%BBTITLE%% Upload Manager!,
q!upload-_-manager-delete! => q!Delete!,
q!upload-_-manager-file! => q!Filename!,
q!upload-_-manager-nofiles! => q!No files detected!,
q!upload-_-bad_directory! => q!We apologize but either i can't create, look at, or write this to directory. Please alert the administration about the '%%DIR%%' directory.!,
q!upload-_-back_directory! => q!» Back 1 Directory!,
q!upload-_-need_to_login! => q!You need to be logged in to upload here. Please close this window, logged in then try again.!,
q!upload-_-bad_status! => q!Unable to determine status. Please inform the board administrators about this error.!,
q!upload-_-forum_deny! => q!File Uploading is not allowed in this forum.!,
q!upload-_-full_deny! => q!You do not have permission to access this area.!,
q!upload-_-invalid_ref! => q!Unable to parse your referer. Are you sure you clicked on it through the forums?!,
q!upload-_-no_ref! => q!Unable to detect referer. You must click the upload link directly to upload files.!,
q!upload-_-invalid_ext! => q!You are trying to upload something with an illegal extentsion. The currently allowed are: %%FILE%%, and you tried to upload a %%EXT%% file(s).

<a href="javascript: void(history.back(-1))">Click here to go back.</a>!,
q!upload-_-filesize_over! => q!The file you were trying to upload has exceeded the maximum of %%GOOD%% bytes. We stopped the upload at %%BAD%% bytes.!,
q!upload-_-up_success! => q!The file you uploaded was successful. You can access it by clicking <a href="%%LINK%%" target="_new">here</a>.
You may also copy the following statement to use the hyperlink in your posts.

%%LINK%%

<a href="%%BACK%%">Click here to upload more files</a> or <a href="%%MANAGER%%">Click here to manage your uploaded files</a>!,
q!upload-_-cant_delete! => q!I was unable to delete the following file. Please alert the administration.

%%FILE%%!,
q!upload-_-at_limit! => q!You are currently at your limit to upload. To upload anymore files, please delete some files out of your upload manager.


<a href="%%BACK%%">Click here for the upload manager</a>.!,
q!upload-_-up_avtsuccess! => q!%%JS%%Avatar successfully uploaded. Click <a href="javascript: void(ChangeAvatar())">Here</a> to load the url to the custom avatar field!,
q!upload-_-custom_avatar! => q!Upload A Custom Avatar!,




########################################################
###Open cp2_lib.cgi
########################################################

########
# find #
########

if($def->{private}) {

#############
# add below #
#############

next VAR if($file eq "vars_misc");





########################################################
###Open cp2_forumedit.pl
########################################################


########
# find #
########

# TODO - remove access


#############
# add below #
#############

my $upload_list = {
type => "radio",
title => $vars_wordlets_cp2{'upload-_-forum'},
name => "upload",
options => @topic_options,
class => "paddingtop paddingbottom",
};

########
# find #
########

$topic_select, $reply_select, $private_container,

################
# replace with:#
################

$topic_select, $reply_select, $upload_list, $private_container,





########################################################
###Open cp2_forums.cgi
########################################################

########
# find #
########

# Now, make sure no |^ got slipped through..


#############
# add above #
#############

# Upload Hackmap
$original[23] = $in{upload};


########
# find #
######## (all occurances of)

$vars_forums{$_} }[0 .. 17]

################
# replace with:#
################

$vars_forums{$_} }[0 .. 23]



########################################################
###Open ubb_lib.cgi
########################################################

########
# find #
########

$vars_config{'MaxMemFields'} = 43;

################
# replace with:#
################

$vars_config{'MaxMemFields'} = 71; #total fields permitted in member file(this is a large number so it does not conflict with other hacks)


########
# find #
########

my @check = (split (/|^|/, $one))[0 .. 17];

################
# replace with:#
################

my @check = (split (/|^|/, $one))[0 .. 23];




########################################################
###Open cp2_editprofile.pl
########################################################

########
# find #
########

]), &MakeComponentHTML([
# Tab 3 - fields

#############
# add above #
#############

{
class => "autotop", # fix for stupid expandy problem
type => "radio",
name => "upload",
title => $vars_wordlets_cp2{'upload-_-profile'},
desc => $vars_wordlets_cp2{'upload-_-profile-description'},
options => [
{
name => $vars_wordlets_cp2{'upload-_-profile-all'},
value => 'all',
selected => $profile[70] == "all" ? 1 : 0,
},
{
name => $vars_wordlets_cp2{'upload-_-profile-reg'},
value => 'reg',
selected => $profile[70] =~ m/reg/ ? 1 : 0,
},
{
name => $vars_wordlets_cp2{'upload-_-profile-no'},
value => 'no',
selected => $profile[70] !~ m/^(all|reg)$/ ? 1 : 0,
},
],
},






########################################################
###Open cp2_membermanage.cgi
########################################################

########
# find #
########

$profile->[32] = join("|", @bdi);


#############
# add below #
#############

$profile->[70] = $in{upload};






########################################################
###Open public_avatar_select.pl
########################################################

########
# find #
########

$TBB_Popup



#############
# add below #
#############

<center>
<table width="95%"><tr>
<td align="right">
<font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}">
<a href="javascript: void(0)" onclick="window.open('$vars_config{CGIURL}/ubb_upload.cgi?f=avatar', 'uploader', 'toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=570,height=350'); return false;"><b>$vars_wordlets{'upload-_-custom_avatar'}</b></a>
</font>
</td></tr></table>
</center>







########################################################
###Open public_edit_post.pl, public_new_reply_form.pl
### public_new_topic_form.pl, public_pm_form.pl
########################################################

########
# find #
########

$ubb_images_wording

#############
# add below #
#############



<a href="javascript: void(0)" onclick="window.open('$vars_config{CGIURL}/ubb_upload.cgi', 'uploader', 'toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=570,height=350'); return false;"><b>$vars_wordlets{'upload-_-link'}</b></a>






########################################################
###Open public_topic_page.pl
########################################################

########
# find #
########



$graem_list

#############
# add below #
#############



<a href="javascript: void(0)" onclick="window.open('$vars_config{CGIURL}/ubb_upload.cgi', 'uploader', 'toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=570,height=350'); return false;"><b>$vars_wordlets{'upload-_-link'}</b></a>


************************************************
* Okay, now upload all files and it should work.
just for y're knowledge.

Joined: Dec 2005
Posts: 8
Junior Member
Junior Member
Offline
Joined: Dec 2005
Posts: 8
Ok, just made all the modifications and uploaded.

Few questions that I haven't seen answers to in these 11 pages.

After uploading ubb_upload.cgi, do I need to change the permissions of it? Right now, its at 644 and I have changed the path to Perl.

In the CP I have entered what I believe to be valid entries into Upload Settings and Upload Permissions, enabling every checkbox just in case and still receive an error of:

Form validation errors:

: You did not enter a value for this field
: You did not enter a value for this field

No idea what that means, I saw it referenced in this topic, but never an answer as to what to do with it.

The Upload File Form link appears now when I post something, but when I click it, I get an Error Code: 500 on the popup page.

Any thoughts?
What have I missed?

Thanks,
elz

Page 4 of 6 1 2 3 4 5 6

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)