MyNetwork and xThreads/PHP in Templates

← General Support — Started 12 Aug, 2010

Yeah I've been taking a look at the two problems Lee. I'll hopefully have a good answer tomorrow!

Sorry I've been focussing on getting the Profile System core out onto here. I really do hate this theme sometimes... Confused
0  
Reply
OMG - profile stuffs are here!! (Lee runs off to play with it)
[Image: leelink.gif]
0  
Reply
Tomm
19 Aug, 2010, 12:46 pm (This post was last modified: 19 Aug, 2010 12:47 pm by Tomm.)
(19 Aug, 2010 8:28 am)leesester Wrote:  OMG - profile stuffs are here!! (Lee runs off to play with it)

Just the core, there isn't any features plugged in yet. Surprisingly, it's got a lighter footprint than the normal MyBB profile (it loads 1 more query, but loses 26 templates). More will be added when I get a chance to test things out properly.

I've also fixed the post reputation in the first post error with xThreads. If you re-download Post Reputation and replace the files you'll be good to go, but please test it and let me know how it goes.

Post Reputation Download
0  
Reply
Am testing now Tomm. In the meantime here is something to speedup any hair loss all my questions my be causing - shall be looking at installing this theme

http://mods.mybb.com/view/realize-1-6

Notice how he gets round the old css buttons dilemma?

Big Grin
[Image: leelink.gif]
0  
Reply
It's not the CSS buttons that's the downfall - it's the triangular and rounded corners of the thead! They move around with different browsers and different content because they rely on :before and :after.

Meh, just means I have to make a new theme!
0  
Reply
leesester
19 Aug, 2010, 3:44 pm (This post was last modified: 19 Aug, 2010 3:47 pm by leesester.)
Hi - I have tested the new file for post reputation buttons showing on first post - its all working great.

Just a suggestion really - is there any way to have a users post reputation show on the profile- this post reputation thing is actually VERY close to an inbuilt thanks system if you see what I mean.

Also, while I am making suggestions - one of the things I really loved about MyTracker was the whole posting a comment in a facebox. It was indeed awesome. Are you thinking of adding that kind of thing to the MyNetwork as a module?
[Image: leelink.gif]
0  
Reply
Tomm
19 Aug, 2010, 4:01 pm (This post was last modified: 20 Aug, 2010 7:34 am by Tomm.)
That's awesome post rep works - just a quick note, Relative Time will not work, you can do this in the postbit_first template though:

Code:
{$GLOBALS['network']->relative_time($post['dateline'], true)}

Post reputation will be extended into the profile (at least, MyNetwork's Profile System). It will also be getting built into the reputation area of MyBB. The problem is I don't quite know how to build it into the profile just yet, and I want to see what bugs it causes first! Tongue

Do you mean posting comments via the profile? Yes, it will be in a modal box (the same modal box used in the ACP). Smile

Edit: Updated code for Relative Time
0  
Reply
leesester
19 Aug, 2010, 5:23 pm (This post was last modified: 19 Aug, 2010 5:28 pm by leesester.)
(19 Aug, 2010 4:01 pm)Tomm Wrote:  Do you mean posting comments via the profile? Yes, it will be in a modal box (the same modal box used in the ACP). Smile

No, I mean like post reply - so you hit post reply on a thread and TA-DAH - up comes the facebox. It might be neat for those threads where you just want a small comments area - like my downloads forum Smile On profile comments is also a good idea - I had not thought of that.

Re the first post thing and relative time - I think I may be doing it wrong:

Code:
        <tr>
            <td class="tcat">
                <div class="float_left smalltext">
                    {$post['postdate']}, {$post['posttime']}{$network->relative_time('$post['dateline']', true)}<span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                </div>
                {$post['posturl']}
            </td>
        </tr>

Its giving me this error:

Code:
Parse error: syntax error, unexpected T_STRING in /customers/leefish.nl/leefish.nl/httpd.www/mybb/inc/functions_post.php(635) : eval()'d code on line 9

[Image: leelink.gif]
0  
Reply
Code:
{$network->relative_time('{$post['dateline']}', true)}

Try that instead... Smile
0  
Reply
Hi Tomm, same result Sad This is the error message

Code:
Parse error: syntax error, unexpected T_STRING in /customers/leefish.nl/leefish.nl/httpd.www/mybb/inc/functions_post.php(635) : eval()'d code on line 9

[Image: leelink.gif]
0  
Reply

User(s) browsing this thread: