Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 129
S
santana Offline OP
Member
OP Offline
Member
S
Joined: Sep 2000
Posts: 129
Hello all

I was wondering how we can allow visitors to post with a fix subject.
What I mean by fix subject is that visitors cannot change the subject.

I am doing this because I am integrating Censura Review system with Ubbthreads.
I am able to put the url of the ' newpost.php?Board=xxx ' on the page, how can we insert a subject that into this url?

I hope it's not confusing you guys too much

here is the example that I have in mind:

Subject=Fix]http://www.domain.com/forum/newpost.php?Cat=Board=myforum&Subject=Fix Subject

Thanks



...... x ......
Using UBBt 6.4.2 + Digg Ajax Mod, Trust Ajax Mod, Captcha Regristation & Login mod, Checkusername Ajax mode.
Sponsored Links
Joined: Aug 2000
Posts: 1,609
A
Addict
Offline
Addict
A
Joined: Aug 2000
Posts: 1,609

Joined: Sep 2000
Posts: 129
S
santana Offline OP
Member
OP Offline
Member
S
Joined: Sep 2000
Posts: 129
Hai.

Okay, sorry to confuse you

Let me rephrase the question.

In vBulletin we can use this url to make a new post with subject in place which is "Hello":
http://yourdomain.com/newthread.php?s=&do=newthread&forumid=1&subject=Hello


In phpBB we can use this:
http://yourdomain.com/posting.php?mode=newtopic&f=1&subject=Hello

Now, what is the url format for the Ubbthreads?

So, when someone click on that link, he/she will be presented with a form and the Subject, "Hello" will be in the column automatically. (See attachment)



Thanks

Attached Images
96770-Hello.gif (0 Bytes, 21 downloads)

...... x ......
Using UBBt 6.4.2 + Digg Ajax Mod, Trust Ajax Mod, Captcha Regristation & Login mod, Checkusername Ajax mode.
Joined: Apr 2002
Posts: 1,768
D
Addict
Offline
Addict
D
Joined: Apr 2002
Posts: 1,768
That would require a hack. It would probably involve changes to several files.

Joined: Aug 2000
Posts: 1,609
A
Addict
Offline
Addict
A
Joined: Aug 2000
Posts: 1,609
[]Dave_L said:
It would probably involve changes to several files. [/]

Way to discourage anyone that may want to try it.

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Offline
Addict
Joined: May 1999
Posts: 1,715
Hehe, yes, probably. I don't the changes would be very extensive though, just add $Subject = get_input("Subject"); to the php script and 'value="$Subject"' into the subject input field in the corresponding template file.

Joined: Apr 2002
Posts: 1,768
D
Addict
Offline
Addict
D
Joined: Apr 2002
Posts: 1,768
There may be several templates involved, due to the poll stuff. And since he doesn't want users to be able to change the subject, the input tag would have to be changed to a simple text display, and this would have to be done in the preview and edit templates, as well as in the new post template. It shouldn't be that tough, just tedious.

Joined: Sep 2000
Posts: 129
S
santana Offline OP
Member
OP Offline
Member
S
Joined: Sep 2000
Posts: 129
Dave

Yes, if the users cannot be able to change the subject, that would be too much work. I think to let the users change the subject would be okay though, since most of the time users won't change it anyway. (i.e. when they reply, they don't bother to change the subject)

I will try what Garderer says, I let you guys know.

Thanks.


...... x ......
Using UBBt 6.4.2 + Digg Ajax Mod, Trust Ajax Mod, Captcha Regristation & Login mod, Checkusername Ajax mode.
Joined: Sep 2000
Posts: 129
S
santana Offline OP
Member
OP Offline
Member
S
Joined: Sep 2000
Posts: 129
Gardener, . It works pretty nice!

Thanks


...... x ......
Using UBBt 6.4.2 + Digg Ajax Mod, Trust Ajax Mod, Captcha Regristation & Login mod, Checkusername Ajax mode.
Joined: May 1999
Posts: 1,715
Addict
Offline
Addict
Joined: May 1999
Posts: 1,715
Does the disabled tag work on input fields nowadays? Try adding something like disabled="disabled" into the input field as well.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Pilgrim
Pilgrim
NH, USA
Posts: 190
Joined: June 2000
Forum Statistics
Forums63
Topics37,552
Posts293,830
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 257
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 4
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,809
Greg Hard 4,625
Top Posters(30 Days)
stell 3
Gizmo 1
Morgan 1
isaac 1
Top Likes Received
isaac 66
Gizmo 12
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.066s Queries: 36 (0.025s) Memory: 3.3377 MB (Peak: 3.5761 MB) Data Comp: Zlib Server Time: 2021-03-04 13:22:02 UTC
Valid HTML 5 and Valid CSS