Help Embedding Google Calendar AFTER login page

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
jmorrow1906
Registered User
Posts: 3
Joined: Fri Jun 29, 2018 1:20 am

Help Embedding Google Calendar AFTER login page

Post by jmorrow1906 »

Hello All,

I have embedded the calendar on my forum page and it is working fine. The problem is given it is embedded, it is parent so it shows even on the front page.

What I would like to do is figure out the way to hide the calendar for only members to see. I want it to be big and beautiful ONCE you have signed into the forum.

Can anyone help me with this?
Last edited by HiFiKabin on Fri Jun 29, 2018 3:38 pm, edited 1 time in total.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: Help Embedding Google Calendar AFTER login page

Post by Mick »

What calendar, how have you embedded it and where using what code and what instructions did you follow? Also, what does this have to do with custom BBCodes? More information please, a link to your board may help so we can see.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
jmorrow1906
Registered User
Posts: 3
Joined: Fri Jun 29, 2018 1:20 am

Re: Help Embedding Google Calendar AFTER login page

Post by jmorrow1906 »

Firstly, very sorry if I put this in the wrong section. I have been trying my best to find it so I thought maybe its some I need to customize.

I am literally pulling the google calendar iframe and embedding it within the index_body.html file. The problem is it shows on the front page of my forum when I really didnt want it to be seen until after members have successfully signed in.

The instructions I followed were from viewtopic.php?f=46&t=1585475 which places the calendar in the perfect location, I just want to hide it until members have signed in.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6673
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Help Embedding Google Calendar AFTER login page

Post by HiFiKabin »

If you put

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
on an empty line BEFORE the calender code and

Code: Select all

<!-- ENDIF -->
on an empty line AFTER the calendar code then only logged in members will be able to see it.

REMEMBER to backup the file before editing it and purge the cache after uploading.
jmorrow1906
Registered User
Posts: 3
Joined: Fri Jun 29, 2018 1:20 am

Re: Help Embedding Google Calendar AFTER login page

Post by jmorrow1906 »

Thank you so much!!!

Now I just to get this thing to fit mobile phones properly. Looks great on laptop, but calendar way too big for phone.

Again,

Thank you all so much for the quick response.
Post Reply

Return to “phpBB Custom Coding”