Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Sep 2005, 08:33
mark99 mark99 is offline
 
Join Date: Oct 2002
Updating PM Data Mod to vB3.5

Using code from some other mods over past vB versions, cleaned up a little and rounded down, I created this simple OUTPUT.php file that worked fine under v3.0.x:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Obviously this won't work under vB3.5.0 RC3 and gives the following error:

Fatal error: Call to a member function on a non-object in /homepages/forum/OUTPUT.php on line 26
Being a novice at PHP and given how confused I am with the new vB3.5 code design, can anybody help or advise me on how this program can be updated so that it functions. The correct output, when working, should be something akin to and goes on a non-vB page through SSI:

Welcome: USERNAME - New Messages: ? (? Total)
----------------------------------------
Reply With Quote
  #2  
Old 14 Sep 2005, 08:44
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Sorry, but what the hell is this Code supposed to to?
A table privatemessage doesn't even exist in vBulletin (not in 3.0 and not in 3.5).

I can only assume you want to show the amount of total/unread PMs.
Then you don't need any of the Queries:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #3  
Old 14 Sep 2005, 11:29
mark99 mark99 is offline
 
Join Date: Oct 2002
Like I say, edited from a much older mod =) and your code works fine thanks. However you could of achieved that without swearing at somebody just looking for help.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:17.

Layout Options | Width: Wide Color: