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)
-   -   Phototopost features block on forumhome (https://vborg.vbsupport.ru/showthread.php?t=111699)

Delphiprogrammi 04-01-2006 02:22 PM

Quote:

Originally Posted by steadicamop
Any chance of some support on this please?

make sure you correctly edited inc_features.php and doublecheck the path to that file for example if you have it installed in a directory within the vbulletin directory "/forums/photopost" the path would be

PHP Code:

include('./photopost/inc_features.php'); 

if you have called the directory which hold Photopost gallery it would be

PHP Code:

include('./gallery/inc_features.php'); 


steadicamop 04-01-2006 03:06 PM

Yep that is correct, I left it with the default - photopost, from the forum root.

It would appear to find the file correctly, but have issues with MySQL queries within that file - apparently I would be the only person with this problem!

Thanks for your help.

[edit]
After a quick search for the exact same MySQL error, I found out where I was going wrong - my Photopost database is alongside the VBB one - and in the config.int.php file, the prefix wasn't set, which I set to "pp_" and now it's fine, just must be me, sorry for the hassle!
[/edit]

Roms 04-01-2006 03:49 PM

^ I changed mine to the full path and it works great! Thanks

PHP Code:

include('/home/yoursite/public_html/photopost/inc_features.php'); 


Delphiprogrammi 04-01-2006 04:41 PM

Quote:

Originally Posted by steadicamop
Yep that is correct, I left it with the default - photopost, from the forum root.

It would appear to find the file correctly, but have issues with MySQL queries within that file - apparently I would be the only person with this problem!

Thanks for your help.

[edit]
After a quick search for the exact same MySQL error, I found out where I was going wrong - my Photopost database is alongside the VBB one - and in the config.int.php file, the prefix wasn't set, which I set to "pp_" and now it's fine, just must be me, sorry for the hassle!
[/edit]

glad you got it working

rareclownfish 04-03-2006 12:54 AM

I'm getting this error.

Warning: Unknown(./public_html/gallery/inc_features.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 1

Warning: Unknown(./public_html/gallery/inc_features.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 1

Warning: (null)(): Failed opening './public_html/gallery/inc_features.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php(485) : eval()'d code on line 1

What should I do?

Delphiprogrammi 04-03-2006 08:07 AM

Quote:

Originally Posted by rareclownfish
I'm getting this error.

Warning: Unknown(./public_html/gallery/inc_features.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 1

Warning: Unknown(./public_html/gallery/inc_features.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 1

Warning: (null)(): Failed opening './public_html/gallery/inc_features.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php(485) : eval()'d code on line 1


What should I do?

do not include your public_html directory there it should be

PHP Code:

include('./gallery/inc_features.php'); 


phill2003 04-03-2006 08:27 AM

Yes if your going to use the ./ directory pointer then take out the public html bit otherwise take out the ./ and replace it with the full path (not url) to the folder you want..


PHP Code:

include('./gallery/inc_features.php'); 


or if that does not work



PHP Code:

include('/path/to/your/file/gallery/inc_features.php'); 


rareclownfish 04-03-2006 11:55 AM

<i>Parse error: syntax error, unexpected $end in /home/admin/public_html/forums/index.php(485) : eval()'d code on line 2</i>

This is the error I'm getting now.
Thanks

Delphiprogrammi 04-03-2006 12:10 PM

Quote:

Originally Posted by rareclownfish
Parse error: syntax error, unexpected $end in /home/admin/public_html/forums/index.php(485) : eval()'d code on line 2

This is the error I'm getting now.
Thanks

you need to be carefull when editing PHP most likely you forgot a ( or ) ' or ' or ; somewhere

phill2003 04-03-2006 12:13 PM

or you could have put a spare " when you put your username password and database name into inc_features


All times are GMT. The time now is 01:39 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.01320 seconds
  • Memory Usage 1,749KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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