|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Im doing some modifications to postings.cgi just around the area where this line can be found $TopicSubject = &CensorCheck("$TopicSubject");
Now what I would like to know it how can I tell when the user is trying to post a new topic, and not be replying or trying to edit a thread?
Ive tried checking if action eq "newtopic" but that hasn't worked, any other ideas?
Thanks
I can't afford a good signature editor
|
|
|
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
Use the Who's Online hack.
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
No, there has to be an easier way! A variable is passed in the string action=newtopic action=postreply etc....
There has to be a way I can just refer to these.
I can't afford a good signature editor
|
|
|
|
Joined: Jan 2001
Posts: 1,940
Developer
|
Developer
Joined: Jan 2001
Posts: 1,940 |
All the ubb variables are placed in the %in hash so to see what action they are doing, you must check if ($in{action} eq 'blah_action') ...
qasic
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Thats the string which I tried, I found it further on down in postings.cgi
would it be ok to check for if ($in{action} eq 'newtopic') in the area just above where this line can be found? $TopicSubject = &CensorCheck("$TopicSubject");
Thanks
I can't afford a good signature editor
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
I'm a bit confused, What do ya mean by how can I tell? In what way?
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|