The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
I looked up Hoffi an found one website with what must be it. Was pretty empty so wasn't much to see.
Was interesting to think about a poll for car of the month. I do have something started, while not 100% what the goal is to choose a random vehicle from each category an insert it into a field within the category table. So a featured block can be shown at the top of the page featuring a car from that particular category. This is done with cron so it can happen whenever you set the timer to run, daily, monthly, an probably yearly. |
#22
|
||||
|
||||
Hi Scott,
i take a look in my old files. Maybe i found it. Or i ask Hoffi, it´s a good friend from me. Write me a PN with your Mailadress. |
#23
|
||||
|
||||
Hi Scott,
i ask Hoffi and he take a look in his old Files. I have the Permission, to convert the Addon to VB4. |
#24
|
||||
|
||||
Another status update. Been working on getting image type working, finally got it to add an update into the database. Then when it come time to attach to a section, stupified. Think what I worked on the week before was not the way to go.
I keep breaking the code an spend days trying to figure out what I did. My advice to anyone developing a mod backup your files before a session or attempt to change something around. Once I figure out what I messed up this time I will post some code to get help with something. On my add/edit form the additional photos input still sends an empty array when nothing was entered in the input field, then once the array is processed breaks since it doesn't find any info. Probably a simple conditional to check for if incoming is empty but I tried that in a few spots an it just skips to the next error check. --------------- Added [DATE]1391369191[/DATE] at [TIME]1391369191[/TIME] --------------- Okay here is the bit of code from saving additional photos. As mentioned I added the " AND $image_ext != '' " to the first error I get and it gets me to the file upload error. It still uploads the photos that where submitted through the input field, so the error is from it going to the next number in the array. I'm stumped, an could use some help. Might even be as simple as taking out the error redirects. Code:
// Manage additional photos if ($_FILES['photoname']) { $files = array(); foreach ($_FILES['photoname'] as $k => $l) { foreach ($l as $i => $v) { if (!array_key_exists($i, $files)) { $files[$i] = array(); } $files[$i][$k] = $v; } } // Counter for Titles $counter = 0; foreach ($files as $file) { // Get image name $imagename = @basename($file['name']); // Image name of temp uploaded photo //$tmp_imagename = realpath($vbulletin->options['vbrides_photo_path']) . '/tmp/' . @basename($file['tmp_name']); //echo $tmp_imagename; // Check image extention an make it lowercase $image_ext = strtolower(end(explode(".", $file['name']))); $allowed_exts = explode(', ', $vbulletin->options['vbrides_photo_exts']); if (!@in_array($image_ext, $allowed_exts) AND $image_ext != '') { $vbulletin->url="vbrides_usercp.php?" . $vbulletin->session->vars['sessionurl'] . "do=addedit&rideid=$rideid"; eval(print_standard_redirect('vbrides_invalid_data_ext', true, true)); } // Destination imagename, rename if set to if ($vbulletin->options['vbrides_photo_rename']) { $dest_imagename = md5(uniqid(rand(), true)) . '.' . $image_ext; } else { $dest_imagename = $imagename . '.' . $image_ext; } // Get size $imagesize = intval($file["size"]); // filesize($tmp_imagename); // Make sure file size is ok $maxsize = $vbulletin->options['vbrides_photo_size']; if ($maxsize > 0 && $maxsize*1024 < $imagesize) { $vbulletin->url="vbrides_usercp.php?" . $vbulletin->session->vars['sessionurl'] . "do=addedit&rideid=$rideid"; eval(print_standard_redirect('vbrides_invalid_data_size', true, true)); } // Upload the full image first $new_image = $photodir . 'full/' . $dest_imagename; if (!@move_uploaded_file($file['tmp_name'] , $new_image)) { $vbulletin->url="vbrides_usercp.php?" . $vbulletin->session->vars['sessionurl'] . "do=addedit&rideid=$rideid"; eval(print_standard_redirect('vbrides_invalid_data_upload', true, true)); } else { // Resize photo // Get current size list($width, $height) = getimagesize($new_image); // Size thumb photo $photo_thumb_size = photoResize($width,$height,$vbulletin->options['vbrides_thumb_width']); $thumb_width = $photo_thumb_size['0']; $thumb_height = $photo_thumb_size['1']; createImage($width,$height,$thumb_width,$thumb_height,$image_ext,$new_image,$thumbdir,$dest_imagename,$vbulletin->options['vbrides_photo_quality']); $counter ++; $is_image = getimagesize($new_image); if (!$is_image) { // Uninstall photo from ride photo directories if(file_exists($photodir . "$dest_imagename")) unlink($photodir . "$dest_imagename"); if(file_exists($photodir . 'thumb/' . "$dest_imagename")) unlink($photodir . 'thumb/' ."$dest_imagename"); if(file_exists($photodir . 'full/' . "$dest_imagename")) unlink($photodir . 'full/' ."$dest_imagename"); } else { // Get title & type $title = $db->escape_string($vbulletin->GPC["phototitle"][$counter]); $type = $db->escape_string($vbulletin->GPC["phototype"][$counter]); // Insert new photo $db->query_write("UPDATE ".TABLE_PREFIX."vbrides_rides SET photos=photos+1 WHERE id = $rideid"); $db->query_write("INSERT INTO ".TABLE_PREFIX."vbrides_photos SET rideid = '$rideid', photoname = '$dest_imagename', title = '$title', type = '$type'"); $photoid = $vbulletin->GPC['id'] = $db->insert_id(); } } } } |
#25
|
|||
|
|||
I have almost 3,000 cars in vbgaragepro and have been unable to reach Dylan about it's future, anyone talked to him?
I would be interested in vbrides if it is going to be supported AND if it can import from vbgaragepro, no way I'm asking 3000 users to start over again.... |
Благодарность от: | ||
MrD |
#26
|
||||
|
||||
Hi Ken,
3K Cars are a lot. How many Modifications have you? |
#27
|
||||
|
||||
Oh wow I can't believe the garage can handle that many entries. I definitely will need to build some importers. I have way more option to fill in with mine so they'll still want to update their cars afterwards. Right now I'm still trying to design adding the types to photos so they can be shown in the specif section. Thought I was getting somewhere, but now starting a different approach. Then I'll be reworking the comments system so admins can edit/moderate them. Then it'll be just building people some modules for their cms an forum side block. I feel I'm pretty close an will have something to blow away the other garage add-ons.
Dylan works for Dragonbyte Tech an has for awhile now, he posts here under their name. You can look through their threads an look for his name in the signature. I don't expect a future for his garage from the posts I've seen about it. From what I've read about DbT they don't let their coders have outside projects. As for me supporting my project I'm not going anywhere that I expect. I'll support what I can. |
#28
|
||||
|
||||
Looks like I finally tackled adding the image type feature. After about a week or more of trying to foresee the need to support versatility allowing admin entered image types I gave up an did hard coded types to match the sections I already was using. Result was being finished in a few hours. Doh! Posting a screenshot as I haven't updated the demo script in awhile.
Next project is advanced comment system for adding, deleting, moderating. Then I can get back to adding the "fluff" features. |
#29
|
|||
|
|||
I miss spoke, there are over 5,000 cars in the garage currently, haven't counted the mods, but lots of those as well I'm sure...
It is just frustrating me that I was running 3.0.7 full version and upon upgrading to 3.0.9 I lost features because I guess I have a non-full version now. Still trying to reach Dylan... |
#30
|
|||
|
|||
How's the work coming?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|