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)
-   -   Photopost Latest uploads in user profile (https://vborg.vbsupport.ru/showthread.php?t=111893)

ubblite 04-22-2006 06:44 AM

Hello Delphiprogrammi,

Love your hack, however I had to uninstall it for now because there's a conflict with Zachariah's Featured Photos mod which can be found here:
http://www.photopost.com/forum/showthread.php?t=121970

If both are installed you will get this error:

Fatal error: Cannot redeclare pp_get_ext() (previously declared in /home/xxxxxxx/public_html/photopost/ppp_block.php:64) in /home/xxxxxxx/public_html/member.php(651) : eval()'d code on line 65

Do you think you could fix this mod to work with his?

Thanks

morrow 04-22-2006 08:14 PM

I guess this wont work if Photopost is installed in a seperate directory than VB?

Delphiprogrammi 04-22-2006 08:26 PM

Quote:

Originally Posted by ubblite
Hello Delphiprogrammi,

Love your hack, however I had to uninstall it for now because there's a conflict with Zachariah's Featured Photos mod which can be found here:
http://www.photopost.com/forum/showthread.php?t=121970

If both are installed you will get this error:

Fatal error: Cannot redeclare pp_get_ext() (previously declared in /home/xxxxxxx/public_html/photopost/ppp_block.php:64) in /home/xxxxxxx/public_html/member.php(651) : eval()'d code on line 65

Do you think you could fix this mod to work with his?

Thanks

yes this is because both hacks use the same function pp_get_ext() it's a PhotoPost function so if you want to use both hacks on the same board then open the plugin's php code find this code

PHP Code:

function pp_get_ext($filename)
{
      return 
substr($filename,strpos($filename,"."));


and comment it out by doing

PHP Code:

/*function pp_get_ext($filename)
{
      return substr($filename,strpos($filename,"."));
}*/ 

that's all it should work now

Delphiprogrammi 04-22-2006 08:29 PM

Quote:

Originally Posted by morrow
I guess this wont work if Photopost is installed in a seperate directory than VB?

you can try as long as your path to config-int.php PhotoPost file is correct it should work.Althrough i have received reports from users that if the PHP security feature openbase_dir is enabled you'll get an error about this

ubblite 04-23-2006 12:11 AM

Quote:

Originally Posted by Delphiprogrammi
yes this is because both hacks use the same function pp_get_ext() it's a PhotoPost function so if you want to use both hacks on the same board then open the plugin's php code find this code

PHP Code:

function pp_get_ext($filename)
{
      return 
substr($filename,strpos($filename,"."));


and comment it out by doing

PHP Code:

/*function pp_get_ext($filename)
{
      return substr($filename,strpos($filename,"."));
}*/ 

that's all it should work now

Nope, did not work.

When you said "open the plugin's php code", which one are you referring too? Zach's or yours? I've applied your suggestion to ppp_block.php & also tried it in PhotoPost Gallery Photos in profile - Hook location: member complete and I'm still getting an error:

Fatal error: Call to undefined function pp_get_ext() in /home/xxxxxx/public_html/photopost/ppp_block.php on line 72

vbreal 04-23-2006 08:02 PM

Quote:

Originally Posted by Delphiprogrammi
ok try this open the plugin "PhotoPost Gallery Photos in profile" and find this code

PHP Code:

function pp_get_ext($filename)
{
    return 
substr($filenamestrrpos($filename,"."));


comment it out like this

PHP Code:

/*function pp_get_ext($filename)
{
    return substr($filename, strrpos($filename,"."));
}*/ 

now try again

that didn't work

ubblite 04-24-2006 09:16 PM

Is there any other way to fix the above problem?

AsukaValentine 04-28-2006 10:16 AM

I installed it and obtain this error:

Parse error: parse error, unexpected '<' in /home/bbsdream/public_html/member.php(653) : eval()'d code on line 304

This appears at top of users profile, and I don't modify the MEMBERINFO template yet (only in my test template and it doesn't show anything).

I uninstall the plugin and the error persist.

Some fields on my user profile don't show now.
How can I fix it??

Delphiprogrammi 04-28-2006 06:25 PM

Quote:

Originally Posted by ubblite
Is there any other way to fix the above problem?

rename the function

PHP Code:

function pp_getextensionprofile($filename)
{
return 
substr($filenamestrrpos($filename,"."));



you have to change all calls to that function to if you do this ....

Delphiprogrammi 04-28-2006 06:28 PM

Quote:

Originally Posted by AsukaValentine
I installed it and obtain this error:

Parse error: parse error, unexpected '<' in /home/bbsdream/public_html/member.php(653) : eval()'d code on line 304


This appears at top of users profile, and I don't modify the MEMBERINFO template yet (only in my test template and it doesn't show anything).

I uninstall the plugin and the error persist.

Some fields on my user profile don't show now.
How can I fix it??

you need to disable this plugin

doyou still get the error ? no then your problem is caused by some other modification

if you still get the error you did something wrong with the template modififcation (or plugin modification) best is to revert the template but note you will LOOSE ALL modifications made to it it will be reset to the original template


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