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)
-   -   Phototopost features block on forumhome (https://vborg.vbsupport.ru/showthread.php?t=111699)

Delphiprogrammi 03-29-2006 10:00 PM

Phototopost features block on forumhome
 
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 )

MP3 03-30-2006 10:04 AM

coooooool ^_^

Install

Snake 03-30-2006 11:56 AM

Nice work.

Thanks!

lazyseller 03-30-2006 01:15 PM

Awesome!!!! no more file edits for this mod!!!!!

shadow smith 03-30-2006 04:23 PM

Awesome. Thanks!

I'm new and it was easy to install.

Thanks!

steadicamop 03-30-2006 06:58 PM

Been looking for this for ages - but doesn't work, get this error right at the top of the page:

Quote:

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

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /photopost/inc_features.php on line 119
Tried changing the path so it didn't have the "." but makes no difference. Any ideas?

Cheers

shadow smith 03-30-2006 07:07 PM

I put in the full server path to my photopost directory:

/www/whatever/photopost/inc_features.php

I also had to uncomment out a couple lines in inc_features.php and insert the username/pw/database information as I use a different database to hold my photos.

Steve

steadicamop 03-30-2006 07:17 PM

Quote:

Originally Posted by shadow smith
I put in the full server path to my photopost directory:

/www/whatever/photopost/inc_features.php

I also had to uncomment out a couple lines in inc_features.php and insert the username/pw/database information as I use a different database to hold my photos.

Steve

Thanks, no good though, still a no go, even when I add the DB details in, and change it to the full path - it would appear more a MySQL error than anything else.

Just not too up on MySQL yet ;)

Cheers

phill2003 03-31-2006 04:57 PM

Quote:

Originally Posted by shadow smith
I put in the full server path to my photopost directory:

/www/whatever/photopost/inc_features.php

I also had to uncomment out a couple lines in inc_features.php and insert the username/pw/database information as I use a different database to hold my photos.

Steve


spot on thanks for that :)..

steadicamop 04-01-2006 01:39 PM

Any chance of some support on this please?

Delphiprogrammi 04-01-2006 02:22 PM

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'); 


steadicamop 04-01-2006 03:06 PM

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]

Roms 04-01-2006 03:49 PM

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

PHP Code:

include('/home/yoursite/public_html/photopost/inc_features.php'); 


Delphiprogrammi 04-01-2006 04:41 PM

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

rareclownfish 04-03-2006 12:54 AM

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?

Delphiprogrammi 04-03-2006 08:07 AM

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'); 


phill2003 04-03-2006 08:27 AM

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'); 


rareclownfish 04-03-2006 11:55 AM

<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

Delphiprogrammi 04-03-2006 12:10 PM

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

phill2003 04-03-2006 12:13 PM

or you could have put a spare " when you put your username password and database name into inc_features

rareclownfish 04-03-2006 11:25 PM

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.

rareclownfish 04-04-2006 12:30 AM

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?

Zachariah 04-04-2006 01:08 AM

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");


rareclownfish 04-04-2006 01:14 AM

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 .

Zachariah 04-04-2006 01:29 AM

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');

rareclownfish 04-04-2006 01:40 AM

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

Zachariah 04-04-2006 01:56 AM

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 ;)

rareclownfish 04-04-2006 01:59 AM

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?

rareclownfish 04-04-2006 02:03 AM

I have this code with in my cinfig-int.php file. $pp_db_prefix = "pp_";
Should I be adding or changing somthing?

rareclownfish 04-04-2006 02:09 AM

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.

rareclownfish 04-04-2006 03:08 AM

Thanks works great, now only to get it on the portal page :)

phill2003 04-04-2006 04:06 AM

The variable should work on the portal page at least it did on mine (vba) without anymore messing about..

rareclownfish 04-04-2006 12:18 PM

Quote:

Originally Posted by phill2003
The variable should work on the portal page at least it did on mine (vba) without anymore messing about..

????

phill2003 04-04-2006 01:25 PM

I put this
Quote:

$photopostfeature
in the adv_portal template

between

$header


$navbar


like this.

Code:

$header
$photopostfeature

$navbar


and it worked a treat, go and look at where it is on my site...

rareclownfish 04-04-2006 02:41 PM

I'm not using VBA, i'm using VBportal

phill2003 04-04-2006 02:54 PM

Well i know they use photopost so it may be worth your while to ask there how to do it on the portal..

rareclownfish 04-04-2006 03:02 PM

Thanks got it to work

The Realist 04-04-2006 06:43 PM

I cant get it to work, keeps saying cant connect to photopost database?

Delphiprogrammi 04-04-2006 09:31 PM

Quote:

Originally Posted by The Realist
I cant get it to work, keeps saying cant connect to photopost database?


did you field in the variables ......config.inc.php if you use seperted databases you need to loo at inc_features to

The Realist 04-05-2006 07:06 AM

Both Photopost and VB are using the same database.



Quote:

Originally Posted by Delphiprogrammi
did you field in the variables ......config.inc.php if you use seperted databases you need to loo at inc_features to



All times are GMT. The time now is 07:14 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.01686 seconds
  • Memory Usage 1,848KB
  • 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
  • (10)bbcode_code_printable
  • (2)bbcode_html_printable
  • (7)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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