1

(3 replies, posted in PunBB 1.3 troubleshooting)

If I come from 'mysite.com/news/1' (which is 'mysite.com/?news&id=$1' in dynamic form) the redirect_url transforms to 'mysite.com/index.php?news&id=1&login=1' which leads me to 404.

I do not let users to load any php-files from my server unless it's a '/punbb/*.php'. As a result, I do not understand why 'index.php' (and '&login=1', too) appears in the redirect_url in that case.

2

(32 replies, posted in PunBB 1.3 extensions)

I would like to pre-moderate new registrations and posts. Also, i'd like to not allow users to post more than N times in one hour and M times in one day.

3

(3 replies, posted in PunBB 1.3 troubleshooting)

My site is divided into the 2 parts: main one and PunBB. In the main part, there is an authorization URL which leads to '/punbb/login.php'. As you know, this page generates "redirect_url" (hidden input value), which, in my case, could be either 'mysite.com' (if i came from 'mysite.com/[nothing_here_anymore]') or 'mysite.com/punbb/login.php' (if i came from 'mysite.com/[anything_but_punbb_folder]') -- btw, why is that?

Today, I have put 'ErrorDocument 404 /?404' in my '.htaccess'. Since then, "redirect_url" is 'mysite.com/index.php?404' (no matter where I come from; though, if I come from one of the punbb-page it's still OK and can be 'mysite.com/club/viewforum.php?id=1', for example), and the final URL is 'mysite.com/index.php?404&login=1' which is totally incorrect, of course.

What should I do to prevent this error?

4

(10 replies, posted in PunBB 1.3 troubleshooting)

Make a copy of "/lang/English" folder and rename it to "/lang/Hebrew", for example. You'll see a bunch of php-files there. The only thing you have to do then is to translate the second column of each of these php-files. Tpl-files in "/lang/Hebrew/mail_templates" should be translated, too.

5

(10 replies, posted in PunBB 1.3 troubleshooting)

I would not recommend you to downgrade to PunBB 1.2. You can create your own hebrew language pack for 1.3.4 version instead and share it with others then :-)

6

(10 replies, posted in PunBB 1.3 troubleshooting)

Try to switch it in your profile panel also.
Guests and new users will see hebrew automatically.

Slavok wrote:

This option in administration only sets the default value of the "E-mail settings" option in user's profile for new registered users.

Ok, I see.
Looks like there is no way to get rid of it entirely...

Anyone still can "send forum e-mail" even when "Hide e-mail address and disallow e-mail via the forum" is checked in the administration menu. Why? The problem is solved only when an user himself checks "Hide your e-mail address and disallow e-mail via the forum" on his profile page. I think it's little illogical.

// PunBB 1.3.4

IDK what file(s) exactly you should touch, but principle is simple. For example you wanna change permission of index.php (actually I recommend you to change permission of all of the files and folders in your FORUM catalogue). Your actions: create some *.php and put in there following code:

chmod('/forum/index.php', 0775)

Then run it. But I think it's a dead attempt.

P.S. What kind of host ground do you have? Virtual host or dedicated server?

1. OFC you can't change the permission using FTP client. It's a normal as a rule (I can't do it too with script-made folders/files that located on the server of my host provider). Maybe you would be more lucky if you try change the permission to target file/folder using hand-written php-script. The function is: chmod('url', 0777);

P.S. I can mistake...

Array ( [0] => Element extension/hooks/hook is malformed or missing. [1] => Element extension/hooks/hook is missing attribute "id". )

Well, the problem is still actual... :-) Any ideas why it happens?..)

Some screenshots:

#1: http://s41.radikal.ru/i093/0812/1c/79890d59150f.jpg
#2: http://s52.radikal.ru/i136/0812/a8/50abcbb9946f.jpg
#3: http://i030.radikal.ru/0812/5c/fd11197cf5f0.jpg
#4: http://s49.radikal.ru/i126/0812/f0/e6293043b3ef.jpg

I have included in my site the code below to login to the board from every page of the site, but I can't login because of "Confirm action" message. I know it's CSRF problem, but what am I doing wrong?..

<form method="post" id="afocus" style="margin-top: 7px; margin-bottom: 0" action="/<? echo $fdir; ?>/login.php">
  <div style="float: left">
    <input type="hidden" name="form_sent" value="1" />
    <input type="hidden" name="redirect_url" value="/" />
    <input type="hidden" name="csrf_token" value="<? $one = str_replace('&amp;', '&', 'http://[...].ru'); $two = substr(sha1(uniqid(rand(), true)), 0, 40); echo sha1($one.$two); ?>" />
    <input type="hidden" name="save_pass" id="fld3" value="1" />
    <input type="text" name="req_username" id="fld1" class="textline" value="login" onclick="if (this.value=='login') { this.value=''; document.getElementById('fld2').value='' }" />
  </div>
  <div>
    <input type="password" name="req_password" id="fld2" class="textline" style="margin-top: 4px" value="password" onclick="if (this.value=='password') { this.value=''; document.getElementById('fld1').value='' }" />
  </div>
  <div>
    <input type="submit" name="login" class="button" value="Login" style="margin-top: 7px; width: 49px" />
  </div>
</form>
Slavok wrote:

Does the error persist?

Yep...

Slavok wrote:

Have you tried clearing your Forum's cache?

I just tried to do that (by clearing of php-files in my 'cache' folder), but it didn't solve the problem. The error is still the same: "Undefined index:  content".

UPD: I'm gonna try to reinstall the board...
UPD #2: D'oh... the reinstall didn't help me.

np)

There is mistake in my example. You should use "clear: right", but it seems you noticed it already :-)

Now about margin...  just convert <p id="copyright"></p> into <div id="copyright"></div>, but it's better to try <div id="copyright" style="margin-top: 6px"></div> 'coz string "Powered by PunBB" shifts to top when you convert 'p' into 'div'. You will see it for yourself...

http://s39.radikal.ru/i085/0812/ca/1cbaa1c0880c.jpg

Came from error logs:

[Sun Dec 21 13:45:52 2008] [error] [client 217.173.21.4] PHP Notice:  Undefined index:  content in .../include/xml.php on line 199, referer: .../admin/extensions.php?section=hotfixes

So what can I do now?)

Hi. I have 1.3.2 version, but there is alert that informs me about "hotfixes are available for install on the Manage hotfixes tab of the admin interface". I open "Manage Hotfixes", click on "Install hotfix" (PunBB 1.3–1.3.2 hotfix removing a notice on updates check), but error happens: "Download and install of a hotfix extension failed. Please wait a while and try again".

Why?.. There were no any errors on my local server. Troubles started when I've installed PunBB on outer hosting. Any ideas?

P.S. "Search" tool returned no hits on subject...