Customers SupportDocumentation




Reply
 
Thread Tools
  #1  
Old 10-02-2010, 07:13 PM
Member
 
Join Date: Feb 2010
Posts: 12
Red Carbon - Placeholders for Album pics

Hi MaestroX!
We are using RedCarbon for about two years now (registered users) and we are very satisfied.

We came across a little problem we cannot resolve.

Our site has lots of user pics in their Albums.
Only the registered users can see them.
We do not want to have the unregistered users seeing them.

BUT we need for the unregistered users, to have a placeholder or a certain pic displayed instead of the actual pics in order to inform that there are actual pics there and also for the posts not to look silly from the unregistered users point of view.

We think it can be done with some certain template hack. It would be extremely helpful if you could give us a hand

Thanx in advance!

retromaniax.gr
Reply With Quote
  #2  
Old 18-02-2010, 06:31 AM
Member
 
Join Date: Feb 2010
Posts: 12
Re: Red Carbon - Placeholders for Album pics

MaestroX is it possible?
Reply With Quote
  #3  
Old 21-02-2010, 06:50 PM
vBulletin Skin Zone Staff
 
Join Date: May 2007
Posts: 1,811
Re: Red Carbon - Placeholders for Album pics

Hello,

Apologies for the delay, I've been very busy lately.

You could probably do what you're trying to achieve with a template conditional:

Code:
<if condition="$show['guest']">
    Default/Placeholder Image
<else />
    Real Image
</if> 
In the album template find the image and use the template to show your placeholder image if they are guests.

Hope this helps.
Reply With Quote
  #4  
Old 25-02-2010, 11:46 AM
Member
 
Join Date: Feb 2010
Posts: 12
Re: Red Carbon - Placeholders for Album pics

Thanx a lot for your reply MaestroX.
But I want to have the placeholder displayed inside the post (for the unregistred users viewing).
Am I correct to pressume that I should mess with the Postbit template?

If so, your code is valid in there?

Sorry for the hassle, thanx in advance!
Reply With Quote
  #5  
Old 28-02-2010, 02:20 PM
vBulletin Skin Zone Staff
 
Join Date: May 2007
Posts: 1,811
Re: Red Carbon - Placeholders for Album pics

Find the template postbit_attachmentimage

It should be something like this:

Code:
<img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;d=$attachment[dateline]" border="0" alt="" />&nbsp;
You want to use the conditional to see if the user is a guest (if so, show the default placeholder image), if not show them the real attached image:

Code:
<if condition="$show['guest']">
   Default/Placeholder Image
<else />
<img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;d=$attachment[dateline]" border="0" alt="" />&nbsp;
</if> 
Hope this helps
Reply With Quote
  #6  
Old 09-03-2010, 12:10 PM
Member
 
Join Date: Feb 2010
Posts: 12
Re: Red Carbon - Placeholders for Album pics

MaestroX thanx a lot for your reply.

Unfortunately it is not this template. Whatever I do (even, erase it) the result is the same.

But I think I did not make it clear from the beginning.

In this page, in the first post there are 4 pics
http://www.retromaniax.gr/vb/showthread.php?t=12707
which you cannot see because they are coming from the Albums and you are not a registered user.

The thing I am trying to do is for you (for every unregistrered I mean) to see a certain pic (4 times in this example) that will inform them that there are actually pics in the post but are not visible to the non-registred users.

What is the template I should check?

Thanx a lot MaestroX!
Reply With Quote
  #7  
Old 15-04-2010, 10:33 AM
Member
 
Join Date: Feb 2010
Posts: 12
Re: Red Carbon - Placeholders for Album pics

Bump!
Reply With Quote
  #8  
Old 15-04-2010, 12:56 PM
vBulletin Skin Zone Staff
 
Join Date: May 2007
Posts: 1,811
Re: Red Carbon - Placeholders for Album pics

So are you inserting the pictures via the BBcode given on the album page?
Reply With Quote
  #9  
Old 16-04-2010, 10:29 AM
Member
 
Join Date: Feb 2010
Posts: 12
Re: Red Carbon - Placeholders for Album pics

Yes but nothing changes before and after the code modification.

In the link above ( http://www.retromaniax.gr/vb/showthread.php?t=12707 ), in the first post there are 4 pictures inserted using the BBcode given on the album page that only the registered users can see it.

The thing that I am trying to accomplish is that any unregistred user can see a pic (or four pics in this example) that informs him/her that there are "invisible" pics in the post.

Can you think of something?

Thanx in advance MaestroX!
Reply With Quote
  #10  
Old 22-04-2010, 03:25 PM
vBulletin Skin Zone Staff
 
Join Date: May 2007
Posts: 1,811
Re: Red Carbon - Placeholders for Album pics

Ah I see what you mean now. It's a difficult issue really and at the moment I can't really think of a way round it. As the pictures are just inserted in a BBcode there is no validation to display them.

The only possible way you could get round this is to make all image BBcodes viewable by members only and show a placeholder image to guests.

You could do that?
Reply With Quote
Reply

Thread Tools



All times are GMT. The time now is 03:55 AM.