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,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 459
  • Total: 459

Generic Application Form

Started by JPDeni, May 23, 2009, 11:04:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

EasyRider

Hi JPDeni and big thank you for this useful tool. :)

1 question.

Is possible to appear the review post in front page block..?

I mean to appear both in normal topic, and print also one post in first page block.

Like rss block option..  ???
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

JPDeni

You can display a post from a topic in a block. You would just need to know the post number. Or you could post the first post from the most recent topic from a given board, which I suppose would be the closest thing to an rss feed. That would be something completely separate from this code, though.

EasyRider

I see. thank you for your answer.

Until now the form print new review post only in topic i choose. This topic have not only reviews but normal posts also.

I wand to appear only the review post in front page (block) and also in his topic as is now, at once.

is that possimple..?  :)


SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

JPDeni

You have a board.


//board id to which the application should be posted
   $board_id=2;


In this board are topics, which are created by the script. The first post in each topic is the results of the form. Right?

It is possible that you have other topics in this board. Do you have other topics in this board or are all of the topics only the ones created by the form? That will determine what code I give you.

EasyRider

Not exactly. You make edit in this form to add the review form in existing topic. that is the different.

Look in this post
http://www.tinyportal.net/index.php?topic=29670.msg247281#msg247281
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

JPDeni

Okay. The code originally was supposed to do what I said. When the form is submitted a new topic is made, with the results at the top so that the rest of the topic is people discussing the form results. But things have changed.

I'll have to try out the idea I have first. It won't be done until tomorrow -- maybe later. Just to let you know what I have in mind, it would be changing the form code so it writes the same post to the body of the block when it writes it to the forum.

EasyRider

Thank you JPDeni! await for.  :) :)
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

raxavier69

hey does this work with rc3 and latest tp? im getting "You must be logged in before you can apply. " even as admin logged in

JPDeni

Quotedoes this work with rc3 and latest tp?

Probably not. I haven't looked at the code for a very long time and I haven't looked closely at the changes for RC3. It might work with SMF1.whatever and the newest TP, but it's unlikely that it would work with the changes that they've put into SMF2.

raxavier69

Quote from: JPDeni on June 03, 2010, 01:27:28 AM
Quotedoes this work with rc3 and latest tp?

Probably not. I haven't looked at the code for a very long time and I haven't looked closely at the changes for RC3. It might work with SMF1.whatever and the newest TP, but it's unlikely that it would work with the changes that they've put into SMF2.
:( any chance of an rc3 version of this :D ?

This website is proudly hosted on Crocweb Cloud Website Hosting.