Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Apr 2002, 01:37
Orlandu's Avatar
Orlandu Orlandu is offline
 
Join Date: Apr 2002
command help

I know there must be some sort of command that only selects a certain number of characters from a mySQL table. I see it in action on the search page for the forums. It only gets the first bit of the post, and then puts ...

How can I do this for something else?
__________________
Founder of FFAlexandria
Visit my forums.
Reply With Quote
  #2  
Old 24 Apr 2002, 04:31
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Orlandu, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #3  
Old 24 Apr 2002, 06:55
Orlandu's Avatar
Orlandu Orlandu is offline
 
Join Date: Apr 2002
But I'm not liscensed yet. This is a PHP forum anyway, what does it have to do with registering? I plan on buying one, just haven't gotten the money yet.

This question doesn't really relate to vB anyway, just PHP. I only noticed that vB used it and it was a great example of what I wanted.
__________________
Founder of FFAlexandria
Visit my forums.
Reply With Quote
  #4  
Old 24 Apr 2002, 07:06
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
This is a PHP forum for vB owners. Plus I noted in another thread that you already admit to having an illegal copy of vB, albeit you say you're not running it on any sites just yet and you plan to buy it soon.

http://www.vbulletin.org/forum/showt...911#post243911
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #5  
Old 24 Apr 2002, 13:25
Orlandu's Avatar
Orlandu Orlandu is offline
 
Join Date: Apr 2002
Well, atleast I didn't use it anywhere. I wanted to do the right thing, so I told everything straight forward. In a few weeks, I will have a legal vB license. I just wanted a little help with PHP. Sorry I even asked.
__________________
Founder of FFAlexandria
Visit my forums.
Reply With Quote
  #6  
Old 24 Apr 2002, 16:32
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Yep, and I commend you for your honesty. Of course once you purchase vB you'll report the site where you downloaded the illegal copy, right?

P.S. You might want to search for an answer in the MySQL forum at vbulletin.com. There are a lot more messages there and it's possible your question has come up before.
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #7  
Old 24 Apr 2002, 16:45
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Just to answer your question, it's LEFT().
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #8  
Old 24 Apr 2002, 21:34
Orlandu's Avatar
Orlandu Orlandu is offline
 
Join Date: Apr 2002
So how would that work? Like say I want a news script. And in this script I want it to have only a portion of the news message displayed, and a full story link. How would i only select X amount of characters from the given table?
__________________
Founder of FFAlexandria
Visit my forums.

Last edited by Orlandu : 24 Apr 2002 at 21:36.
Reply With Quote
  #9  
Old 24 Apr 2002, 21:41
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
I believe this is exactly how the PluhNews hack works.
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #10  
Old 24 Apr 2002, 22:46
Orlandu's Avatar
Orlandu Orlandu is offline
 
Join Date: Apr 2002
Sure there are plenty of news scripts out there, but I want to have my own. Mainly so it is totally custom to my site, and so I can say I wrote my own news script
__________________
Founder of FFAlexandria
Visit my forums.
Reply With Quote
  #11  
Old 25 Apr 2002, 10:58
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
The MySQL docs are your friend. It's either LEFT(fieldName, length) or the other way around, just experiment.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #12  
Old 25 Apr 2002, 13:46
Orlandu's Avatar
Orlandu Orlandu is offline
 
Join Date: Apr 2002
Thank you so much. I will look for it, but atleast I have a general idea now. You can lose this if you want cause I got what I needed. Also, this my help in a hack I want to create aswell.
__________________
Founder of FFAlexandria
Visit my forums.
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
IRC /me command El_Muerte vBulletin 3.5 Add-ons 3 05 Feb 2010 20:00

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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 02:24.

Layout Options | Width: Wide Color: