![]() |
Newreply outsided closed forum
I have an Announcements forum writable only by staff members. I would create another forum like Annoucement Discussions to let users to reply ...
But would 'automatize' the reply. I mean, for example, to add a 'reply' button after an announcements thread leading the user to create a new thread, with the same title and quoting the announce text, into another forum. Is it too difficult ? Is there anything similar ? Thank you. |
You can create a reply button with this sort of links: newthread.php?s=$session[sessionhash]&forumid=XX&subject=XX
|
Quote:
An way to fill-up some part of the message body ? I guess I should slightly modify the code to parse querystring... Right ? |
You can include &message=YYY in the URL, that should work.
|
The usual missing variable initialization ?? :) :) :)
Btw, query string (and url) is limited to 250 chars. I don't think with the right htmlparsestring() function they are enough. Thanks. I'll think to something else... :) Bye |
Query strings are not limited in any way (other than your internet connection).
https://vborg.vbsupport.ru/newreply....ars-Right-Here |
Very very interesting. Nice !
:D Thnaks |
Quote:
Which VB function could I use for example for $thread[title] ? Thanks |
You can use the PHP function urlencode(), but I'm not sure it's needed.
|
Oh, YES it is !!! :D
I added in showthread.php something like: PHP Code:
Code:
<a href="newthread.php?s=$session[sessionhash]&forumid=XX&subject=$threadtitle"> GREAT !! Thanks for your support. Next step: to look for an existing thread with such title instead of creating a new one each time ... :D :D :D |
Glad I could help. :)
BTW, it's much wiser to check the $forum[forumid] rather than its title. :) |
Yes... First I would give a touch of 'GA'... :D
|
Quote:
Btw, Chen, I created a button with a link: Code:
<a href="newreply.php?s=$session[sessionhash]&forumid=XX&subject=$threadtitle"> PHP Code:
Thanks |
I think it would be a great hack to release!:)
Satan |
All times are GMT. The time now is 02:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|