santosh_iit32
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by santosh_iit32
-
-
I'm sorry i posted the message here. i didn't read the rules before. Moderator could kindly move this topic. Apologise.
I"m looking for help everywhere and just can't find anyone to help me with it! I"m not a coder and i cant figure out how to integrate my news script so that only my registered users could post comments.
here's the news script:[url=http://newsphp.sourceforge.net/index.php]http://newsphp.sourceforge.net/index.php[/url]
I'm using the latest phpbb version. is there anyone kind enough to help me with this? There's a working mod already which is embedded into the forum admin page. But i would like to have the orginal news posting admin page and not through the forum admin page due to security reasons. Here's the mod [url=http://geekmediaweb.com/PHPNews2phpBB.rar]http://geekmediaweb.com/PHPNews2phpBB.rar[/url]
Someone please help me. I can't offer to pay up and i cant seem to get help anywhere.
phpBB integrated to my Login System
in Third Party Scripts
Posted
define('IN_PHPBB', true);
$phpbb_root_path = 'forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);
if(!$userdata['session_logged_in']) {
echo ' ';
?>
<form method="post" action="forum/login.php">
Name: <input class="post" type="text" name="username" size="12" style="font-family: Arial; font-size: 10px; border: 1px solid #808080"/><br>
Pass: <input class="post" type="password" name="password" size="12" style="font-family: Arial; font-size: 10px; border: 1px solid #808080"/>
<br>Auto: <input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="Log in" style="border: 1px solid #333333; font-family:Arial; font-size:10px; color:#000000; text-transform:uppercase; background-color:#E9E9E9" />
<font size="1" face="verdana, Arial, Helvetica, sans-serif">
<img src="images/icon_mini_search.gif" border="0" align="middle"> <a href="forum/search.php">Search</a>
<img src="images/icon_mini_register.gif" border="0" align="middle"> <a href="forum/profile.php?mode=register">Register</a></font>
</form>
<?php
}
else {
echo '<font size="2" face="Arial, verdana, Helvetica, sans-serif">Hi, '.$userdata['username'] ;
echo '</font><br><font size="1" face="Arial, verdana, Helvetica, sans-serif">';
echo '<img src="images/folder.gif" border="0" align="middle"> <a href="'.append_sid("forum/privmsg.php?folder=inbox").'" title="Private Messages">Inbox</a> ['.$userdata['user_new_privmsg'].']';
echo ' <img src="images/icon_mini_profile.gif" border="0" align="middle"> <a href="'.append_sid("forum/profile.php?mode=editprofile").'" title="Edit profile">Profile</a><br>';
echo '<img src="images/icon_mini_search.gif" border="0" align="middle"> <a href="'.append_sid('forum/search.php').'">'.$lang['Search'].'</a>';
echo ' <img src="images/icon_mini_search_new.gif" border="0" align="middle"> <a href="'.append_sid('forum/search.php?search_id=newposts').'">'.$lang['Last_Post'].'</a><br>';
echo '<img src="images/icon_mini_login.gif" border="0" align="middle"> <a href="'.append_sid('forum/login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id']).'">Logout</a> </font><br>';
}
?>[/code]
use the code and it will be fine.