vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is there a way to keep thumbnails viewed by all, but photos viewed 'registered only'? (https://vborg.vbsupport.ru/showthread.php?t=241176)

TNCclubman 04-24-2010 03:07 PM

Is there a way to keep thumbnails viewed by all, but photos viewed 'registered only'?
 
I want people to register to view the pics in my albums, but the thumbnails that link to the album are only viewed by the registered users when I post them in the forum. Is there a way to remove the permission check from the thumbnails by editing the template anywhere? I doubt its in the admincp...

TNCclubman 06-03-2010 01:18 PM

someone please help me out with this? I dont want the permission on the thumbnails... I want anyone able to view them even theough the album is set to 'registered users only'

Is it possible?

boduzapho 06-03-2010 06:54 PM

I was able to create an if statement in the template so members could click the thumb and see the full sized image and all others got sent to a signup page.

In --> Template: album_picturebit

<if condition="!$show['guest']">

<a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&amp;pictureid=$picture[pictureid]"><img class="alt2" src="$picture[thumburl]" alt="$picture[caption_preview]" border="0" style="padding:$stylevar[cellpadding]px;<if condition="!$usercss">border:solid $stylevar[cellspacing]px $stylevar[tborder_bgcolor]</if>" $picture[dimensions] /></a>

<else />

<a href="http://xxxxxxxxxx.com/forums/register.php">
<img class="alt2" src="$picture[thumburl]" alt="$picture[caption_preview]" border="0" style=" padding:$stylevar[cellpadding]px;
<if condition="!$usercss">border:solid $stylevar[cellspacing]px $stylevar[tborder_bgcolor]</if>" $picture[dimensions] /></a>

</if>

TNCclubman 06-06-2010 09:36 PM

awesome, so the permission is set to allow unregistered to view... then i edit the template with the above?


All times are GMT. The time now is 07:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01077 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete