php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#121072 - 06/28/01 03:28 PM Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
I need some help. I am coding this
How would I get this working?
Code:
code:


<FONT COLOR="#000000" SIZE="1">[ June 29, 2001 10:07 AM: Message edited by: Tech-Ni-Kal ]</font>

Top
#121073 - 06/28/01 03:52 PM Re: Coding Problem..
jordo Offline
Moderator / Developer

Registered: 08/05/00
Posts: 830
i looked real quick so maybe i missed the reason, but...

}
); <---What Is That Doing There?
--> Line 545} else {
_________________________
jordo

Top
#121074 - 06/28/01 04:13 PM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
-------

<FONT COLOR="#000000" SIZE="1">[ June 29, 2001 09:57 AM: Message edited by: Tech-Ni-Kal ]</font>

Top
#121075 - 06/28/01 09:47 PM Re: Coding Problem..
GoTorankusuKu Offline
Member

Registered: 09/29/00
Posts: 1932
You don't use a ; to close an if statement.

Here's an example of a correct coding:
Code:
code:

Top
#121076 - 06/28/01 10:39 PM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
Didnt help at all.

Top
#121077 - 06/28/01 11:04 PM Re: Coding Problem..
GoTorankusuKu Offline
Member

Registered: 09/29/00
Posts: 1932
Just look at the last three line...:o

});}

What's a paranthesis is doing there???

Top
#121078 - 06/29/01 12:23 AM Re: Coding Problem..
jordo Offline
Moderator / Developer

Registered: 08/05/00
Posts: 830
ohhhhhh. i get what your trying to do now. its not gonna work like that cause if you look you have ); in a number of places before when you want to end the stuff that gets put in to the scalar $DropOrImage1. now i imagine that you probobly _might_ be able to do it by just "slashing" out the )s exept for the last one... so all parens until the ending one become ")". im not sure if that will work though. why dont you just use an if or something...
_________________________
jordo

Top
#121079 - 06/29/01 08:52 AM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
jordo I will try what you said. If anyone knows how to re-write it better that would be awesome because I would really like this to work.

Top
#121080 - 06/29/01 08:54 AM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
Someone please help me rewrite it because what jordo said didnt work. frown Sorry man. It says it cant find a string terminator after a ).

Top
#121081 - 06/29/01 08:56 AM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
Quote:
quote:


Notice theres an if statement inside the bigger if statement well the } is to close the smaller if statment and the ); closes the big if statement and the } ends it all.

Top
#121082 - 06/30/01 01:02 PM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
Please someone help

Top
#121083 - 07/01/01 04:48 PM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
PLease SOMEONE?

Top
#121084 - 07/01/01 07:24 PM Re: Coding Problem..
V00D00 Offline
Member

Registered: 06/14/01
Posts: 164
Unrelated, perhaps...but are you still working on that code to do common CP tasks from the forums for admins?

I have another question regaurding that.

Is it possible to put images in a drop down box?
_________________________

Top
#121085 - 07/01/01 07:40 PM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
Yea and it is not possible to have the drop down in the regular board. It will no matter what prompt you to enter your cp info.


I have no clue.

Top
#121086 - 07/01/01 07:48 PM Re: Coding Problem..
V00D00 Offline
Member

Registered: 06/14/01
Posts: 164
Bummer...big time...
_________________________

Top
#121087 - 07/01/01 08:21 PM Re: Coding Problem..
jordo Offline
Moderator / Developer

Registered: 08/05/00
Posts: 830
if you can explain to me what exactly you want it to do ill recode it for ya.
_________________________
jordo

Top
#121088 - 07/02/01 10:31 AM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
Alright.. I want to make it so that for the admin functions on the thread page it would either be a Drop Down Box or Images. I have it already set up in the control panel I just can not get it to work so that if

$CPVariable eq 'yes'

it will show the drop down box

else

it will show images


If you look above I have the coding for the images and drop down box I just need them to work when I put them in an IF statement

Top
#121089 - 07/02/01 10:35 AM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
Image Coding
Code:
code:


Drop Down Coding
Code:
code:

Top
#121090 - 07/03/01 01:02 PM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
jordo - have you tried at all?

Top
#121091 - 07/06/01 01:42 AM Re: Coding Problem..
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Å «
I was thinking.

What if I put the Image Codes and the Drop Down codes in a

sub ImagesAdminFunc {


and a


sub DropDownAdminFunc {


and the use an if statement and $DisplayFunc = "print DropDownAdminFunc"


I dont know how you would show how to print a sub. Some help on my thoughts! Thanks!

Top
Page 1 of 2 1 2 >


Who's Online
1 registered (Ruben Rocha), 25 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks