Register My Account Search Members F.A.Q. Admin  
Support Forums  


Post new topic Post reply

Page: 1 2
Author Message
Peter

Excoboard.com
Posts: 699
Registered: Feb 2004
 
 Posted June 19th, 2004 09:19 AM   IP           Reply with quote Edit Post Delete post
Using custom templates, you can truly customize your board by directly editing the html source of your board.

Editing templates requires html knowledge. If you're not comfortable editing html, don't use the custom templates.

A template file is built up as a regular html page with some added code. The templates contains something called variables. A variable contains
a value, such as the board title. A variable looks like this: {variable}
When a page is view by a user, a {boardtitle} variable would be replaced with the name of your board. Variables should never be edited as this may disrupt the functionality of your board.

A piece of a template can look like this:

<!-- BEGIN newpm -->
<a href="pm.php?boardid={boardid}">Private Messages</a>: You have {newpm.newpms} unread messages
<!-- END newpm -->

You can see two variables here: {boardid} which identifies your board id, and {newpm.newpms} which displays the number of unread messages.

The lines <!-- BEGIN newpm --> and <!-- END newpm --> are other types of variables.
They can have two different uses. In the example above, it is used to determine if a users is logged in, and if so display the number of unread PM's. If a user is not logged in, the code would not be displayed.

The other use for the <!-- --> variable is for loops, or repeating a code. It is used to loop a code such as the listing of threads.
A loop could look like this:

<!-- BEGIN threadloop -->
This is a thread with the title {threadtitle}
<!-- END threadloop -->

Lets say you have 5 threads in your forum. The code inside the <!-- --> variables would be repeated 5 times. The output would look something

like this:
This is a thread with the title Welcome
This is a thread with the title This is my thread
This is a thread with the title Forum Rules
This is a thread with the title Check my thread
This is a thread with the title Hello


Here are some more examples:

Code:
<a href="newtopic.php?forumid={forumid}"><img alt="Post new topic" border="0" src="{newentryimage}"></a>
Output:
<a href="newtopic.php?forumid=123"><img alt="Post new topic" border="0" src="http://novogate.com/images/newtopic.gif"></a>

Code:
<!-- BEGIN iftrue_poll -->
{iftrue_poll.poll}
<!-- END iftrue_poll -->
Output:
If thread contains a poll, display it. Otherwise no code will be shown.

Peter,
Excoboard Developer
Dave

Member
Posts: 1394
Registered: Feb 2004
 
 Posted June 19th, 2004 09:33 AM   IP           Reply with quote Edit Post Delete post
Thanks for that. Nice work

Wow! Just being editing the template: It's awesome!
[Edited by Dave]
TK-7771

Member
Posts: 1428
Registered: Feb 2004
 
 Posted June 19th, 2004 09:55 AM   IP           Reply with quote Edit Post Delete post
Very cool

One question tho. Would we be able to add a different banner for each forum?


X

2004 World Champions Boston Red Sox
Peter

Excoboard.com
Posts: 699
Registered: Feb 2004
 
 Posted June 19th, 2004 10:17 AM   IP           Reply with quote Edit Post Delete post
The forum template is the same for all forums, so that would be a no.
Peter,
Excoboard Developer
TK-7771

Member
Posts: 1428
Registered: Feb 2004
 
 Posted June 19th, 2004 12:31 PM   IP           Reply with quote Edit Post Delete post
Oh well, just checking.

Still very cool


X

2004 World Champions Boston Red Sox
krillmeed

Member
Posts: 408
Registered: May 2004
 
 Posted June 21st, 2004 02:32 PM   IP           Reply with quote Edit Post Delete post
Not being an expert, i have a couple of the members writing codes for me as we speak, i do not know how it was managed, but we do have a different banner for each skin, i.e. LCARS, krillmeed and klingon, (Romulan and Vulcan being worked on now); is that what TK-7771 meant, or is this going right over my head
Check out my forum at http://www.krillmeed.com/forum/index.php Enjoy
TK-7771

Member
Posts: 1428
Registered: Feb 2004
 
 Posted June 21st, 2004 08:42 PM   IP           Reply with quote Edit Post Delete post
Not exactly what I meant.
What I was talking about was, if your on the index you have your main banner. You click on a forum in say a PC talk catergory, there would be a banner highlighting the catergory/forum.

But your idea works too. Have to play around with the templates and css see what I come up with


X

2004 World Champions Boston Red Sox
krillmeed

Member
Posts: 408
Registered: May 2004
 
 Posted June 22nd, 2004 01:22 AM   IP           Reply with quote Edit Post Delete post
It works great with the CSS now we have 5 different skins and headers, and that is just the start, but i cannot take much credit for this, it is one of my members with the help of the skin selector
Check out my forum at http://www.krillmeed.com/forum/index.php Enjoy
NonHeartless

Member
Posts: 38
Registered: Apr 2004
 
 Posted June 30th, 2004 07:22 PM   IP           Reply with quote Edit Post Delete post
does this "multiple banners" thing require html?
please help me. i'm a newbie
sdn

Member
Posts: 2597
Registered: Feb 2004
 
 Posted June 30th, 2004 07:37 PM   IP           Reply with quote Edit Post Delete post
It requires my skin selector script and custom-made stylesheets.
My signature was here, but then the new rule came and sat on it.

(Spared No Expense - the fully modded ExCoboard) Currently kinda bland, so answer my thread and suggest stuff.

AmpleAdy makes awesome templates.
krillmeed

Member
Posts: 408
Registered: May 2004
 
 Posted July 1st, 2004 02:06 AM   IP           Reply with quote Edit Post Delete post
You can see a couple of the style sheets a member of mine did at SDNīs Forum, here is the topic http://www.excoboard.com/exco/threa...&threadid=68922 and the skin selector too is on that page. What we have done with it can been seen here http://s2.excoboard.com/exco/index....hp?boardid=2891
As i said in the topic, with the exco templates and the skin selector, all it needs is a bit of time and your imagination. Myself i am verv happy with the way things worked out, and i am new a this
[Edited by krillmeed]

Check out my forum at http://www.krillmeed.com/forum/index.php Enjoy
Travis P Redfish

Member
Posts: 60
Registered: Aug 2004
 
 Posted September 5th, 2004 09:10 PM   IP           Reply with quote Edit Post Delete post

I'm completely unaware of exactly how todo any of ths (yet) but am willing to learn

please pardon my ignorance, but do I first start out in Settings and then click Enable Custom Templates?

Gary

Member
Posts: 1049
Registered: Mar 2004
 
 Posted September 5th, 2004 10:06 PM   IP           Reply with quote Edit Post Delete post
I would not do that until you learn some HTML....Here is a very good link to learn HTML.

http://www.w3schools.com/
Travis P Redfish

Member
Posts: 60
Registered: Aug 2004
 
 Posted September 6th, 2004 08:56 AM   IP           Reply with quote Edit Post Delete post
Quote:
Gary wrote:
I would not do that until you learn some HTML....Here is a very good link to learn HTML.

http://www.w3schools.com/


thank you Gary! I will definately check out the link. after that opportunity to learn more about HTML (I do know some albeit a small amount), is it correct in assuming that I will need to first go to Settings and then Enable Custom Templates?
Sage

Member
Posts: 1040
Registered: Feb 2004
 
 Posted September 6th, 2004 11:07 AM   IP           Reply with quote Edit Post Delete post
Quote:
Travis P Redfish wrote:

is it correct in assuming that I will need to first go to Settings and then Enable Custom Templates?


yep

- More Scripts and Mods at indexOf('ExCo')
Travis P Redfish

Member
Posts: 60
Registered: Aug 2004
 
 Posted September 6th, 2004 12:39 PM   IP           Reply with quote Edit Post Delete post

thank you Sage
Travis P Redfish

Member
Posts: 60
Registered: Aug 2004
 
 Posted September 6th, 2004 02:32 PM   IP           Reply with quote Edit Post Delete post

actually, this is one very cool feature

I do admit enjoying the ability to tweak little things here & there on the board ... I'm having a blast with it (thanks again for the helpful replies)
[Edited by Travis P Redfish]
Orpheas

Super Moderator
Posts: 2193
Registered: Sep 2004
 
 Posted October 10th, 2004 08:48 PM   IP           Reply with quote Edit Post Delete post
[Edit] - Yuck old posts before I understood the Exco.. fixed
(Edited by Orpheas)

Excoboard Terms of Service
sdn

Member
Posts: 2597
Registered: Feb 2004
 
 Posted October 11th, 2004 11:43 AM   IP           Reply with quote Edit Post Delete post
You'd have to write a script to do that as it stands. The other option is to add a community leaders list to that box.
My signature was here, but then the new rule came and sat on it.

(Spared No Expense - the fully modded ExCoboard) Currently kinda bland, so answer my thread and suggest stuff.

AmpleAdy makes awesome templates.
Orpheas

Super Moderator
Posts: 2193
Registered: Sep 2004
 
 Posted October 11th, 2004 05:49 PM   IP           Reply with quote Edit Post Delete post
I can get it to say Community Leaders, but there is no number
Excoboard Terms of Service
Catchow

Member
Posts: 4452
Registered: May 2004
 
 Posted October 29th, 2005 11:14 PM   IP           Reply with quote Edit Post Delete post
Quote:
Orpheas wrote:
I can get it to say Community Leaders, but there is no number


What do you mean "number"?

Goodbye to all my friends.
slayer1927

Member
Posts: 533
Registered: Aug 2006
 
 Posted August 28th, 2006 04:36 PM   IP           Reply with quote Edit Post Delete post
how do you make a banner from scratch
Catchow

Member
Posts: 4452
Registered: May 2004
 
 Posted August 28th, 2006 07:06 PM   IP           Reply with quote Edit Post Delete post
With any grapics programs that you have slayer.
Goodbye to all my friends.
slayer1927

Member
Posts: 533
Registered: Aug 2006
 
 Posted August 29th, 2006 03:26 PM   IP           Reply with quote Edit Post Delete post
what do i need i can get them
Catchow

Member
Posts: 4452
Registered: May 2004
 
 Posted August 30th, 2006 02:58 AM   IP           Reply with quote Edit Post Delete post
Slayer a lot of people use ms paint. If you have windows, you already have it. At cnet, there are a number of free graphics programs that you can download. A google search will turn up more for you. As for what you need, it is kinda up to you. You can use free ones or spend thousands of dollars on some of the bigger software. I have seen several people draw out their designs on paper or canvas and then use a scanner to put the artwork on their pcs. Actually I do that sometimes myself.

You could create a design in ms paint and add fancy text to it at an online site like grsites.com It is up to you to figure out what you need and want and what your budget will allow. I would start at cnet if I were you. I just went to get the link and I see a few new programs that I want to check out for myself. He he he! http://www.download.com/3101-2016_4....html?tag=promo

Goodbye to all my friends.
slayer1927

Member
Posts: 533
Registered: Aug 2006
 
 Posted September 6th, 2006 09:28 PM   IP           Reply with quote Edit Post Delete post
ok i think i caN do that but i may need your help again
Catchow

Member
Posts: 4452
Registered: May 2004
 
 Posted September 6th, 2006 10:21 PM   IP           Reply with quote Edit Post Delete post
Slayer this whole board is full of help for you. It is why we are here.
Goodbye to all my friends.
Koyana Nuva

Member
Posts: 755
Registered: Jan 2006
 
 Posted August 17th, 2007 04:09 PM   IP           Reply with quote Edit Post Delete post
Quote:
Peter wrote:
The forum template is the same for all forums, so that would be a no.

However, you can create a separate banner for the forums then the index. Simply put your first banner inside the index template, and put your second banner inside the forum template.
slayer1927

Member
Posts: 533
Registered: Aug 2006
 
 Posted September 9th, 2007 07:55 AM   IP           Reply with quote Edit Post Delete post
Yah i have changed a lot of the things several times on my boards to different things.
CalMtnGal

Member
Posts: 76
Registered: Sep 2007
 
 Posted October 3rd, 2007 06:11 PM   IP           Reply with quote Edit Post Delete post
Hi I am new here I have been reading and getting loads of help from all the script posting. Thank you so much for that. Ok now I have a question. In the admin panel there is a place where the administrator can put in special titles for members. Is there a way to put a second box that does exactly the same thing right below it??



Posts:
Registered:

 Posted    IP           Reply with quote Edit Post Delete post
Mark all forums read
Logout
All times are EST
Forum jump:

Thread Options: Delete thread / Open/Close thread / Rename thread / Stick thread / Move thread / Merge thread
Post new topic Post reply

< Previous thread | Next thread > | Subscribe to thread |