Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Acmlmboard support?.
Acmlm's Board - I2 Archive - Acmlmboard support? - hiding links | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
SyntaxLegend

Double metal axe
Level: 25

Posts: 28/222
EXP: 78264
For next: 11356

Since: 04-21-04
From: Australia

Since last post: 20 days
Last activity: 10 hours
Posted on 06-05-04 04:31 PM Link | Quote
how can i hide the links which say Logout | C-Panel, this is my board. when ever i try it. it goes, Parse Error in layout.php on line XXX
Cymoro
PATRICK DUFFY WILL LASER YOUR SOUL


Level: 67

Posts: 620/2216
EXP: 2549743
For next: 43129

Since: 03-15-04
From: Cymoro Gaming

Since last post: 6 hours
Last activity: 4 hours
Posted on 06-05-04 04:44 PM Link | Quote
if($loguser[powerlevel]>2) $headlinks="<a href="URL">CPanel</a> | $headlinks";

Insert thst between lines 143 and 144. They should be 'mysql_query("UPDATE users' and '}else mysql_query("INSERT'. What that does is it inserts the link CPanel before all the $headlinks. Since the first $headlink is Logout, it'll look like this:

CPanel | Logout | Edit Profile | Avatars | Etc.
SyntaxLegend

Double metal axe
Level: 25

Posts: 29/222
EXP: 78264
For next: 11356

Since: 04-21-04
From: Australia

Since last post: 20 days
Last activity: 10 hours
Posted on 06-05-04 08:06 PM Link | Quote
you were close they were on 136 and 137. any way. thanx
ErkDog

Fuzz Ball
Level: 47

Posts: 601/982
EXP: 752190
For next: 14013

Since: 03-15-04
From: Richmond, VA

Since last post: 40 days
Last activity: 19 days
Posted on 06-11-04 04:13 AM Link | Quote
that code is wrong....

you need to do .= not =

the .= tells it to append to the end....

so you can simply put......

if($loguser[powerlevel]>2) $headlinks.="<a href=URL>Text</a>";

and you shoudnl't put quotes around the URL cause you have to escape them with \ which is annoying
Cymoro
PATRICK DUFFY WILL LASER YOUR SOUL


Level: 67

Posts: 661/2216
EXP: 2549743
For next: 43129

Since: 03-15-04
From: Cymoro Gaming

Since last post: 6 hours
Last activity: 4 hours
Posted on 06-11-04 04:23 AM Link | Quote
Originally posted by ErkDog
that code is wrong....

you need to do .= not =

the .= tells it to append to the end....

so you can simply put......

if($loguser[powerlevel]>2) $headlinks.="<a href=URL>Text</a>";

and you shoudnl't put quotes around the URL cause you have to escape them with \ which is annoying


Let's attack these problems you're complaining about one at a time, shall we?

I put URL in quotes because that's how I usually represent stuff like that. Example:

<table height="HEIGHT">

See that? You don't ned to put it in quotes. Hell, I never use quotes in actual HTML. Just for representation.

As for .=, so what? I put it at the beginning of headlinks.

All the code I posted works at my board (Admin panel, though), so don't say it's wrong.
Modereb

Paragoomba
Level: 15

Posts: 16/75
EXP: 14749
For next: 1635

Since: 06-04-04

Since last post: 350 days
Last activity: 339 days
Posted on 06-11-04 09:18 AM Link | Quote
You use $var.= if you want to 'add' something to a $var.

As for quotes, all attributes are supposed to be quoted if you want to have proper, valid (X)HTML.
Cymoro
PATRICK DUFFY WILL LASER YOUR SOUL


Level: 67

Posts: 664/2216
EXP: 2549743
For next: 43129

Since: 03-15-04
From: Cymoro Gaming

Since last post: 6 hours
Last activity: 4 hours
Posted on 06-11-04 06:07 PM Link | Quote
Originally posted by Modereb
You use $var.= if you want to 'add' something to a $var.

As for quotes, all attributes are supposed to be quoted if you want to have proper, valid (X)HTML.


That's only if you want to add it to the end. .= merely says that something is being added to the end of it.
Modereb

Paragoomba
Level: 15

Posts: 19/75
EXP: 14749
For next: 1635

Since: 06-04-04

Since last post: 350 days
Last activity: 339 days
Posted on 06-12-04 04:32 AM Link | Quote
Um, yeah, that's what I said, no?
Cymoro
PATRICK DUFFY WILL LASER YOUR SOUL


Level: 67

Posts: 668/2216
EXP: 2549743
For next: 43129

Since: 03-15-04
From: Cymoro Gaming

Since last post: 6 hours
Last activity: 4 hours
Posted on 06-12-04 07:32 AM Link | Quote
Originally posted by Modereb
Um, yeah, that's what I said, no?
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Acmlmboard support? - hiding links | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.008 seconds.