vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - DownloadsII (https://vborg.vbsupport.ru/showthread.php?t=120122)

ReadOrDie 04-16-2009 05:39 PM

This issue has been fixed do not read this post. Read my next post below.

Sorry for the PM's. I figured out how to install highslide but have no idea how to put it into the <img> tag in downloads.php or what part to edit. I also have a few questions. I got highslide to work on the forums, and I'm trying to make it so JUST the image pops up. Not the black background or anything I got that to work by changing:

Code:

<script type="text/javascript" language='javascript1.2' src="highslide/highslide-with-gallery.js"></script>
To:
Code:

<script type="text/javascript" language='javascript1.2' src="highslide/highslide.js"></script>
However now my problem is that the image pops up perfectly how I want to, but it is NOT centered. Something that the file "highslide-with-gallery.js" did for me perfectly.

The hs_align says 'center' but it's still not working. The settings in my hs_headinclude are:

Code:

                                    <!-- HS Images Resize -->
            <script type="text/javascript">

            <!--
            folder="./highslide/";
            //-->
            </script>
<script type="text/javascript" language='javascript1.2' src="highslide/highslide-with-gallery.js"></script>
<link rel="stylesheet" type="text/css" href="highslide/highslide.css" />
<script type="text/javascript">
        hs.graphicsDir = 'highslide/graphics/';
        hs.align = 'center';
        hs.transitions = ['expand', 'crossfade'];
        hs.outlineType = 'glossy-dark';
        hs.wrapperClassName = 'dark';
        hs.fadeInOut = true;
        hs.numberPosition = 'caption';
        hs.dimmingOpacity = 0.75;

        // Add the controlbar
        if (hs.addSlideshow) hs.addSlideshow({
                //slideshowGroup: 'group1',
                interval: 5000,
                repeat: false,
                useControls: true,
                fixedControls: 'fit',
                overlayOptions: {
                        opacity: .75,
                        position: 'bottom center',
                        hideOnMouseOut: true
                }
        });
</script>
<script type="text/javascript">
<!--
HSImageResizer.MAXWIDTH = $vboptions[hs_maxwidth];
HSImageResizer.MAXHEIGHT = $vboptions[hs_maxheight];

//-->
</script>
            <!-- / HS Images Resize -->

The highslide code I'm using for highslide.js is here: http://highslide.com/highslide/highslide.js?src=

skylab 04-16-2009 05:43 PM

Hmm I need to disable pinned uploads for regular users too. *sigh*

ReadOrDie 04-17-2009 01:18 AM

Thanks RS_Jelle for your help, you probably think I'm a whacko lol. :P

But ok, Vbulletin should seriously provide some support for 'highslide' because it's not easy to get working at all. I just took the highslide settings from your site RS_Jelle I hope you don't mind so ignore my last post.

RS_Jelle how do I edit the category of the actual download? I have no use for the field "Author" so I wanted to remove that. But I also want to add a "Version" field, and a "Quality" field. You know how a field like "File Name" or "Size" etc...

Also, I looked everywhere in this thread but the question was never answered: "How do I get the category image to the left instead of underneath the description?"

Along with another question when I try to upload .bmp files as the image to the download I get Fatal error: Call to undefined function
Quote:

imagecreatefrombmp() in /home/shujinan/public_html/forums/downloads.php on line 850
I listed bmp as my image format and even switched imagemagick but it still doesn't work.

I'd also like to add that unless someone is very familiar with coding. editing the <img> isn't all that easy. In downloads.php there are over several <img> tags, which one do I edit, what do I edit? Am I taking something out? Adding something in? Where do I add whatever I'm adding in?

I had one of my coder friends help me out it ended up being:

Code:

$dimages .= '<a href="'.$dl->url.$image['name'].'" class="highslide" onclick="return hs.expand(this)"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a> by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'<br />';
So anyone's whose having the same trouble can see the clear solution.

TomJames 04-17-2009 04:35 PM

Sorry for asking but I've looked through about 10 pages but does anyone know how easy it is to change the 'grade' rating system to a numerical one?

TomJames 04-17-2009 04:38 PM

Quote:

Originally Posted by ReadOrDie (Post 1792954)
I had one of my coder friends help me out it ended up being:

Code:

$dimages .= '<a href="'.$dl->url.$image['name'].'" class="highslide" onclick="return hs.expand(this)"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a> by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'<br />';
So anyone's whose having the same trouble can see the clear solution.

Where are you placing that / what are you replacing?

Thanks.

TeknoSounds 04-17-2009 09:11 PM

greetings, I was wondering if there was a way to manually update the counters? I had a previous download manager and would like to keep the #'s...

ReadOrDie 04-17-2009 11:59 PM

1 Attachment(s)
Quote:

Originally Posted by TomJames (Post 1793415)
Where are you placing that / what are you replacing?

Thanks.

Line 1015. Just replace the default downloads.php code with the attached one. It works just fine.

zelnik 04-19-2009 07:43 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=1791823&postcount=3538" target="_blank">https://vborg.vbsupport.ru/showp...postcount=3538</a>

My problem was solved by deleting a temp folder called downloads/ec_tmp/

skylab 04-20-2009 01:24 PM

Quote:

Originally Posted by skylab (Post 1792669)
Hmm I need to disable pinned uploads for regular users too. *sigh*

Quote:

Originally Posted by skylab (Post 1790317)
I need to locate an addon or plugin that doesn't keep a MySQL connection open the entire time.

I need support for these two questions above. Does the author have a website? Willing to do whatever it takes to get this resolved. Thanks for the support!

Hareth 04-20-2009 06:26 PM

I would like to arrange the main categories in a way that every two categories appear next to each other (in the mode DOWNLOADSII). Every time I tried this, the categories come above each other. Please Advise.

this is my downloads_main_catbit template:
Code:

<div align="center">
        <table border="0" width="200" cellspacing="0" cellpadding="0">
        <tr>
                <td valign="top">
                <table border="0" width="220" id="table1" cellspacing="0" cellpadding="0">
                        <tr>
                                <td>
                                <p align="center">
        <a href="downloads.php?do=cat&id={$cat['id']}">
        <img class="inlineimg" src="{$cat['catimage']}" alt="{$cat['name']}" border="0" id="forum_statusicon_$forum[forumid]" /></a></td>
                        </tr>
                        <tr>
                                <td>
                                <table border="0" width="100%" id="table2" cellspacing="0" cellpadding="0" background="hosting/border/border-bg.jpg">
                                        <tr>
                                                <td width="1"><img border="0" src="hosting/border/border-r.jpg" width="4" height="20"></td>
                                                <td><a href="downloads.php?do=cat&amp;id={$cat['id']}">{$cat['name']}</a></td>
                                                <td dir="rtl" width="1">
                <img border="0" src="hosting/border/help.gif" alt="{$cat['description']}"></td>
                                                <td dir="rtl" width="1"><img border="0" src="hosting/border/border-left.jpg" width="4" height="20"></td>
                                        </tr>
                                </table>
                                </td>
                        </tr>
                        <tr>
                                <td>
                                <table border="0" width="100%" id="table3" cellspacing="0" cellpadding="0" background="hosting/border/border-bg.jpg">
                                        <tr>
                                                <td width="1"><img border="0" src="hosting/border/border-r.jpg" width="4" height="20"></td>
                                                <td>{$cat['files']}</td>
                                                <td dir="rtl" width="1"><img border="0" src="hosting/border/border-left.jpg" width="4" height="20"></td>
                                        </tr>
                                </table>
                                </td>
                        </tr>
                        <tr>
                                <td>
                                <table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0" background="hosting/border/border-bg.jpg">
                                        <tr>
                                                <td width="1"><img border="0" src="hosting/border/border-r.jpg" width="4" height="20"></td>
                                                <td><span class="smallfont">{$vbphrase['ecdownloads_files']}</span></td>
                                                <td dir="rtl" width="1"><img border="0" src="hosting/border/border-left.jpg" width="4" height="20"></td>
                                        </tr>
                                </table>
                                </td>
                        </tr>
                        <tr>
                                <td>
                                <table border="0" width="100%" id="table5" cellspacing="0" cellpadding="0" background="hosting/border/border-bg.jpg">
                                        <tr>
                                                <td width="1"><img border="0" src="hosting/border/border-r.jpg" width="4" height="20"></td>
                                                <td>{$vbphrase['ecdownloads_downloads']}: {$dl->stats['downloads']}</td>
                                                <td dir="rtl" width="1"><img border="0" src="hosting/border/border-left.jpg" width="4" height="20"></td>
                                        </tr>
                                </table>
                                </td>
                        </tr>
                </table>
                </td>
        </tr>
</table>
</div>



All times are GMT. The time now is 09:15 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.03661 seconds
  • Memory Usage 1,791KB
  • 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
  • (6)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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