mybb

PHP XML Extension: Not installed

邮差的信 提交于 2020-12-29 02:40:35
问题 So i'm currently installing mybb and went through a very long tutorial on how to do it. The problem is when I get to the requirements check this shows up How does one go about fixing this? I read that I may need to do sudo apt-get install php-xml I have done this and everything went ok but still doesn't change it to installed. FYI: I have only been using this OS for a few days so please go nice on me :) 回答1: You're close sudo apt-get install php-xml Then you need to restart apache so it takes

PHP XML Extension: Not installed

回眸只為那壹抹淺笑 提交于 2020-12-29 02:35:46
问题 So i'm currently installing mybb and went through a very long tutorial on how to do it. The problem is when I get to the requirements check this shows up How does one go about fixing this? I read that I may need to do sudo apt-get install php-xml I have done this and everything went ok but still doesn't change it to installed. FYI: I have only been using this OS for a few days so please go nice on me :) 回答1: You're close sudo apt-get install php-xml Then you need to restart apache so it takes

SQL Error: 1191 - Can't find FULLTEXT index matching the column list

安稳与你 提交于 2020-01-02 02:52:08
问题 I'm trying to solve this error : 1191 - Can't find FULLTEXT index matching the column list Query: SELECT t.*, t.username AS threadusername, u.username, MATCH (t.subject) AGAINST ('test123 test') AS relevance FROM 123test_threads t LEFT JOIN 123test_users u ON (u.uid = t.uid) WHERE t.fid='2' AND t.tid!='4' AND t.visible='1' AND t.closed NOT LIKE 'moved|%' AND MATCH (t.subject) AGAINST ('test123 test') >= '2' ORDER BY t.lastpost DESC LIMIT 0, 5 whene i try to create a new thread in my

PHP Curly bracket, what's meaning in this code

橙三吉。 提交于 2019-12-23 23:47:34
问题 I have this code (for getting a query from database, in MyBB source): $query = "SELECT ".$fields." FROM {$this->table_prefix}{$table}"; My question is: What's meaning of {$table} ? and what the difference between $table and {$table} (what's meaning of {} )?? Thank you ... 回答1: The braces simply sequester the variable names from the rest of the text (and other variable names). Generally, this syntax is used for consistency's sake; it's sometimes necessary when you have variables that run into

How would I make a image scale with the browser or screen resolution with css

淺唱寂寞╮ 提交于 2019-12-12 03:52:08
问题 I am working on a page for my mybb forum and I added some images and I want them to scale with the screen resolution so if I have a 17" it looks the same as someone with a 19" screen. Because right now the images just look all messed up. Here is the page that I am working on. http://crescentgaming.com/forums/test.php 回答1: In your CSS, use percents. HTML <img src="/folder/whatever.jpg"> CSS img{ width: 45%; } Of course, you could switch it to whatever percent you want. There is a more

Is variable set/defined issue?

房东的猫 提交于 2019-12-12 03:14:49
问题 I'm using a forum software where you can pull up an avatar link using this: {$mybb->user['avatar']} If no avatar is set then nothing is returned. I want to show an image if no avatar is set. Currently the HTML is setup like this: <div id="avatar"><div style="background: url({$mybb->user['avatar']}) center center no-repeat;"></div></div> The outer div is empty and in the background. This one is the one I'm adding a class too (.defaultavatar) so that a default avatar will display. The inner div

#1366 - Incorrect integer value: 'NULL' for column 'cid' at row 1

こ雲淡風輕ζ 提交于 2019-11-28 09:49:29
问题 I have installed MyBB local using XAMPP and it goes smoothly. But when I do it on the server it give me errors. MyBB creates and inserts a lot of data by itself and I found out the errors are in queries like: INSERT INTO... VALUES ('NULL', ...) On my localhost MySQL (which is 5.5.27 for both) accepts this kind of query, where 'NULL' is passed as a String. But in the server it gives an error #1366 as the title says. The problem is that changing the query is not an option since it is A LOT of