1 (edited by downliner 2005-04-16 13:46)

Topic: Very Difficult Problem - Maybe this is a mod I need?

Hi,

I don't know if this is a mod request or if I actually just need to add some extra code? Heres the problem:

I have edited the style sheet on my board to match that of my site (www.new-york-dolls.com). The new style has not been uploaded for public viewing yet. I wanted the boards maximum width to be 743 px wide (which connorhd kindly showed me how to do). But now I have threads looking messy like below:

http://www.new-york-dolls.com/help3.jpg

Long user names get pushed onto two lines and now some rows are bigger than others as you see. Is it possible to make my forum look like the image below (without the pink line doodled across it lol)

http://www.new-york-dolls.com/help4.jpg

The message title (red, bold) is on one line, and underneath the user can enter a description about what the thread is about (Just entered as normal text). At the other side of the board you see I have got the date/time of last post above the name of the person who posted it.

Is this possible to do? Any suggestions?

2

Re: Very Difficult Problem - Maybe this is a mod I need?

The last post column is easy. Just open base.css and go to section 6. At the end add this

/* 6.4 New York Dolls - Last Post Column Changes */

#punviewforum TD.tcr SPAN.byuser {DISPLAY:block} 

#punviewforum TD.tcr {TEXT-ALIGN: right}

You might also want to adjust the column widths for make the last post column narrower and the first column wider.

As for your other request. If that is text which doesn't already exist then you are going to need an extra field in the topic table (I think), somewhere to enter it in the post and edit forms, an alteration to the query in viewforum.php and a change in the markup to display it. The alternative would be to add a query to get the post text of the first post in the topic and then display the first x characters from the post. Either way you need somebody who knows more about php and sql than I do.

A thought about the layout; the way you want it doesn't display the author. Why not like this

MY TOPIC TITLE
Fred said: Hi there, just a post to introduce myself

Re: Very Difficult Problem - Maybe this is a mod I need?

Thank you very much Paul, much appreciated. Your suggestion to edit 'last post' widths will be used as will adding the "Fred said:" idea smile

As for:

Paul wrote:

If that is text which doesn't already exist then you are going to need an extra field in the topic table (I think), somewhere to enter it in the post and edit forms, an alteration to the query in viewforum.php and a change in the markup to display it.

The alternative would be to add a query to get the post text of the first post in the topic and then display the first x characters from the post. Either way you need somebody who knows more about php and sql than I do.

Would anyone be able to create this for me? I have displayed above what I would like the end result to look like but this is what I had in mind for entering the description:

http://www.new-york-dolls.com/help5.jpg

Preferably a character limit on the description - say 80 characters? Any thoughts people?

4

Re: Very Difficult Problem - Maybe this is a mod I need?

Actually, it might be easier than I thought. I will get back to you soon.

5

Re: Very Difficult Problem - Maybe this is a mod I need?

How about this
http://www.post21.co.uk/pun12/viewforum.php?id=1

Re: Very Difficult Problem - Maybe this is a mod I need?

Yeh thats perfect :-) How did you manage it?

7

Re: Very Difficult Problem - Maybe this is a mod I need?

A lot of edits to viewforum.php, edit.php and post.php. A new field in the topic table and about 7 lines of css. It would be easiest to just send you the modified files.

Re: Very Difficult Problem - Maybe this is a mod I need?

Cheers! My email is: admin@new-york-dolls.com

This really is appreciated!

9

Re: Very Difficult Problem - Maybe this is a mod I need?

I will send them tomorrow. I have one little wrinkle to sort out with indenting when the dot is showing (to indicate you have posted in that topic)

Re: Very Difficult Problem - Maybe this is a mod I need?

Ok thats great, thanks for your help! Why are you awake at 03:47 in the morning lol? Why am I still awake??

11

Re: Very Difficult Problem - Maybe this is a mod I need?

I had a little problem with email. You can download the files from here
http://www.post21.co.uk/files/Pun-NYD.zip