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: 282
  • Total: 282

[Block] Clan war points block : need idea's/help

Started by Heero, June 24, 2008, 05:01:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JPDeni

It's perfectly okay to add things now. I haven't written anything yet.

You show:

Warcraft 3

in addition to other images. Does Warcraft 3 always have the same image? If so, there's no need to enter the



part. It can be taken care of in the programming. Same thing with the clans.

How many possible games are there? How many possible clans are there? Does each clan have its own flag graphic?

Bluto

Sorry guys. I thought you were looking to keep track of match stats.
Guess I'm missing the point.
Hope you find what you need.

Heero

np Bluto ;) .

Erhm oh well, Deni ..
Is it harder to make it just submittable with text and bbc or html support?
Because we are playing in some kind of league, which always generates random matches.
That means we need to play versus many different clans and otherwise if you only add a few clans we have a limited selection :).

As for the first game image.. we might expand to new games in the future which we might not know yet..

So is it possible to just submit data which is given?
I am sorry if I'm being hard in posting :( but it makes me happy that you are creating this :)

JPDeni

Quoteif you only add a few clans
Well, we can make as many as you want. But it can just be an open field if you want.

It can also be done with the images, but things are a lot easier if it's simpler and more compact.

For example, you have Warcraft 3 as a game name, right? You could have a graphic called Warcraft3.gif. Then later on you have a game called Warcraft 7. You would just put the name of the game in the field and upload a graphic file called Warcraft7.gif. The programming can determine the name of the graphic file based on the input, rather than having to put in the name of the graphic file as well.

Same with the clans. You have Clan Tern and the accompanying file could be ClanTern.gif (or clantern.gif if you prefer).

It can be done the way you say, but there is more possibility of error that way. If the graphics are hosted on another server or you don't have any control over the naming of the files, then this won't work.

How many do you want to show? All? A limited number? Most recent first?

Heero

#34
Oh, that would be great too!

As long as I can add more games/clans it would be great !
The images for the clans are actualy the flag of their country.

And I'd like to show the 5 most recent clan war points if that's possible :).

Many thanks again!

p.s. clan tern is an example clan,  clan x2o is how our clan is named.

Heero

Sorry for the double posting,
but is there anything happening :)?

Don't want to push for creation either,
but just want to know a bit if there is progress :).

Ken.

Some of our code specialist team members are on holiday so you may have a few days wait before seeing any response to you questions.

Thanks.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

JPDeni

Actually, I've been taking some time away from programming. To tell you the truth, I'm a bit burned out at the moment and have been working on something completely different.

However, I have thought a bit about your issue. I think that the best way to deal with entering, deleting and editing the data is to create a board (or child board) in your forum, which only the appropriate member groups can access.

Have your people enter the data -- one record per post -- in the form of:

Game
First Clan Name
Results
Second Clan Name

Create a center block that is only visible from within that board to remind people of the format that is required. Stress that the first four lines of the post must be in the correct format.

At that point, it's merely a matter of reading, parsing and displaying the most recent x number of posts in that board, rather like the code that I wrote for someone else recently.

Does that sound reasonable?

Quotep.s. clan tern is an example clan,  clan x2o is how our clan is named.

Does this mean that the "First Clan" will always be the same?

P.S. Thanks Ken!!  :)

Heero

#38
Oh, yes JPDeni it sounds reasonable :)
The only minus is that we can't add images.. Ah well, not everything can be perfect.

But I'll try to figure something out then ..

Quote
Quote
p.s. clan tern is an example clan,  clan x2o is how our clan is named.
Does this mean that the "First Clan" will always be the same?
Yes it does ;)

Ken., thanks for your response, I will.

Edit :
sigh hmm, isn't it possible showing the first 5 lines of a topic?
That would do it too. I'll be searching if this is possible.

JPDeni

QuoteThe only minus is that we can't add images

Sure you can.

Let's say you have an entry that reads like this:

World of Warcraft 3
Clan X20
4:1
Clan Nasty People

The code I'll write will look at those four lines and will look for images called

worldofwarcraft3.jpg
clanx20.jpg
clannastypeople.jpg

and then, in the block, print out



|worldofwarcraft3.jpg |clanx20.jpg Clan X20 |4:1 |clannastypeople.jpg Clan Nasty People |

That's what you want, right? Except that the images will show up instead of the names of the image files. Isn't that what we agreed on before?

Quote
QuoteDoes this mean that the "First Clan" will always be the same?

Yes it does

Then it doesn't need to be entered. :) That can be within the script. No point in having people enter the same data over and over again.

Quotesigh hmm, isn't it possible showing the first 5 lines of a topic?

Sure. You can have the first 43 lines of a topic if you want. The lines just have to be the same type of data in each post. If you'll tell me what you want to display, I can tell you how to set it up to do whatever you want. But you have to tell me what you want first.

This website is proudly hosted on Crocweb Cloud Website Hosting.