Hi, not sure if this is the right place or not but I am looking to integrate SMF with my phpProBid auction software. Preferably when a user signs up on the sight they are signed into the forum as well & vise versa. Can this be done? I use Yahoo webhosting as well.
It definitely can be done. PhpProBid looks like a great product. Let me know if you'd like some help with that.
Yes, I would be interested in your input on this. Thanks.
If you have a license for probid you will be able to log onto the forums and download this free modification
http://www.phpprobidforum.com/forum/showthread.php?t=9857&highlight=simple+machines+forum
I am trying to integrate SMF 2 into PPB 6.03 I have followed the instructions on the PPB site as quoted in the forum link shown in this thread, but I am unable to find some of the code that I am supposed to modify.
I am guessing the code has changed or moved or ??? I am hoping that somebody will be able to tell me where it may be located.
QuoteIn file /Probid-root-dir/smf/Themes/default/Profile.template.php
FIND THIS:
<td width="40%">
<b>', $txt[35], ': </b>', $context['user']['is_admin'] ? '
<div class="smalltext">(<a href="' . $scripturl . '?action=profile;u=' . $context['member']['id'] . ';sa=account;changeusername" style="font-style: italic;">' . $txt['username_change'] . '</a>)</div>' : '', '
</td>
CHANGE THIS TO:
<td width="40%">
<b>', $txt[35], ': </b>', $context['user']['is_admin'] ? '
<!--<div class="smalltext">(<a href="' . $scripturl . '?action=profile;u=' . $context['member']['id'] . ';sa=account;changeusername" style="font-style: italic;">' . $txt['username_change'] . '</a>)</div>-->' : '', '
</td>
FIND THIS:
echo '
<tr>
<td>
<b', (isset($context['modify_error']['no_name']) || isset($context['modify_error']['name_taken']) ? ' style="color: red;"' : ''), '>', $txt[68], ': </b>
<div class="smalltext">', $txt[518], '</div>
</td>
<td>', ($context['allow_edit_name'] ? '<input type="text" name="realName" size="30" value="' . $context['member']['name'] . '" maxlength="60" />' : $context['member']['name']), '</td>
</tr>';
CHANGE THIS TO:
echo '<input type="hidden" name="realName" value="' . $context['member']['name'] . '" />';
FIND THIS:
<td><input type="text" name="emailAddress" size="30" value="', $context['member']['email'], '" /></td>
CHANGE THIS TO:
<td><input type="hidden" name="emailAddress" size="30" value="', $context['member']['email'], '" />', $context['member']['email'], '</td>
FIND THIS:
// Show boxes so that the user may change his or her password.
echo '
CHANGE THIS TO:
// Show boxes so that the user may change his or her password.
echo '<!--
FIND THIS:
</tr>';
}
// Show the standard "Save Settings" profile button.
template_profile_save();
CHANGE THIS TO:
</tr> -->';
}
// Show the standard "Save Settings" profile button.
template_profile_save();
Any assistance will be much appreciated.
Thanks.
is this the full code?? i have tryed this code and it gos in fine but i dint see no changers
the code changers need to go in the sfm not phppro but i cant see what it dose
post the full post here
here is what i have but its not working any help????
function getSqlNumber($sqlQuery) {
$query=@mysql_query($sqlQuery);
$result=@mysql_num_rows($query);
@mysql_free_result($query);
return $result;
}
function getSqlRow($query) {
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
mysql_free_result($result);
return $row;
}
$saltlength = 3;
$salta = '';
for ($i = 0; $i < $saltlength; $i++)
$salta .= chr(rand(ord('a'), ord('z')));
$pass = md5(md5($user_details['password']) . $salta);
$insertsfmmembers = mysql_query("INSERT INTO phpprobid_user
(usergroupid, membergroupids,
displaygroupid, username, password, passworddate, email, styleid,
showvbcode, customtitle, joindate, daysprune, lastvisit, lastactivity, lastpost, posts, reputation,
reputationlevelid, timezoneoffset, pmpopup, avatarid, avatarrevision, options, maxposts, startofweek,
referrerid, languageid, emailstamp, threadedmode, autosubscribe, pmtotal, pmunread, salt, usertitle)
VALUES (2, '', 0, '$user_details[username]', '$pass', unix_timestamp(), '$user_details[email]', 0,
1, 0, unix_timestamp(), 1, unix_timestamp(), unix_timestamp(), 0, 0, 10, 5, -5, 1, 0, 0, 7255,
-1, 1, 0, 1, 0, 0, 0, 0, 0, '$salta', 'none')");
$sfm_member_id = mysql_insert_id();
$addmore = mysql_query("INSERT INTO phpprobid_usertextfield (userid) VALUES ($sfm_member_id)");
$addmore = mysql_query("INSERT INTO phpprobid_userfield (userid) VALUES ($sfm_member_id)");
$totalusers = getSqlNumber("SELECT userid FROM phpprobid_user");
$newuserid = $totalusers;
$newdata = getSqlRow("SELECT * FROM phpprobid_user WHERE userid='".$sfm_member_id."'");
$values = array(
'numbermembers' => $totalusers,
'activemembers' => $totalusers,
'newusername' => $newdata['username'],
'newuserid' => $newdata['userid']);
mysql_query("REPLACE INTO phpprobid_datastore (title, data, unserialize) VALUES ('userstats', '".addslashes(serialize($values))."', '1')");
// When a user Registers with your phpprbid site, an account will automagically be created for them on
your SFM site
would like to see the integrated site with ppB and smf once its done