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?

ozzy47 12-31-2014 01:55 AM

Quote:

Originally Posted by I.G.O.T.A. (Post 2529651)
You around anymore?

I think he is a bit tied up with his personal life ATM.


Quote:

Originally Posted by Action-N (Post 2522653)
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.


I.G.O.T.A. 12-31-2014 02:40 PM

Quote:

Originally Posted by ozzy47 (Post 2529677)
I think he is a bit tied up with his personal life ATM.

I see that. ;)

Keyser Soze 01-07-2015 02:11 PM

I am currently trying to use this addon in my forum and have noticed that the author doesn't use the usual vbulletin way to create the breadcrumb-navbits (he is inserting custom arrow-images).
I have coded a custom recursive function that makes perfect use of vbulletins breadcrumb-navbits. You just have to replace the function getRidesNavBar in functions_vbrides.php with the following function:
PHP Code:

function getRidesNavBarArray($navbitsarray$catid$lastnavbit) {
    global 
$db$vbulletin$vbphrase$vboptions$navbitsarray;
    
    if (
$catid 0) {
        return 
'';
    }
    
    
$qry $db->query_read("SELECT * FROM ".TABLE_PREFIX."vbrides_categories WHERE id = $catid AND active = 1");
    
$row $db->fetch_array($qry);

    
$seolink 'vbrides.php?do=main&catid=' $row['id'];
    
    if (
count($navbitsarray) == 0) {
        
// add custom lastnavbit if supplied
        
if (!empty($lastnavbit)) {
            
$navbitsarray = array($seolink => $row['name'], '' => $lastnavbit);
        } else {
            
$navbitsarray = array('' => $row['name']);
        }
    }    else {
        
$navbitsarray array_merge(array($seolink => $row['name']), $navbitsarray);
    }

    
// still have parents?
    
if ($row['parentid'] != 0) {
        
getRidesNavBarArray($navbitsarray$row['parentid'], $lastnavbit);
    }    
    return 
$navbitsarray;


And you will have to call this function in vbrides.php a little bit differently 2 times:
PHP Code:

$navbits array_merge($navbitsgetRidesNavBarArray(array(), $catid$ride['title'])); 

and
PHP Code:

$navbits array_merge($navbitsgetRidesNavBarArray(array(), $ride['categoryid'],  $ride['title'])); 

After doing these 3 changes, you will see a breadcrumb in your forum's layout and not with these custom arrows that might not match your forum's style.

P.S.: Thanks for this great addon!

Keyser Soze 01-07-2015 02:15 PM

Another suggestion to the addon-author: you could parse the video-ID of Youtube-videos from Youtube-URLs with this little function (that I have found using Google) which will make it much more intuitive for users to add a youtube-link to their ride-profile because they no longer will have to add the exact embed url and can also add the usual URL from their browser's address bar:
PHP Code:

/*
 * Function to parse the id from all different types of Youtube Embed Codes and Youtube Urls
 *
 * @author Andreas Grundner
 * @date 22.07.2011
 * @licence freeware
 * @param string youtube url, embed code, share code, channel code ...
 * @return string youtube_id
 */
function getYoutubeId($sYoutubeUrl) {
 
    
# set to zero
    
$youtube_id "";
    
$sYoutubeUrl trim($sYoutubeUrl);
 
    
# the User entered only the eleven chars long id, Case 1
    
if(strlen($sYoutubeUrl) === 11) {
        
$youtube_id $sYoutubeUrl;
        return 
$sYoutubeUrl;
    }
 
    
# the User entered a Url
    
else {
 
        
# try to get all Cases
        
if (preg_match('~(?:youtube.com/(?:user/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu.be/)([^"&?/ ]{11})~i'$sYoutubeUrl$match)) {
            
$youtube_id $match[1];
            return 
$youtube_id;
        }
        
# try to get some other channel codes, and fallback extractor
        
elseif(preg_match('~http://www.youtube.com/v/([A-Za-z0-9-_]+).+?|embed/([0-9A-Za-z-_]{11})|watch?v=([0-9A-Za-z-_]{11})|#.*/([0-9A-Za-z-_]{11})~si'$sYoutubeUrl$match)) {
 
            for (
$i=1$i<=4$i++) {
                if (
strlen($match[$i])==11) {
                    
$youtube_id $match[$i];
                    break;
                }
            }
            return 
$youtube_id;
        }
        else {
            
$youtube_id "No valid YoutubeId extracted";
            return 
$youtube_id;
        }
    }


If you want to call this function in vbrides.php, do it this way:
PHP Code:

$html_video .= '<iframe width="280" height="158" src="//www.youtube.com/embed/' getYoutubeId($ride['video']) . '" frameborder="0" allowfullscreen></iframe>'


Keyser Soze 01-08-2015 07:53 AM

There's a small bug in vbrides_usercp.php that prevents the comments-counter for a ride-entry from decreasing after a moderator has deleted a comment. That means that the comment-counter does not represent the correct number of comments for an entry as soon as one comment will be deleted. To fix this, you only have to change one single character:

Open vbrides_usercp.php and replace
PHP Code:

if ($comments['state'] == 'visible'

with
PHP Code:

if ($comment['state'] == 'visible'


romaszek 01-19-2015 03:17 PM

Quote:

Originally Posted by Keyser Soze (Post 2531011)
Another suggestion to the addon-author: you could parse the video-ID of Youtube-videos from Youtube-URLs with this little function (that I have found using Google) which will make it much more intuitive for users to add a youtube-link to their ride-profile because they no longer will have to add the exact embed url and can also add the usual URL from their browser's address bar:
PHP Code:

/*
 * Function to parse the id from all different types of Youtube Embed Codes and Youtube Urls
 *
 * @author Andreas Grundner
 * @date 22.07.2011
 * @licence freeware
 * @param string youtube url, embed code, share code, channel code ...
 * @return string youtube_id
 */
function getYoutubeId($sYoutubeUrl) {
 
    
# set to zero
    
$youtube_id "";
    
$sYoutubeUrl trim($sYoutubeUrl);
 
    
# the User entered only the eleven chars long id, Case 1
    
if(strlen($sYoutubeUrl) === 11) {
        
$youtube_id $sYoutubeUrl;
        return 
$sYoutubeUrl;
    }
 
    
# the User entered a Url
    
else {
 
        
# try to get all Cases
        
if (preg_match('~(?:youtube.com/(?:user/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu.be/)([^"&?/ ]{11})~i'$sYoutubeUrl$match)) {
            
$youtube_id $match[1];
            return 
$youtube_id;
        }
        
# try to get some other channel codes, and fallback extractor
        
elseif(preg_match('~http://www.youtube.com/v/([A-Za-z0-9-_]+).+?|embed/([0-9A-Za-z-_]{11})|watch?v=([0-9A-Za-z-_]{11})|#.*/([0-9A-Za-z-_]{11})~si'$sYoutubeUrl$match)) {
 
            for (
$i=1$i<=4$i++) {
                if (
strlen($match[$i])==11) {
                    
$youtube_id $match[$i];
                    break;
                }
            }
            return 
$youtube_id;
        }
        else {
            
$youtube_id "No valid YoutubeId extracted";
            return 
$youtube_id;
        }
    }


If you want to call this function in vbrides.php, do it this way:
PHP Code:

$html_video .= '<iframe width="280" height="158" src="//www.youtube.com/embed/' getYoutubeId($ride['video']) . '" frameborder="0" allowfullscreen></iframe>'


Thank you for that. How is it used?

giaguaro 02-06-2015 10:02 AM

i have to substitute my VB Pro Garage because it's no longer supported.
I was wondering if i can import the old users/rides/images from the old mod into this new one.
Thanks a lot

llecount 02-16-2015 01:25 AM

Quote:

Originally Posted by giaguaro (Post 2536425)
i have to substitute my VB Pro Garage because it's no longer supported.
I was wondering if i can import the old users/rides/images from the old mod into this new one.
Thanks a lot

I am wondering this as well.

cdoyle 03-12-2015 07:34 PM

Quote:

Originally Posted by llecount (Post 2537639)
I am wondering this as well.

Same here, it would be great to not lose the ones we already have.

Has there been any other updates to this mod? I'm really hoping to move to a better garage soon.

PaulProe 03-18-2015 03:09 AM

I am investigating this plugin and have run into an issue of approvals. Maybe I can't see the forest for all the trees in the way.

I post vehicle with information and it shows up. But it shows as un-approved. Where do I go to approve the post?

Then when I log out and come back, the vehicle doesn't show up in the list. Any ideas of what I'm doing wrong?

Thanks

Paul

Action-N 04-09-2015 03:16 AM

1 Attachment(s)
Thanks to Keyser Soze for his contributions, they where pretty easy to implement.

I didn't remember where I left off or what I was working on so this update was to mainly add what Keyser had posted. Yes I have been preoccupied lately with other things, but had hoped the product was left in a usable state. Got a few quarantine emails from vb.org an none where for this mod so figured it's all good. We'll see if I can't catch a second wind on this project now.

As for an importer for VB Pro Garage I posted one back in post 66 for someone to test before adding it to the official downloads. Will post it again here, if it works then let me know. Since I don't intend to add all the extra stuff that was in their product the only thing that is getting imported was the timeslip data. The photo's are copied to vbrides folder so not to risk data loss in case of an error. Once you have successfully transfers garages then you would need to manually delete the photos from their garage.

PaulProe, if your admin then check the usergroup settings to see if you have "Can Moderate New Rides
If enabled, the member of this usergroup can approve new rides waiting for approval." checked yes. I'm thinking admins already got permission to moderate an their posts bypassed moderation. The menu options for moderating are on the rides page in the header, you'll see a moderation link there or your usercp sideblocks if you have permissions.

SPEEDKILLZ 07-04-2015 03:52 PM

1 Attachment(s)
Anyone had an issue with the blockheads and text on the rides page? Also i have two description boxes?

Action-N 07-05-2015 05:56 PM

Hey SPEEDKILLZ, I went to your site an use a css tag inspector an was able to track down what tag is causing the jumbled header.

Code:

#sidebar_container .blocksubhead span.blocktitle {
    width: auto;
    display: block;
    white-space: nowrap;
    float: left;
    overflow: hidden;
    padding-left: 3px;
}

When I turn off the "float: left;" tag it goes to a normal layout as intended. So we need to figure out how to cancel that tag for vbride pages. Try adding the following to the vbrides.css template. Doesn't matter where, but I do have a sidebar_container tag already in there if you want to keep it together.

Code:

#sidebar_container .blocksubhead span.blocktitle {
float: none;
}

The two description boxes you mentioned are on the rides page? If so the small Short Summary box is what is used on the listing description. The other one is for a whatever else about the car.

SPEEDKILLZ 07-05-2015 09:36 PM

Quote:

Originally Posted by Action-N (Post 2549432)
Hey SPEEDKILLZ, I went to your site an use a css tag inspector an was able to track down what tag is causing the jumbled header.

Code:

#sidebar_container .blocksubhead span.blocktitle {
    width: auto;
    display: block;
    white-space: nowrap;
    float: left;
    overflow: hidden;
    padding-left: 3px;
}

When I turn off the "float: left;" tag it goes to a normal layout as intended. So we need to figure out how to cancel that tag for vbride pages. Try adding the following to the vbrides.css template. Doesn't matter where, but I do have a sidebar_container tag already in there if you want to keep it together.

Code:

#sidebar_container .blocksubhead span.blocktitle {
float: none;
}

The two description boxes you mentioned are on the rides page? If so the small Short Summary box is what is used on the listing description. The other one is for a whatever else about the car.


Great man that seemed to fix the header issue. Both boxed have to have something in them to submit a ride though? Also if you dont add enough characters in the small box it turns solid black (the box turns black) after trying to submit.

Action-N 07-05-2015 11:16 PM

Yeah it does need both for now, kinda encourages people to fill it out since the whole point of them adding a page is to show their car.

The description block turning black is a highlight feature to show what section you need to fix. I noticed on your calendar widget the current date is blacked out as well. So that is gonna be in your skin settings to fix for the whole site.

SPEEDKILLZ 07-06-2015 07:28 PM

Great thank you. I will try to figure out where that is or if it is a stylevar

Action-N 07-07-2015 12:16 AM

It's the "general_hilite_color" under Common group

SPEEDKILLZ 07-07-2015 12:43 AM

Great man thank you. Glad to see you offer great support for a great mod.

RSprinkel 08-23-2015 07:20 PM

Hello,

Awesome mod and very easy to configure and stuff, however I have ran into one slight issue. I am using this for a Motorcycle forum which is not up and running at this time and when I go to add additional images when adding a ride, it is asking me to select a photo category from the drop down box (chassis, engine, body and interior), I really prefer not to use a category or just rename the categoires for photos if at all possible.

I have searched the settings and stuff and cannot find anything on those categories. Would it be possible to point me in the right direction for either of the methods.

Thank you for your time and understanding and again GREAT MOD.

Dragonsys 09-24-2015 12:24 AM

Quote:

Originally Posted by RSprinkel (Post 2553490)
I have searched the settings and stuff and cannot find anything on those categories. Would it be possible to point me in the right direction for either of the methods.

They appear to be hardcoded in the script. look in /vbrides_usercp.php and find:
Code:

$photo_types = ('chassis, engine, body, interior');
It is in there 2 times (line #178 & #294)

Dragonsys 10-02-2015 03:56 AM

1 Attachment(s)
I noticed a couple of bugs:

1: When deleting Extra Fields, the data is not removed from the DB, this causes for a strange display on the ride page.
2: If images fail to upload, due to size (might happen if deleted after upload as well), they are still counted towards the # of photos, even though they do not exist on the system.

I also made a couple of tweaks, and I can share them with the author if he is interested in them:

A: Display location from User Profile, instead of per ride
B: Timeslips display (still working on add/edit) - Best 1/8 & 1/4 mile displayed on ride profile.

A: Changing the location display is rather easy
edit vbrides_view_ride (template)
Find:
HTML Code:

<dd>{vb:raw location}</dd>
Replace With:
HTML Code:

<dd>{vb:raw userinfo.field2}</dd>
If location is not Custom User Profile Field #2, then adjust to the correct #.

B: Timeslips
I have this working with List, Profile Tab, Best Slips on vbRides page, Add/Edit/List Tracks and Add/Edit Slips. I can release this to anyone who wants it, but it does require making some edits to vbRides core files & templates (I will fix this later). I am still working on Delete Slips, Delete Tracks and a few tweaks, so be aware, if you ask for this, it is in beta, and if Action-N asks me to, I will remove it. Once I get it in better shape, I might release it as an add-on for vbRides, separately. You can see a demo at my site linked below (this is a dev site, and so might not work from time to time). EDIT: This is pretty much working without requiring edits to the core rides files; however, my custom display for view_rides (mod list, partsbin & wishlist) does require edits to vbrides.php, functions_vbrides.php & vbrides_view_ride template.

I would love to give this to Action-N so he can add it to his scripts if he wants.

Issue #1 Fix:
Open admincp/vbrides_admin.php
Find:
PHP Code:

    $db->query_write("DELETE FROM ".TABLE_PREFIX."vbrides_fields WHERE id=$itemfieldid"); 

Replace with:
PHP Code:

    $db->query_write("DELETE FROM ".TABLE_PREFIX."vbrides_fields WHERE id=".$itemfieldid."");
    
$db->query_write("DELETE FROM ".TABLE_PREFIX."vbrides_values WHERE fieldid=".$itemfieldid.""); 

Issue #2 Fix:
create file - includes/cron/vbrides_photos.php:
PHP Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin vbRide 1.0.0                                           # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2013-2014 vbRide Action-Network All Rights Reserved.  # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
if (!
is_object($vbulletin->db))
{
    exit;
}

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################

    
$get_rides $vbulletin->db->query_read("SELECT id FROM ".TABLE_PREFIX."vbrides_rides ORDER BY id ASC");
    while (
$row $vbulletin->db->fetch_array($get_rides)) {
        
$query_logo $vbulletin->db->query_read("SELECT logo FROM ".TABLE_PREFIX."vbrides_rides WHERE id=".$row['id']."");
            
$num_rows_logo $vbulletin->db->num_rows($query_logo); 
        
$query_photos $vbulletin->db->query_read("SELECT id FROM ".TABLE_PREFIX."vbrides_photos WHERE rideid=".$row['id']."");
            
$num_rows_photos $vbulletin->db->num_rows($query_photos);
        
$total_pics $num_rows_logo $num_rows_photos;
        
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."vbrides_rides SET photos=".$total_pics." WHERE id=".$row['id']."");
    }
    
    
$vbulletin->db->free_result($get_rides);

log_cron_action(''$nextitem1);

?>

Add Schedule Task:
admincp -> Scheduled Tasks -> Add New Scheduled Task:
(See attached image for Task Example)
once per day should be enough

http://forums.txracers.com/vbrides.p...wride&rideid=1

Dragonsys 11-04-2015 05:25 PM

@RSprinkle: to remove the photo types do the following.

Open: vbrides_usercp.php

Find (twice; lines #189 & #308):
PHP Code:

                <select size="1" name="phototype['.$p.']" style="width:90px;">
                    <
option value="0" />'.$vbphrase['vbrides_select'].'</option>
                    
' . $html_types . '
                
</select></div

Replace With:
PHP Code:

                <!-- <select size="1" name="phototype['.$p.']" style="width:90px;">
                    <
option value="0" />'.$vbphrase['vbrides_select'].'</option>
                    
' . $html_types . '
                
</select> --></div


Edit Template: vbrides_edit_photo
Replace All With:
HTML Code:

<div class="blockrow">
        <label for="photo{vb:raw photo_id}">
        <img border="0" src="{vb:raw photo_photopath}" />
    </label>
        <div class="rightcol">
        <input type="text" name="editphototitle[{vb:raw photo_id}]" value="{vb:raw photo_title}" style="width:80%;" />
        <!-- <select size="1" name="editphototype[{vb:raw photo_id}]" style="width:90px;">
            <option value="0" />{vb:var vbphrase.vbrides_select}</option>
            {vb:raw html_types}
        </select> -->

        <br /><br />
                <input type="checkbox" name="delete[{vb:raw photo_id}]" value="{vb:raw photo_id}" />  {vb:var vbphrase.vbrides_remove_photo}
                <input type="hidden" name="editphotoname[{vb:raw photo_id}]" value="{vb:raw photo_photoname}" />
        </div>
</div>


Dragonsys 12-11-2015 09:19 PM

I found another issue. Approve Rides does not work properly, though Reject does. When trying to approve a ride I get the following message:

Quote:

You're trying to add a new ride, or to activate an old one, but this is not permitted from your usergroup's settings.
This only seems to occur if the total number of rides, in the entire system, exceeds the Maximum number allowed for the person owning the ride being approved.

For example, my user is allowed 2 active rides max. He submits his ride, at this point he has 1 ride in the system, and I have 2, making a total of 3 rides. I cannot approve his ride, unless I delete one of mine first (therefore making the total be 2). If I allow him to have 3 rides, then I can freely approve his ride, as 3 is the total in the system; however, I would not be able to approve a 2nd ride for him.

I will try and get the fix this weekend.

Dragonsys 12-16-2015 06:44 PM

Ok, fix for the above:

Open: {forumroot}/vbrides_modcp.php
Find:
PHP Code:

        // And now let's count user's rides excluding hiddens
        
$active_rides $db->query_read("SELECT * FROM ".TABLE_PREFIX."vbrides_rides WHERE userid=$checkuserid AND status=1"); 

Replace With:
PHP Code:

        // And now let's count user's rides excluding hiddens
        
$active_rides $db->query_read("SELECT * FROM ".TABLE_PREFIX."vbrides_rides WHERE userid=$checkuserid AND active=1"); 


Dragonsys 12-25-2015 01:28 AM

I'm almost ready to release a Timeslips & Tracks Listing addon for this, I just have a few final changes to make before it will be ready for others to use. This does require vBrides & my Font Awesome addon to work properly

I wanted to get feed back on what things you would like to see, currently the following is tracked:
Timeslips:
  • Date & Time
  • Vehicle (linked to vBrides)
  • Driver
  • Track
  • Lane
  • Temp
  • DA
  • Dial-In
  • R/T
  • 60'
  • 330'
  • 1/8 ET & MPH
  • 1000'
  • 1/4 ET & MPH
  • Win/Lose
  • Notes

Tracks:
  • Name
  • Website & Facebook
  • Address
  • Coordiantes (with link to Google Maps)
  • Elevation
  • Type & Size (currently Drag only)
  • Notes

Timeslips are listed on User's profile
Best 1/8 & 1/4 Timeslip are listed on Vehicle profile (vBrides page)

RobAC 01-06-2016 06:56 PM

I tried installing this mod on vbulletin 4.2.3, but when importing the XML file I get the following message:

Invalid value '' for 'widgettypeid'

Dragonsys 01-06-2016 07:02 PM

Quote:

Originally Posted by RobAC (Post 2562142)
I tried installing this mod on vbulletin 4.2.3, but when importing the XML file I get the following message:

Invalid value '' for 'widgettypeid'

Do you have the full CMS?

RobAC 01-06-2016 07:14 PM

No. I don't use the CMS or blog parts of vBulletin.

Dragonsys 01-06-2016 07:18 PM

Quote:

Originally Posted by RobAC (Post 2562147)
No. I don't use the CMS or blog parts of vBulletin.

ok, but do you have them? If the CMS is not installed you should not get that error, as the cms_widget table should not exist. try this, edit the product-vbrides.xml and delete the below (lines 276-342)

PHP Code:

$wg $db->query_first("SELECT widgetid FROM " TABLE_PREFIX "cms_widget where product = '" $info['productid'] . "'");

if (!
$db->errno())
{
    echo(
'<li>Adding widget <strong>Member Rides</strong> ... ');
    if (
$wg['widgetid'])
    {       
         
$widgetid $wg['widgetid'];
        require_once(
DIR '/includes/adminfunctions_cms.php');
        require_once(
DIR '/packages/vbcms/dm/widget.php');
           
$widgets = new vBCms_Collection_Widget($widgetid);
        if (isset(
$widgets[$widgetid]))
        {
            
$widget $widgets[$widgetid];
        }
        else
        {
            
print_stop_message('invalid_x_specified''widgetid');
        }
        
        
$widgetdm $widget->getDM();
        
        try
        {
             
$widgetdm->set('title''Member Rides');
             
$widgetdm->set('description'$info['description']);
             
$widgetdm->set('config', array(
                        
'template_name' => 'vbcms_widget_rides_page',
                        
'cache_ttl' => 0,
                        
'phpcode' => $arr['widgetphp'],
                              ));

             if (!
$widgetdm->save())
             {
                     
print_cp_message($widgetdm->error);
             }
        }
        catch (
vB_Exception $e)
        {
            
print_cp_message($e->getMessage());
        }
    }
    else
    {
        require_once(
DIR '/packages/vbcms/dm/widget.php');
        
$widgetdm = new vBCms_DM_Widget();
        
$widgetdm->set('widgettypeid''12');
        
$widgetdm->set('title''Member Rides');
        
$widgetdm->set('description'$info['description']);
        
$widgetdm->set('config', array(
                        
'template_name' => 'vbcms_widget_rides_page',
                        
'cache_ttl' => 5,
                        
'phpcode' => $arr['widgetphp'],
                              ));

        
$widgetid $widgetdm->save();
        if (!
$widgetid)
        {
            
$errmsg implode("\n<br /><br />"$widgetdm->getErrors());
            
print_cp_message($errmsg);
        }
        else
        {
            
$db->query_write("UPDATE " TABLE_PREFIX "cms_widget set product = '" $info['productid'] . "' where widgetid = $widgetid");
        }
    }    


Then try installing again

RobAC 01-06-2016 07:26 PM

That worked. Thanks!


All times are GMT. The time now is 05:52 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.01744 seconds
  • Memory Usage 2,012KB
  • 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_code_printable
  • (3)bbcode_html_printable
  • (17)bbcode_php_printable
  • (12)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
  • (40)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