TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 219
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 129
  • Total: 129

Quick Post to any board panel

Started by Megaforum, November 11, 2007, 05:15:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dragooon

Here is a Quick post to Any Board Panel based on a request made here.


Please Note: Due to my personal issues, I have not been able to test this much. So chances are that this might be buggy. Any Feedback will be greatly appreciated.
Also I want to say that, I recommend using this for a specific member Group or 2 as this can result a spam session on your forums.


Features :
# Does Permission checks, A User can post only where he/she can post
# Support Smileys and BBC
# Notify the people who are watching that board where the post is posted(Wasn't able to test this, hopefully it should work)
# Made sure of security
# Have ability to hide/show BBC and Smileys without page refresh(Using JavaScript)


Implementation :
Step 1 : Download QuickPost.php(Attached) and upload to /Sources directory
Step 2 : In Index.php(The one in Root folder of your SMF) Find:
$actionArray = array(
'activate' => array('Register.php', 'Activate'),

Add After
                'quickpost' => array('QuickPost.php', 'QuickPost_Action'),
Step 3 : In a PHP Block Add
/***********************************
*   Quick Post to any Board Panel
*   By Dragooon                           
*   Version 1.0                           
*   www.gforumx.com 
*   Block Code
************************************/
// Make the globals
global $sourcedir;

// And call the file.
require_once($sourcedir . '/QuickPost.php');
/***********************************
* About
************************************/
/* This snippet is made by Dragooon based on a Request made over TinyPortal.net. Unlikely my other snippets, currently it does not have any customization options(Well Why would we needing one on a Quick Post Panel ?) */
/***********************************
* End About
************************************/
// Call the function and finish this thing
QuickPost_Template();

// Thank you for using this snippet :)

And it is done


A Special Thanks to.....
IchBinâ,,¢ for making me remind about ensuring security
J.A.Cortina for helping me with permission checks and reminding me about Notification
tamasir for releasing his Show/Hide Code which I used as Show/Hide BBC


Quick Post to any board panel
By Dragooon
Version 1.0

Please use this thread to report any bugs/errors, feedbacks or questions.

Again Please Note: Due to my personal issues, I have not been able to test this much. So chances are that this might be buggy. Any Feedback will be greatly appreciated.

The Danger

Isn't working for me... all I got was an empty block.
I copied the file and pasted all the code... isn't working.
Started over and tried it again, still nothing.

IchBin

Did you put the Quickpost.php file in the Sources directory?

The Danger

Sure did.
If one of you would like to/are willing to take a look at my setup, I don't mind making you an acct

Dragooon

PM Me FTP and Admin Info and I'll see what is wrong.

fangweile

Would it be possible to use this as quick post to a certain topic within the specific board??

Dragooon

Hmmm...Not Sure I think so it will be But I have no intension on doing it.

Xarcell

Wow, this is a nice handy little script. Nice work Dragooon.


Angelotus


This website is proudly hosted on Crocweb Cloud Website Hosting.