Status
Not open for further replies.

ozi

Customer
Hi!

There is one thing that really bothers me.
I've set up donations system on my site where I only run sidebar version. Sidebar is visible to all users (including guests) so everyone can get the feeling about its meaning. Although donation system is visible to everyone, not everyone has permissions to use it - guests shouldn't have no privileges over it so when clicking on it, there a denial of usage. Also, users without permissions can't access any donations lists. This is fine and as it is meant.

But the sidebar still revelas it all. It reveals the donators + donations amount. This is bad... The only way not to show this information is to completely disable sidebar. Is there something I'm doing it wrong or there is something not quite okay with permissions on the sidebar.

Any commentss?
 
That is working as intended, if you don't want guests to see the donators and amounts you would need to edit the dbtech_vbdonate_sideblock_bits template found in the group DragonByte Tech: vBDonate Templates and replace the contents with this:

HTML:
<vb:if condition="$show['member']">
<div class="tr">
	<div class="td" style="border-bottom: {vb:stylevar sidebar_border}; border-left: {vb:stylevar sidebar_border}; padding-bottom: 4px; padding-top: 4px;">
		<vb:if condition="$data[anonymous]=='0'">
			<vb:if condition="$vboptions['avatarenabled']">
				<vb:if condition="!$data[userid]==''">
					<a class="smallavatar comments_member_avatar_link" href="{vb:link member, {vb:raw data}}" title="{vb:raw data.fullusername}">
				</vb:if>
					<vb:if condition="$data['showavatar']">
						<vb:if condition="is_browser('ie')">
							<img width="20" title="" src="{vb:raw data.avatarurl}" alt="" style="margin-bottom:-3px; padding-left:1px;"/>
						<vb:else />
							<img width="20" title="" src="{vb:raw data.avatarurl}" alt="" style="margin-bottom:-3px; padding-left:1px;"/>
						</vb:if>
						<vb:else />
							<vb:if condition="is_browser('ie')">
								<img width="20" title="" src="{vb:stylevar imgdir_misc}/unknown.gif" alt="" style="margin-bottom:-3px; padding-left:1px;"/>
							<vb:else />
								<img width="20" title="" src="{vb:stylevar imgdir_misc}/unknown.gif" alt="" style="margin-bottom:-3px; padding-left:1px;"/>
							</vb:if>
						</vb:if>
							<span style="font-size:{vb:stylevar small_fontSize};">
								<vb:if condition="$data[userid]==''">
									{vb:rawphrase dbtech_vbdonate_guest}
								<vb:else />
									{vb:raw data.username}
								</vb:if>
							</span></a>
						<vb:else />			
							<vb:if condition="!$data[userid]==''">
								<a href="{vb:link member, {vb:raw data}}" title="{vb:raw data.fullusername}">{vb:raw data.username}</a>
							</vb:if>
					</vb:if>
		</vb:if>
		<vb:if condition="$data[anonymous]=='1'">
			<vb:if condition="is_browser('ie')">
				<img width="20" title="" src="{vb:stylevar imgdir_misc}/unknown.gif" alt="" style="margin-bottom:-3px; padding-left:1px; padding-right:1px;"/>
				<span style="font-size:{vb:stylevar small_fontSize};">
					{vb:rawphrase dbtech_vbdonate_anon}
				</span>
			<vb:else />
				<img width="20" title="" src="{vb:stylevar imgdir_misc}/unknown.gif" alt="" style="margin-bottom:-3px; padding-left:1px; padding-right:1px;"/>
				<span style="font-size:{vb:stylevar small_fontSize};">
					{vb:rawphrase dbtech_vbdonate_anon}
				</span>
			</vb:if>
		</vb:if>
	</div>
	<div class="td" style="border-bottom: {vb:stylevar sidebar_border}; border-right: {vb:stylevar sidebar_border}; padding-bottom: 4px; padding-top: 4px; padding-right: 10px;" align="right">
		<vb:if condition="$data[disclose]=='1'">
			<vb:if condition="$vboptions['dbtech_vbdonate_sideblock_currency']">
			<span style="font-size:{vb:stylevar small_fontSize};">
				{vb:raw vboptions.dbtech_vbdonate_sideblock_text}<vb:if condition="($vboptions[dbtech_vbdonate_net_amount])">{vb:raw data.net_total_amount}<vb:else />{vb:raw data.total_amount}</vb:if>  
			</span>
			<vb:else />
			<span style="font-size:{vb:stylevar small_fontSize}; float:right">
				<vb:if condition="($vboptions[dbtech_vbdonate_net_amount])">{vb:raw data.net_total_amount}<vb:else />{vb:raw data.total_amount}</vb:if>  ( {vb:raw vboptions.dbtech_vbdonate_currency} )
			</span>
			</vb:if>
		</vb:if>
		<vb:if condition="$data[disclose]=='0'">  
			<span style="font-size:{vb:stylevar small_fontSize};">
				{vb:rawphrase dbtech_vbdonate_undisc}
			</span>
		</vb:if>
	</div>
</div>
</vb:if>
 
Status
Not open for further replies.

Similar threads

  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
8
Views
4K

Legacy vBDonate

vBulletin 4.x.x
Seller
Mokonzi
Release date
Last update
Total downloads
877
Customer rating
0.00 star(s) 0 ratings
Back
Top