Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Vivvo 4 > Troubleshooting

Troubleshooting Problems, need help? Have a tip or advice? Post it here.

Reply
 
Thread Tools Display Modes
Old 12-03-2008, 09:47 PM   #1
slayer1ss
Guest
 
Posts: n/a
Arrow how to hide admin info in author_info.tpl

my vivvo version is 4.1rc2, right now i m using
Code:
<vte:if test="!{CURRENT_AUTHOR.is_admin}">
to hide author_info on article page if the author is admin... my problem is that one of my friends is also started helping me on adding news to system, i assigned him to trusted writers group and i also need to hide his info on article page... i tried things like below with no luck...

Code:
<vte:if test="!{CURRENT_AUTHOR.is_admin|is_trusted_writer}">

or

<vte:if test="!{CURRENT_AUTHOR.get_id|'x,x'}">
  Reply With Quote
Old 12-04-2008, 08:50 AM   #2
shketuljko
Vivvo Developer
 
shketuljko's Avatar
 
Join Date: Nov 2006
Posts: 2,002
Rep Power: 10
shketuljko is on a distinguished road
Default

Try with this:

HTML Code:
<vte:if test="!{CURRENT_AUTHOR.is_admin}" >
     <vte:if test="!{CURRENT_AUTHOR.is_trusted_writer}" >
           something
     </vte:if>
</vte:if>
__________________
Ola
W i l l c o d e f o r f o o d
shketuljko is offline   Reply With Quote
Old 12-04-2008, 03:42 PM   #3
slayer1ss
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by shketuljko View Post
Try with this:

HTML Code:
<vte:if test="!{CURRENT_AUTHOR.is_admin}" >
     <vte:if test="!{CURRENT_AUTHOR.is_trusted_writer}" >
           something
     </vte:if>
</vte:if>
it didnt work, here is what it looks like( he is in premium member group right now thats why i changed is_trusted_writer to is_premium_member)
Code:
<vte:if test="!{CURRENT_AUTHOR.is_admin}">
     <vte:if test="!{CURRENT_AUTHOR.is_premium_member}" >
	<vte:template>
		<div id="box_users" class="box box_tabs">
			<div class="box_title_holder">
				<div class="box_title">
					<ul class="tabs12">
						<li><as><span><vte:value select="{LNG_AUTHOR_INFO}" /></span></as></li>
					</ul>
				</div>
			</div>
			<div class="box_body">
				<div class="box_content">	
							<vte:template>
								<ul id="box_most_popular">
								<vte:if test="{CURRENT_AUTHOR.picture}">
									<img src="{CURRENT_AUTHOR.get_picture_href}" alt="image" />
								</vte:if>
								<vte:if test="{CURRENT_AUTHOR.www}">
									 <strong><vte:value select="{CURRENT_AUTHOR.get_name}" /></strong><br /><a href="http://{CURRENT_AUTHOR.www}"><vte:value select="{tum_yazilar_icin}" /></a>

									<vte:else>
									<strong><vte:value select="{CURRENT_AUTHOR.get_name}" /></strong><br /><a href="{CURRENT_AUTHOR.get_href}"><vte:value select="{tum_yazilar_icin}" /></a>

									</vte:else>
								</vte:if>
									<vte:value select="{CURRENT_AUTHOR.get_bio}" />
								</ul>
							</vte:template>
				</div>
			</div>
		</div>
	</vte:template>
     </vte:if>
</vte:if>
  Reply With Quote
Old 12-04-2008, 04:35 PM   #4
Alex
Moderator
 
Alex's Avatar
 
Join Date: Oct 2005
Posts: 1,051
Rep Power: 9
Alex is on a distinguished road
Default

Dear God....

Admin -> Preferences -> Users -> Users tab. Just select user roles/groups you'd like to have in "Featured author" box.
__________________
Ya gotta keep your eye on the ball. Eye. Ball. I almost had a gag, son. Joke, that is.
Alex is offline   Reply With Quote
Old 12-04-2008, 05:00 PM   #5
shketuljko
Vivvo Developer
 
shketuljko's Avatar
 
Join Date: Nov 2006
Posts: 2,002
Rep Power: 10
shketuljko is on a distinguished road
Default

@Alex you are right I forgot on that
__________________
Ola
W i l l c o d e f o r f o o d
shketuljko is offline   Reply With Quote
Old 12-04-2008, 05:11 PM   #6
slayer1ss
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Alex View Post
Dear God....

Admin -> Preferences -> Users -> Users tab. Just select user roles/groups you'd like to have in "Featured author" box.
well this is not featured author box this is author_info box in article page however i tried the way you said but that didnt worked with above code too...
  Reply With Quote
Old 12-04-2008, 06:06 PM   #7
casca
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Alex View Post
Dear God....

Admin -> Preferences -> Users -> Users tab. Just select user roles/groups you'd like to have in "Featured author" box.
Dammit you beat me to it!! LOL I didn't see this. I could have answered this one LOL!!
  Reply With Quote
Old 12-04-2008, 06:13 PM   #8
slayer1ss
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by casca View Post
Dammit you beat me to it!! LOL I didn't see this. I could have answered this one LOL!!
yeah but you still have a chance to help me since that didnt work
  Reply With Quote
Old 12-05-2008, 12:20 AM   #9
casca
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by slayer1ss View Post
yeah but you still have a chance to help me since that didnt work
If you are running 4.1 (RC 1 or 2) you just highlight the user groups you WANT to have in the authors section. It is there, and it does work, I use it So perhaps it didn't save?
  Reply With Quote
Old 12-05-2008, 01:30 AM   #10
slayer1ss
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by casca View Post
If you are running 4.1 (RC 1 or 2) you just highlight the user groups you WANT to have in the authors section. It is there, and it does work, I use it So perhaps it didn't save?
i am pretty sure that it saved... also i checked out author_info.tpl on original template from 4.1 rc2 and changed with my template however i really dont understand how it should check if users author_info.tpl should be visible... in original template only code that makes a check is
Code:
<vte:if test="!{CURRENT_AUTHOR.get_id|'1'}">
however this doesnt work even for the user that has the id=1, it just doesnt display anyones author info, i have no idea what the problem might be
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Business hours
Mon-Fri 9:00AM - 6:00PM GMT+1
(Europe)
Telephone Sales
381 11 311-50-20
Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 11:30 PM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.