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)
-   -   ecDownloads 3.2 Legacy (https://vborg.vbsupport.ru/showthread.php?t=75198)

Maximum Fu 03-25-2005 08:01 PM

I am trying to modify the panels across the top with the user info, the latest file info, and the most popular files info.

The template downloads_panel_top seems to create each of the fieldsets that contains all the info.

But, within each of the fieldsets, they reference what sounds like it is in another template.

Does anyone know where the templates are for the following:

$panel_user_bit
$panel_latest_bits
$panel_popular_bits

Maximum Fu 03-25-2005 08:18 PM

On a similar topic, where can I access the nav links?

mikaelweb 03-25-2005 08:25 PM

in includes/dl_panel.php $panel_user_bit
PHP Code:

    $panel_user_bit "    <div>Your logged in as $bbuserinfo[username]</div>
                    <div>Files downloaded: 
$bbuserinfo[downloads] files</div>
                    <div>Files submitted: 
$bbuserinfo[uploads] files</div>
                    <div>Last File: 
$last</div>
                    <div>Downloaded On: 
$date</div>";
} else {
    
$panel_user_bit "    <div>You are <b>not</b> currently logged in.</div>
                    <div>You <b>cannot</b> download files</div>
                    <div>You <b>cannot</b> upload files</div>
                    <div>You <b>cannot</b> post comments</div>"
;


in includes/dl_panel.php $panel_latest_bits
PHP Code:

// --------------------------------------------------------------------
//    Construct the Latest File Bits
// --------------------------------------------------------------------

for($i 1$i <= 4$i++) {
    
$name $main['latest['.$i.']'];
    
$id $main['latestid['.$i.']'];
    
//$value = vbdate($vboptions['dateformat'],$main['latestval['.$i.']'],true);
    
eval('$panel_latest_bits .= "' fetch_template('downloads_panel_bit') . '";'); 

in includes/dl_panel.php $panel_popular_bits
PHP Code:

// --------------------------------------------------------------------
//    Construct the Popular File Bits
// --------------------------------------------------------------------

for($i 1$i <= 4$i++) {
    
$name $main['popular['.$i.']'];
    
$id $main['popularid['.$i.']'];
    
$value $main['popularval['.$i.']'];
    eval(
'$panel_popular_bits .= "' fetch_template('downloads_panel_bit') . '";');


in includes/dl_panel.php nav links
PHP Code:

// --------------------------------------------------------------------
//    Construct the Navigation Bit
// --------------------------------------------------------------------
$panel_links 'Welcome';

if (
$permissions['downloadpermissions'] & CANDOWNLOADFILES) {
    
$panel_links '<a href="downloads.php?">Main</a>';
}
if (
$permissions['downloadpermissions'] & CANUPLOADFILES) {
    
$panel_links .=  ' | <a href="downloads.php?do=add">Add</a> | <a href="downloads.php?do=util&act=my">My Files</a>';
}
if (
$permissions['downloadpermissions'] & CANMANAGEFILES) {
    
$panel_links .= ' | <a href="downloads.php?do=man&act=viewfile">Manage Files</a>';


l

Maximum Fu 03-25-2005 08:26 PM

I thank you kindly. I will give this a whirl!

BamaStangGuy 03-25-2005 11:13 PM

Quote:

Originally Posted by Maximum Fu
I thank you kindly. I will give this a whirl!

If you get this can you tell me what you did to the templates?

banuchi2 03-26-2005 01:44 AM

Will this work on vb 3.6

memobug 03-26-2005 10:24 AM

I have probably done something wrong. However, I can't figure it out. I can see the top level of the download categories but when I browse into any of the categories I get a blank page.

1. I ran downloadinstall.php
2. I uploaded the files
3. I have made the required changes to the files and checked them.
4. I put the download directory under /forum like /forum/downloads
5. I have made the permissions changes
6. I created the cron job.
5. I can see and create categories and they show up when I browse the top level. I can see also phrases and templates
BUT:
6. If I click any category nothing shows up, just a blank page.

I think it might have to do with the paths?

I tried leaving them as-is
./downloads/
./downloads/

and I tried putting in the correct absolute server path and http:// address to same. But the results weren't any different.

I think the instructions are a little vague on this point as they seem to use the terms "path" and "URL" interchangeably; asking for a "full path" and then specifying a relative path "./downloads/"; asking for a "web path" or URL and then specifying a relative path "./downloads/"

Regards,

Matt

Ron1n 03-26-2005 01:55 PM

Quote:

Originally Posted by banuchi2
Will this work on vb 3.6

Read the features list :)

Quote:

Originally Posted by memobug
I have probably done something wrong. However, I can't figure it out. I can see the top level of the download categories but when I browse into any of the categories I get a blank page.

The only thing I can think of is that your side panel template isnt working/showing up. The main page is run off of a vertical alignment, but the rest are run off of a standard header-sidebar-content alignment. This is all I can think of for the moment. If you know a little about php or even html try some testing and see if the side panel template is called. If you dont, try reinstalling the templates (dont need to wory about the others) but remember to uninstall first. I know i built it in to overwrite, but sometimes it doesnt work. If you still have problems, I will try to help you again so that you dont have to do a complete reinstall. I could just have you insert a couple echo statements in the category view.

Quote:

Originally Posted by BrentWilson
No matter what I try it will not order my categories via what I put into the admincp Categories section... It is inseting it into the database but it is not sorting by what is in the database. Can anyone else confirm this?

I tried sorting by different things and didnt have that problem. If you want I will look at your setup and try it on your board... that might help me figure out whats wrong. On my demo board it works fine though.

Quote:

Originally Posted by Juanito
I tried this but I still can't link urls, only works when I put in local "/directory/filename"...

But! I can upload files when they have no characters like "-" or "." in the filename... At least it starts to be funcionnal to me!

Thanks

I dont think that a . in the filename would cause any problems, but a - might. I will go see what I do to linked files in a few minutes and try to fix it later today if I find any problems like that. Check back around 5-6pm.

Quote:

Originally Posted by phreak420
what happens is that i click upload...everything works fine from what it looks like....it says file was uploaded...but then when u go to click on download file there is no file there...brings u to the error page...so then i go in...manually upload it through ftp...rename it to the name it gave me and then it works...but i would like it so that everybody can upload files not just me because i have ftp

I know your file uploads are supposedly going to the correct directory, but the only thing that could cause this problem that I have thought of is if you are uploading to a different directory. Double check that your settings are correct.

Quote:

Originally Posted by rjordan
Minor modification request:

When clicking on the download button, can you make it so it opens the link in a new window?

Yes, i can do that. (or at least make it an option in settings)

bluetrain 03-26-2005 02:20 PM

This is either a stupid question or I did something wrong with the installation. I've triple check the installation instruction, cmod folder, but I can't see any thing such as Manage, Add Files and such. Please help me, I have spent half an hour before posting this question.

SupraT 03-26-2005 02:24 PM

Quote:

Originally Posted by bluetrain
This is either a stupid question or I did something wrong with the installation. I've triple check the installation instruction, cmod folder, but I can't see any thing such as Manage, Add Files and such. Please help me, I have spent half an hour before posting this question.

You need to go to the permissions for each user group and the ability to add and change etc. You can control which group gets access to view, download, add and manage.

You should find this in the cp ---> usergroups


All times are GMT. The time now is 06:28 PM.

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.05982 seconds
  • Memory Usage 1,779KB
  • 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
  • (4)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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