Posts Tagged php external site headers post

External Voting Button

I currently have 2 sites. One is built on Hotaru CMS with voting / bookmarking script. I added the External Voting Button that allows users to add the voting button to their websites. I want to add the voting button to my website number 2 which is built on buddypress. I want this external voting button to be added to the buddypress bp_sitewide_posts_widget. This would allow users to vote on individual blog posts throughout the buddypress community.

Hotaru CMS uses this script <code><script type="text/javascript">submit_url = "URL OF THE POST";</script>
<script type="text/javascript" src="http://mywebsite.com/index.php?page=evb"></script></code> to add the button to external sites with multiple posts. I need the code to be written on buddypress, that dynamically inserts the url of each feed from BP-Sitewide_posts_widget.

This project requires someone with extensive knowledge of the Buddypress core.

01/29/2011 at 0:46 EST:

I think the external voting button has to tie into the buddy press script <?php bp_activity_action() ?> , but I am not sure how to do that?

Tags: , , , , , , , , , , , , , , , ,

VBulletin + External Site PHP, MYSQL, VBULLETIN KNOW REQD

Project:

Once register.php submit button is pressed, my project checks to see if a checkbox is checked, if so, I want to create a vBulletin account through MySQL, on the users. All I need you to do is help me create the account so it works with my coding. Here is what I have currently:

else
{
$salt = $this->fetch_user_salt();

$password = $this->hash_password($pw, $salt);

mysql_query("INSERT INTO user(usergroupid, username, password, passworddate, email, showvbcode, usertitle, joindate, reputation, reputationlevelid, options, ipaddress, referrerid, salt) VALUES(2, " . $user . ", " . $password . ", 2010, " . $email . ", 2, Junior Member, " . $date(u) . ", 10, 4, 45108311, " . $_SERVER[REMOTE_ADDR] . ", 2, " . $salt . ")") or die(mysql_error());

Header( "Location: login.php?message=Accounts+succesfully+created+you+may+now+login+on+NV+Board+and+MyKUpload");
}
}

function fetch_user_salt($length = SALT_LENGTH)
{
$salt = ;

for ($i = 0; $i < $length; $i++)
{
$salt .= chr(rand(33, 126));
}

return $salt;
}

function hash_password($password, $salt)
{
// if the password is not already an md5, md5 it now
if ($password != )
{
$password = md5($password);
}

// hash the md5d password with the salt
return md5($password . $salt);
}

And it is not working correctly, thanks.

Tags: , , , , , , , , , , , , , , , ,