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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,026
  • Total Topics: 21,333
  • Online today: 916
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 169
  • Total: 169

Bloc contains downloadlinks

Started by Kim, October 06, 2009, 09:57:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kimmen

Hey TP, long time no see  :)

I am in a pressured situation and need a blockcode snippet for a site.
Site is hidden for public, but i use TP: V 1.0 Beta 4 and SMF 1.1.10

I want a block in the middle that contains download links. I want this to work with forums, so if i make a post in forums, it shows in the block automaticly. It should look something like this

Icon | Name | link to download | Patches | Name of the user that posted it

I want it to behave like last forumposts, that i decide how many should show and not.

Can this be done?

greets
Kimmen

IchBin

I don't get what you mean when you say, "I want this to work with forums, so if i make a post in forums, it shows in the block automaticly."

If you post something in the forums you want something to appear in the downloads block? I don't get how that is related. Or are you saying you just want the latest download shown when a new item is added? I do believe there is already a recent downloads item built in for blocks, but I don't think it displays the way you want it to. Anway, I'm sure once we are more clear on what you want, we can get something working for you.

Kimmen

Sorry, i will do my best to explain what i want.

I want a selected board in the forum where i can write in the following information:

Icon | Name | Download link | Link to patches | Name of user that posted this


Now, when i post this inside forum, an upperblock will automatic display this on the frontpage. I am not using Download in my own server, i get my links from other sites, such as filefront etc. Im not hosting it on my server at all. Just to make that clear.


JPDeni

IchBin, I think this would be like that game result thing I wrote a while back where the post is formatted in a specific way in a specific forum and in either the first post of every topic in the forum or every post in a specific topic. Those who post the information would have to have it formatted, like one value on each line in a specific order. Possibly the Icon and the User Name could come from the post itself (depending on what icon is desired).

One problem, of course, is that if somebody doesn't format the post correctly, the block will be messed up.

Kimmen

You are right Deni, thanks.

Don't worry about other people messing it up, i will give them the template so it wont get messed up.

Kimmen


JPDeni

I don't have enough information. If you look at my previous post, you'll see

Quote
in either the first post of every topic in the forum or every post in a specific topic.

and

Quote
Possibly the Icon and the User Name could come from the post itself (depending on what icon is desired).

Both of those options are part of the code and I can't start working on it until I know what you want.

So....

Is the information going to come from the first post in each topic in a specific board? Or is it going to be every post in a specific topic?

Do you want the icon to be the one associated with the post or is there going to be a place to enter the information?

Most of all, you say you will give them a template. I have to see what that template is going to be before I can start writing code.

Kimmen

#7
Sorry deni, i will give more info about that.

1: I want first post of every topic in the selected forumboard to be where it gets the infos from.
2: Icon needs to be specified, so i would need a place to fill in the image


Template / layout could be something like this:





Icon|Name|LINK|LINK|Username|Time/date|
Call of Duty - World at WarSpecific content to the gameSpecific extra content to the gameKimmenToday at 02:07:04 PM OR October 08, 2009, 03:17:58 PM


- Time / date + username could be retrieved from forum?

Icon|   Name|   LINK|   LINK|   Username|   Time/date|

I want this to be framed and the rest to be listed under. I dont want it to repeat it self.




Is this ok?

Greets
Kimmen

JPDeni

I'm afraid not. :) It does help for down the line to know how you want it displayed. But for most of it, I need to know the way the the information is going to be added to the post. In order to write the code, I need to know where to look for the information.

Show me a sample post. Yes, time/date and username can be retrieved from the post. But I need to know the order that things are in and what sort of labels might be there.

Kimmen

Icon, is just an image, i would need a field to post
For name, i would need a text field so i can write in the name.
For both Links: I just need a field to post a link in : [url=http://LINK HERE]DESCRIPTION HERE[/url]
For username and date/time, you can try retrieve from forums somewhere.
All of this should be written as a topic / first post from a special board in the forum.



And displayed in the block, like i showed in the other post  :)

This website is proudly hosted on Crocweb Cloud Website Hosting.