Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Custom function after new post/topic
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom function after new post/topic

 Post Reply Post Reply
Author
lostcontrol View Drop Down
Groupie
Groupie


Joined: 13 January 2006
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote lostcontrol Quote  Post ReplyReply Direct Link To This Post Topic: Custom function after new post/topic
    Posted: 01 December 2010 at 10:27am
Hello,

I would like to call a custom function right after a user has posted a new message or created a new topic.

Could you please tell me in which files are these actions taking place in order to modify them?

I am using v9.61

TIA


Edited by lostcontrol - 01 December 2010 at 10:31am
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2010 at 8:34am
What is the custom function that you are looking to call?
Back to Top
lostcontrol View Drop Down
Groupie
Groupie


Joined: 13 January 2006
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote lostcontrol Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2010 at 9:39am
By a custom function I mean a function of mine (haven't created it yet) which I want to call right after a new post or a new topic has been created..

I tried looking at the forum files but I am not 100% sure in which file(s) a new post/topic is created, so I can edit those files and call my function.
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2010 at 8:13pm
In your main forum directory there is a asp file called new_post.asp

Try looking at that first
The trouble may be (and I'm not being flippant) is you mention this "function", but then it depends on what the function is going to do

Also if you look at the new_post.asp file, you will see that it has these includes:

<!--#include file="common.asp" -->
<!--#include file="functions/functions_send_mail.asp" -->
<!--#include file="functions/functions_format_post.asp"    -->
<!--#include file="includes/emoticons_inc.asp" -->

So adding a custom function (especially when you have not created it yet), might be easier said that done. Good luck with your project though
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.