TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 562
  • Total: 562

[Block] Multi Tab Block! (new)

Started by dimdom, January 12, 2009, 07:13:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dimdom

#30
OK, guys, I need serious help with this one...

I am trying to change the container code for the php blocks inside infopanel2.php , in order to show the same info but inside this container...


I havent a clue how to add php code in an html script...

Can someone give me an example with this infopanel2.php file?

I will really appreciate any help...


JPDeni

QuoteI havent a clue how to add php code in an html script...

You can't. You have to start with a php block and put your html into it.

You should be able to just use that file, except that you need to remove the


<?php


from the beginning and the


?>


from the end.

dimdom

JPDeni, I guess that you havent even check the file that i have attached or the link for the container...

In the attached file you will see what do I mean (there is already a script that holds php code).

What I am asking, can be done.

I just can find the right syntax since I dont know php.

JPDeni

QuoteI guess that you havent even check the file that i have attached or the link for the container...

As a matter of fact, I looked at them both.

QuoteIn the attached file you will see what do I mean (there is already a script that holds php code).

No. There is php that holds javascript. Here's a clue. The file is called "infopanel2.php". That means that it is a php file.

QuoteWhat I am asking, can be done.

Can what be done? Adding php to html code? No. It can't be done. What can be done is to add html to php code, which is what the file contains that you attached to your post.

QuoteI just can find the right syntax since I dont know php.

The right syntax for what? You haven't said what it is that you want to do. What code are you wanting to add and what code are you wanting to add it to? If you're wanting to add the Dynamic Drive code to the php code that you attached, then, just as in the file you attached, put it into an "echo" statement:


echo 'put html here';


You can see the pattern for how to do it in the file you attached. Have you looked at that file?

dimdom

Ok, I think that i might have used the wrong words...

I would like to add this script to infopanel2.php file, so it will have the tab look that this script provides and not the one that is showing now in my site (which can be seen as a front page center block, below the rotating images block)


dimdom

QuoteYou can see the pattern for how to do it in the file you attached. Have you looked at that file?

Very well, since I am the one that mixed all these excellent (and not mine) codes together.  :)

But I can not find the right way to change it to this new look...

Freddy

The menu system you link to is simply that - it's just a menu system - it does not provide tabbed content.

Is it just the 'look' of the menu buttons that you are wanting to change ?

dimdom

#37
QuoteThe menu system you link to is simply that - it's just a menu system - it does not provide tabbed content.


Yes, but you can make the php blocks showing inside the content tabs.



QuoteIs it just the 'look' of the menu buttons that you are wanting to change ?


Take a look at this page: http://www.dpgr.gr/  At the top right. I de like to give you an idea of what i am after but as a center block in frontpage...

Freddy

#38
OK, so you don't want the sub-menu then ?

That example helps but it looks very like what you already have, so I am assuming you just want to copy the way the tabs look when they are selected ?

BTW, this is just to clarify what you want.  At the moment, I will not be able to do anything as JPDeni may already be working on this...

Edit : so I assume you want the tabbed content to show when you hover over the tabs too ?  Rather than clicking on the tab to show the content ?

JPDeni

QuoteJPDeni may already be working on this...

Go with it, freddy. You have a better handle on what he wants than I do.

This website is proudly hosted on Crocweb Cloud Website Hosting.