vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - vbRides ? Garage (https://vborg.vbsupport.ru/showthread.php?t=313438)

Action-N 11-14-2014 02:06 AM

romaszek,
First thanks for offering the counter code, if it does what I think it does it'll definitely make it in the add-on. Primitive is better you have it looking simple enough to understand. I"m post below what you can do to remove the required fields when adding a new entry. Still not a 100% fix though, the year is still added as a default 0.

Open the vbrides_addedit_ride template an delete the following code from the beginning.
Code:

        if(document.forms["vbform"].year.value.length == 0) {
            document.forms["vbform"].year.value.length = '{vb:stylevar general_hilite_color}';
            alert('{vb:var vbphrase.vbrides_error_year}');
            return false;
        }
        if(document.forms["vbform"].make.value.length == 0) {
            document.forms["vbform"].make.value.length = '{vb:stylevar general_hilite_color}';
            alert('{vb:var vbphrase.vbrides_error_make}');
            return false;
        }
        if(document.forms["vbform"].model.value.length == 0) {
            document.forms["vbform"].model.value.length = '{vb:stylevar general_hilite_color}';
            alert('{vb:var vbphrase.vbrides_error_model}');
            return false;
        }

Then use the "Search in Template" for the word "required" an delete it. Should find three.

That will remove the required restrictions an let you complete the entry. Though as I mentioned before those fields make the title the add-on uses to refer to the entry. The year will default to "0", I didn't figure out where this is being done. It needs some number entered,m wouldn't take text. So this might not get you to far so I'll work on being able to set them as required from the control panel.

Been having a little trouble getting the time to work on this product. I got a new puppy, the high energy kind that if it doesn't get enough attention it starts to chew on my arm.

romaszek 11-14-2014 05:21 PM

I understand. Thank you for your work.
I have a problem with audio. I added an mp3 file but I can not see player.
what to do?

Action-N 11-14-2014 06:30 PM

It uses the Html5 audio player. So either your browser doesn't support html5 yet or maybe have the wrong link format. It's confusing, but was the only way to work it at the time, it requires the embed link not the share link given as itself. So the correct link comes from clicking on the embed code an copying the link used in that code.

romaszek 11-14-2014 08:42 PM

1 Attachment(s)
Audio test for my browser with this page:
http://html5test.com/index.html

is it OK?

Action-N 11-14-2014 09:16 PM

First my bad l the talk about the link was me thinking the youtube video link. Audio is html5 just would be uploaded not linked.

From the image you posted it shows mp3 as not supported. Looks like you'll need ogg audio file.

romaszek 11-15-2014 01:07 PM

Thank you very much. I updated FF and everything works :)

romaszek 11-16-2014 07:53 AM

1 Attachment(s)
The problem with the distribution block search. What to do?

I.G.O.T.A. 11-30-2014 11:08 AM

Any new updates on this friend?

I.G.O.T.A. 12-07-2014 07:08 PM

Found a small grammar error on the short summary.

Post a small description. This is used on the main listing pages *an* is required. Administrators may have set a min/max character requirement.

Should say *and* instead.

I.G.O.T.A. 12-30-2014 11:15 PM

Quote:

Originally Posted by Action-N (Post 2522731)
First my bad l the talk about the link was me thinking the youtube video link. Audio is html5 just would be uploaded not linked.

From the image you posted it shows mp3 as not supported. Looks like you'll need ogg audio file.

You around anymore?


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