|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| Re: Red Carbon - Placeholders for Album pics
MaestroX is it possible?
|
|
#3
| |||
| |||
| 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> Hope this helps. |
|
#4
| |||
| |||
| 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! |
|
#5
| |||
| |||
| 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]&stc=1&d=$attachment[dateline]" border="0" alt="" /> Code: <if condition="$show['guest']"> Default/Placeholder Image <else /> <img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&d=$attachment[dateline]" border="0" alt="" /> </if> |
|
#6
| |||
| |||
| 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! |
|
#7
| |||
| |||
| Re: Red Carbon - Placeholders for Album pics
Bump! |
|
#8
| |||
| |||
| Re: Red Carbon - Placeholders for Album pics
So are you inserting the pictures via the BBcode given on the album page?
|
|
#9
| |||
| |||
| 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! |
|
#10
| |||
| |||
| 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? |