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

Ok guy's maybe I'm not doing this right.
Am I supposed to mod the inc_features.php within photopost if so where in the file do I need to mod? or mod the Plugin PHP Code?
I have been moding the Plugin PHP Code this whole time. I still get the errors.
Reply With Quote
  #23  
Old 04-04-2006, 12:30 AM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what's in my inc_features file

//$link = mysql_connect ("localhost", "userid", "password")

Should I take out the "" after I add the reall username and password?
Reply With Quote
  #24  
Old 04-04-2006, 01:08 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rareclownfish
This is what's in my inc_features file

//$link = mysql_connect ("localhost", "userid", "password")

Should I take out the "" after I add the reall username and password?
Hello,

Do your have Photopost Pro installed and integrated into vBulletin ?
- If YES contenue reading .

Are you VB database and Pro database the same ?
- If NO contenue reading .


Here we go ! :bunny:
- Unhash these @ the top of the file
- Fill in the photopost DB info
Code:
// If you use the same userid/password to access both databases, you don't need to
// uncomment the mysql_connect - this is only if you require different ids to access
// the PhotoPost database.
//$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');
//mysql_select_db ("pp_database")or die("Could not select photopost database");
@ very botem of the file
Code:
// If you use PhotoPost in a seperate database from vB, you'll need to reselect the vB database!
//mysql_select_db ("vb_database");
Reply With Quote
  #25  
Old 04-04-2006, 01:14 AM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Do your have Photopost Pro installed and integrated into vBulletin ? YES I do.
- If YES contenue reading .

Are you VB database and Pro database the same ? Yes they are the same.
- If NO contenue reading .
Reply With Quote
  #26  
Old 04-04-2006, 01:29 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rareclownfish
Are you VB database and Pro database the same ?
Yes they are the same.
ADMINCP => Plugin System => Plugin Manager => Photopost Feature Block
- Hook location: forumhome_complete

Default install:
Code:
include('./photopost/inc_features.php');
This needs your PATH to your Pro install folder.
If you do not know it off the top of your head you can look it up in the /photopost/config-inc.php file.

EX:
Code:
// Path to your PhotoPost installation - no end slashes
$PP_PATH = "/www/pp/pro";
This is the value that is Replace in the plugin.
Code:
include('/www/pp/pro/inc_features.php');
Reply With Quote
  #27  
Old 04-04-2006, 01:40 AM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I'm not getting anymore errors, but I don't see this on the main forum.
https://vborg.vbsupport.ru/attachmen...chmentid=44958

The forum portal is blank.
www.rareclownfish.com
Reply With Quote
  #28  
Old 04-04-2006, 01:56 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rareclownfish
Well I'm not getting anymore errors, but I don't see this on the main forum.
https://vborg.vbsupport.ru/attachmen...chmentid=44958

The forum portal is blank.
www.rareclownfish.com
**** Problems ***************** Answers ***************

Why do I get a header of the box and not images ?

- photopost/config-int.php

Code:
// If your PhotoPost tables have a prefix, put it here
// Example:
// pp_ = "pp_";
$pp_db_prefix = "pp_";
Default prefix.

Why do my images show up but only as black spots ?

Edit: photopost/config-int.php
- add the " / " slash @ the end of:
Code:
$data_dir = "http://www.website.com/photopost/data/";
In Red


If you still have problems yell
Reply With Quote
  #29  
Old 04-04-2006, 01:59 AM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I don't even get a header on the portal it shows up on the forums homepage.
Do I need to make my own box, or this code should have done eveything for me?
Reply With Quote
  #30  
Old 04-04-2006, 02:03 AM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this code with in my cinfig-int.php file. $pp_db_prefix = "pp_";
Should I be adding or changing somthing?
Reply With Quote
  #31  
Old 04-04-2006, 02:09 AM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
**** Problems ***************** Answers ***************

Why do I get a header of the box and not images ?

- photopost/config-int.php

Code:
// If your PhotoPost tables have a prefix, put it here
// Example:
// pp_ = "pp_";
$pp_db_prefix = "pp_";
Default prefix.

Why do my images show up but only as black spots ?

Edit: photopost/config-int.php
- add the " / " slash @ the end of:
Code:
$data_dir = "http://www.website.com/photopost/data/";
In Red


If you still have problems yell
Well the images don't show up at all, just the box.
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:20 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.05219 seconds
  • Memory Usage 2,323KB
  • 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
  • (9)bbcode_code
  • (2)bbcode_html
  • (1)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
  • (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