Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Pluhnews question Details »»
Pluhnews question
Version: , by Borsti Borsti is offline
Developer Last Online: Jul 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-13-2002 Last Update: Never Installs: 0
 
No support by the author.

Hi,

I?m testing around with Pluhnews. Now my Question is if I can use PluhHeader and PluhNews alltogether on one page (with include)? I?m getting PHP errors when I try that. Can that be done? I want to combine that with Anchor Links on top of the page.

I also would like to make the include call from a php page in another directory but I?m getting PHP errors with not finding ./global parameters.

The last one is the date format: http://www.php.net/manual/en/function.date.php

Are there some available in other languages (german in detail). I would just need the days.

Thanks a lot!

Lars

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-13-2002, 10:06 AM
Borsti Borsti is offline
 
Join Date: Oct 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm.. when I only include PluhNews.php on another site I get this strange error:

Code:
Warning: Cannot add header information - headers already sent by (output started at /usr/local/etc/httpd/htdocs/forums/news_d.php:9) in /usr/local/etc/httpd/htdocs/forums/admin/functions.php on line 1573
Do they mean HTML headers? I don?t want to let that define by Pluhnews. Any help?

Lars
Reply With Quote
  #3  
Old 11-13-2002, 11:28 PM
Borsti Borsti is offline
 
Join Date: Oct 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I got it... have to move all the initialization stuff into the page, where I include the pluh php´s
Reply With Quote
  #4  
Old 11-14-2002, 05:10 PM
Jwolfe Jwolfe is offline
 
Join Date: Oct 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you post specifically what you did to clear up this error? I have been getting the same error and it's just about driven me to insanity.

Thanks in advance.
Reply With Quote
  #5  
Old 11-14-2002, 11:14 PM
Borsti Borsti is offline
 
Join Date: Oct 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem seems to be that the initialization and the DB calls comes up twice if you include both headline and news in one PHP page. I did´nt try it yet (because lack of time) but if I understood it right, then setting all the Headers and Variables should happen in your PHP file to prevent double declarations... something like that.

Hope that helps! I´ll be very busy during the next days but I might be able to verify that next week!

Lars
Reply With Quote
  #6  
Old 11-15-2002, 01:15 AM
Jwolfe Jwolfe is offline
 
Join Date: Oct 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I understand what you are saying, I have tried this. I still get the same errors.
Reply With Quote
  #7  
Old 11-15-2002, 01:27 AM
Borsti Borsti is offline
 
Join Date: Oct 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you delete the definitions in the News and Headline files after putting them into your include page?
Reply With Quote
  #8  
Old 11-15-2002, 03:58 PM
Jwolfe Jwolfe is offline
 
Join Date: Oct 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not sure what you mean by 'definitions'.

This is my error:

Warning: Cannot add header information - headers already sent by (output started at c:\hosting\hostname\member\myname\forums\news.php: 7) in c:\hosting\hostname\member\myname\forums\admin\fun ctions.php on line 1573


After I installed this script, I changed the variables in the PluhConfig.php to suit my requirements. I checked to see that the single file, PluhHeadlines.php and PluhNews.php was working correctly. My initial test and viewing in the browser led me to believe it was.

Next, I created a new .php page (which I refer to as my 'news page' and named it news.php), which is the page that was to initiate the script. I did this with an include statement. This page also was placed in the forums directory.

While working on this page, and viewing it in my browser, the above error started to appear. The error appeared randomly. I could not reproduce it consistently. In fact, sometimes the page would load correctly on my machine, and not load correctly on several other machines and vice versa.


Here are my trouble shooting steps:

1. I again went back to loading and viewing the PluhNews.php and PluhHeadlines.php page alone. The error appeared randomly again (on several different machines all not producing the errors consistently or at the same load time), and I could not determine what was triggering it.

2. I tried inserting the variables and eliminating the include PluhConfig.php statement in PluhHeadlines.php and PluhNews.php. Again, the errors appeared.

3. I created a test page to replace my news.php page and placed it in a different directory. Again, the errors appeared randomly.

4. I created another test page, and eliminated all include statements, combining the script into one page. Again, the errors appeared randomly.

5. I am not quite sure I even understand the error statement. So I reason if this error is happening randomly perhaps it is a cookie issue/cache issue. I turn to vBulletin control panal to investigate.

6. "Add Standard headers
This option does not work with some combinations of web server, so is off by default. However, some IIS setups may need it turned on. It will send the 200 OK HTTP headers if turned on."

I tried setting this to "yes". The errors did not go away.

7. "Add No-cache headers
Selecting yes will cause vBulletin to add no-cache HTTP headers. These are very effective, so adding them may cause server load to increase due to increase page requests."

I tried setting this to "yes". The errors did not go away.

8. I did a search for similar errors on the official vBulletin page, and lo and behold found one. The exact same error. This person was advised to check that there were no spaces before or after the <? and ?>. His problem was resolved. I check to see if this is the case with my issue, and unfortunately, it was not.

9. I do a search at vBulletin.org to see if anyone has a similar issue and stumbled on your post.

I am at a loss. The fact that this issue is random and a few others have reported the same issue leads me to believe something is not speaking correctly between the script and vBulletin. Maybe it has to do with server setup. At this point, I've just about given up and am looking for another script. I am on a deadline to get this project published, and I am not a php programmer. If I had the time right now to learn this, I would but the bear is chomping at my door right now so I am at this point looking for another script or someone to take some sympathy on my predicament and tell me exactly what this error statement is telling me.

Thanks for your time.
Reply With Quote
  #9  
Old 11-16-2002, 08:15 PM
Jwolfe Jwolfe is offline
 
Join Date: Oct 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check your pms... I solved this.
Reply With Quote
  #10  
Old 12-01-2002, 05:32 AM
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Location: Chandler, Arizona
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jwolfe
Check your pms... I solved this.
How about sharing it with the rest of us?

(I'm having the same exact problem)
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 11:10 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.04748 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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