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
  #62  
Old 05-16-2006, 11:42 PM
phkk phkk is offline
 
Join Date: Feb 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you are using diff database or and database account
delete //

the original of the plug in is
//$link=mysql_connect("localhost","$dbuserid","$dbus erpassword") OR die("I cannot connected to the Database");
//mysql_select_db("products") OR die("failed to select PhotoPost Database");

make them become . delete the // . your forum will connect to your database

$link=mysql_connect("localhost","$dbuserid","$dbus erpassword") OR die("I cannot connected to the Database");
mysql_select_db("products") OR die("failed to select PhotoPost Database");
Reply With Quote
  #63  
Old 05-17-2006, 02:39 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to have it display more then one row ? I am showing 3 images so that it will allign with my style correctly but I would like to add two rows and 3 images per row
Reply With Quote
  #64  
Old 05-18-2006, 12:23 PM
glowinggal glowinggal is offline
 
Join Date: Jan 2003
Posts: 96
Благодарил(а): 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??

I'm getting this as well this morning and when I disable the module - no more errors so it's definetely related to this.

Here is my members.php coding; HAVE NO IDEA what the issue is... but it's something....

I know FOR CERTAIN that my path is correct..... running PP Gallery database on vbulletin - integrated. No database extension prefix.


Parse error: parse error, unexpected '<' in /home/sbbamy/public_html/chat/member.php(651) : eval()'d code on line 1


****** update to the above issue ******

deleted the plug in and then reinstalled it.... .Now receiving this error. Our PP gallery does not have a prefix (as noted above).


Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /member.php(651) : eval()'d code on line 34

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /member.php(651) : eval()'d code on line 86
Reply With Quote
  #65  
Old 05-18-2006, 01:06 PM
glowinggal glowinggal is offline
 
Join Date: Jan 2003
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi
check your database config your datase needs a predix i guess
So what happens if PP doesn't a prefix for the database? Is this not useable
Reply With Quote
  #66  
Old 07-06-2006, 04:34 AM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can this be fixed to work with vbgallery? it's pretty much the same file system isn't it, except filenames?
Reply With Quote
  #67  
Old 07-15-2006, 08:37 PM
mcyates mcyates is offline
 
Join Date: Jan 2003
Location: Middlesbrough, Cleveland
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting this error:

Warning: mysql_connect(): Access denied for user 'myfootba'@'localhost' (using password: NO) in /member.php(829) : eval()'d code on line 32
I cannot connect to the database.

EVEN though i have entered the username and password for the photopost database. The one at the top and the one at the very bottom.
Reply With Quote
  #68  
Old 09-24-2006, 12:42 AM
LICryptkeeper LICryptkeeper is offline
 
Join Date: Jun 2003
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried installing it on 3.6.1, installing the plugin breaks member.php I really need this!
Reply With Quote
  #69  
Old 09-24-2006, 01:05 AM
LICryptkeeper LICryptkeeper is offline
 
Join Date: Jun 2003
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

by breaks, I mean nothing shows up.

I did manage to start playing with some connection settings, and now I get "cannot connect" but I know the paths are correct. I'm not sure if it's a VB issue, version isue, or PP issue.

edit: Now I get "failed to select PhotoPost Database" I changed it from 192.168.1.1(which is the pp database) to localhost, do i need to edit anythign else?

I unccomented out the 2 lines in the mysql connection, and the last line. inside confic_inc.php the database user is $mysql_user and in the plugin it's $dbuserid,

is that correct?
vb3.6.1
pp 5.21

edit 2: moved the gallery into the forum directory, still no go.

Code:
$ppath="/home/******/public_html/forums/m_gallery";
require "{$ppath}/config-int.php";
//###################################################################################
//if you use Photopost in a SEPERATED database from vbulletin uncomment these lines
//###################################################################################
$link=mysql_connect("localhost","$dbuserid","$dbuserpassword") OR die("I cannot connected to the Database");
mysql_select_db("products") OR die("failed to select PhotoPost Database");
//####################################################################################

//##############################
// Number of photos to display
$num_display = 4;
//##############################

//#####################################
// Number of columns (1 for vertical)
$columns = 4;
//#####################################

//#####################################################################
// which type of images do you want to show (random, most_view, latest)
$q_switch = "random";
//######################################################################
if(!isset($ViewPerm))
{
	if(isset($vbulletin->userinfo['usergroupid']))
	{
		 $mygroups = $vbulletin->userinfo['usergroupid'];
		 if ($vbulletin->userinfo['membergroupids'] != "") $mygroups .= ",".$vbulletin->userinfo['membergroupids'];
	}
	 $grouparr = explode( ",", $mygroups );
	 $resultb = mysql_query("SELECT id,ugnoview FROM {$pp_db_prefix}categories");
	 $ViewPerm = array();
	 while (list($catugid,$ugnoview)=mysql_fetch_row($resultb))
	{
		 $noview=0; $ViewPerm[$catugid] = 1;
		 $allnoview = explode( ",", $ugnoview );
		 foreach ($allnoview as $key)
		{
			 if (in_array($key,$grouparr))
			{
				  $noview=1;
			}
		}
		if ($noview == 0)
		{
			 $ViewPerm[$catugid]=0;
		}
	}
}
function pp_get_ext($filename)
{
	return substr($filename, strrpos($filename,"."));
}
function pp_is_image( $filename)
{
	$retval = 0;
	$mediatypes = array( ".jpg", ".gif", ".png", ".bmp");
	$ext = pp_get_ext($filename);
	if (in_array(strtolower($ext),$mediatypes)) $retval=1;
	return $retval;
}
switch ($q_switch)
{
	case "latest":
        $query = "SELECT id,user,userid,cat,bigimage,height,width
                        FROM {$pp_db_prefix}photos
                        WHERE storecat = 0 AND userid = $userinfo[userid]
                        ORDER BY date DESC";
		break;
	case "most_view":
        $query = "SELECT id,user,userid,cat,bigimage,height,width
                        FROM {$pp_db_prefix}photos
                        WHERE storecat = 0 AND userid = $userinfo[userid]
                        ORDER BY views DESC";
		break;
	case "random":
        $query = "SELECT id,user,userid,cat,bigimage,height,width
                        FROM {$pp_db_prefix}photos
                        WHERE storecat = 0 AND userid = $userinfo[userid]
                        ORDER BY RAND()";
		break;
}
$result=mysql_query($query);
$counted = 0; $countcol = 0; $profileimagebits = "";
while (list($pid,$puser,$puserid,$pcat,$photo,$height,$width) = mysql_fetch_row($result))
{
	if ( $ViewPerm[$pcat] == 1 ) continue;
	if (pp_is_image($photo))
	{
		 $temp_user = $puserid;
		 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=\"\" />";
		 $profileimagebits .= <<<PPPRINT
    <td align="center" class="alt1">
        <table cellpadding="0" cellspacing="0" border="0">
         <tr>
          <td style="background: url({$data_dir}{$pcat}/thumbs/$photo); background-color: #000000; background-repeat: no-repeat; background-position: center;"><a href="{$url_path}/showphoto.php?photo={$pid}">$mthumb</a></td>
         </tr>
        </table>
    </td>
PPPRINT;
        $counted++;
        $countcol++;
	}
	if ($counted == $num_display ) break;
	if ($countcol == $columns)
	{
		$profileimagebits .= <<<PPPRINT
    </tr>
    <tr>
PPPRINT;
    $countcol = 0;
	}
}
@mysql_free_result($result);

//###################################################################################################################
//if you use PhotoPost in a SEPERATED database you need to uncomment this line to reselect it
//###################################################################################################################
//mysql_select_db("products") or die("Unable to select PhotoPost Database");
Reply With Quote
  #70  
Old 10-01-2006, 09:39 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by futuredood
can this be fixed to work with vbgallery? it's pretty much the same file system isn't it, except filenames?
No photopost pro and photopost vbgallerry is a big difference
Reply With Quote
  #71  
Old 10-01-2006, 09:41 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mcyates
I'm getting this error:

Warning: mysql_connect(): Access denied for user 'myfootba'@'localhost' (using password: NO) in /member.php(829) : eval()'d code on line 32
I cannot connect to the database.

EVEN though i have entered the username and password for the photopost database. The one at the top and the one at the very bottom.
don't fill in both that error means your MySQL account info is not correct
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 08:18 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.04688 seconds
  • Memory Usage 2,325KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_html
  • (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