The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Widgets/HTML

3 posters

Go down

Widgets/HTML Empty Widgets/HTML

Post by Nahtan-Syab 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.
avatar
Nahtan-Syab
Forumember

Posts : 51
Reputation : 1
Language : english

Back to top Go down

Widgets/HTML Empty Re: Widgets/HTML

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Widgets/HTML Empty Re: Widgets/HTML

Post by Nahtan-Syab 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?
avatar
Nahtan-Syab
Forumember

Posts : 51
Reputation : 1
Language : english

Back to top Go down

Widgets/HTML Empty Re: Widgets/HTML

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

CSS.

Code:

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

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Widgets/HTML Empty Re: Widgets/HTML

Post by Nahtan-Syab 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.
avatar
Nahtan-Syab
Forumember

Posts : 51
Reputation : 1
Language : english

Back to top Go down

Widgets/HTML Empty Re: Widgets/HTML

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

Css goes between the head tag of a html page

nutsonlizards
nutsonlizards
Forumember

Posts : 59
Reputation : 14
Language : London

http://www.redneckherpsforum.com/forum

Back to top Go down

Widgets/HTML Empty Re: Widgets/HTML

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Back to top

- Similar topics

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