Off-Topic Girl Troubles?, New movie? New CD out? Talk about it here
Off-Topic posts does not count towards your post rating.

About the Vbulletin

Thread Tools
 
Search this Thread
 
Old Aug 7, 2006 | 07:59 PM
  #1  
DEm's Avatar
DEm
Thread Starter
Registered User
 
Joined: Jun 2006
Posts: 230
From: Hermosillo Sonora Mexico
DEm is on a distinguished road
Exclamation About the Vbulletin

Im toying with the idea of starting a site like this but locally and not mazda only oriented, and i figured to ask the experts
how to do get the vbulletin, do you really need to pay 160 bucks for it??
hahaha i mean, thats as much as Stuek paid for a car ( I still cant believe it)
and ok lets say i buy it and install it and what about the "bvgarage" did you programed it? buy it? were???? , and what about the free ones like the phpbb ??
Old Aug 7, 2006 | 08:11 PM
  #2  
kargoboy's Avatar
Awesome Member
 
Joined: Jan 2004
Posts: 3,186
From: Pittsburgh PA
kargoboy is on a distinguished road
The guy you wanna talk to is tailland. He's got a small Euro-site for the 323/Protege that he runs himself.

He's a great guy, but isn't over here too much, so you might be better off talking to him here:

http://forum.protege323.com/index.php

He's TStar on that forum.
Old Aug 7, 2006 | 08:59 PM
  #3  
DEm's Avatar
DEm
Thread Starter
Registered User
 
Joined: Jun 2006
Posts: 230
From: Hermosillo Sonora Mexico
DEm is on a distinguished road
Thanks Kargoboy !
Old Aug 8, 2006 | 08:22 AM
  #4  
kargoboy's Avatar
Awesome Member
 
Joined: Jan 2004
Posts: 3,186
From: Pittsburgh PA
kargoboy is on a distinguished road
I can't believe he was just on here and didn't see this thread...
Old Aug 8, 2006 | 11:26 AM
  #5  
tailland's Avatar
TStar
 
Joined: Aug 2002
Posts: 229
From: Germany
tailland is on a distinguished road
^^ now i see it 8)

Im a Guy from the www.mazda3club.com "DEm", KArgoboy gave your site address, and im wondering how did you mount your page, I noticed you are using the phpbb, I'v use it before, im wondering about the "rides"part did you code it? i leave you my email, dem@dagieu.com drop me a line or pm at mazda3club ill be happy to hear from you
hehehe, but that way i have to register... hehehe
anyway, I found some "mods" thats what those a re called, one called vbgarage, but it seems supercomplicated, and some others, so I guess ill just start experimenting on my own
well, i coded the whole site on my own.... the user/donate/downloadsystem of the infosection i coded on my own last year, later added a small forum (phpbb) and modded it heavily afterwards. the "rides" was originally a pretty complicated (and partially useless) plugin i downloaded and i had to recode the thing 100% because the original code shot some major security holes into the phpbb... so the actual "rides" plugin can be seen as my very own...

the next plan would be to combine my forum with the infosite, same logins,donation/download system integrated into the forum etc... but honestly... that's a hell lot of work and i wouldn't really know if it would be worth the effort.

if you want to set up and modify a forum, you should become familiar with php+(my)sql,cgi,web server administration etc... at least...

Last edited by tailland; Aug 8, 2006 at 12:03 PM.
Old Aug 8, 2006 | 02:12 PM
  #6  
DEm's Avatar
DEm
Thread Starter
Registered User
 
Joined: Jun 2006
Posts: 230
From: Hermosillo Sonora Mexico
DEm is on a distinguished road
Smile Done

Ill like to think im a well seasoned web designer... but thats just me.. hehehe
so i know my way around php and all that stuff you mentioned i already installed a phpbb forum ( a lot of work ) i think i have to click my mouse like 10 times and supply a password) (sarcastic) so.... hehehe what about if you enlightme and letme use you "mod" Rides with the name of "la cochera" that means garage on spanish, cause my site its gonna be on spanish and in exchange ill keep the credits

Mod Rides (la cochera) made by supercool dude Tailland at the site http://forum.protege323.com all rights reserved blablabla

and ill make an Altar were all the members of my site will worship you
Old Aug 11, 2006 | 10:16 AM
  #7  
tailland's Avatar
TStar
 
Joined: Aug 2002
Posts: 229
From: Germany
tailland is on a distinguished road
hm i never actually intended to spread that mod, but ok.... this mod is for the 2.19/20 version of phpbb and i have no clue if it works on 3.0 ...

if you're familiar with php/mysql, then you might already be satisfied with this:

the "heart" of the engine is little routine, creating thumbnails off externals sources (if link is a valid picture file), copying them to an internal cache at your server, the gd-library is needed for picture manipulation.

Code:
<?php

function createthumb($o_file, $t_file)
{
	if (!$imageinfo = @getImageSize($o_file))
	{
	return false;
	}

	else
	{
			if ($imageinfo[2] == 1)
			{
			$o_im = imagecreatefromgif($o_file);
			}
			elseif ($imageinfo[2] == 2)
			{
			$o_im = imagecreatefromjpeg($o_file);
			}
			elseif ($imageinfo[2] == 3)
			{
			$o_im = imagecreatefrompng($o_file);
			}
			
	  	$maxx = 170;
	  	$maxy = 127;

			$origx = $imageinfo[0];    
			$origy = $imageinfo[1]; 
			
			// Calc, if thumb has has to be squeezed from width or height
			if($origx >= $origy AND $origx > $maxx)
			{
			$faktor = $origx / $maxx;	
			$newx = $origx / $faktor;
  		$newy = $origy / $faktor;	
			}
		
			elseif($origy > $origx AND $origy > $maxy)
			{
			$faktor = $origy / $maxy;	
			$newx = $origx / $faktor;
  		$newy = $origy / $faktor;	
			}
		
			else
			{
			$newx = $origx;
			$newy = $origy;
  		}
  		
 		
	    $t_im = imagecreatetruecolor($newx, $newy);
	    
	    imagecopyresampled($t_im, $o_im, 0, 0, 0, 0, $newx, $newy, $origx, $origy);
    	imagejpeg($t_im,$t_file);
	    imagedestroy($o_im);
  	  imagedestroy($t_im);
  	  
  	  return true;
	}
	return false;
}
?>
called by
Code:
/** CREATING THE THUMBNAILS **/
include($phpbb_root_path . 'usercars_thumbcreate.'.$phpEx);

if ($usercars_pic1 != '') {
	$usercars_pic1thumb = "usercars/".$user_id."_pic1";
	if (createthumb($usercars_pic1, $usercars_pic1thumb) === false)
	{
	$usercars_pic1 = '#';
	$usercars_pic1thumb = 'usercars/empty.jpg';
	}
	else {
	}
}

if ($usercars_pic2 != '') {
	$usercars_pic2thumb = "usercars/".$user_id."_pic2";
	if (createthumb($usercars_pic2, $usercars_pic2thumb) === false)
	{
	$usercars_pic2thumb = 'usercars/empty.jpg';
	}
	else {
	}
}

if ($usercars_pic3 != '') {
	$usercars_pic3thumb = "usercars/".$user_id."_pic3";
	if (createthumb($usercars_pic3, $usercars_pic3thumb) === false)
	{
	$usercars_pic3thumb = 'usercars/empty.jpg';
	}
	else {
	}
}

if ($usercars_pic4 != '') {
	$usercars_pic4thumb = "usercars/".$user_id."_pic4";
	if (createthumb($usercars_pic4, $usercars_pic4thumb) === false)
	{
	$usercars_pic4thumb = 'usercars/empty.jpg';
	}
	else {
	}
}
then the results are handled by:
Code:
	// EDIT ENTRY START
	else if ($submit_edit)
	{
		if ($HTTP_POST_FILES["datei"]["name"] == '')
		{
			if ($HTTP_POST_VARS['deletepic'])
			{
				// DELETE PIC
				unlink("./" . $HTTP_POST_VARS['usercars_pic_edit']);
				$usercars_pic = '';
			}
			else
			{
				$usercars_pic = $HTTP_POST_VARS['usercars_pic_edit'];
			}
		}
		else
		{
			if($HTTP_POST_FILES["datei"]["tmp_name"] == "") 
			{
				message_die(GENERAL_MESSAGE, $lang['L_USERCARS_MOD4']);
				exit;
			}
			if($HTTP_POST_FILES["datei"]["size"] == 0) 
			{
				message_die(GENERAL_MESSAGE, $lang['L_USERCARS_MOD5']);
				exit;
			}
			if($HTTP_POST_FILES["datei"]["size"] > 131072) 
			{
				message_die(GENERAL_MESSAGE, $lang['L_USERCARS_MOD4']);
				exit;
			}
			if (($HTTP_POST_FILES["datei"]["type"] != "image/jpeg") && ($HTTP_POST_FILES["datei"]["type"] != "image/jpg") && ($HTTP_POST_FILES["datei"]["type"] != "image/jpeg") && ($_FILES["datei"]["type"] != "image/gif")) 
			{
				message_die(GENERAL_MESSAGE, $lang['L_USERCARS_MOD6']);
				exit;
			}
		
			// RENAME FILE START
			$current_user_date_time = $userdata['user_id'] . "_" . date(ymd) . "_" . time();
			$HTTP_POST_FILES["datei"]["name"] = $current_user_date_time;
			// RENAME FILE END

			move_uploaded_file($HTTP_POST_FILES["datei"]["tmp_name"], $phpbb_domain_uploaddir . $HTTP_POST_FILES["datei"]["name"]);

			// UPLOAD PICTURE END
			
			// DELETE OLD PIC
			if ($HTTP_POST_VARS['usercars_pic_edit'] != '')
			{
				unlink("./" . $HTTP_POST_VARS['usercars_pic_edit']);
			}
			
			$usercars_pic =  $phpbb_domain_uploaddir . $HTTP_POST_FILES["datei"]["name"];

		}
the rest is simple sql queries and pushes, handing the variables over to the templates; dont forget to clean all user based entries before working with them in the script. work with an extra table "usercars" in your db, will speed up things a lot. you're free to optimise since the orig code was never to be published.
Attached Thumbnails About the Vbulletin-capture_08112006_174626.jpg  

Last edited by tailland; Aug 11, 2006 at 11:04 AM.
Old Aug 11, 2006 | 12:12 PM
  #8  
DEm's Avatar
DEm
Thread Starter
Registered User
 
Joined: Jun 2006
Posts: 230
From: Hermosillo Sonora Mexico
DEm is on a distinguished road
Smile Whoa!

Ill take a dive into it, hahaha

many Thanks man, ill let you know as soon as I have it up and running
thanks again
Old Aug 11, 2006 | 12:49 PM
  #9  
tailland's Avatar
TStar
 
Joined: Aug 2002
Posts: 229
From: Germany
tailland is on a distinguished road
if it's not enough info, mail me, i'll hook you up with the complete scripting.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
gujustud
Off-Topic
3
Mar 2, 2002 11:13 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 



All times are GMT -5. The time now is 07:54 AM.