Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2011-11-01 12:15:16

thomass
Member
Registered: 2011-11-01
Posts: 6

New column with some image in viewforum

Hello community FluxBB

Here I have a forum FluxBB 1.4.5 and all the installation went well and the associated mods.

Thank you to all creators and contributors on this great CMS.

However I would like to get something that I fail in a while ...

Here, since a picture is worth a thousand words, I would like to reach her :

coverscopie.png

This should ideally be displayed in two viewforum only and not all viewforum.

NB: This is not a warez forum reassure you, but a forum dealing with modern art exhibitions which I would like to add the poster exhibition.

After several search Here are the answers provided on fluxbb.fr :

"To do what you want you will have to edit multiple files post.php, edit.php, viewforum.php, moderate.php (optional), your / your styles.css and add a column in the table topics."

Can someone help me? Indeed I understand why all these posts should be changed, but I still have no idea what he would write code like ..

Thank you and please excuse my English, for which I thank Google Translate

Offline

#2 2011-11-03 13:13:06

thomass
Member
Registered: 2011-11-01
Posts: 6

Re: New column with some image in viewforum

Can you help me please ?

Offline

#3 2011-11-03 15:29:00

cyberman
Member
From: Germany
Registered: 2010-01-11
Posts: 297
Website

Re: New column with some image in viewforum

You can add files to topics with upload mod - think, you have to limit the permissions of that mod so only the topic writer can upload ONE file, which can be shown on topics list.

Offline

#4 2011-11-03 15:48:23

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,392
Website

Offline

#5 2011-11-03 17:12:32

thomass
Member
Registered: 2011-11-01
Posts: 6

Re: New column with some image in viewforum

Hi
thank's a lot..

i send a Email and i just hope he can help me.

Stay connected ...

Offline

#6 2011-11-03 19:04:39

fra2591
Member
From: France
Registered: 2010-09-13
Posts: 239
Website

Re: New column with some image in viewforum

Do YOU want to choose the images (so you'll have to change it manually on your database), or the users when they create a topic? Because it's completely different.


"La vraie faute est celle qu'on ne corrige pas." Confucius
"The real mistake is the one we do not correct." Confucius

Offline

#7 2011-11-03 20:51:50

thomass
Member
Registered: 2011-11-01
Posts: 6

Re: New column with some image in viewforum

Tout d'abord merci de m'avoir répondu ici et par email dans un délais que je qualifierai de record. Ensuite je pense qu'entre français il est mieux que je m'exprime dans ma langue natal , j'afficherai la traduction en dessous.

Donc selon les choix que vous me proposer, je préfère choisir moi même mes images et les changer en Base de données. Et comme vous me l'avez demandé par email, oui je sait modifier des valeurs en base de donnée.

Voila je vous remercie encore par avance de l'aide que vous m'apporter.


-------------------------------------------------------------------------------------

First of all thank you for responding here and email in a time that I would call the record.

So depending on the choices you offer me, let me choose my pictures myself and change database. And as you have asked me by email, yes I know change values in a database.

Here again I thank you in advance for the help you give me.

Offline

#8 2011-11-03 21:48:39

fra2591
Member
From: France
Registered: 2010-09-13
Posts: 239
Website

Re: New column with some image in viewforum

pas de problème je travailles mes cours sur mon ordi donc je suis tous les soirs dessus tout le temps donc oui je réponds vite smile

I tried this modifying slightly what I have on my forum. i don't know if it works

find

<td class="tcl">
						<div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo forum_number_format($topic_count + $start_from) ?></div></div>
						<div class="tclcon">
							<div>
								<?php echo $subject."\n" ?>
							</div>
						</div>
					</td>

replace with

<td class="tcl">
						<div>
						  <div style="margin:-7px; padding:10px; background-color:#333; width:180px; text-align:center;"><?php //echo forum_number_format($topic_count + $start_from) ?><?php echo '<img src="/images/'.$cur_topic['image'].'" width="146" height="197" />' ?><span style="float:right; position:absolute; margin-top:91px; margin-left:30px; width: 230px; left: 138px;" ><?php echo $cur_topic['subject'];?></span></div>				      
                    
					  </div>					</td>

find

$sql = 'SELECT p.* AS has_posted, t.id, t.subject,

replace with

$sql = 'SELECT p.* AS has_posted, t.id, t.subject, t.image,

find

$sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject,

replace with

$sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.image,

create "image" in mysql table "topics" varchar(255)

Last edited by fra2591 (2011-11-03 21:52:24)


"La vraie faute est celle qu'on ne corrige pas." Confucius
"The real mistake is the one we do not correct." Confucius

Offline

#9 2011-11-06 23:24:28

thomass
Member
Registered: 2011-11-01
Posts: 6

Re: New column with some image in viewforum

Merci beaucoup pour  votre aide !!

Cela fonctionne à environ 30 pourcent chez moi

Si j'arrive à mettre en place l'ensemble des modifications je reviendrait les exposer ici bien sur !!

Pour le moment ce n'est pas encore vraiment sa

-----------------------------------------------------------------------------------

Thank you very much for your help!

This works about 30 percent at home

If I set up all the changes I would put them well on here!

For the moment it is not really his

thank you again

Merci encore

Offline

#10 2012-01-19 13:50:04

fra2591
Member
From: France
Registered: 2010-09-13
Posts: 239
Website

Re: New column with some image in viewforum

alors?


"La vraie faute est celle qu'on ne corrige pas." Confucius
"The real mistake is the one we do not correct." Confucius

Offline

Board footer

Powered by FluxBB