vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Quick Thread hack (like quick reply, on forumdisplay!) (https://vborg.vbsupport.ru/showthread.php?t=61502)

Steve123 03-14-2004 02:00 AM

You mite wanna add

PHP Code:

forumdisplay_quickthread 

to the $actiontemplates array at the start of the forumdisplay.php..

Or when it calls for the template it will create a query..

maverick1236 03-25-2004 12:23 PM

how can i add smilies to this?

Red Blaze 03-26-2004 03:54 PM

Gary, when I add

PHP Code:

or $bbuserinfo[usergroupid] == 

I get an parse error. I want to add only the staff to see the quick post. Right now, I only have admins viewing it.

Gary King 03-26-2004 07:31 PM

Quote:

Originally Posted by Sonikku
Gary, when I add

PHP Code:

or $bbuserinfo[usergroupid] == 

I get an parse error. I want to add only the staff to see the quick post. Right now, I only have admins viewing it.

You have to change X to the usergroupid.

Red Blaze 03-26-2004 09:28 PM

I did. :p But still got that error.

Gary King 03-26-2004 10:42 PM

You didn't even tell us what error you get ;)

Red Blaze 03-27-2004 02:13 AM

It's a parse error. Doesn't tell me anything else but that there's wrong coding on that line. Sheesh, nevermind, I'll just use it for admin use.

Gary King 03-27-2004 03:08 AM

Quote:

Originally Posted by Sonikku
It's a parse error. Doesn't tell me anything else but that there's wrong coding on that line. Sheesh, nevermind, I'll just use it for admin use.

Even posting the parse error will help; if you don't want to post it, we can't help you. If we can't help you because you don't want to post the parse error, there isn't any reason to get angry at us :)

Red Blaze 03-27-2004 06:04 PM

Here

Parse error: parse error in /home/thesonic/public_html/home/forum/forumdisplay.php on line 205

Is that really that much help? It only tells you what line it is and it's

elseif ($bbuserinfo[usergroupid] == 6)or $bbuserinfo[usergroupid] == 5

I also tried:

elseif ($bbuserinfo[usergroupid] == 6) or $bbuserinfo[usergroupid] == 5

and

elseif ($bbuserinfo[usergroupid] == 6)
or $bbuserinfo[usergroupid] == 5

Still got that same error.

The elseif code works, it's the "or" that doesn't.

Gary King 03-27-2004 07:45 PM

Quote:

Originally Posted by Sonikku
Here

Parse error: parse error in /home/thesonic/public_html/home/forum/forumdisplay.php on line 205

Is that really that much help? It only tells you what line it is and it's

elseif ($bbuserinfo[usergroupid] == 6)or $bbuserinfo[usergroupid] == 5

I also tried:

elseif ($bbuserinfo[usergroupid] == 6) or $bbuserinfo[usergroupid] == 5

and

elseif ($bbuserinfo[usergroupid] == 6)
or $bbuserinfo[usergroupid] == 5

Still got that same error.

The elseif code works, it's the "or" that doesn't.

Glad you posted that, next time please remember to post the line and error instead of just saying 'no it won't help' :)

Try this and I'm sure it will help ;) (replace your old line)
PHP Code:

elseif ($bbuserinfo[usergroupid] == or $bbuserinfo[usergroupid] == 5



All times are GMT. The time now is 10:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01104 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete