The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Widgets/HTML

View previous topic View next topic Go down

Widgets/HTML

Post by Nahtan-Syab on April 15th 2012, 4:43 pm

Is it at all possible to take the "Recent Topics" widget and place it on an HTML page without enabling the forum header/footer in the HTML? I'd like just that one widget, or possibly just the coding for it. I really want the recent topics for the forum to be displayed on the HTML I designed as the homepage, but I really, really don't want the header/footer. If this is possible, please let me know.

Thank you.

Nahtan-Syab
Forumember

Posts : 46
Reputation : 1
Language : english

Back to top Go down

Re: Widgets/HTML

Post by LGforum on April 15th 2012, 5:10 pm

The code for it is PHP not HTML so it would be impossible to add the code.

You could load it via Ajax, but thats really ugly and a bad way to do so.

Really... what I'd do is activate the header and footer but hide it. So its like its not there. BECAUSE then you have access to TONS of stuff you can add on your homepage via Javascript.
The Javascript would be clean and fine on the user since there would be no ajax needed or anything.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Widgets/HTML

Post by Nahtan-Syab on April 16th 2012, 12:24 pm

@LGforum wrote:The code for it is PHP not HTML so it would be impossible to add the code.

You could load it via Ajax, but thats really ugly and a bad way to do so.

Really... what I'd do is activate the header and footer but hide it. So its like its not there. BECAUSE then you have access to TONS of stuff you can add on your homepage via Javascript.
The Javascript would be clean and fine on the user since there would be no ajax needed or anything.

How could you hide the header and footer?

Nahtan-Syab
Forumember

Posts : 46
Reputation : 1
Language : english

Back to top Go down

Re: Widgets/HTML

Post by LGforum on April 16th 2012, 8:13 pm

CSS.

Code:

<style>#page-header, #page-footer { display: none }</style>

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Widgets/HTML

Post by Nahtan-Syab on April 16th 2012, 9:23 pm

Do you format css similar to html? I've never known how to use it, but I put the code in and it didn't work. Or maybe I just don't know how to link the css to my html.

Nahtan-Syab
Forumember

Posts : 46
Reputation : 1
Language : english

Back to top Go down

Re: Widgets/HTML

Post by nutsonlizards on April 16th 2012, 9:28 pm

Css goes between the head tag of a html page


nutsonlizards
Forumember

Posts : 59
Reputation : 14
Language : London

http://www.redneckherpsforum.com/forum

Back to top Go down

Re: Widgets/HTML

Post by LGforum on April 16th 2012, 9:50 pm

Its not necessary in the head. Infact you shouldn't even have a HEAD or BODY tag, since your including your forums header and footer which contains the head tag.

You only need to do the HTML necessary for middle of your page.
The style tag can go anywhere and have the same effect.

However the selectors may be wrong for your version. It was more of an example.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum