Jump to content


Block in MKPortal


14 replies to this topic

#1 pre

  • Members
  • 47 posts
  • United States

Posted 25 February 2007 - 12:09 AM

DKC,

I installed a event calendar below and would like to have it in a block on the my site. I put the calendar on my test site in a IFrame but in order to do it that way I had to change the editor from html to bbcode. Is there any other way to put the calendar on the site in some form of a block without switching from html to bbcode?

http://www.nhs1975.o...endar/index.php

#2 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 25 February 2007 - 11:07 AM

pre said:

DKC,

I installed a event calendar below and would like to have it in a block on the my site. I put the calendar on my test site in a IFrame but in order to do it that way I had to change the editor from html to bbcode. Is there any other way to put the calendar on the site in some form of a block without switching from html to bbcode?

http://www.nhs1975.o...endar/index.php
The best way to create blocks for MKPortal is always to create a php file and upload it to the "blocks" directory. This works better than the database-driven blocks in my opinion. But you will still need to use an iframe.


The code will look something like this...

<?php

$content = '
<tr>
<td>
<iframe src="example.php"></iframe>
</td>
</tr>
';

?>



Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#3 pre

  • Members
  • 47 posts
  • United States

Posted 25 February 2007 - 05:02 PM

Is there anyway to stop the vertical scrolling in the IFrame I added scrolling=no but it's still scrolling.

#4 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 25 February 2007 - 06:22 PM

pre said:

Is there anyway to stop the vertical scrolling in the IFrame I added scrolling=no but it's still scrolling.
I am not sure why scrolling="no" is not working for you. You may need to set height and width for the iframe and make sure that the iframe is larger than the calendar.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#5 pre

  • Members
  • 47 posts
  • United States

Posted 25 February 2007 - 10:21 PM

Ok I got the scrolling to stop by changing the cell sizes on the calendar and it looks great on the test site. When I put it on the class site exactly what is on the test site the scrolling is there and at the top of the home page for the site above my header section is about 1/8 " of my background color and ?> When I remove the calendar from the page it looks fine.

Why would that be? haha

#6 pre

  • Members
  • 47 posts
  • United States

Posted 25 February 2007 - 10:32 PM

I got it worked out. Seems like almost everytime I ask a question I find the answer ;)

Thanks for sticking with me DKC

#7 pre

  • Members
  • 47 posts
  • United States

Posted 16 March 2007 - 05:05 PM

http://www.desarrollo-mkportal.org/

I am trying to put the block on my site that entitled {Anuncios y condiciones} that is in
the top middle. The pausescroller script he used is at this url http://www.dynamicdr...2/crosstick.htm

Could you tell me how to accomplished this?

#8 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 16 March 2007 - 05:27 PM

pre said:

http://www.desarrollo-mkportal.org/

I am trying to put the block on my site that entitled {Anuncios y condiciones} that is in
the top middle. The pausescroller script he used is at this url http://www.dynamicdr...2/crosstick.htm

Could you tell me how to accomplished this?
Well really I don't know since I have never seen this script before. But it looks pretty straight-forward. Just follow the instructions.

1. Put the "step 1" code in tpl_main.php in the head section.

2. Put the "step 2" code in a new html block. Of course you will need to set the editor to BBcode in order to enter javascript.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#9 pre

  • Members
  • 47 posts
  • United States

Posted 16 March 2007 - 10:24 PM

Straight forward for you. lol

Thanks again,
pre

#10 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 17 March 2007 - 08:24 AM

pre said:

Straight forward for you. lol

Thanks again,
pre
Try playing around with it. If you have a specific technical question I will try to help if I can. ;)

-=DKC=-

----------------------------
EDIT: Oh, I see that you got it working. Nice.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#11 pre

  • Members
  • 47 posts
  • United States

Posted 19 March 2007 - 09:48 AM

I got it installed it's great. I've been wanting something like this for sometime, never could figure out how to get it to work.

Thanks again,
Randy

#12 elwizard

  • Members
  • 3 posts
  • Spain

Posted 25 March 2007 - 03:55 PM

To pre: if you want more codes like this just tell me. ;)

#13 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 25 March 2007 - 04:12 PM

elwizard said:

To pre: if you want more codes like this just tell me. ;)
lol. Welcome elwizard. I guess you saw the above link to your site in your referral stats. I think that if we would learn to read Spanish better we would learn a lot from your site. :)

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#14 pre

  • Members
  • 47 posts
  • United States

Posted 04 April 2007 - 04:29 PM

Thanks elwizard. I really like your site.

#15 elwizard

  • Members
  • 3 posts
  • Spain

Posted 10 April 2007 - 03:18 PM

Thanks pre ;) You're welcome!
To visible: yes but I guess you know a lot of Spanish and you haven't any problem with it. Better than me English :) ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users