Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 05-06-2008, 02:09 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did indeed try that. But no error when saved when inactive. I can actually recreate the error by linking you to the same page you get after editing: http://www.cogonline.net/forums/show...025#post351025

I may just have to go through my HTML with a fine tooth comb.

--------------- Added 06 May 2008 at 12:51 ---------------

Hrm, I think I know what was wrong. I think I was missing the $post[scrolltothis] variable. Just a guess, but I'm not getting the error now.
Reply With Quote
  #12  
Old 05-08-2008, 07:59 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I might ask an additional question related to this, I thought I was being pretty smart here, but apparently, reality is determined to prevent that from ever happening.

What I was trying to do was change the first post in the thread using this plugin, then I made the forum I was using it in use a child style. I pasted in the postbit code into postbit_legacy of the child style, and set the plugin to include that forum. The intention, was to keep the rest of my forum in postbit_legacy, have the specific forum use the postbit layout AND alter the first post of threads in that forum.

Well, it works. Problem is, I get one of those dreaded repetative errors at the top of the page. Warning: Unexpected character in input: ''' (ASCII=39) state=1 in forum/path/forums/includes/class_postbit.php(296) : eval()'d code on line 224.

I've managed to use the plugin several times with no problems and with different postbit designs. Is the child style my problem now?

Maybe there's was a simpler way to go about what I was trying?


EDIT: And if I might add, the posts look kind of funky. The content is off center.
Reply With Quote
  #13  
Old 05-08-2008, 08:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me see if I understand what you've done.

You have a site with several forums. One forum, x, you want to have shown with a new template as the first post and the rest of the posts in the thread show the postbit template. For all the other forums, you want the postbit_legacy template to be used.

So, you have postbit_legacy set to be the post template used, then you created a new style, a child of your main one, and replaced the postbit_legacy template with the postbit template. You set this style as the default forum style for that forum in the Forum Manager. And, you have a plugin that says when in forum x, use a new template for the firstpost in the thread.

The way you have done it *should* work. However, there seems to be a problem with another plugin you have that uses the postbit_display_complete hook (executed on line 296 of class_postbit.php as shown in your error.) You may want to try disabling any other product using that hook and see if you get that error.
Reply With Quote
  #14  
Old 05-08-2008, 09:43 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You got it. That's exactly what I was trying to do.

Okay, strange happenings. I didn't realize the error was site wide. Some forums wouldn't show at all. Disabling each one using that hook didn't have any effect. So I turned off the forced style in the Forum Manager, to no effect. I deleted the child style, and still kept getting the error. So I just decided to delete the plugin and try again...

And it's working okay now.

Is it possible that when I first saved the plug, it didn't save right? Can a plugin be corrupted somehow? I quadruple checked the code to make sure it was correct the first time. (DJ's school of coding. When all else fails, delete everything.)
Reply With Quote
  #15  
Old 05-08-2008, 09:53 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have any other plugins using that hook? I wonder if two plugins are conflicting with each other.

What about, are you sure your new postbit is correct? Maybe try testing it out on a test site or on a style that only you have access to and see if it is your postbit causing the error.
Reply With Quote
  #16  
Old 05-08-2008, 10:19 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did try that, but continued to receive the error until I deleted the plugin altogether. But like I said, it's working fine now. The solution seemed to require me to delete the plugin and make it again. The thing is, I'm sure the code was correct the first time. I resaved it four times. But making it over seemed to be only thing that helped. I guess it was corrupted, or maybe my steps where in the wrong order?
Reply With Quote
  #17  
Old 05-08-2008, 10:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason I missed that line that said it was working OK now. (I swear I had my glasses on, but.....). Anyway, I'm glad it is cuz I really couldn't think of why it would not work for you.
Reply With Quote
  #18  
Old 05-09-2008, 12:04 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anything like that happens to me, and I blame it on either the absence or deficiency of caffeine related products.

In any case, many thanks for sharing the plugin with me. It has been the means to a great many ideas that I previously didn't know how to implement.
Reply With Quote
  #19  
Old 08-01-2008, 04:52 AM
tsuNami tsuNami is offline
 
Join Date: Mar 2003
Location: Sao Paulo, Brazil
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you, Lynne.

your solution works like a charm for my board!

regards.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:05 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.04388 seconds
  • Memory Usage 2,243KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete