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)

magnus 04-10-2004 04:37 PM

Quote:

Originally Posted by floris
Will a future version also include an option for users to add comments to that page (maybe show the last x comments with a link to 'all comments'. (kind of like usernotes used for that page). would be cool.

Yes, this is already in the works. In fact, I'm almost finished with it.

magnus 04-10-2004 04:41 PM

A little tweak I did for my forums, which some of you may find nifty was instead of having text input fields, I made it all drop down. See screenshot:

Socket-uk 04-10-2004 04:47 PM

Thanks for the hack :)

Quote:

Originally Posted by magnus
A little tweak I did for my forums, which some of you may find nifty was instead of having text input fields, I made it all drop down. See screenshot:

Now that is handy...when u have the time can you post that tweak ;)

Cheers

Nige

magnus 04-10-2004 04:53 PM

Quote:

Originally Posted by Socket-uk
Thanks for the hack :)



Now that is handy...when u have the time can you post that tweak ;)

Cheers

Nige

Sure, here's the (basic) code -- you'll need to modify it, of course, to suit your needs. Here is the code for the Year dropdown:

In VBGARAGE_EDITGARAGE:

Find:
HTML Code:

<input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" />
REPLACE with:
HTML Code:

                <select name="year">
                        <option <if condition="$data[year]==2002"> selected</if>>2002</option>
                        <option <if condition="$data[year]==2001"> selected</if>>2001</option>
                        <option <if condition="$data[year]==2000"> selected</if>>2000</option>

                        etc ..

                </select>

You can obviously use this for the other fields as well, just be sure the <select name="foo"> variable matches the <input name="foo"> variable you're replacing.

Ian Cunningham 04-10-2004 05:13 PM

I'm really looking forward to future versions of this! It looks like its going to be good :)

Thumbnails would really stand out, I'll keep looking for a way to get them working :)

Socket-uk 04-10-2004 05:51 PM

Quote:

Originally Posted by magnus
Sure, here's the (basic) code -- you'll need to modify it, of course, to suit your needs. Here is the code for the Year dropdown:

In VBGARAGE_EDITGARAGE:

Find:
HTML Code:

<input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" />
REPLACE with:
HTML Code:

                <select name="year">
                        <option <if condition="$data[year]==2002"> selected</if>>2002</option>
                        <option <if condition="$data[year]==2001"> selected</if>>2001</option>
                        <option <if condition="$data[year]==2000"> selected</if>>2000</option>

                        etc ..

                </select>

You can obviously use this for the other fields as well, just be sure the <select name="foo"> variable matches the <input name="foo"> variable you're replacing.

Thanks Magnus :)

esoin 04-10-2004 08:05 PM

Quote:

Originally Posted by magnus
Edit the phrases. This is all template/phrase driven.

$vbphrase[vbgarage_year] = "Year"
$vbphrase[vbgarage_make] = "Make"
$vbphrase[vbgarage_model] = "Model"

etc ..

Just go into Phrase Manager, it's all there. :)

NICE! it worked! Thanks a load! This is going to work very well in my Go-Ped Scooter Forum.

GamerJunk.net 04-10-2004 08:12 PM

This is awesome. I can't wait to install this! I hope there is a limit on what they can upload because I only have a gig of space.

esoin 04-10-2004 08:12 PM

Quote:

Originally Posted by magnus
Sure, here's the (basic) code -- you'll need to modify it, of course, to suit your needs. Here is the code for the Year dropdown:

In VBGARAGE_EDITGARAGE:

Find:
HTML Code:

<input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" />
REPLACE with:
HTML Code:

                <select name="year">
                        <option <if condition="$data[year]==2002"> selected</if>>2002</option>
                        <option <if condition="$data[year]==2001"> selected</if>>2001</option>
                        <option <if condition="$data[year]==2000"> selected</if>>2000</option>

                        etc ..

                </select>

You can obviously use this for the other fields as well, just be sure the <select name="foo"> variable matches the <input name="foo"> variable you're replacing.

Thanks, I used this too :banana:

magnus 04-10-2004 08:42 PM

Good news.. GD support is finished.. and it works. ;) Gimmie a few minutes to package it all up, and it will be ready to download.


All times are GMT. The time now is 02:59 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.02234 seconds
  • Memory Usage 1,757KB
  • 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_html_printable
  • (6)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