vBulletin Modifications

Need a little help with a piece code

Welcome to vBHackers.com! - vBHackers Updates:

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

Reply
 
LinkBack Thread Tools
Old 04-04-2006, 10:48 AM   #1
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default Need a little help with a piece code

Right, what I'm trying to do is the following: add a value ('site_url')to an array($validfields) without modifying the original code.

At first I tried this, and it works fine:

You must first be a registered member to view any code.
However, it's not what I want. I then tried this:

You must first be a registered member to view any code.
but that gives me a parse error:
Quote:
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in c:\apache\htdocs\vbtest\includes\class_dm_ticket.p hp on line 64
I then tried this:
You must first be a registered member to view any code.
which again errors me out:
Quote:
Parse error: parse error, expecting `','' or `';'' in c:\apache\htdocs\vbtest\includes\class_dm_ticket.p hp on line 64
Anyone know what I'm doing wrong?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 04-04-2006, 05:53 PM   #2
vBulletin Guru
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default

You would need to use:

You must first be a registered member to view any code.
Also, you made some spelling mistakes.. site_url and siteurl and sireurl are alot of diffrent things ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-04-2006, 05:58 PM   #3
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Alright thanks, I'll try that .

Yeah the spelling mistakes were just because I was typing quickly.. I couldn't be arsed with looking for the different pieces of code in my backup files and copy pasting it all ^^.




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
What helps you code? harmor Off Topic 17 02-06-2006 02:57 PM
VBB code post file "wmv" for vbb 3.0.9 xmylove General vBulletin Support 0 10-05-2005 03:06 AM
Vb code problem John Mullins General vBulletin Support 4 06-22-2005 09:29 AM
Code Tag - Code Box Size A-FXP-D3LTA General vBulletin Support 2 04-16-2005 10:02 AM


All times are GMT -3. The time now is 04:54 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)