vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB Timeslip Database - for Automotive websites (https://vborg.vbsupport.ru/showthread.php?t=110717)

Sidewindr 03-19-2006 05:40 AM

There's a few bugs ..

1. The enforcement for uploading of image if under the set time does not appear to work.
2. The maximum timeslip image size is not changeable in the admincp
3. The users hopepage on the Details page shows up as the user looking at the details not the user.
4. The timeslip pic that comes up is the users avatar in my case.
5. The DECIMAL values for fields 52,53 and 55 should be DECIMAL(6,3) NOT DECIMAL(4,3) in the XML Installer File.
6. Hooks would be much better than file edits :)

The fix for #3 is to change the following in getvehicleinfo template..

FROM
Code:

<tr>
        <td class="alt1" width="50%">
                <strong>$vbphrase[timeslips_homepage]</strong>:
</td>
<td class="alt2" width="50%">
                $homepage
        </td>
</tr>

TO

Code:

<if condition="$show['homepage']">
        <tr>
                <td class="alt1" width="50%">
                        <strong>$vbphrase[timeslips_homepage]</strong>:
                </td>
        <td class="alt2" width="50%">
                <a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
        </td>
        </tr>
</if>


kazido 03-19-2006 05:41 AM

Brilliant!!! Worked first time on 3.5.4 no problems at all :banana:

Just put in a test entry and seems to be working all good!

http://www.ozls1.com.au/forum/timeslips.php?

Great install instructions...especially for a VB NOOB!!!

Thx again!!

SilentNoise 03-19-2006 07:58 AM

I'm using the patched version of vB 3.5.3 and it works like a charm
(The link is in my sig if anyone cares)

It's a really simple install, which is a nice bonus too.

Thanks man!

garycutri 03-19-2006 09:24 AM

Quote:

Originally Posted by Sidewindr

3. The users hopepage on the Details page shows up as the user looking at the details not the user.


This is only the case when viewing the details using the admin account. I saw that a while back but didn't worry about it.

MoveOver.cc 03-19-2006 09:48 AM

Mine works just fine so thanks and great hack.

If I can be cheeky and suggest some additions -

Change the HP to BHP as opposed to Power at wheels. (or add another section).

Have another choice - Front Wheel Drive, 4 Wheel Drive, Rear Wheel Drive

Have another choice for car models, with Admin being allowed to add new Car Models in the Admin CP.

:banana:

garycutri 03-19-2006 11:32 AM

Quote:

Originally Posted by MoveOver.cc
Mine works just fine so thanks and great hack.

If I can be cheeky and suggest some additions -

Change the HP to BHP as opposed to Power at wheels. (or add another section).

Have another choice - Front Wheel Drive, 4 Wheel Drive, Rear Wheel Drive

Have another choice for car models, with Admin being allowed to add new Car Models in the Admin CP.

:banana:

From admincp go to "User Profile Fields" and select "User Profile Field Manager" and you can make changes to the fields (e.g. Add extra options to the Induction drop down box etc.). I also removed altitude and added a Tuner/Workshop field.

deathemperor 03-19-2006 02:32 PM

Quote:

Originally Posted by Sidewindr
There's a few bugs ..

1. The enforcement for uploading of image if under the set time does not appear to work.
2. The maximum timeslip image size is not changeable in the admincp
3. The users hopepage on the Details page shows up as the user looking at the details not the user.
4. The timeslip pic that comes up is the users avatar in my case.
5. The DECIMAL values for fields 52,53 and 55 should be DECIMAL(6,3) NOT DECIMAL(4,3) in the XML Installer File.
6. Hooks would be much better than file edits :)

The fix for #3 is to change the following in getvehicleinfo template..

FROM
Code:

<tr>
        <td class="alt1" width="50%">
                <strong>$vbphrase[timeslips_homepage]</strong>:
</td>
<td class="alt2" width="50%">
                $homepage
        </td>
</tr>

TO

Code:

<if condition="$show['homepage']">
        <tr>
                <td class="alt1" width="50%">
                        <strong>$vbphrase[timeslips_homepage]</strong>:
                </td>
        <td class="alt2" width="50%">
                <a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
        </td>
        </tr>
</if>



Hi folk.

#1: I don't quite understand what you mean on this. more explanations would be better.

#2: fixed

#3: fixed

#4: it can't be, you can try looking at the demo site in the above post.

#5: that was because of my lack of vehicle knowlegde. I will change that if more ppl want it.

#6: There are no other possible ways to remove those file editions AFAIK. If you can do it just point me out. I'll be greatful.

#7: I'll be more greatful if you keep the credit of timeslips on your site. Please do respect the volunteers. Thank you.


@Thanks Gary for helping me support this hack while I'm away :up:

tommyxv 03-19-2006 03:50 PM

Quote:

Originally Posted by deathemperor
#1: No
#2: For what purpose ?
#3: Are you using firefox ? firefox save input fields, try it on IE which does not.

#1, For reason I get a blank screen. hrrrmmm

#2 For the purpose of not having to re-edit files everytime I upgrade vBulletin.

#3 I am using IE, it does save the info, It just doesn't let you know it did. Is there anyway to make it show a "all info saved page" then redirect to the timeslip page?

SilentNoise 03-19-2006 04:33 PM

I'm found one hiccup.

When I'm trying to get to the timeslip database from CMPS, which is outside of the forum directory, it brings up
Quote:

Warning: main(./global.php): failed to open stream: No such file or directory in /home/xxxxxxx/public_html/timeslips.php on line 35

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxxx/public_html/timeslips.php on line 35
To fix this, change the line that you put into your navbar to:
(I've hilighted the part you need to add if you just want to add it in)
Code:

<td class="vbmenu_control"><a href="/forum/timeslips.php?$session[sessionurl]">$vbphrase[timeslips]</a></td>

deathemperor 03-19-2006 04:46 PM

Quote:

Originally Posted by tommyxv
#1, For reason I get a blank screen. hrrrmmm

#2 For the purpose of not having to re-edit files everytime I upgrade vBulletin.

#3 I am using IE, it does save the info, It just doesn't let you know it did. Is there anyway to make it show a "all info saved page" then redirect to the timeslip page?

#1. I can't hardly tell what's the problem then because as for the demo site it is working without any problem for a month before it is released here.

#2. You know I hate the truth that hack need file editions. But this hack does requires 2 and those are not possible to remove AFAIK. Anyway try reading my first post for the reason why. Those editions are still optional = without it the hack still works.

#3. To see the saved message notification, make sure to enable "redirect message" on your vbulletin options.


All times are GMT. The time now is 10:51 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.01541 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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