I want to integrate punbb with my website in this way:
1- users register in punbb first.
2-Then they use a from so that they send their information like pun username, pun email, pun password and a few additional information to register into website. When i use $pun_user['password'], I get a hashed password. Is there any way to get the original password in order to send to my website, so that users can use the same username and password they use for punbb, for login into my website.

2

(2 replies, posted in PunBB 1.2 troubleshooting)

hmm. not really! because all users of my forum are the students of a university, with a unique email address.

P.S: The problem is that the first part of email is unique and each student have 2 or 3 emails like:
myname@univ.edu.com
myname@hum.edu.com
Thata's why I need the first part as username. I use a code something like this:

substr($string, 0, strpos($string, "@"));

that gives me the first part of an email, but I got problem to use it in register.php

3

(2 replies, posted in PunBB 1.2 troubleshooting)

Hi,
When new users try to register to punbb, how is that possible that tehy give only their email and then the first part of the email will be their username. (myname@gmail.com then username will be myname).

just installed 1.2.15 version and got this error message:

include(./forums/lang//common.php) [function.include]: failed to open stream: No such file or directory

Note two slashes between lang and common (//).
I'm on linux and re-uploaded lang folder again and again. in vain! any help?

Hi. thank for your answer. I tired it but my perl scripts are located in plugins. I mean passthru does not work for it, at least I could not figure it out.You mentioned "cookie handling". well, that is the point I need help. I don't know how to manipulate or call cookie's data in my php or perl script. I tried in my perl script to print the cookie created by punbb and i got something like that:

a:2:{i:0;s:1:"2";i:1;s:32:"3f3410c241f5ef458e47c2293e279a0c";}

I need  to get some data from cookie and then put it inside a form and send it to perl script to evalute it .

I've integrated punbb with my site and if users are logged in, they can also post photos and videos to a weblog. Those scripts are written in perl and I wonder how I can use cookies produced by punbb in these scripts. any idea?

7

(6 replies, posted in Feature requests)

I know that, and I really apologize, but I had no choice. I can delete it if you want.

8

(6 replies, posted in Feature requests)

Hi there,
I've a similar problem with  WPMU. It uses this expression to validate emails:

ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.
        '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.
        '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)

and now I want it to validate emails with

*.uio.no

suffix. I asked people in wpmu's forum, but didnæt get any useful response. Thanks for your help.

Hi there,
Here is an excellent guide  to integrate login/logout to an existing website. Now I have made a form so that users can register via this form. But I can't figure out how they can be redirected to the same page after registration. which parts of register.php page should be changed?  Thanks.

No I have nor edited common_db.php nor common.php is required from within a function!

hi,
I know how to integrate my website with punbb by using

define('PUN_ROOT', '/home/erinther/public_html/pluss/user/');
require PUN_ROOT.'include/common.php';

but now I use dynamic publishing templates with my MT-based website. When I add the code, then I get this error:

Fatal error: Call to a member function on a non-object in /home/erinther/public_html/forum/include/functions.php on line 110

That is

$result = $db->query('SELECT u.*, g.*, o.logged FROM '.$db->prefix.'users AS u INNER JOIN '.$db->prefix.'groups AS g ON u.group_id=g.g_id LEFT JOIN '.$db->prefix.'online AS o ON o.ident=\''.$remote_addr.'\' WHERE u.id=1') or error('Unable to fetch guest information', __FILE__, __LINE__, $db->error());
    if (!$db->num_rows($result))

.
Has anybody any idea what is wrong?

12

(19 replies, posted in General discussion)

hi,
I try to assign the users who has emails like ...@...uio.no to assign to a specific group by using  *@*uio.no in the plugin. but it does not work. Is something wrong?

13

(28 replies, posted in Programming)

I did nothing. I had to change all my plans and work with only one forum.

I use this feature to create a page for each category. Now I want to create a sidebar menu so that only category names shows up in the menu. Then how can i put it is main.tpl? ( I mean something like <pun_navlinks>).

Hi,
I know how to restrict direct access to a directy, as well as password protected access to a single file.
But I don't know how to use RewriteEngine and RewriteCond so that it is used to restrict a single file not a directory. I'll appreciate any help.

yes I know there are plugings for wordpress and nucleus to be integrated with punbb, but after working with all of them, I prefer to continue with MT. The only thing I need in this stage, is to be able to send the details of punbb users to a database in which MT is installed.Let me explain this:

I'have two databases: one for punbb and one for MT. I need a plugin or a function or whatever you may call it, to take these fields: id, username,password,email,nikname and url from users table in punbb database and send them ( after that new user signs up and activate his/her account via confirmation email) to mt_author table in MT installation.

MT author table                    Punbb user table
author_id                                     id
author_name                               username
author_password                         password
author_email                              email
author_url                                  url
author_nikcname                        realname

Every user in punbb will be a author in MT. Since I've no knowledge of php,I hesitate to write what is in my mind: adding a function to register.php in punbb so that when a user is registered, this function takes these details and visa a form sends to MT database. is it possible?

17

(1 replies, posted in Programming)

hi,
I have two databases and punbb is installed in one of them. How is it possible to add a function in the registration process so that when a new user sign up ( and recieves a confirmation email to activate his/her account), then
these information: id,username,password,email,realname and url in user table would be sent to the other database. ?

should I faal on my knes and beg someone to hack np_punbb plugin so that  users first register and login in punbb? as it works in NP_phpbb. The truth is that I love punbb and don't want to switch to phpbb. on the other hand the situation needs that people first login in the forum. Please do something..please!!!

Hi, I'm fully aware that here may not be the right place to write this thread but since I've not recieved any reply in nucleus forum, I put a link here in the hope that someone will help me:
http://forum.nucleuscms.org/viewtopic.php?t=11299

hi. I've two questions about his plugin:
1- which segments of plugin code should I modified so that it only sends information about members, not posts and comments?

2- is it possible that people login first in punbb and then the plugin sends the information to nucleus? I need this because in punbb email addresses are unigue that means everyone can use only one email, but in nucleus several people can register with only one email address.

Thanks in advance for your help

21

(19 replies, posted in General discussion)

Hi,
Is there any ay to assign new registered users to pre-defined groups automaticly based on their email addresses? For example if email ends with no.edu, then that user will be assigned to first group, if email ends with ntn.edu, then the new user will be in second group. I know that I can do this job manually and assign each user to any group, but since I expect a larg number of users which will make that manual work a nightmare, I hope someone here will help me to find a solution. Thanks in advance

22

(2 replies, posted in General discussion)

Hi again. this is the form I want to use in a my-own-defined page sothat users can change their passwords:

<form id="change_pass" method="post" action="profile.php?action=change_pass&id=<?php echo $id ?>" onsubmit="return process_form(this)">
<div class="inform">
<input type="hidden" name="form_sent" value="1" />
<fieldset>
<legend><?php echo $lang_profile['Change pass legend'] ?></legend>
<?php if ($pun_user['g_id'] > PUN_MOD): ?>   
<label><strong><?php echo $lang_profile['Old pass'] ?></strong><br />
<input type="password" name="req_old_password" size="16" maxlength="16" /><br /></label>
<?php endif; ?>                       
<label class="conl"><strong><?php echo $lang_profile['New pass'] ?></strong><br />
<input type="password" name="req_new_password1" size="16" maxlength="16" /><br /></label>
<label class="conl"><strong><?php echo $lang_profile['Confirm new pass'] ?></strong><br />
<input type="password" name="req_new_password2" size="16" maxlength="16" /><br /></label>
</fieldset>
<input type="submit" name="update" value="<?php echo $lang_common['Submit'] ?>" />
</form>
But it does not works. What is it missing?

23

(2 replies, posted in General discussion)

Hi,
I tried to modify profile.php sothat the members can only change their passwords. In other words they don't see any link to other sections like display, privacy or.... I tried to delete some parts inside profile.php but i did get error message.I hope somebody will help me to modify profile.php or in creating another page which holds only a from with action=chane_pass.

Hi,
I tried to modify profile.php sothat the members can only change their passwords. In other words they don't see any link to other sections like display, privacy or.... I tried to delete some parts inside profile.php but i did get error message.I hope somebody will help me to modify profile.php or in creating another page which holds only a from with action=chane_pass.

Hi. Thanks for the wonderful tutorial. I could made it, but you know what? In IE the loging or logout action  sometimes does not works. Of course it is not often but it is really ittirating. It is just fine in firefox or other browsers. What could be the source of problem?