MyNetwork and xThreads/PHP in Templates

← General Support — Started 12 Aug, 2010

A-ha, school boy error.

Code:
{$network->relative_time($post['dateline'], true)}
0  
Reply
New error!!

Code:
Fatal error: Call to a member function relative_time() on a non-object 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:
{$GLOBALS['network']->relative_time($post['dateline'], true)}

Forgot about scope... Shy
0  
Reply
Yay that worked, thank you Tomm.
[Image: leelink.gif]
0  
Reply
leesester
8 Feb, 2011, 5:15 am (This post was last modified: 8 Feb, 2011 7:18 am by leesester.)
Hi Tomm (waves big scary XThread spider at Tomm)

ZingaBurga has released an update to XThreads over on MYBBHacks. For the first time ever I was unable to flawlessly upgrade XThreads. I went over to MYBB hacks and reading the posts there there is still a conflict between MyNetwork and XThreads on upgrade. I was unable to get XThreads to upgrade as it went into MYSQL error, even with MyNetwork deactivated. I don't really want to uninstall MyNetwork, but I have run the upgrade process on two test forums WITHOUT MyNetwork, so I do think it is related. Another XThreads/MyNetwork user also reported issues with upgrading.

Sorry to be the bearer of bad news. But maybe with 1.1 it will all be ok. Smile
[Image: leelink.gif]
0  
Reply
It's OK, getting MyNetwork to run alongside xThreads is pretty important so I'd like to see what the problem is. I've read that it's something to do with the Profile System, but nothing specific (an error, or screenshot of why the upgrade doesn't run).

The worst part is that the error happens even if MyNetwork is deactivated - this should not happen (ever), as MyNetwork's files and plugin hooks are completely removed during this process. Which leads me to think that it's got nothing to do with it at all.

I'll have a look though. What error did you get when you upgraded?

(Also, did you get my email?)
0  
Reply
leesester
8 Feb, 2011, 9:25 am (This post was last modified: 8 Feb, 2011 9:52 am by leesester.)
Hi Tomm

Well, here is the weird thing - I dont HAVE the profile system on leefish.... remember I was waiting for the activity tab so I could transfer my plugins? So I never installed it there.

The mysql error was odd - it was trying to insert a row into table but it was already existing (that was the error - trying to alter table mybb_forums but cannot insert field X as already exists). I deleted the rows from the forums table that it could not insert, but it just got stuck in a loop. I may be doomed to never install XThreads1.4 on leefish Smile

I thought I would wait for the 1.1 of Network before panicking too much.

Yes - I got the email - sorry - was in spam (I have made you NONE spam now). Did a little practice, but I think I need to review the plugin that I am trying to refresh - the ajax refresh kicked in and kind of broke the front page - its as if it refreshed the WHOLE portal inside itself.... it looked very odd. I had the header and all the side panels INSIDE the normal page layout. When I reloaded the page it was fine - and then POW - blew up again on the next ajax call. Its not a problem that updator and updator2 are on the same page both trying to refresh portal is it? I have not got so far as to combine the file - baby steps.
[Image: leelink.gif]
0  
Reply
Hmm, I might need to practice a bit more with that javascript. Shy

The test you did, was it with the plugin that originally came with the updator? Part of the the script requires an element ID to replace, which I think is where you're going wrong. In the plugin, we use 'attachment_gallery', which is the ID of the table we're replacing. The content from a plugin should replace it while keeping the same ID name.

A MySQL error is very specific, and I'm not too sure any MyNetwork modules or features actually touch the mybb_forums table either. I've just done a quick test, and although I haven't modified xThreads, I can definitely upgrade to it using Core 1.0 and the Profile System. It doesn't seem to be MyNetwork's problem... Undecided
0  
Reply
leesester
8 Feb, 2011, 2:31 pm (This post was last modified: 8 Feb, 2011 2:34 pm by leesester.)
well, I realised that was the case, so I changed the ID and the method names (in the plugin and the js) using Notepad++ to do a find replace so I did not miss any. It DOES work - it refreshed - it just refreshed it in an unusual way Smile

Its probably my portal layout - I need to revisit it really, its a phantasmagoria of nested tables and unused css (made it a long time ago Tongue).

BUT - exciting news(ish) - I have a client!! Well, not a real client - will be paid in beers, but its a website I am making for a friends wedding. I am using mybb and XThreads and page manager and some of the scriptaculous you showed me to help me along and its looking pretty nice (IMO). So I am really busy with that right now, sort of neglecting LeeFish.nl a little bit while I get this done.....

A notifications feature so that they can see that their name has been mentioned in a post etc would of course be uberslick (hint)

After I have finished this site I have a request for you to help me out with a really COOL downloads tracker graphical display thingy that will just blow your socks off. I just need some help to get my (working) code INTO mybb....

Re XThreads and MYNetwork - well, as you can guess I am TERRIFIED of "breaking" LeeFish by trying to force XThreads 1.4 onto it - especially as I am busy with my client (am really proud) and can't give it the full attention it deserves - but once I have this out of the way then I will have another go at upgrading to 1.4.
[Image: leelink.gif]
0  
Reply
(8 Feb, 2011 2:31 pm)leesester Wrote:  A notifications feature so that they can see that their name has been mentioned in a post etc would of course be uberslick (hint)

It's coming, honest!

Congrats on the first client, I'm sure it'll be the first of many beer paid works. I remember those back in the day! The graphical display sounds cool, so just feel free to let me know when you're ready. Big Grin

I'll keep an eye on MyBB Hacks and see if anything crops up there.
0  
Reply

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