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
  #42  
Old 04-05-2006, 09:26 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, finally got it to work.

My problem was the inc_features.php file that I needed to edit as follows:

Quote:
//$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');
mysql_select_db ("XXXXXXXXXXXX")or die("Could not select photopost database");
You need to uncomment (remove the // before the above line) and you need to be replaced the above red X's with your database name.

Worked for me.

Laters.
Reply With Quote
  #43  
Old 04-09-2006, 06:10 AM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if I have it installed like this:

Root
-vBulletin
-photopost

Where Photopost is not installed within my vBulletin Dir.

http://www.njflyfishing.com/vBulletin/index.php?

That's my path. Scroll to the very bottom.

For some reason, the addr is coming up like this:
http://www.njflyfishing.com/vBulleti...ry.php?cat=506

Other than this path problem, It looks ok... I just don't see any photo's.
Reply With Quote
  #44  
Old 04-09-2006, 07:41 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by morrow
What if I have it installed like this:

Root
-vBulletin
-photopost

Where Photopost is not installed within my vBulletin Dir.

http://www.njflyfishing.com/vBulletin/index.php?

That's my path. Scroll to the very bottom.

For some reason, the addr is coming up like this:
http://www.njflyfishing.com/vBulleti...ry.php?cat=506

Other than this path problem, It looks ok... I just don't see any photo's.
your path is not correct with a setup like that you need to set the path to for example

Code:
/var/www/njflyfishing.com/public_html/photopost
don't know if that's one correct just an example.But you are better of to install Photopost inside vbulletins directory why ? otherwise ones the path is correct you might be affected by the "openbase_dir" restriction (this is a PHP security feature) so you need to set the path to your www root and then include a /photopost at the end
Reply With Quote
  #45  
Old 04-11-2006, 01:47 PM
CAMS's Avatar
CAMS CAMS is offline
 
Join Date: Jan 2006
Location: Edinburgh, Scotland
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway to get rid of the rounded thumbnail borders on the images? and have no border atall?
Reply With Quote
  #46  
Old 04-11-2006, 03:03 PM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you look for this
PHP Code:
        if ( $height $width )
            
$mthumb "<img src="{$url_path}/images/overlay-roundp.gif" height="105" width="81" border="0" alt="" />";
        else
            
$mthumb "<img src="{$url_path}/images/overlay-round.gif" height="81" width="105" border="0" alt="" />"
In inc-features and change the overlay round to whatever you want that should do it, or leave it blank if you dont want one..
Reply With Quote
  #47  
Old 04-11-2006, 03:04 PM
CAMS's Avatar
CAMS CAMS is offline
 
Join Date: Jan 2006
Location: Edinburgh, Scotland
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorted it bud , cheers
Reply With Quote
  #48  
Old 04-19-2006, 02:49 AM
TunerNetwork TunerNetwork is offline
 
Join Date: Jul 2004
Location: CT
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Warning: Unknown: failed to open stream: No such file or directory in /index.php(488) : eval()'d code on line 133

Warning: Unknown: Failed opening './photopost/inc_features.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php(488) : eval()'d code on line 133
Yep, thats the error im getting, any clue? Im bout to punch the screen,lol. thanks

What ive done so far is just upload the plugin, and i get that error right away, I didnt put any code in the FORUMHOME yet cause i wanna get this part fixed.

also, my path to my gallery is: public_html/forum/gallery/ that have something to do with it?
Reply With Quote
  #49  
Old 04-19-2006, 10:36 AM
TunerNetwork TunerNetwork is offline
 
Join Date: Jul 2004
Location: CT
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump bump, help please, thanks everyone!
Reply With Quote
  #50  
Old 04-19-2006, 10:54 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TunerNetwork
Code:
Warning: Unknown: failed to open stream: No such file or directory in /index.php(488) : eval()'d code on line 133
 
Warning: Unknown: Failed opening './photopost/inc_features.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php(488) : eval()'d code on line 133
Yep, thats the error im getting, any clue? Im bout to punch the screen,lol. thanks

What ive done so far is just upload the plugin, and i get that error right away, I didnt put any code in the FORUMHOME yet cause i wanna get this part fixed.

also, my path to my gallery is: public_html/forum/gallery/ that have something to do with it?
yes that path is not correct it is impossible a path like that works you need to set the "FULL" path if you don't know what this value should be look at the
PHP Code:
phpinfo(); 
output

it should tell you
Reply With Quote
  #51  
Old 04-19-2006, 09:26 PM
TunerNetwork TunerNetwork is offline
 
Join Date: Jul 2004
Location: CT
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

K, where do i change the path at? the plugin itself or a file already on the server? If you can just get a lil specific, sorry, i havent messed with the gallery too much yet
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 06:28 AM.


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.04674 seconds
  • Memory Usage 2,324KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_html
  • (3)bbcode_php
  • (4)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_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