Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2001
Posts: 34
Member
Member
Offline
Joined: Oct 2001
Posts: 34
Is it possible to add a pre formatted text file to be included in all posts to a specific forum? For instance I want to open a private forum on my board where members could post items for sale and items they are looking for.

Could I add a disclaimer to the bottom of each post, like a second signature automatically? Does anyone have any ideas? Is this at all possible? I know that the version 5 mods are fading quickly. Is there anyone that could write a hack like this? Please let me know. Thanks

Sponsored Links
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
this is one way to realize it:
Code
code:

backup postings.cgi before modifying!

Joined: Oct 2001
Posts: 34
Member
Member
Offline
Joined: Oct 2001
Posts: 34
joking-down,

Thank you so much for your help. I kept getting 500 errors at first with the mod. After checking the
Code
code:
I realized that the ( " ) were missing. I added them to look like this:
Code
code:
and it worked like a charm.

Thanks again!

Greg

Joined: Oct 2001
Posts: 34
Member
Member
Offline
Joined: Oct 2001
Posts: 34
joking-down,

Is there a way to include this disclaimer when a new topic is created to that same specific forum as well. The disclaimer mod works great on the topic replies, but doesn't work at all when a new topic is created. Any idea's? Thanks

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
reload,
Did you add the code in both locations? Above it says:

"find in sub DoPostTheReply and DoPostTheTopic"

Did you add the code in BOTh subs? I haven't tried this so I gotta ask. smile

Sponsored Links
Joined: Oct 2001
Posts: 34
Member
Member
Offline
Joined: Oct 2001
Posts: 34
Vipermad & joking-down,

My mistake, thanks. I see where I screwed things up.

In postings.cgi I only found one occurrence of:

Code
code:

And I added the mod afterwards. This was DoTheReply. I found out where I messed up (After reading things over again) and that was on the DoThePost subroutine. What I had to look for was different. Instead of finding two occurrences of this:

Code
code:

I found only one, and the other should have been this:

Code
code:

I added the code below those occurrences respectively, as outlined above.

Code
code:

And...

Code
code:

Now that I have added that second part everything works in both posting new topics and replies.

Thanks again to joking for supplying the code and to you Vipermad for pointing out my mistake.

Joined: Oct 2001
Posts: 34
Member
Member
Offline
Joined: Oct 2001
Posts: 34
I just noticed something when a member edited their post. The disclaimer doesn't get removed from the text box when editing, and when the edited text is posted, the HTML of the disclaimer that is in postings.cgi now gets posted as text. Meaning the < becomes & lt; and the > becomes & gt;.

This doesn't happen when someone posts a new topic or replies to a topic, only on an edit. I have solved this temporarily by enabling HTML in that particular forum. I wanted to know if there is a permanent solution to this? Any ideas?

[ 11-07-2001: Message edited by: reloadbench ]

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
reload....
Look in ub_library.pl for sub EditUBBConvert and there should be several examples of what you need to do so you can TURN OFF html and still have your disclaimer appear correctly. Have a look and let us know if you need help. smile


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)