Current time: 05-24-2012, 04:33 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subforum Bulb 0.6 [UNMAINTAINED]
01-10-2009, 01:52 PM
Post: #21
RE: Subforum Bulb 0.6 [BETA] [SCREENSHOT]
I don't get what I am looking at.

Is it the image?

Cause that is all I can see in the image.

[Image: Chasingu.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
01-10-2009, 02:05 PM
Post: #22
RE: Subforum Bulb 0.6 [BETA] [SCREENSHOT]
Sorry, I have trouble parsing your question. Can you describe your question/problem in more detail?

The purpose of this plugin is explained in the first posting of this thread.

Google SEO | Gravatar | Hooks | HTMLPurifier | Overview | Patches | PluginLibrary
Visit this user's website Find all posts by this user
Quote this message in a reply
01-17-2009, 09:39 PM
Post: #23
RE: Subforum Bulb 0.6 [BETA] [SCREENSHOT]
I installed the Subforum Bulb on my installation, however it didn't go smoothly since I use SQLite. So, rather than demand a fix, I fixed it myself. Cool

The resulting file is actually smaller than the original (!), and it should still work flawlessly on a MySQL installation. (Actually, the original "shouldn't" work on MySQL, if the tables are created the same as they are for SQLite; I fixed some constraint violations in the queries.)

If you get nasty-looking errors when you try to activate the plugin, or if you want to try this patch, grab the .php file from this message. Place it in your inc/plugins directory. (It only replaces the one file in inc/plugins, this is NOT enough to install the plugin; you need the images from the download in the first post!) If you would like to see my changes, grab the .diff from this message. (Unified format.)

Of course, if you try it out, both frostschutz (I assume) and I would be quite interested in your feedback. It would be useful to know: 1) your MyBB version; 2) which database you use; 3) whether this is a new or existing/previous install of Subforum Bulb; 4) whether it worked (if not, an error message would probably be useful). I'd personally be most interested in verifying that my changes work on 1.4.4 with a fresh install of the plugin on a MySQL database.

For those interested in a changelog of my changes:

* Fixed constraint violations. (Adding NULLs to columns which are auto-incrementing.)
* Fixed SQL queries to be more robust. num_rows() always returns 1 with PDO (SQLite), and my previous experience is that it's inconsistent on MySQL, as well. It now uses a SQL query to find how many rows before starting (I believe that the PDO docs now recommend this approach).

Possible outstanding bugs I noticed:

* I believe that if there's multiple rows in the settingsgroup table for subforumbulb for whatever reason, the original code will use the first row found and mine will use the last. It would probably be better for the plugin to say "WTF, fix this before I start!" or something. Considering that there's two settings, I'm not terribly concerned that people may need to reconfigure the plugin.


Attached File(s)
.php  subforum_bulb.php (Size: 27.9 KB / Downloads: 60)
.diff  subforum_bulb.php.diff (Size: 4.46 KB / Downloads: 52)
Find all posts by this user
Quote this message in a reply
01-18-2009, 12:53 PM
Post: #24
RE: Subforum Bulb 0.6 [BETA] [SCREENSHOT]
Moved to Discussion & Support by request.

Download My Plugins
My Personal Site - Twitter
[Image: eX4bjF]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-23-2009, 10:48 AM
Post: #25
RE: Subforum Bulb 0.6 [BETA] [SCREENSHOT]
Interesting.. I'll have a further look at it.
Find all posts by this user
Quote this message in a reply
02-24-2009, 02:56 PM
Post: #26
RE: Subforum Bulb 0.6 [BETA] [SCREENSHOT]
very good, Thankyou
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication