Forgot?

Ninjaboards BBCode.

Reply Topic
Link to this post 21 May 13

Hey all. Where does Ninjaboard pull it's Parsed BBcode? I'm trying to create a custom extension for Ninjaboard that would essentially run the query:


<?php
$con=mysqli_connect("****","****","*****","****");
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$sql="SELECT * FROM YOURPREFIX_user_usergroup_map WHERE user_id = $user->id AND group_id = ''2";

if ($result=mysqli_query($con,$sql))
{
$rowcount=mysqli_num_rows($result);
if ($rowcount>'0'){
printf("Add Your Link");}
else{
printf("<a href="registerpage">Only Registered Users may Use this link.");}
// Free result set
mysqli_free_result($result);
}

mysqli_close($con);
?>

In doing so links would no longer be able to seen by guests; just the option to register. Thanks for the help guys.

Forums NinjaBoard Ninjaboards BBCode.