Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Phototopost features block on forumhome Details »»
Phototopost features block on forumhome
Version: 1.00, by Delphiprogrammi Delphiprogrammi is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-29-2006 Last Update: 03-29-2006 Installs: 47
Uses Plugins Template Edits
 
No support by the author.

hi people,

I see people who are heavenly modifying there boards to get this done.This is actually not needed.Photopost includes a files that does this automatically

1)install the plugin
2)tempate modification

template FORUMHOME find this code

HTML Code:
<!-- /main -->
<br />
<br />
replace with

HTML Code:
<!-- /main -->
 
<br />
$photopostfeature
<br />
remember to modify the path to inc_features.php(this is a PhotoPost file) if your photopost installation is different from mine

that's all

enjoy
all done no more modifications to the original vb files needed

possible problems
Question:After installation i get an error message like

Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /photopost/inc_features.php on line xx

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /photopost/inc_features.php on line xx
Answer:This Could be because you did not set a value for the $ppdbprefix (database table prefix) Photopost uses.Open your config-int.php and set the correct value for the $ppdbprefix variable

You can also set this in your Photopost Administration panel under "edit integration" (PhotoPost Database Table Prefixes) field

question i don't know what my path should be can you help me ?

PHP Code:
<?php
phpinfo
(INFO_VARIABLES);
?>
and look at the value of $_SERVER['PATH_TRANSLATED']; this is the serverpath to the file you are currently vieuwing within your webbrowser when you are done remove this file from your server (security )

Show Your Support

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

Comments
  #12  
Old 04-01-2006, 02:22 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'); 
Reply With Quote
  #13  
Old 04-01-2006, 03:06 PM
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Location: Lancashire, UK
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #14  
Old 04-01-2006, 03:49 PM
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Location: Witness ProtectionProgram
Posts: 1,841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

PHP Code:
include('/home/yoursite/public_html/photopost/inc_features.php'); 
Reply With Quote
  #15  
Old 04-01-2006, 04:41 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 04-03-2006, 12:54 AM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #17  
Old 04-03-2006, 08:07 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'); 
Reply With Quote
  #18  
Old 04-03-2006, 08:27 AM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'); 
Reply With Quote
  #19  
Old 04-03-2006, 11:55 AM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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
Reply With Quote
  #20  
Old 04-03-2006, 12:10 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 04-03-2006, 12:13 PM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

or you could have put a spare " when you put your username password and database name into inc_features
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 04:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05369 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_html
  • (7)bbcode_php
  • (5)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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