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-12-2004 11:59 PM

Quote:

Originally Posted by SVTOA
Can you explain this a little better? You mean you ran the install process for the upgrade over again?

Hrm. STVOA, please paste your vbgarage_editgarage template. The one that's currently not working for you.

SVTOA 04-13-2004 12:00 AM

Will do. I have tried everything!

Stand by

SVTOA 04-13-2004 12:02 AM

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - $vbphrase[vbgarage]</title>
$headinclude
</head>
<body>
$header
$navbar

<form action="vbgarage.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="max_file_size" value="$vboptions[vbgmaxfilesize]">

<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
        <td class="tcat" colspan="2"><b>$bbuserinfo[username]'s $vbphrase[vbgarage]</b></td>
</tr>
<tr>
        <td class="thead" colspan="2"><b>$vbphrase[edit_options]</b></td>
</tr>
$logincode
<tr>
        <td class="alt2"><b>$vbphrase[vbgarage_year]:</b></td>
        <td class="alt2"><input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" /></td>
</tr>
<tr>
        <td class="alt2"><b>$vbphrase[vbgarage_make]:</b></td>
        <td class="alt2"><input type="text" class="bginput" name="make" size="19" maxlength="50" value="$data[make]" /></td>
</tr>
<tr>
        <td class="alt2"><b>$vbphrase[vbgarage_model]:</b></td>
        <td class="alt2"><input type="text" class="bginput" name="model" size="19" maxlength="50" value="$data[model]" /></td>
</tr>
<tr>
        <td class="alt2">
                <b>$vbphrase[vbgarage_text]:</b><br /><br /><br /><br />
                <span class="smallfont">$vbphrase[vbgarage_text_desc]</span>

</td>
        <td class="alt2"><textarea name="text" rows="20" cols="70">$data[text]</textarea></td>
</tr>
<tr>
        <td class="alt2"><b>$vbphrase[vbgarage_uploaded_images]:</b><br />
        <span class="smallfont">$vbphrase[vbgarage_allowed_total]</span></td>
        <td class="alt2"><table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" class="alt2">
        <tr>
        $editimagebits
        </tr>
        </table></td>
<tr>
<if condition="$count != $vbgarage_total_images">
<tr>
        <td class="alt2"><b>$vbphrase[vbgarage_file]:</b></td>
        <td class="alt2"><input type="file" class="bginput" name="src" size="30" /></td>
</tr>
</if>
</table>
</td></tr></table>

<br />

<table cellpadding="2" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
<tr>
        <td align="center">
        <input type="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
        <input type="hidden" name="do" value="edit" />
        </td>
</tr>
</table>

</form>

$footer

</body>
</html>


SVTOA 04-13-2004 12:04 AM

I guess my question is why does it work for me only, and why will it work when the OLD vbgarage.php file is used (renamed the upgraded file temp and re-uploaded the original)

SVTOA 04-13-2004 12:23 AM

To add: If I turn the Garage off in the admin cpanel, I get this:

Fatal error: Call to undefined function: can_administer() in /home/edited/public_html/vb3/vbgarage.php on line 50

magnus 04-13-2004 12:26 AM

Quote:

Originally Posted by SVTOA
Ok, what happens with even a "fresh" garage is that the browse box is not there, and this is even with members who have never uploaded even one pix?

I checked in the admin cpanel, even upped the minimum images to 8, still no joy. As I said, if I revert to the 3.01 version of the vbgarage.php file, the upload ability returns.

I'm thinking something is not right with the 3.1.0 version of the file?

In vbgarage_editgarage:

FIND:
HTML Code:

$vbgarage_total_images
REPLACE with:
HTML Code:

$vboptions[vbgmaxupload]
Make sure you're now using the 3.1.0 version of the file, also, be sure to do the modifications to the file in the post below this. Or, you can just download the already "fixed" vbgarage.php in the upgrade thread here

magnus 04-13-2004 12:28 AM

Quote:

Originally Posted by SVTOA
To add: If I turn the Garage off in the admin cpanel, I get this:

Fatal error: Call to undefined function: can_administer() in /home/edited/public_html/vb3/vbgarage.php on line 50

In vbgarage.php:

FIND:
PHP Code:

require_once('./includes/functions_user.php'); 

Add BELOW:
PHP Code:

require_once('./includes/adminfunctions.php'); 

Sorry about that. I need to update the .ZIP file.

SVTOA 04-13-2004 12:37 AM

No need to be sorry. It's all good again, I am very happy. :D

You can release your latest update to me if you want me to test it?

magnus 04-13-2004 12:42 AM

Quote:

Originally Posted by blitzkrg
any chance you'd add image magik support?

I know even less about Imagemagick than I do about GD. I could possibly add Imagemagick support, but it would be later once everything has calmed down a bit.

joeychgo 04-13-2004 01:28 AM

Same problem!

Help!




Quote:

Originally Posted by SVTOA
I'm having a little glitch I can't figure out? Some members have no "upload button" anymore, since the last upgrade. If I use the original vbgarage.php for testing, then the browse button comes back. If I use the upgraded version, the upload pix function goes away again, but for me as an admin, it always works?

Any ideas??



All times are GMT. The time now is 01:58 AM.

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.02153 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (5)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