Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 129
Member
Member
Offline
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
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609

Joined: Sep 2000
Posts: 129
Member
Member
Offline
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
Attachments
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
Addict
Addict
Offline
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
Addict
Addict
Offline
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
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
Addict
Addict
Offline
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
Member
Member
Offline
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
Member
Member
Offline
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
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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)