Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #16  
Old 02 Jul 2007, 15:38
Blue182 Blue182 is offline
 
Join Date: Apr 2007
I'm working on a custom page.
I followed this tutorial and everything is working fine. I can also use the $vbulletin->db object on the custom page. But if I try to use it inside a function, it just throws Fatal error: Call to a member function on a non-object in....

This is the code:

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

Reply With Quote
  #17  
Old 02 Jul 2007, 15:40
Guest190829
Guest
 
put the statement:


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

right after


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

This will give the $vbulletin object scope within the function...
Reply With Quote
  #18  
Old 02 Jul 2007, 15:43
Blue182 Blue182 is offline
 
Join Date: Apr 2007
Originally Posted by Danny.VBT View Post
put the statement:


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

right after


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

This will give the $vbulletin object scope within the function...
Ah, thank you very much
Reply With Quote
  #19  
Old 26 Aug 2007, 02:09
Panman Panman is offline
 
Join Date: Dec 2005
What is the method to use if you'd like to execute a DELETE SQL statement?
Reply With Quote
  #20  
Old 03 Sep 2007, 20:25
amnesia623 amnesia623 is offline
 
Join Date: Jul 2006
Real name: Blur
Thank You!

Great stuff...
Reply With Quote
  #21  
Old 25 Sep 2008, 14:54
Come2Daddy Come2Daddy is offline
 
Join Date: May 2008
Great Tutorial, it explained a wide area for me

thanx a lot
Reply With Quote
  #22  
Old 09 Oct 2009, 17:47
MyPornLife.info MyPornLife.info is offline
 
Join Date: Apr 2009
very useful article...tnx
Reply With Quote
  #23  
Old 19 Nov 2009, 20:38
Pudelwerfer's Avatar
Pudelwerfer Pudelwerfer is offline
 
Join Date: Oct 2007
you can use global $db; too an work with $db-> ... instead $vbulletin->db-> ...

But i have another question:

Where can i find all aissigned users of a ticket?

In my db in pt_issueassign is only one id of all assigned users.

For Example - i have 3 users assigned, see all listed on top of the issue, but in the pt_issueassign is only one id. Not special id, think random. Is it me?

It would very helpfully, if anyone can helb me to find all assigned users in the db.

Edit: Oooh i forgot to say, it is a table from the project tools. Wrong Board - Sorry for the mistake -

Thank you, MJ

PS: please sorry for my english

Last edited by Pudelwerfer; 19 Nov 2009 at 20:58.
Reply With Quote
  #24  
Old 05 Mar 2010, 20:16
emath emath is offline
 
Join Date: Sep 2008
thanks alot man it was very helpful
Reply With Quote
  #25  
Old 20 Mar 2010, 03:14
glaive glaive is offline
 
Join Date: Jan 2009
Originally Posted by Panman View Post
What is the method to use if you'd like to execute a DELETE SQL statement?
A quick snippet from my own embedded photo contest software I am writing.

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

Reply With Quote
  #26  
Old 14 May 2010, 08:44
danishravian danishravian is offline
 
Join Date: Mar 2010
Hi,
Can somebody please tell how can i add my own tables to Vbulletin database? any other solution other than accessing phpmyadmin?

i actually need to make my own pages with some add,delete and search functionality.

thanks
Reply With Quote
  #27  
Old 16 May 2010, 19:20
ragtek's Avatar
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
phpmyadmin, any other mysql administration tool or run the query manual
__________________
my addons: http://ragtek.github.com
Reply With Quote
  #28  
Old 26 Aug 2010, 18:49
burn0050 burn0050 is offline
 
Join Date: Sep 2008
Can someone tell me how to find only forum posts? My first thought is to do a join between the forum and post table, with a where statement of where title='Main Forum'. But that seems like a waste (string comparison) - as well as what if someone changes the name of the forum? Is there some bit some where that tells me that a forum is a forum (as opposed to blogs, etc.)?

Thanks!
Reply With Quote
  #29  
Old 09 Nov 2012, 18:57
zero477 zero477 is offline
 
Join Date: Jan 2012
Thanks!!

Thanks!! so much .... god I wish I seen this before !!
Reply With Quote
  #30  
Old 13 Sep 2013, 20:43
d1jsp's Avatar
d1jsp d1jsp is offline
 
Join Date: Aug 2013
What about deleting records? That was not in your guide.
Reply With Quote
Reply



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

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 15:00.

Layout Options | Width: Wide Color: