YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Pages: 1 2 
Topic Tools
 
Download info (Read 3,763 times)
 Oct 2nd, 2010 at 3:10pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Download info
I'm trying to add some text by the attachment in my posts shown here. but can't seem to find the area I'm looking for?



instead of it saying:

... omgot_blue_side_panel.vpk (58 KB | 54  )

I want it to say

... omgot_blue_side_panel.vpk ( File Size: 58 KB | Downloads: 54  )
« Last Edit: Oct 2nd, 2010 at 3:10pm by fpsbrian »  
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
 Reply #1 - Oct 2nd, 2010 at 4:22pm
There are no actions to perform.  

ThM 
Past Team Members
Offline
Posts: 444
Germany


YaBB 2.5
Re: Download info
In Display.pl add the highlighted......

Code (Perl)Select All
						$attachment .= qq~<div class="small"><a href="$scripturl?action=downloadfile;file=$_"><img src="$imagesdir/$attach_gif{$ext}" border="0" align="bottom" alt="" /> $_</a> (Filesize: ~ . int($filesize / 1024) . qq~ KB | Downloads: <acronym title='$attach_count{$_} $fatxt{'41a'}' class="small">$attach_count{$_}</acronym> )</div>~; 



Wink

And notice it's hardcoded. Better you make two new language strings.
« Last Edit: Oct 2nd, 2010 at 5:11pm by ThM »  
Gruß ThM
 
IP Logged  
 Reply #2 - Oct 2nd, 2010 at 5:14pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Re: Download info
Thank you so much!
 
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
 Reply #3 - Oct 2nd, 2010 at 5:23pm
There are no actions to perform.  

ThM 
Past Team Members
Offline
Posts: 444
Germany


YaBB 2.5
Re: Download info
You are welcome  Smiley
 
Gruß ThM
 
IP Logged  
 Reply #4 - Oct 12th, 2010 at 4:11pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Re: Download info
I think I messed something up... after doing some changes I can not change the
"Number of file attachments allowed in Posts" found in admin center > Advanced Settings > Attachments ?


Not sure if this helps but, when I hit "save" it go to-
omgot.com/forums/cgi-bin/yabb2/AdminIndex.pl?action=newsettings2;
page=advanced

but doesnt make it and I find myself at my homepage?



Download list looks great now!
« Last Edit: Oct 12th, 2010 at 4:31pm by fpsbrian »  
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
 Reply #5 - Oct 12th, 2010 at 6:08pm
There are no actions to perform.  
Captain John 
Ex Member


None
Re: Download info
The saved settings should resave Settings.pl (check CHMOD), Was Display.pl the only file you last edited ?  If so simply replace Display.pl with a backup or correct your edits.
 
 
IP Logged  
 Reply #6 - Oct 12th, 2010 at 11:41pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Re: Download info
I've tried using my backup from before changes and checked all chmod settings...

Still won't let me change that setting, even the option for showing images in attachments...                   


I dont see the lines for attachments in variables>settings.pl  either?
« Last Edit: Oct 12th, 2010 at 11:45pm by fpsbrian »  
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
 Reply #7 - Oct 13th, 2010 at 2:35pm
There are no actions to perform.  
Captain John 
Ex Member


None
Re: Download info
oops ... your using Y2.3.1 ... should be an attachments.txt and advsettings.txt file with settings.
« Last Edit: Oct 13th, 2010 at 2:42pm by N/A »  
 
IP Logged  
 Reply #8 - Oct 13th, 2010 at 3:09pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Re: Download info
I see it now, I have it set for 666
 
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
 Reply #9 - Oct 13th, 2010 at 3:54pm
There are no actions to perform.  
Captain John 
Ex Member


None
Re: Download info
are the new settings saved ?
 
 
IP Logged  
 Reply #10 - Oct 13th, 2010 at 6:56pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Re: Download info
I had to do it manually because for some reason it wont let me do it in admin center?

I think I'm getting 404ed because it tries to go to AdminIndex.pl?action=newsettings2;page=advanced when I hit the save button, then I get directed to the main page.


newsettings.pl has a line

Code Select All
  <form action="$adminurl?action=newsettings2;page=$page" onsubmit="undisableAll(this);" method="post"> 


« Last Edit: Oct 13th, 2010 at 7:03pm by fpsbrian »  
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
 Reply #11 - Nov 2nd, 2010 at 1:32pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Re: Download info
ok, I still don't get why I can edit this field... when ever I hit "save" it like 404 errors me?

Even in users profile I found out?
 
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
 Reply #12 - Nov 2nd, 2010 at 2:54pm
There are no actions to perform.  
Captain John 
Ex Member


None
Re: Download info
mmmm well a 404 error is simply a server response for it not being able to find a file or directory (folder).  So it can't find the file requested at or in the directory specified.
 "Possibly" a path setting is incorrect or a file missing.  Turn on Debug in Admin Center to help you troubleshoot.  And/Or add
Code (Perl)Select All
use CGI::Carp qw(fatalsToBrowser);  


to AdminIndex.pl, just below the shebang (path to Perl) line.
 
 
IP Logged  
 Reply #13 - Nov 2nd, 2010 at 4:30pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Re: Download info
Still not sure what I'm doing... I don't see anything wrong?
 
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
 Reply #14 - Nov 2nd, 2010 at 7:22pm
There are no actions to perform.  

fpsbrian 
Full Member
***
Offline
Posts: 108
New Jersey


None
Re: Download info
I have another forum (yabb 2.4) not modded really... and it does the same thing!

the URLs are

Main Forum:
www.omgot.com/forums

Testing Forum:
www.omgot.com/testing

Do you think that has something to do with it?
 
...
WWW fpsbrian fps_brian fpsbrian fpsbrian fpsbrian  
IP Logged  
Pages: 1 2 
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.