vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Thread Prefixes (https://vborg.vbsupport.ru/showthread.php?t=99925)

Mike Blitz 04-04-2006 07:12 PM

yeah thats why I mean

i just have to do a template edit right?

Mystics 04-04-2006 07:14 PM

Quote:

Originally Posted by Mike Blitz
i just have to do a template edit right?

No, just change it in your vBulletin settings.

slamdog 04-07-2006 07:13 AM

I'm getting a problem now...

on the test board, everything works fine...

on the main site when you try to post anything you get this error

Quote:

Fatal error: Only variables can be passed by reference in /home/ebaypimp/public_html/forums/includes/functions_newpost.php(335) : eval()'d code on line 3
before installing this mod on the main board I have reverted all the templates, uninstalled every other modification and tried to start clean. I'm stuggling now to figure out what is wrong. As soon as I disable the product the board works fine. I can't understand why it is ok on my test server but failing on the live site.

Mystics 04-07-2006 12:48 PM

Do you have more than one plugin using the hook newpost_process? The prefix plugin should contain this code:
Code:

if ($type == 'thread')
{
        $dataman->setr('threadprefix', htmlspecialchars_uni($post['threadprefix']));
}
global $global_threadprefix;
$global_threadprefix = $threadinfo['threadprefix'];

Try to replace "setr" with "set".

Or try to replace the whole plugin code with this:
Code:

if ($type == 'thread')
{
        $postthreadprefix = htmlspecialchars_uni($post['threadprefix']);
        $dataman->setr('threadprefix', $postthreadprefix);
}
global $global_threadprefix;
$global_threadprefix = $threadinfo['threadprefix'];


slamdog 04-07-2006 02:58 PM

you sir are a genius... i could have your babies for that fix...

it worked perfectly.. (i replaced the whole plugin...)

chikkoo 04-11-2006 01:24 PM

Quote:

Originally Posted by lexzep
Oh I' ve got an other problem now.
The wysiwyg editor doesn't want to add bbcode when I click on some button.

Everything went smooth.

But finally, I realized I too have this problem.

Lexzep, did you figure out the problem?

Some one HELP me.

counterform 04-12-2006 07:59 PM

Question: I have some old prefixes showing in the search dropdown that are no longer prefixes in any forum, and are no longer associated with any threads. Is there a way to clean these off the list?

Mystics 04-13-2006 02:11 PM

Quote:

Originally Posted by counterform
Question: I have some old prefixes showing in the search dropdown that are no longer prefixes in any forum, and are no longer associated with any threads. Is there a way to clean these off the list?

If they are shown in the search dropdown, they are associated with at least one forum or are global prefixes in your vB options.

ssharleen 04-13-2006 04:19 PM

hello, thx for your hack, but i have a big problem :

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

                                SELECT postid, post.title, pagetext, post.threadid, IF(thread.threadprefix <> '', CONCAT('[', thread.threadprefix, '] ', thread.title), thread.title) AS title AS threadtitle
                                FROM post AS post
                                INNER JOIN thread AS thread USING(threadid)
                                WHERE postid = 6;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS threadtitle
                                FROM post AS post
                                INNER JOIN thread AS thread USING(threa' at line 1
Error Number : 1064
Date        : Thursday, April 13th 2006 @ 07:17:11 PM
Script      : http://***.***.***.***/newthread.php
Referrer    : http://***.***.***.***/newthread.php?do=newthread&f=8

but the post is correctly created.

can anyone help me to remove this bug plz ?

Mystics 04-13-2006 05:48 PM

Quote:

Originally Posted by ssharleen
hello, thx for your hack, but i have a big problem :

Find this in includes/functions_databuild.php:
Code:

SELECT postid, post.title, pagetext, post.threadid, IF(thread.threadprefix <> '', CONCAT(thread.threadprefix, ' - ', thread.title), thread.title) AS title AS threadtitle
Replace it with:
Code:

SELECT postid, post.title, pagetext, post.threadid, thread.title AS threadtitle
Actually I'm not sure where this edit comes from...I can't find it in the instructions. Do you see this in your prefixinstall_text.php?


All times are GMT. The time now is 09:02 PM.

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.01392 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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