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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,165
  • Total Topics: 21,346
  • Online today: 678
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 287
  • Total: 287

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.

Angelotus

Hi, is it possible to get an ajaxbased popup screen to post, so that I only have a link to the popupscreen on my index???

Dragooon

It is I think But I got no idea how to do that :)

Angelotus

It would be great if someone is able to make something like that!

evilicy

Sweeeet! This looks awesome can't wait to try it.

phfire

Quote
8: Undefined variable: message
File: /home/butuanon/public_html/forums/Sources/QuickPost.php
Line: 126

Line 126 of QuickPost.php
   
QuoteMessage:
<textarea id="message" class="editor" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '"', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? ' style="border: 1px solid red;"' : '', '>', $message, '</textarea>



phfire

#15
Error when I post a topic using quick post.

Quote8: Undefined index: icon
File: /home/butuanon/public_html/forums/Sources/QuickPost.php
Line: 490

Line 490 of QuickPost.php
Quote'icon' => preg_replace('~[\./\\\\*\':"<>]~', '', $_POST['icon']),

Dragooon

OK, I'll soon upload a bugfix release.

Ricky.

Is it possible to send post only to a specific board ?

Dragooon

Open QuickPost.php
Find :
$query = db_query("
SELECT c.name AS catName, c.ID_CAT, b.ID_BOARD, b.name AS boardName, b.childLevel, b.boardOrder
FROM {$db_prefix}boards AS b
LEFT JOIN {$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)
                WHERE $user_info[query_see_board]
                $check"
                , __FILE__, __LINE__) or die(mysql_error());

And replace it with
$query = db_query("
SELECT c.name AS catName, c.ID_CAT, b.ID_BOARD, b.name AS boardName, b.childLevel, b.boardOrder
FROM {$db_prefix}boards AS b
LEFT JOIN {$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)
                WHERE $user_info[query_see_board]
AND b.ID_BOARD = 1
                $check"
                , __FILE__, __LINE__) or die(mysql_error());

Replace that 1 with ID of that board.

Ricky.


This website is proudly hosted on Crocweb Cloud Website Hosting.