vBulletin Modifications

tcl / php interaction

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 08-16-2005, 03:00 PM   #1
Charter Member
Sphinx's Avatar
Join Date: Jul 2004
Sphinx is on a distinguished road

Default tcl / php interaction

hey folks, was hoping someone might clue me in on a little issue that im drawing a blank on. what ive done is written a collection of tcl scripts to pull data off of my board and show it to the channel. thats no problem, everything functions just as i want it to. however, my question is more of a style issue. check out a small snippet of what ive got (its based upon the last releases tcl script posted on this board):

You must first be a registered member to view any code.
and so this is iterated to give all results and gets sent to the irc channel thru the tcl script. my problem is, is the last portion of the echo as you can see is the LF (\n definition). when my last result is returned i always wind up with an extra line feed echoed into irc. my question is, is there any possible alternative to make this work (either change PHP or TCL script) to make it so that there are no extra line feeds at the end of the returned results?

thanks all, appreciate your help

--Sphinx




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-16-2005, 05:28 PM   #2
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

i guess based on the above ill go with the only way i can think of.

Im assuming $query has some sort of limit so I would first have above

while( $row = mysql_fetch_object($query) ){

i would add somthing like:
You must first be a registered member to view any code.
inside the while but at the end before the } I would have
You must first be a registered member to view any code.
ok now assuming your limit is 10 id do this replace:

You must first be a registered member to view any code.
with

You must first be a registered member to view any code.
This might not be perfect cos i wrote it in the quickreply box but should do what your asking for I guess.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2005, 08:44 PM   #3
Charter Member
Sphinx's Avatar
Join Date: Jul 2004
Sphinx is on a distinguished road

Default

thanks for the tip SA, knew youd be around to help everythin workin like a charm mate! thanks again.

--Sphinx




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php tcl eggdrop - repost DeadGaze General vBulletin Support 14 03-25-2006 07:20 AM
php tcl eggdrop question DeadGaze General vBulletin Support 7 03-24-2006 11:32 AM
how can i get the user id and username just with PHP? AnoxiA General vBulletin Support 12 02-04-2006 04:21 PM
PHP Vulnerabilities in <= 4.3.9 and <= 5.0.2 Junior Announcements 0 05-11-2005 06:19 AM
[JOB OPENINGS] Web, Logo and Banner Designer, vBulletin skiners and PHP Coder needed! rockwilder Off Topic 1 02-21-2005 12:17 AM


All times are GMT -3. The time now is 01:18 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)