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,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 362
  • Total: 363
  • tino

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

Thank you for your reply JPDeni, and sorry  for my English ..  :-\

I ask if is possible to add option in post reply area (Attach photo)  like link , menu,  and you going to your php article script , write review  and the review posted back in the same  topic just like continud post but with review layout and infos..

I hope im more clear now..   :)
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

EasyRider

#61
And something more/else that i thing should help you.

I don't want to create any time new topic for new reviews, but i want an option to my members choose in what topic in specific board the review  going as continud post let's say .

I hope that help..  :-X
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

JPDeni

QuoteI ask if is possible to add option in post reply area (Attach photo)  like link , menu,  and you going to your php article script , write review  and the review posted back in the same  topic just like continud post but with review layout and infos..

I don't think so.

Here's what you could do...

Create a board (or child board) for reviews. Create topics in that board for different types of reviews, however you want to divide them up. (Maybe you have a movie review site and there's a separate topic for each movie, for example.)

Create a php block to display on the top of only that board and put your form in that block. Include a drop-down field with the different topic titles for the user to select which topic the review would be posted in. Call that field topic.

Look for the following section in the code:


                                 $topicOptions = array(
'id' => 0 ,
'board' => $board_id,
'poll' =>  null,
'lock_mode' =>  null,
'sticky_mode' =>  null,
'mark_as_read' => true,
);


Change the 'id' line to


'id' => $_REQUEST['topic'] ,


Does this make sense?

EasyRider

Yes, good idea,  thank you..! i try to do that, and i tell you if it is work.. ! :) :) :)

But the final code must look like this?


               $topicOptions = array(
'id' => $_REQUEST['topic'] ,
'board' => $board_id,
'poll' =>  null,
'lock_mode' =>  null,
'sticky_mode' =>  null,
'mark_as_read' => true,
);



I do 1 test now and is not work..  :-\

which place i must put this code..?

And the drop-down field..?  you mean somthing like this?

                       array(
'caption' =>      "ΕκÏÆ'Ïâ,¬ÃŽÂµÃÂÃŽÂ¼ÃŽÂ¬Ãâ€žÃâ€°ÃÆ'η",
'name' =>         "feedback4",
'type' =>         "select",
'options' =>      "select,Στο ÏÆ'ωμα,Στο Ïâ,¬ÃÂÃŽÂ¿ÃÆ'ωÏâ,¬ÃŽÂ¿,Στο ÏÆ'τομα (τα φτυνει),Στο ÏÆ'τομα (τα καταÏâ,¬ÃŽÂ¹ÃŽÂ½ÃŽÂµÃŽÂ¹)",
'defaultvalue' => "1",
'required' =>     1
),



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

JPDeni

Hmmmm. Maybe it won't work. The select field doesn't give what I was thinking it would. Hmmmm. Give me a day or two and I'll see if I can work it out. I may have to create a different kind of select field.

EasyRider

Quote from: JPDeni on September 23, 2009, 12:30:59 AM

Create a php block to display on the top of only that board and put your form in that block. Include a drop-down field with the different topic titles for the user to select which topic the review would be posted in. Call that field topic.

Look for the following section in the code:


                                 $topicOptions = array(
'id' => 0 ,
'board' => $board_id,
'poll' =>  null,
'lock_mode' =>  null,
'sticky_mode' =>  null,
'mark_as_read' => true,
);


Change the 'id' line to


'id' => $_REQUEST['topic'] ,


Does this make sense?



The idea is perfect, the "problem" for my now, is to  make the drop-down field to work with topics.. :-X

because i allready have an board with about 700 different topics, and there i want to  put option for reviews.
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

EasyRider

#66
Quote from: JPDeni on September 23, 2009, 01:07:10 AM
Hmmmm. Maybe it won't work. The select field doesn't give what I was thinking it would. Hmmmm. Give me a day or two and I'll see if I can work it out. I may have to create a different kind of select field.



Thank you JPDeni ..!

What i thing..  is possible in 'id' => $_REQUEST['topic']  to add option to select from spesific board all  the topics with the url number id? like:

index.php/topic,3984.0.html
index.php/topic,3985.0.html
index.php/topic,3986.0.html
index.php/topic,3987.0.html

And showing the title like  "example movie " in drop-down field for  3984 topic.
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

JPDeni

700?!?!!?  :o

I was going to suggest a drop-down list, but that's too many for a drop-down.

Hmmmmm.

Let me think some more. What I came up with won't work for that many items. I have another idea that might work, but I have to think about it a bit. (And I have to make dinner.  ;) )

I just saw your latest post. Yes, that's what I was thinking, except that I'm not sure how the URL will work because of the format. I just have to let it work in my brain for a little while.

JPDeni

I can't use the "Search engine friendly URLs", so I can't test it out, but I think that you should be able to just use


'id' => $_GET['topic'] ,


without having to create a field for the topic. Could you check that on your site and see if it works?

Likely you will not want the form to appear on the board index, where all the topic titles are listed. I can give you the code for that, but first I would like to be sure that the code above works.

EasyRider

quote author=JPDeni link=topic=29670.msg247259#msg247259 date=1253670252]
I can't use the "Search engine friendly URLs", so I can't test it out, but I think that you should be able to just use


'id' => $_GET['topic'] ,


without having to create a field for the topic. Could you check that on your site and see if it works?

Likely you will not want the form to appear on the board index, where all the topic titles are listed. I can give you the code for that, but first I would like to be sure that the code above works.
[/quote]


ÃŽâ€"ι JPDeni..!  :)

I try with that code
$topicOptions = array(
'id' => $_GET['topic'] ,
'board' => $board_id,
'poll' =>  null,
'lock_mode' =>  null,
'sticky_mode' =>  null,
'mark_as_read' => true,
);


but nothing happen..  same action like before..
SMF  1.1.11 / TinyPortal v1.0 beta 4 /default theme

This website is proudly hosted on Crocweb Cloud Website Hosting.