Create a new Add-on page - Another Web Company
ArcadeDownloadsNewslettersForum MenuNavigationWhat AWC OffersWiki ToolsLogin or Create Account

Log in

You must have cookies enabled to log in to Main Site - Local.

 

Create a new Add-on page

From Another Web Company

If you would like to create a new page on AWC's Wiki with your Forum's Add-on information, please do so by using the text box below.


In the above text field enter the Wiki page name you would like to create.
After you submit that you will be taken to the standard wiki editing box with the following pre-loaded template.

<!-- Please fill in the info below -->
<!-- 
   When adding the HOOKS used in your Add-on PLEASE use the full HOOK name:
    Example:
      hook1 = awcsforum_rawpost 
      hook2 = awcsforum_subscribe_get_email_address 
      hook3 = awcsforum_send_mail
-->

{{ForumAddon
| top_color = <!-- coloring for table display -->
| left_color = <!-- coloring for table display -->
| right_color = <!-- coloring for table display -->
| addon_name =
| forum_ver = 
| addon_ver =
| your_name = 
| your_link = <!-- http:// or Email or Nothing -->
| date = 
| support_link = 
| file_name = 
| hook1 = 
| description = 
}}

<!-- Your code can go in the <source> tag -->
<source lang="php">



</source>




<br />


Example

Text box above Your new wiki page name: = Sending an Email to Sysops for new polls
Then click "Create New Add-on Page"
That will bring you to the normal wiki editing box with the above template pre-loaded.
Fill out the template...

{{ForumAddon
| top_color =
| left_color =
| right_color =
| addon_name = Alert Syops of Polls
| forum_ver = 2.5.5
| addon_ver = 1.0.0
| your_name = Jane Doe's
| your_link = http://google.com
| hook1 = awcsforum_add_newpoll
| hook2 = awcsforum_send_mail
}}

<!-- Your code can go in the <source> tag -->
<source lang="php">
 
 $wgHooks['awcsforum_add_newpoll'][] = 'fnMyHook1';
 $wgHooks['awcsforum_send_mail'][] = 'fnMyHook2';

 function fnMyHook1( &$thread_info, &$poll_info ) {
// your code...

 }

 function fnMyHook2( &$to_address, &$from_address, &$send_title, &$awcsf_css_output, &$send_body, &$reply_address, &$contentType ) {

// your code...

 }
</source>

And your new Add-on page will look like so...



Sending an Email to Sysops for new polls

Jane Doe's Alert Syops of Polls Forum Add-on

Forum Version2.5.5
Add-on Version1.0.0
Hooks used:

awcsforum_add_newpoll,  awcsforum_send_mail

$wgHooks['awcsforum_add_newpoll'][] = 'fnMyHook1';
 $wgHooks['awcsforum_send_mail'][] = 'fnMyHook2';
 
 function fnMyHook1( &$thread_info, &$poll_info ) {
// your code...
 
 }
 
 function fnMyHook2( &$to_address, &$from_address, &$send_title, &$awcsf_css_output, &$send_body, &$reply_address, &$contentType ) {
 
// your code...
 
 }







Whos here now:   Members 0   Guests 0   Bots & Crawlers 1