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 10-26-2014 01:41 AM

1 Attachment(s)
I'll have you try the attached install file. It installed with no error for me, but since I didn't have the error before I don't know if this will work.

Hendrik83 10-27-2014 12:01 PM

Quote:

Originally Posted by Action-N (Post 2520072)
I'll have you try the attached install file. It installed with no error for me, but since I didn't have the error before I don't know if this will work.

It worked with product-vbrides.xml.

Thx.

gijsje 10-30-2014 07:54 PM

I have this error comming in.
Changed some things to xxx

Database error in vBulletin 4.2.2:

Invalid SQL:
SELECT COUNT(id) AS ownerrides FROM vbrides_rides WHERE userid= AND active=1 AND status<>2 ORDER BY userid;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND active=1 AND status<>2 ORDER BY userid' at line 1
Error Number : 1064
Request Date : Thursday, October 30th 2014 @ 08:42:18 PM
Error Date : Thursday, October 30th 2014 @ 08:42:18 PM
Script : http://www.xxx.nl/showthread.php?xxx
Referrer :
IP Address : xxx
Username : xx
Classname : vB_Database
MySQL Version : 5.5.37-cll

I.G.O.T.A. 10-31-2014 11:44 AM

Today someone put something in quotes and the program added extra characters.

Any ideas what this may be?

Action-N 10-31-2014 04:12 PM

In which section igota, the main description or one of the fields. Guess i can just look on your site huh. Looks like I'll be working on an update version.

Gijsje the error code is missing the userid value, looking into that too. I'm on a phone at work so not sure, but if if that error is crashing the site look if i but an option in admin settings to turn off that in postbit. Otherwise you can go to manage plugins an turn off the one relating to postbit count for now.

I.G.O.T.A. 11-03-2014 01:12 PM

Quote:

Originally Posted by Action-N (Post 2520779)
In which section igota, the main description or one of the fields. Guess i can just look on your site huh. Looks like I'll be working on an update version.

Gijsje the error code is missing the userid value, looking into that too. I'm on a phone at work so not sure, but if if that error is crashing the site look if i but an option in admin settings to turn off that in postbit. Otherwise you can go to manage plugins an turn off the one relating to postbit count for now.

In the short summary if someone uses " it shows this > &quot;

romaszek 11-05-2014 05:16 PM

Hi, thank you for the great plugin. It is wonderful. I want to disable mandatory fields (Year, Make and Model) how to do it?

Is it possible to "Short Summary" add character count?

Thanks.

Action-N 11-06-2014 01:43 AM

romaszek, there isn't gonna be an easy way to disable those, would at least require deleting some code from the template. I looked into adding a character count, didn't get anything solid yet.

The year, make, an model are added together to make the title, so if you where to eliminate them how would you suggest coming up with a title.

romaszek 11-06-2014 04:52 AM

I have a music portal, your wonderful plugin I want to adapt to CV for musicians. It is perfect for my purposes, I adopt only those fields if you agree. That's why I want to disable the forced field. Can you help me to do it in code?
Thank you very much.

The problem with the audio. I added an mp3 file but no player...

Sorry bad english ...

romaszek 11-10-2014 07:40 PM

Hi,
I made a primitive character count for Short Summary.

1. Create a file: sign_limit.js

HTML Code:

function SignLimit(tab,max)
{
var oSpan = document.getElementById( 'counter' );
oSpan.innerHTML = ( ( tab.value.length ) ) +'/' + max;
if ( tab.value.length = max )
{
input = tab.value.substring(0,max - 1);
tab.value = input;
}
}

2. Upload file to your server sign_limit.js (eg. a folder vbrides)

3. Template: 'vbrides_addedit_ride'

find:
HTML Code:

<textarea name="smalldesc" style="width:100%;height:100px;">{vb:raw smalldesc}</textarea>
replace with:

HTML Code:

<textarea name="smalldesc" style="width:100%;height:100px;" id="smalldesc" onkeyup="SignLimit(this,255);" cols="\&quot;25&quot;">{vb:raw smalldesc}</textarea>
<small>...<strong><span style="color:red;font-weight:bold;" id="counter">0/255</span></strong> ...</small>

4. In the first line of the template, insert:

HTML Code:

<script src="http://yourdomain/vbrides/sign_limit.js" type="text/javascript"></script>
The limit must be set in the code.
This is very primitive but for me it works.


All times are GMT. The time now is 06:42 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.01194 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_html_printable
  • (2)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