2010-01-25, 04:10 AM
I think I'm going to start developing this again .. Any suggestions?
Is there documentation for my_date somewhere?
Found it, and used it.
v2 is released. You can search by username. Working on displaying username only if you apply it right ... I need to reword that.
(2009-10-07, 09:37 PM)Tomm M Wrote: [ -> ]Yeah Lee, I have a few pointers if you don't mind.
Program the plugin to accept a variable into the [user] tag. For example, [user="username"]14621[/user], and it would spit out the username. We've been playing around with a twitter-style @Tomm M in a post, which auto-converts the name into a format_name link to their profile. Your mycode-style tag would be a much easier solution, and a great addition to MyBB.
Instead of using date(), could you not use MyBB's my_date? That way, it keeps it within the normal MyBB times and timezones, etc.?
If there are 100 posts to a page, that query will loop 100 times. Is it not easier, therefore, to run a query to grab all the UIDs on a page, add them to an array - then use an IN query to grab the profile info? That way, two small queries would be faster than one big one.
If it's clever, you should be able to systematically replace all [user] tags with the right information with an str_replace (array)...
P.S. If you do want to do this, do you mind if I add it to my new Resources site?...
Is there documentation for my_date somewhere?
Found it, and used it.
v2 is released. You can search by username. Working on displaying username only if you apply it right ... I need to reword that.