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)
-   -   vBGarage v3.1.1 (now with GD-Lib support!) (https://vborg.vbsupport.ru/showthread.php?t=63681)

aussiev8 12-21-2004 09:35 PM

thanks cinq, this mod needs to be stripped of all the b/s and an official FAQ written.
its to hard to search for anything if you don't want to go through 100 pages ;)

aussiev8 12-21-2004 10:01 PM

cinq it doesn't work, there isn't any image :(

Sia Bani 12-21-2004 10:22 PM

Look at my post Aussie.

Action-N 12-21-2004 11:18 PM

Quote:

Originally Posted by aussiev8
cinq it doesn't work, there isn't any image :(

For me either, will take a look at the code. I'm surepeople will want this to be apart of the release anyway.

Action-N 12-21-2004 11:22 PM

Quote:

Originally Posted by therczone
I'm STILL getting this error (posted by number9). I went to phrases, and hit save. It still doesn't work. I guess I will wait for the newest version.

https://vborg.vbsupport.ru/showpost....postcount=1462

I don't know what else it could be besides that. I went to check your garage out, but couldn't find it on your site. Try doing a search for "vbgarage" in your phrases to see if they are at least there.

Don't worry, next release will be in a new thread an I plan to stick around to keep it maintained.

cinq 12-22-2004 12:44 AM

i'll look into it later.
i have it working on my site but i hacked the original a lot so things may be quite different.

will install the original on my test box to try it out later :)

aussiev8 12-22-2004 11:01 AM

can you get the images out of the database and just have links!
that would be super!

Full Throttle 12-23-2004 07:49 PM

Installed on our board worked GREAT first try
Thanks
"clicks Install"
Mike
www.fullthrottletech.com

alkatraz 12-25-2004 10:34 AM

Couldn't get the "View Members Garage" link to work in the postbit..

Tried using a pic and plain text, won't show up unless I remove the IF statement in the postbit and even then it links to the vbgarage homepage intead of the members garage.


Quote:

Originally Posted by cinq
In response to this :


In /includes/functions_showthread.php
FIND:
Code:

// ###################### Start process_highlight_postbit #######################
function process_highlight_postbit($text, $words, $prepend)

ADD ABOVE:
Code:

###################### FOR GARAGE ICON #######################
function fetch_garageicon($userid)
{
        global $DB_site, $garagecache;
    if (!is_array($garagecache))
      {
      $garagecache = array();
      $garage = $DB_site->query
                ("
        SELECT gu.userid, user.userid
        FROM " . TABLE_PREFIX ."vbgarage_users AS gu
        LEFT JOIN " . TABLE_PREFIX ."user AS user ON gu.userid = user.userid
        ");

        while($garagequeryarray = $DB_site->fetch_array($garagequery))
        {
          $garagecache["$garagequeryarray[userid]"] = $garagequeryarray;
        }

              $DB_site->free_result($garagequery);
          }

        if($garageinfo = $garagecache[$userid])
          {
          if ($garageinfo[userid])
                  {
                return "$stylevar[imgdir_misc]/viewgarage.gif";
                        }
          }
          return FALSE;
      }
###################### FOR GARAGE ICON #######################

SAVE AND UPLOAD THE FILE

In showthread.php in the root directory of your forums.
FIND:
Code:

$post['attachments'] = &$postattach["$post[postid]"];
ADD BELOW:
Code:

###################### FOR GARAGE ICON #######################
$post['garage'] = fetch_garageicon($post[userid]);
###################### FOR GARAGE ICON #######################

SAVE AND UPLOAD THE FILE


Now in your postbit template ( or postbit_legacy, whichever you are using )
Just add this whereever you want the icon image to show:
Code:

<if condition="$post[garage]">
<br><div><a href="$vboptions[bburl]/vbgarage.php?do=list&userid=$post[userid]" target="_blank">$post[garage]</a>
<br /></div></if>

Lastly, upload your image into your forum images directory, in the MISC folder.

NOT TESTED but it should work. Do feedback for any errors and I will amend the errors accordingly. Would be good if this post can be linked in the hack post under the modifications/addons bit.

Hope this helps :)


aussiev8 12-26-2004 02:08 AM

THIS SCRIPT IS INSECURE!
Last night i found 2 possible ways a hacker could gain entry via a hole in this script.
why isn't security a main issue with Vbulletin hacks? Its very sad, my vbgarage will now be taken down until i fix the hole..


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