Advanced Forum - Topicnyitó hozzászólás a kommentek alatt - 1.

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Leírás


A drupal commentelési lehetőségeinek van egy meglehetősen bosszantó tulajdonsága: A topicnyitó hozzászólást, vagyis azt a node-ot, amihez a kommentek kapcsolódnak, nem lehet egyszerűen elpakolni, mindig a hozzászólások felett jelenik meg.

Az advanced forum modullal már egész okos fórumot létre lehet hozni, de "hagyományos" fórumot készíteni, amelyben az első hozzászólás felé kerül a többi, és így tovább nekem már kicsit bonyolultabb volt. Találtam több lehetséges megoldást is, nekem ez volt (viszonylag) a legegyszerűbben kivitelezhető..

Feladat tehát a következő: Olyan fórum létrehozása, amelyben a topicnyitó hozzászólás gyakorlatilag megegyezik a kommentek kinézetével, és a kommentek alá kerül, hogy 100x hsz után már ne legyen zavaróan szem előtt.

Views-szal dolgozunk, és kell hozzá egy kiegészítő modul (ami amúgy is elég hasznos annak, aki még programozni is tud..) a Views Custom fields.

Hozzunk létre egy tartalom típusú nézetet topicindito-hsz néven. A Row style legyen mezők. Állítsunk be argumentumot: Tartalom: NID; Action to take if argument is not present:Provide default argument - Node ID from URL 

Most vadásszuk össze a szükséges mezőket: Ami mindössze ennyi: Tartalom: Post Date és Tartalom törzs, valamint mos jön képbe a Customfield modul, vagyis a harmadik szükséges mezőn egy Customfield: PHP kód

Itt most megállunk. Miért csak ennyi? Hol van a beküldő és a többi adat?

Mivel az advanced forum az author pane közreműködésével allítja elő a kommenteket, ezért ha olyan megjelenést akarunk a topicnyitónak, mint a kommenteknek, nekünk is author pane-re lesz szükségünk. Csakhogy ez views-ban nincs benne.. Van viszont kész blokkunk rá, úgyhogy hajrá

Ideje hát használnunk a Customfieldünket, és írjuk bele a következő kódot:

[geshifilter-drupal6]$block = module_invoke('author_pane', 'block', 'view', 3); print $block['content'];[/geshifilter-drupal6]

Rendezzük az alábbi sorrendbe a mezőket:

  • Customfield: PHP kód
  • Tartalom: Post date
  • Tartalom: Törzs
 
Ha most egy argumentum beírásával meg szeretnéd nézni a műved, csalódni fogsz, az author pane nem fog megjelenni.
Csinálj egy blokkot ebből a nézetből, és mentsd el! Add hozzá valami content bottom - szerű régióhoz a most elkészített nézetedet, és állítsd be, hogy csak a fórumok oldalán jelenjen meg.
Most, ha megnézed a fórumodat, a topicnyitó hozzászólás az author pane-nel együtt ott kell legyen a kommentek alatt.
Hogy ez hogy fog kinézni pont úgy, mint a hozzászólások, és hogyan tüntetjük el a feleslegessé vált felső tartalmat, erről majd a legközelebb.
A folytatás pár napon belül, ha valakinek van ötlete a témával kapcsolatban, ne kíméljen!

Hozzászólások

hello!,I like your writing

hello!,I like your writing very much! share we communicate extra approximately your article on AOL? I need a specialist in this area to resolve my problem. May be that's you! Taking a look ahead to look you. |

Hi, its fastidious post

Hi, its fastidious post regarding media print, we all be familiar with media is a wonderful source of data.|

It's really very difficult in

It's really very difficult in this full of activity life to listen news on Television, therefore I only use internet for that purpose, and take the most recent news.|

WOW just what I was looking

WOW just what I was looking for. Came here by searching for ig

I like what you guys are

I like what you guys are usually up too. This sort of clever
work and exposure! Keep up the great works guys I've added
you guys to blogroll.

Every weekend i used to pay a

Every weekend i used to pay a visit this site, because i want enjoyment, for the reason that this this web page conations in fact nice funny information too.

Hey there! Do you use

Hey there! Do you use Twitter? I'd like to follow you if that would be ok. I'm undoubtedly enjoying your blog and look forward to new posts.|

I don't know whether it's

I don't know whether it's just me or if everyone else experiencing
problems with your site. It appears as though some of the text
on your posts are running off the screen.
Can somebody else please provide feedback and let me
know if this is happening to them as well? This could be a problem
with my internet browser because I've had this happen previously.
Appreciate it

My relatives always say that

My relatives always say that I am killing my time here at web,
however I know I am getting know-how daily by reading thes good articles or
reviews.

I am no longer sure the place

I am no longer sure the place you are getting your
information, however good topic. I needs to spend some time finding out more or
figuring out more. Thank you for magnificent info I was searching for this info
for my mission.

I used to be recommended this

I used to be recommended this web site by way of my cousin. I'm
no longer certain whether this put up is written through him as nobody else
recognize such specified approximately my problem.
You're amazing! Thank you!

Excellent post. I was

Excellent post. I was checking constantly this blog and I am impressed! Very helpful information specifically the last part :) I care for such info much. I was looking for this particular info for a very long time. Thank you and best of luck.|

My brother recommended I

My brother recommended I might like this web site. He was totally right.
This post actually made my day. You cann't imagine simply how much time
I had spent for this info! Thanks!

Independance Immobilière -

Independance Immobilière - Agence Dakar Sénégal
Av. Fadiga, Immeuble Lahad Mbacké
BP 2975 Dakar
+221 33 823 39 30

Agence Immobilière Dakar

It's genuinely very complicated in this active life to listen news on TV,
so I just use internet for that reason, and obtain the latest information.

I was wondering if you ever

I was wondering if you ever considered changing the layout
of your website? Its very well written; I love what
youve got to say. But maybe you could a little more in the way of content so people
could connect with it better. Youve got an awful lot of text for only having one or two pictures.
Maybe you could space it out better?

Your method of explaining

Your method of explaining everything in this post is truly fastidious, every
one be able to without difficulty know it, Thanks a lot.

Appreciating the time and

Appreciating the time and energy you put into your blog and in depth information you present. It's good to come across a blog every once in a while that isn't the same out of date rehashed material. Fantastic read! I've saved your site and I'm adding your RSS feeds to my Google account.|

WOW just what I was searching

WOW just what I was searching for. Came here by searching for ig

Hi Dear, are you in fact

Hi Dear, are you in fact visiting this website on a regular basis,
if so afterward you will without doubt get nice
knowledge.

I have read so many content

I have read so many content concerning the blogger lovers except this post is in fact a fastidious paragraph, keep it up.|

Hello my friend! I want to

Hello my friend! I want to say that this post is amazing, nice
written and come with almost all significant infos. I'd like to look extra posts like this
.

Hey! I'm at work browsing

Hey! I'm at work browsing your blog from my new iphone 4! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the superb work!|

You really make it seem so

You really make it seem so easy with your presentation but I find this topic to be actually something that I think I would never understand.

It seems too complex and extremely broad for me.
I am looking forward for your next post, I'll try to get the hang of it!

It's a shame you don't have a

It's a shame you don't have a donate button! I'd certainly donate to this brilliant
blog! I guess for now i'll settle for bookmarking and adding your RSS feed to my Google account.
I look forward to fresh updates and will share this site with my
Facebook group. Talk soon!

I could not resist

I could not resist commenting. Well written!|

Good day I am so delighted I

Good day I am so delighted I found your blog page, I really found you by error, while I was researching on Askjeeve
for something else, Anyhow I am here now and would just like to say thank you for
a marvelous post and a all round enjoyable blog (I also love the theme/design), I don’t have time to browse it all at the minute but
I have saved it and also added your RSS feeds, so when I have time I will be
back to read a lot more, Please do keep up the superb work.

An outstanding share! I have

An outstanding share! I have just forwarded this onto a co-worker who has been conducting a little homework on this.
And he in fact ordered me lunch due to the fact that I stumbled upon it for him...
lol. So allow me to reword this.... Thank YOU for the meal!!

But yeah, thanks for spending the time to talk about this issue here on your internet site.

If you wish for to improve

If you wish for to improve your know-how only keep visiting this web site and be updated with the most recent news update posted here.|

Hello there! Do you use

Hello there! Do you use Twitter? I'd like
to follow you if that would be ok. I'm absolutely enjoying your blog and look forward to new posts.

Definitely believe that which

Definitely believe that which you said. Your favorite justification seemed to be on the web the simplest thing
to be aware of. I say to you, I definitely get annoyed while people think about worries that they just don't know about.
You managed to hit the nail upon the top and
also defined out the whole thing without having side-effects , people could take a signal.
Will probably be back to get more. Thanks

Hello there! This post could

Hello there! This post could not be written any better! Reading through this post reminds me of my old room mate! He always kept chatting about this. I will forward this page to him. Pretty sure he will have a good read. Thanks for sharing!|

Hello i am kavin, its my

Hello i am kavin, its my first occasion to commenting anyplace, when i read this paragraph i thought i could
also create comment due to this good piece of writing.

Thank you for the auspicious

Thank you for the auspicious writeup. It in fact was a amusement account it.
Look advanced to more added agreeable from you!
By the way, how can we communicate?

Thank you, I have just been

Thank you, I have just been looking for information approximately this subject for ages and
yours is the greatest I have discovered till now. However, what about the bottom line?
Are you certain concerning the supply?

I feel that is among the most

I feel that is among the most important information for me. And i am glad reading your article. But wanna statement on some basic issues, The site taste is perfect, the articles is really excellent : D. Excellent activity, cheers|

I have read several excellent

I have read several excellent stuff here.
Certainly worth bookmarking for revisiting. I wonder how so much effort
you put to make any such wonderful informative website.

Hello there! This article

Hello there! This article couldn't be written much better!
Reading through this article reminds me of my previous roommate!

He always kept talking about this. I most certainly will forward this post to him.

Pretty sure he'll have a good read. Thanks for sharing!

Wow, awesome weblog layout!

Wow, awesome weblog layout! How long have you ever been running a blog for? you made running a blog glance easy. The total glance of your web site is magnificent, let alone the content!

Thank you, I've just been

Thank you, I've just been searching for info approximately this subject for a long time and
yours is the greatest I have found out so far.

However, what concerning the bottom line? Are you positive in regards to the supply?

hi!,I love your writing so so

hi!,I love your writing so so much! share we keep
up a correspondence more about your post on AOL?
I need a specialist in this house to unravel my problem.

May be that's you! Having a look ahead to see you.

Independance Immobilière -

Independance Immobilière - Agence Dakar Sénégal
Av. Fadiga, Immeuble Lahad Mbacké
BP 2975 Dakar
+221 33 823 39 30

Agence Immobilière Dakar

You actually make it seem so easy with your presentation but I find this matter to be actually
something which I think I would never understand. It seems
too complicated and extremely broad for me. I'm looking forward for your next post, I will try to get the
hang of it!

I know this web page presents

I know this web page presents quality based content and other information, is there any other web page which presents such stuff
in quality?

I've learn some just right

I've learn some just right stuff here. Definitely price bookmarking
for revisiting. I wonder how much effort you set to create the sort of
wonderful informative website.

Thank you for sharing your

Thank you for sharing your info. I really appreciate your efforts and I will be waiting for your next post
thank you once again.

Hi, Neat post. There's an

Hi, Neat post. There's an issue together with your site in internet explorer, would test
this? IE nonetheless is the marketplace chief and a big section of other people will miss
your wonderful writing because of this problem.

Everyone loves what you guys

Everyone loves what you guys are usually up too. This sort of clever work and
reporting! Keep up the wonderful works guys I've added you
guys to my blogroll.

Its like you read my

Its like you read my thoughts! You seem to grasp so much approximately this, such as
you wrote the book in it or something. I think that you just can do with a few % to pressure the
message house a little bit, but instead of that, that is
magnificent blog. An excellent read. I will
definitely be back.

Independance Immobilière -

Independance Immobilière - Agence Dakar Sénégal
Av. Fadiga, Immeuble Lahad Mbacké
BP 2975 Dakar
+221 33 823 39 30

Agence Immobilière Dakar

Does your site have a contact page? I'm having problems
locating it but, I'd like to shoot you an email. I've got some recommendations for your blog you might be interested in hearing.
Either way, great site and I look forward to seeing it improve over time.

These are really wonderful

These are really wonderful ideas in regarding blogging.
You have touched some pleasant points here. Any way keep
up wrinting.

excellent submit, very

excellent submit, very informative. I'm wondering why the other experts of this sector don't notice this.
You must proceed your writing. I'm confident, you have a huge readers' base already!

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.