ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Very cool new SMF (simplemachines.org forum software) mod: Tags

<< < (2/2)

Veign:
Its all ready if you want it.

Right now it:
- Uses SimplePie as the feed parser
- Pulls requested feeds from a DB table (feed url, board id, member id)
- Uses some very basic configuration settings in the php file to control the look of the post

Being used on this forum:
http://www.scarymind.com/index.php?board=26.0

mouser:
Looking fantastic veign!

Veign:
I posted thde code to:
http://www.veign.com/vrc_codeview.asp?type=web&id=47

If you get a chance to test it please let me know if there are any improvements that should be made. (one thing I will be adding is a method that updates a date/time stamp of when a feed was last pulled).

mouser:
That's great stuff veign!  I can definitely see using that on dc, just have to think about where to put it and how, and give you a few weeks to make sure it doesnt destroy your server  ;)

One suggestion:
most smf mods that have php scripts that add to a database table dont require that they be edited to provide password, but instead just include settings.php and make the call to an smf database access function, which i think makes sense.

for example:


--- Code: PHP ---include_once ("../Settings.php");$dbcon = mysql_connect($db_server, $db_user, $db_passwd);mysql_select_db($db_name) or die(mysql_error());$result = mysql_query("CREATE TABLE `{$db_prefix}dc_blogentries` (itemid MEDIUMINT NOT NULL AUTO_INCREMENT,PRIMARY KEY(itemid));");

Veign:
I have already changed the code to have the DB settings removed.  Its a bit cleaner now. I still have to add the time/date stamp function at the end.

Any other suggestions are greatly appreciated.

PS: Great PHP highlighter script.  Will be looking at using that somewhere.

Navigation

[0] Message Index

[*] Previous page

Go to full version