Guests see no posts

Started by babjusi, May 31, 2009, 01:53:17 AM

Previous topic - Next topic

the_observer

Hi again.

For whoever may concern the solution to the problem i wrote for above has been given by Butcher in Greek smf section.

I translate:

In sort words he says that for AA_NEW_DAMAGE theme to work with Quests see no posts mod,except the manual installation instructions which you have to follow -of course- there is a slight difference.

Edit the file ./Themes/AA _NEW DAMAGE/Display.template.php and find:
<hr width="100%" size="1" class="hrcolor" />
                    <div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>
                        ', $message['body'], '
                    </div>
                    ', $message['can_modify'] ? '<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '';
                   


then replace it with :
';
                    if ($context['user']['is_guest'] && !empty($modSettings['enable_g_see_noposts'])){
      echo'
           <br /><div class="windowbg">',!empty($modSettings['g_see_noposts_custom_message']) ? parse_bbc($modSettings['g_see_noposts_custom_message']) : $txt['default_g_message'],'</div>';
        }else{
      echo '               
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
                     <img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '';
      }   


I did that for my forum (ver.1.1.10) and now the mod is working.

Thank you for reading this.

Regards,
The_Observer.

Kathleen Chute

Quote from: babjusi on May 31, 2009, 01:53:17 AM
Link to Mod

I created this mod with SmokyBlue when someone asked at her forum for such a feature. But since atm, she is tied up with some personal matters I took it on me to submit it here and support it.


What does it do: This mod will not allow the guests to view the posts on a topic. Instead of redirecting them immediately to the log in/register area, this mod takes it a bit further. it actually allows the guests to see a topic but not the contents of the posts themselves inside the topic. For more info, please check the attached screenshots at the download page.

Compatibility: Atm it is compatible only with 1.1.9 and every below version of the 1x1 serie.

Support: If you are using a custom theme that uses its own Displaytemplate.php file, then you must add the codes manually to that file. How to do so, have a look at the mod parser attached under the download package.

Also, please don''t ask questions of the kind that are outside of the mod functionality like how can I make that the guests see only the first post but not the rest, or the second post etc etc. Questions of this kind will be ignored.

Thank you for your understanding :)

German language strings added thanks to Manu0372


Turkish language strings added thanks to dantebyy
Hi I am using SFM 1.1.10.  and I am using digital theme. This mod is not working but it installed fine. I have enabled it but Im not seeing anything. I read this post and my theme doesnt have a Displaytemplate.php. all I have in indextemplate.php
What should I do?
Thank you Kathleen
Watch My Parrot Pray   http://www.youtube.com/watch?v=hcPl_VVDAK8
CharlieO The Praying Parrot Facebook http://www.facebook.com/pages/CharlieO-The-Praying-Parrot/124619550943180
URL http://www.runwiththewild.com  Images That Speak Ur Language
URL http://www.gotchaserved.com Lifetime Directory listing free To the first 1000 members The best way to sell yourself!!
STOP YOUTUBE THEFT PLEASE Sign This Petition http://www.gopetition.com/petition/43302.html
URL http://www.Reptileus.com   Get curious
URL http://www.metennessee.com  Find Out Why
URL www.legalalone.com Doing my best

babjusi

Can I have a link to your forum?

Did you upload the image to your theme''s image directory as well?

Kathleen Chute

Quote from: babjusi on October 29, 2009, 04:45:18 PM
Can I have a link to your forum?

Did you upload the image to your theme''s image directory as well?
www.gotchaserved.com  Also , Im not sure about the image. I did upload the zip file
Thank you for the responce
Kathleen
Watch My Parrot Pray   http://www.youtube.com/watch?v=hcPl_VVDAK8
CharlieO The Praying Parrot Facebook http://www.facebook.com/pages/CharlieO-The-Praying-Parrot/124619550943180
URL http://www.runwiththewild.com  Images That Speak Ur Language
URL http://www.gotchaserved.com Lifetime Directory listing free To the first 1000 members The best way to sell yourself!!
STOP YOUTUBE THEFT PLEASE Sign This Petition http://www.gopetition.com/petition/43302.html
URL http://www.Reptileus.com   Get curious
URL http://www.metennessee.com  Find Out Why
URL www.legalalone.com Doing my best

babjusi

There is an image in my mod package. You should upload it to your custom theme''s image folder.
Also, did you enable the mod after installation?

Kathleen Chute

#45
Quote from: babjusi on October 29, 2009, 04:54:35 PM
There is an image in my mod package. You should upload it to your custom theme''s image folder.
Also, did you enable the mod after installation?
I uninstalled it and reinstalled and It is given me langauge errors, I guess I have to install Manual??
Thank you for creating this mod as Im am too silly to figure this sh&#38;#%t out myself!!!
Thank you
Kathleen

I just installled another mod that did work for me, But I wanted to thank you for being so kind to ansew so quickly .
Thank you
Kathleen

Watch My Parrot Pray   http://www.youtube.com/watch?v=hcPl_VVDAK8
CharlieO The Praying Parrot Facebook http://www.facebook.com/pages/CharlieO-The-Praying-Parrot/124619550943180
URL http://www.runwiththewild.com  Images That Speak Ur Language
URL http://www.gotchaserved.com Lifetime Directory listing free To the first 1000 members The best way to sell yourself!!
STOP YOUTUBE THEFT PLEASE Sign This Petition http://www.gopetition.com/petition/43302.html
URL http://www.Reptileus.com   Get curious
URL http://www.metennessee.com  Find Out Why
URL www.legalalone.com Doing my best

babjusi

You are most welcome :)

Regarding those language errors, you should safely ignore them.

bburg5

#47
I have installed to the DB Theme manually and for some reason it does not show the image or wording for the guest to see. I also do not have any wording in the basic feature area, but I do have the check box and box to write a different message.

SITE

Working Site

bburg5


bburg5


oOo--STAR--oOo

Arghh I see alot of mods i was using all the time for my previous forum are no longer compatible with SMF2.0 RC2

Is there any chance of getting this for RC2 as this was one of the main mods that was very useful
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Bruno36

an update is planned for RC3??
Bruno36 the French
SMF 2.0.9

babjusi

No, sorry guys. My free time is very limited atm.

Advertisement: