vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBgarage (https://vborg.vbsupport.ru/forumdisplay.php?f=104)
-   -   vBGarage Latest Uploads on ForumHome for 4.x.x (https://vborg.vbsupport.ru/showthread.php?t=76382)

dknelson 03-09-2005 12:22 AM

Not only that...but I don't know of a warn.php in any Vbulletin files either.

Don

noppid 03-09-2005 11:57 AM

Quote:

Originally Posted by dknelson
Not only that...but I don't know of a warn.php in any Vbulletin files either.

Don

It appears he posted in the wrong forum from follow ups I see.

mr.gamesbay 03-09-2005 10:01 PM

Quote:

Originally Posted by mr.gamesbay
Great! :)
But how i add an collapse, to open and close the pictures?

Any clue how to do it? :)

noppid 03-10-2005 12:43 AM

Quote:

Originally Posted by mr.gamesbay
Any clue how to do it? :)

HTML Code:

<!-- Begin vBGarage Collapsable Photos -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
                <tr>
                        <td class="tcat" colspan="5">
                                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_vbg')"><img id="collapseimg_forumhome_vbg" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>
                                <b>$vbphrase[vbgarage_latest_uploads]</b>
                        </td>
                </tr>
        </thead>       
        <tbody id="collapseobj_forumhome_vbg" style="$vbcollapse[collapseobj_forumhome_vbg]">
                <tr valign="center">
                        $latestbits
                </tr>
        </tbody>
</table>
<!-- End vBGarage Collapsable Photos -->


mr.gamesbay 03-10-2005 06:56 PM

Thanks! :)
http://www.gamesbay.de/index.php?

But after i installed this mod, when someone is on the "index.php" site, on the "Who is online" the user will be shown in the garage, why?
Any way to fix this?

noppid 03-10-2005 08:44 PM

Quote:

Originally Posted by mr.gamesbay
Thanks! :)
http://www.gamesbay.de/index.php?

But after i installed this mod, when someone is on the "index.php" site, on the "Who is online" the user will be shown in the garage, why?
Any way to fix this?

hehe, doesn't that drive ya nuts?

I have a fix for it I'm using. However, I aint so sure it's perfect. If I get a minute I may open my functions_online.php and post what I did, however, it's new and I won't support it. I'm only one guy and my time is really limited lately.

mr.gamesbay 03-10-2005 09:25 PM

Quote:

Originally Posted by noppid
hehe, doesn't that drive ya nuts?

I have a fix for it I'm using. However, I aint so sure it's perfect. If I get a minute I may open my functions_online.php and post what I did, however, it's new and I won't support it. I'm only one guy and my time is really limited lately.

Nice ^^
thanks

*waitforthefix*

noppid 03-10-2005 09:36 PM

I took a quick look. I had to mod vbgarage.php and functions_online.php, and the new template for forumhome.

I did this for vbgarage 4.1.0 beta. I don't have 4.0.x anymore. I may just do the release and let 4.0.x die. As I said, my time is limited and I can't support multiple versions. Folks with 4.0.x will have to rely on each other at that point or upgrade. Even that will be more support then I can handle now though, so who knows what I should do?

mr.gamesbay 03-10-2005 09:57 PM

I use 4.1.0 i dont use 4.0.x ^^

noppid 03-11-2005 05:06 AM

Quote:

Originally Posted by mr.gamesbay
I use 4.1.0 i dont use 4.0.x ^^

In forums/includes/functions_online.php find.
PHP Code:

        case 'bugs':
            
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'Bugs'); // Don't report 'bugs' as needing to be translated please :p
            
break; 

add below...

PHP Code:

        case 'vbgarage':
            if (
$userinfo['values']['do'] != "hthumb"
            {
                
$userinfo['action'] = 'Viewing Photos';
                
$userinfo['where'] = "<a href=\"vbgarage.php?$session[sessionurl]&do=list\">$vboptions[bbtitle] Photos</a>";
            }
            else
            {
                
$userinfo['action'] = 'Forum Home Page';
                
$userinfo['where'] = "<a href=\"index.php?$session[sessionurl]\">$vboptions[bbtitle]</a>";
            }
            break; 

Find...

PHP Code:

    case 'bugs.php':
        
$userinfo['activity'] = 'bugs';
        break; 

add below...
PHP Code:

    case 'vbgarage.php':
        
$userinfo['activity'] = 'vbgarage';
        break; 

In vbgarage.php find...
PHP Code:

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// ####################################################################### 

add below...
PHP Code:

if( $_REQUEST['do'] == 'hthumb' )
    
$_REQUEST['do'] = 'thumb'

change vbgarage_latestbits template to this...
HTML Code:

<td class="alt2" colspan="1" align="center"><a href="$vboptions[bburl]/vbgarage.php?$session[sessionurl]do=view&amp;id=$latest[userid]&amp;garage=$latest[id]"><img src="$vboptions[bburl]/vbgarage.php?do=<if condition="THIS_SCRIPT == 'index'">h</if>thumb&amp;id=$latest[vbgarageid]" border="0" alt="Photos" /></a></td>
That should fix ya up.


All times are GMT. The time now is 02:27 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.01683 seconds
  • Memory Usage 1,766KB
  • 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
  • (2)bbcode_html_printable
  • (6)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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