Showing posts with label phpBB. Show all posts
Showing posts with label phpBB. Show all posts
0

Unable to upload images to phpBB posts

Wednesday, November 7, 2007

The issue is mainly occurring due to the absence of some code. To fix this issue, do the following:

"cd" into the corresponding directory of phpBB.

Create a file "addform.html" with the following content:







Change the ownerwship of the file according to the need (ie. cpanel -> username:nobody).

Take a backup of the file "includes/template.php"

In the 265 line of ./includes/template.php you can fine the following code:
$str = implode("", @file($filename));

if (empty($str))
{

die("Template->loadfile(): File $filename for handle $handle is empty");
}

Add the following code below it:
if(basename($filename) === 'posting_body.tpl')

{

$str = str_replace('', '
Add image to post', $str);

}

This will add the image upload facility in the phpBB posts.

0

PhpBB Visual confirmation problem

If it is enabled then check the file phpBB/templates/subSilver/profile_add_body.tpl

You can view the content using browser, for that:
cp templates/subSilver/profile_add_body.tpl templates/subSilver/profile_add_body.html
chown user:user templates/subSilver/profile_add_body.html

Add the following in templates/subSilver/profile_add_body.html.

.
.


Access the file via browser: http://domainName/phpBB/templates/subSilver/profile_add_body.html

Also make sure that the file templates/subSilver/profile_add_body.tpl is in the format:


...


...


(ie. BEGIN should be folowed by corresponding END)

0

Restricting forum access to users or newly registered users

This will encourage registrations in forum (phpBB) and that everyone logs on when they visit so you can track who has been there.

In order to do the add the following code in the index.php page of the forum:

Find the "End session management" in the index.php file in forum. Add the following line below it:
// Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.".$phpEx."?redirect=index.".$phpEx, true));
exit;
}
// End 'Restrict Guest Access' MOD

This will redirect to login page of the forum.

The new users requires the register link to register in the forum. For that add the register link in the "login_body.tpl" file. Most probably you can find it in the "templates/subSilver/login_body.tpl" . The template should be the exact one which you are using in the forum. There are many templates such as subSilver, abandon, Galaxian, metalBB, Anubis and ca_artemis.

0

404 error occurred after login into the forum though pages are there

After login into the forum (phpBB), you will get an error message 404 (page not found though page
s are there.

This issue mainly occurring due to the https redirection instead of http.

Replace the following code in the profile.php, privmsg.php and includes/functions.php
$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';

with
$server_protocol = ( $board_config['cookie_secure'] ) ? 'http://' : 'http://';

Don't forget to replace the includes/bbcode.php
$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|pn
g)))\[/img\]#sie","'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);

with
$text = preg_replace("#\[img\]((http|ftp|http|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png
)))\[/img\]#sie","'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);

This will fix the issue.

0

How to change forum administrator username and password

You can modify the login details of the forum admin user using the sql queries. Use the forum dat
abase and update the login details using the following queries.
update phpbb_users set username ='administrator' where username = 'admin';

You can use the URL http://www.invision-graphics.com/md5hash_generator.html to generate the MD5 p
assword encryption
mysql>update phpbb_users set user_password = 'd555ccddb47faf2e13a66c0888cdb72d' where username = 'administrator';

The 'd555ccddb47faf2e13a66c0888cdb72d' is an MD5 encrypted password.

0

Phpbb email.php error

Phpbb email.php error
The problem is actually on phpBB's side and is really just with the coding.

Here is the fix.
go to the phpBB/language/lang_english/email/ within your site.

edit the file privmsg_notify.tpl and replace everything with this Text:

Subject: New Private Message has arrived
Charset: iso-8859-1

You have a new message at: {U_INBOX}


This will fix the issue.

The exact location of the emailer.php is phpbb/includes/emailer.php.