Connorhd wrote:

chrizz didn't we talk about this on IRC? and wasn't the solution to delete all users with the verified_string = 'unconfirmed' ?

yes we did, but I dont remember anything about "verified_string" ... there actually is no such column in the users table. And neither coulmn activate_string or activate_key has any value as "unconfirmed"...

Actually I believe that those users who have the coulmn activate_string as a md5 are unconfirmed, but im not sure.

Hi. I've understood that group id 32000 means unconfirmed user in 1.2. How about the users registered before 1.2?

I think I have about 300 unconfirmed users just hanging around, and I kind of want to get rid of them wink

78

(8 replies, posted in PunBB 1.2 bug reports)

I found the problem.

I made the mistake and the link was: http://domain.com/forum/profile?id=1234 (witch actually works without .php), then I got the error. But, should this happen anyway?

Well, now we know what the issue was, and as usual it was the users fault (mine) not the forums wink

79

(8 replies, posted in PunBB 1.2 bug reports)

Btw, the same error occurs if you copy the URL to the profile, close the browser, and open a new one and then pasting the URL and trying to save. Again you get HTTP_REFERER error.

80

(8 replies, posted in PunBB 1.2 bug reports)

Hi.

I'm (admin) trying to edit a users profile by just clicking save.

When locating the user with the search engine and browsing to the users profile from a link from within "http://domain.com/forums/" it works fine since the base url option is set to "http://domain.com/forums".

But if I have a link to the users profile from another url like http://domain.com/ -> http://domain.com/forums/profile.php?id=1234 and then hit save, I get HTTP_REFERER error.

Should this really happen since im in the correct path when pressing the save button?

Does it expire after a while and gets deleted?

Jag har också gjort som du, men ändå stört mig på att inte kunna klicka mig tillbaka om jag råkat missa hållar in CTRL. Nåja, jag har ändrat det där nu på min sajt, och det funkar bra och är smidigt att använda tycker jag.

MVH C.

header.php: rad 174-176:

    if (in_array(basename($_SERVER['PHP_SELF']), array('index.php', 'search.php')))
        $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<ul class="conr">'."\n\t\t\t\t".'<li><a href="search.php?action=show_new">'.$lang_common['Show new posts'].'</a></li>'."\n\t\t\t\t".'<li><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></li>'."\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
    else
        $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';

första raden:

if (in_array(basename($_SERVER['PHP_SELF']), array('index.php', 'search.php')))

Tycker jag borde bytas ut mot:

if (in_array(basename($_SERVER['PHP_SELF']), array('index.php', 'search.php', 'viewtopic.php')))

Då får man med länkarna för nya inlägg även när man läser en tråd. Jag vet inte riktigt om det finns en mening för att det INTE är så idag, men det ser inte ut som det.

Personligen tycker jag det är högst störande att länkarna försvinner när man först listar nya inlägg, sen öppnar en råd, läser inlägg och sen måste bläddra tillbaka och krångla för att återigen komma till listan för nya inlägg. Mycket bevämare att bara klicka på länken som alltid kan hittas på samma ställe.

like this: 1:or, 2:or

The text above is:
1 : or, 2 : or (no spaces)

I did not have the "yikes.png" and got only a box instead of image.

I actually dont know if this truly could be named as a bug though..

You should change the options in config.php

Apparently there is something wrong there. Maybe you have mistyped your password?

This is how it looks like sometimes in FF only. I have the punbb css, AND an own one, but I dont know where to look for the problem? What could cause this?

Btw, the example is from PM-mod, but the problem is in the forum index also.

If i hit the reload button after it looks like this it's showed correctly, this happens only sometimes when i enter the page through a link.

http://81.232.162.70/punbb-wierd.jpg

Problem solved, solution for those who are intressted:

The reason for why it hangs up is that I use session. By running session_write_close() before and start_session() again after all the system() (or exec) funktions it works just fine.

Connorhd wrote:

maybe its because one of the links on the page is logout

big_smile big_smile

I use imagemagick (convert) to resize images on my site.

it looks something like:

system("convert -size 1280x1280 /var/www/t/DSC_0320.JPG -resize 1280x1280 -quality 75 /var/www/t2/DSC_0320.JPG");

If i have this in a loop with more images it will hang up PHP and no access what so ever can be made to other pages. All the processes must be done before php works again.

I read this in the manual for system() (http://se.php.net/manual/en/function.system.php)

"Note: If you start a program using this function and want to leave it running in the background, you have to make sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends."

What that means I'm not 100% sure of, but i've tried adding &>/dev/null at the end so the system above looks like this:

system("convert -size 1280x1280 /var/www/t/DSC_0320.JPG -resize 1280x1280 -quality 75 /var/www/t2/DSC_0320.JPG &>/dev/null");

That still hangs upp php until all processes are done. PLEASE! This is horrible if I want to update 200 images that takes 30 minutes or so. The whole site will be down for the whole time. Thats not acceptable. Please help me smile


Btw. I run debian linux with apache and mysql.

90

(19 replies, posted in Feature requests)

This is great.

Could anyone suggest a little javascript which will allow you to click the down scaled image and change it to full size? then click again and again have it scaled?

I made this work in FF with a simple javascript, but it wont work in IE.

But I want it to work outside of the forum dir. And yes, the links aren't absolute paths, but thats the issue in this case smile

Im using this on all my pages outside of site.com/forum/

define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';

This gives me $pun_user to use on my pages.

Anyway, when setting a ban, the user is rejected even if site.com/ is visited (not only site.com/forum/). This is how it should be i guess....

But the problem is that when banned users visit site.com/ all the links and stylesheets are wrong. Links refer to site.com/login.php, site.com/profile.php and so on instead of site.com/forum/login.php and site.com/forum/profile.php ...

well, it's actually no big problem. Banned users are banned, and no harm if what they see is not perfect, but anyway, I thougt I should bring this up. Am I doing something wrong maybe?

No way!? Is it really THAT easy? I have struggled with functions and crap for several days now and still have problems with it! .... could someone confirm that it's this easy before a actually overwrite all my work and try this out?

94

(2 replies, posted in General discussion)

I've tried again now without GROUP BY and ORDER BY and the query is fast ... but whats the problem? I need to use GROUP BY and ORDER BY ... or something that does the same thing.

95

(2 replies, posted in General discussion)

Btw. The PC is a p4 2.53, 512mb ram, 2xIDE ata100 Raid1, on Debian Linux with Apache 2 and Mysql 4.0

96

(2 replies, posted in General discussion)

Hey, maybe someone have a clue about this:

I have performance issues with fulltext search in mysql.
If I use FORCE INDEX (the_fulltext_index) a specific query takes 0.7s to execute (only 6000 rows and no large columns), If I instead use IGNORE INDEX (the_fulltext_index) the query takes still 0.7s to execute. That probably means something is not right? Explain for the query says the fulltext index is used on the first query (force) but not on the other (ignore) ... but the results are the same. I have NO clue of what to do now... sad

This is the explain WITH force index on the query:

mysql> explain SELECT a.adid, a.catid, a.areaid, a.subject, a.price, a.mileage, a.year, a.timestamp, a.type, a.images, i.filename AS first_image, i.folder FROM ads AS a FORCE INDEX (cs_idx) LEFT JOIN ads_images AS i ON i.adid = a.adid WHERE MATCH (subject, content) AGAINST ('+helt +ny +ouppackat +kamera +med +garanti' IN BOOLEAN MODE) AND a.visible = '1' AND type = 's' GROUP BY a.adid ORDER BY a.adid DESC LIMIT 0, 50;
+-------+----------+---------------+--------+---------+------+------+----------------------------------------------+
| table | type     | possible_keys | key    | key_len | ref  | rows | Extra                                        |
+-------+----------+---------------+--------+---------+------+------+----------------------------------------------+
| a     | fulltext | cs_idx        | cs_idx |       0 |      |    1 | Using where; Using temporary; Using filesort |
| i     | ALL      | adid_idx      | NULL   |    NULL | NULL |    1 |                                              |
+-------+----------+---------------+--------+---------+------+------+----------------------------------------------+
2 rows in set (0.00 sec)

And this is how the index looks on the table:

mysql> show index from ads;
+-------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
| Table | Non_unique | Key_name   | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
+-------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
| ads   |          0 | PRIMARY    |            1 | adid        | A         |        6000 |     NULL | NULL   |      | BTREE      |         |
| ads   |          1 | areaid_idx |            1 | areaid      | A         |           4 |     NULL | NULL   | YES  | BTREE      |         |
| ads   |          1 | catid_idx  |            1 | catid       | A         |           2 |     NULL | NULL   | YES  | BTREE      |         |
| ads   |          1 | type_idx   |            1 | type        | A         |           0 |     NULL | NULL   | YES  | BTREE      |         |
| ads   |          1 | cs_idx     |            1 | content     | A         |        6000 |     NULL | NULL   | YES  | FULLTEXT   |         |
| ads   |          1 | cs_idx     |            2 | subject     | A         |        6000 |     NULL | NULL   | YES  | FULLTEXT   |         |
+-------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
6 rows in set (0.00 sec)

if I dont use "+" in the boolean search and search for only "helt ny ouppackat kamera med garanti" (the table have this frase in every row of the 6000 btw) the query takes about 4 seconds.

Could anyone please suggest anything to do? Im happy if I could even recieve only clues, then I could search further for a solution. Thanks...

/C

97

(142 replies, posted in PunBB 1.2 discussion)

www.garaget.org/forum (only swedish)

Rows: 84736
Size: 5.31 MB

Users (2005-02-01): 5019

Hi!

I want to search in boolean mode in mysql and need to make it user friendly.

Examples of search phrases I want to make:

"apple AND pear NO orange" should give "+apple +pear -orange"
"apple pear NO orange" -> "+apple +pear -orange"
"apple OR pear NO orange" -> "apple pear -orange"
"apple NO pear AND orange" -> "+apple -pear +orange"

and so on....

Any script suggestions?

edit: i dont want the user to be able to write "apple pear orange" and then the search returns everything containing apple pear or orange, a search only for "apple pear orange" should result in a search after "+apple +pear +orange".

99

(23 replies, posted in PunBB 1.2 discussion)

PunBB is now number 4 big_smile

100

(7 replies, posted in PunBB 1.2 discussion)

thanks for your answers.