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.

ApplianceJunk

This looks like something I could put to good use.

I gave it a try and get this error message showing up on my site in the phpbox.

QuoteParse error: parse error, unexpected T_DEC, expecting T_VARIABLE or '$' in /home/content/a/p/p/appliancejunk/html/forums/Sources/Load.php(1753) : eval()'d code(35) : eval()'d code on line 25

Did I not get something correct?

Thanks

Dragooon

Are you sure you pasted the whole code?

Ricky.

Is it possible to remove certain boards from the list ?
Like.. adding an exclude list ?

Dragooon

You got a code like this
$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());

Replace the part with
$exclude_boards = array(1,2,3);
$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
AND b.ID_BOARD NOT IN('".implode(',',$exclude_boards)."')"
                , __FILE__, __LINE__) or die(mysql_error());

ApplianceJunk

Quote from: Dragooon on February 18, 2008, 07:18:58 AM
Are you sure you pasted the whole code?

Looks like that was the trouble.
Now it's working. :)

This is awesome!

A couple more questions.
I have this is a center box and the word "Subject:" is to the right of the "Select a board:" Drop down menu and not to the left of the subject box that is below the drop down menu.

Also in my regular posting box I have a second text box show up like the "Subject:" box that is called "Model Number:".
Would it be easy for me to find and add this to the quick post too.

Thanks,

Ricky.

You need to edit quickpost.php, I did to make it suitable to my need.

Angelotus

#26
Quote from: Angelotus on January 18, 2008, 10:09:40 AM
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???

I have on my site (http://www.klifix.eu) on the top right site (link calls 'direct posten'). Give it a try. If you register you can see the whole function.

It uses the greybox function: http://www.orangoo.com/labs/GreyBox/

Ricky.

Hi... seems there is a glitch, actually I found that if user select certain forum then it is actually posting in some different forum..


Also, how do I make "forum" listing box little bigger as I am using it in article page but not in side bar. ie. I want to use full forum name instead of short one..

Dragooon

I'm unable to understand what does your "glitch" means?

Ricky.

I asked your previously that how to remove certain boards from the list.
I did that and removed some board.
But still I found that member are able to post in those forum using "Quick Post" block code you gave.
so glitch is that, somehow people are able to post on those boards which are not even listed in the FORM.

This website is proudly hosted on Crocweb Cloud Website Hosting.