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
Photopost Latest uploads in user profile Details »»
Photopost Latest uploads in user profile
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-31-2006 Last Update: 03-31-2006 Installs: 51
Uses Plugins Template Edits
 
No support by the author.

hi, People,

this plugin will display the latest upload user "x" did in user "x" profile page eg member.php?u=1 (admin) installation is very easy
  • download the plugin
  • edit the plugin to match your setup (path to PhotoPost and possible login & passwords if you use seperated databases)
  • import the plugin in vbulletin
  • template modification

template "MEMBERINFO" wherever you want it to appaer for example i have i right under my signature find

HTML Code:
<!-- / signature row -->
<br />
</if>
add below
HTML Code:
<!--PhotoPost -->
<if condition="$profileimagebits">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
    <td class="tcat" colspan="$columns">$userinfo[username]'s Latest Gallery Submissions</td>
</tr>
<tr>$profileimagebits</tr>
</table>
<br />
</if>
<!-- PhotoPost end -->
done

Show Your Support

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

Comments
  #42  
Old 04-22-2006, 06:44 AM
ubblite ubblite is offline
 
Join Date: Jan 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #43  
Old 04-22-2006, 08:14 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess this wont work if Photopost is installed in a seperate directory than VB?
Reply With Quote
  #44  
Old 04-22-2006, 08:26 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Reply With Quote
  #46  
Old 04-23-2006, 12:11 AM
ubblite ubblite is offline
 
Join Date: Jan 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #47  
Old 04-23-2006, 08:02 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #48  
Old 04-24-2006, 09:16 PM
ubblite ubblite is offline
 
Join Date: Jan 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any other way to fix the above problem?
Reply With Quote
  #49  
Old 04-28-2006, 10:16 AM
AsukaValentine AsukaValentine is offline
 
Join Date: Nov 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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

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
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 12:42 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.05023 seconds
  • Memory Usage 2,332KB
  • Queries Executed 27 (?)
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
  • (6)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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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