Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Forum
:
Discussion
:
Why this cannot work?
Previous Thread
Next Thread
Print Thread
View Threaded
Sep 3, 2002, 6:10 PM
backdream
User
(117 posts)
Sep 3, 2002, 6:10 PM
Post #1 of 8
Views: 2923
Shortcut
Why this cannot work?
I use the code below:
Code:
<%if user_id ne current_user_id%>it's not your post<%endif%>
But it cannot work. It will show the sentence in his posts.
Sep 3, 2002, 7:56 PM
Franco
User
(422 posts)
Sep 3, 2002, 7:56 PM
Post #2 of 8
Views: 2834
Shortcut
Re: [backdream] Why this cannot work?
In reply to
Hi,
Try <%if user_id ne $current_user_id%> ... <%endif%>.
You can use also: <%ifnot user_id eq $current_user_id%> ... <%endifnot%>
François
Sep 4, 2002, 1:35 AM
yogi
Veteran
/ Moderator
(2199 posts)
Sep 4, 2002, 1:35 AM
Post #3 of 8
Views: 2813
Shortcut
Re: [Franco] Why this cannot work?
In reply to
The problem is that you are using 'eq', where you should be using '==' (without the quotation marks).
Ivan
-----
Iyengar Yoga Resources
/
GT Plugins
Sep 4, 2002, 1:43 AM
backdream
User
(117 posts)
Sep 4, 2002, 1:43 AM
Post #4 of 8
Views: 2805
Shortcut
Re: [Franco] Why this cannot work?
In reply to
In Reply To:
Hi,
Try <%if user_id ne $current_user_id%> ... <%endif%>.
You can use also: <%ifnot user_id eq $current_user_id%> ... <%endifnot%>
It's can do. But why add a $ to current_user_id?
Sep 4, 2002, 1:54 AM
yogi
Veteran
/ Moderator
(2199 posts)
Sep 4, 2002, 1:54 AM
Post #5 of 8
Views: 2812
Shortcut
Re: [backdream] Why this cannot work?
In reply to
You have to add a dollar sign ($) in front of the variable if it's on the right hand side of a comparison, i.e.
<%if a eq $b%>
or if it's an argument for a function call, i.e.
<%my_global($c)%>
Otherwise you can just leave the dollar sign away.
Ivan
-----
Iyengar Yoga Resources
/
GT Plugins
Sep 4, 2002, 2:37 AM
backdream
User
(117 posts)
Sep 4, 2002, 2:37 AM
Post #6 of 8
Views: 2833
Shortcut
Re: [yogi] Why this cannot work?
In reply to
Thanks, Where are the forum's documents to make plugin or somthing else?
Sep 4, 2002, 2:41 AM
yogi
Veteran
/ Moderator
(2199 posts)
Sep 4, 2002, 2:41 AM
Post #7 of 8
Views: 2794
Shortcut
Re: [backdream] Why this cannot work?
In reply to
In your forum admin, click "Help" and go to the table of contents. You will find a lot there, especially the "GT Module Documentation" section is very useful.
Ivan
-----
Iyengar Yoga Resources
/
GT Plugins
Sep 4, 2002, 5:56 PM
backdream
User
(117 posts)
Sep 4, 2002, 5:56 PM
Post #8 of 8
Views: 2775
Shortcut
Re: [yogi] Why this cannot work?
In reply to
It's good! Thank you very much!
Previous Thread
Next Thread
Print Thread
View Threaded