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)
-   -   [vbadvanced Gallery & Links] Number of contributed pics & links in profile (https://vborg.vbsupport.ru/showthread.php?t=100667)

Lea Verou 11-11-2005 10:00 PM

[vbadvanced Gallery & Links] Number of contributed pics & links in profile
 
This modification will add to a member's profile the number of pictures and links he has contributed. It needs vbadvanced links and vbadvanced gallery installed.
The code for the gallery is Brian's (Tigga here) but I made it as a plugin and added the code for the links too.

Installation
1. Import the attached plugin.
2. Add in the MEMBERINFO template wherever you'd like it:
HTML Code:

Pictures Contributed: $userimages[count]
for the images and
HTML Code:

Links contributed: $userlinks[count]
for the links.

Please click install if you use this.
If you only have vba Gallery or vba Links then delete (or comment) the other section of the plugin.

Ramsesx 11-12-2005 10:11 PM

Nice idea, quickly and easy installation. Thank you

trackpads 11-12-2005 10:45 PM

Michelle!!! Great work! How would I go about adding this to the posbit?

Lea Verou 11-12-2005 11:00 PM

Quote:

Originally Posted by trackpads
Michelle!!! Great work! How would I go about adding this to the posbit?

Try changing the hook location of the plugin to postbit_complete and performing the same template changes but on the postbit (or postbit_legacy) template. tell me if it works

trackpads 11-12-2005 11:01 PM

I hope this will contribute some here.

I used this code in my memberinfo:

Code:

                        <!-- Start Photos and Links Hack -->
                                                <fieldset class="fieldset">
                                <legend>Photos & Links</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                Pictures Contributed: <strong>$userimages[count]</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="http://www.trackpads.com/media/browseimages.php?c=500&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_photos_by_x]</phrase></a></td>
                                </tr>
                                <tr>
                                        <td>
                                                Links Contributed: <strong>$userlinks[count]</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="http://www.trackpads.com/media/browseimages.php?c=500&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_links_by_x]</phrase></a></td>
                                </tr>
                                </table>
                        </fieldset>

                       
                        <!-- / Photos and Links Hack -->


I had to create the 2 new phrases 'find_all_photos_by_x' & 'find_all_links_by_x'.

The only problem I have is what the heck is the code to search the links by username? Above I have the same search string for both. Any ideas?

Thanks again,

-Jason

trackpads 11-12-2005 11:02 PM

Quote:

Originally Posted by Michelle
Try changing the hook location of the plugin to postbit_complete and performing the same template changes. tell me if it works

Will do!

Lea Verou 11-12-2005 11:04 PM

Quote:

Originally Posted by trackpads
I hope this will contribute some here.

I used this code in my memberinfo:

Code:

                        <!-- Start Photos and Links Hack -->
                                                <fieldset class="fieldset">
                                <legend>Photos & Links</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                Pictures Contributed: <strong>$userimages[count]</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="http://www.trackpads.com/media/browseimages.php?c=500&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_photos_by_x]</phrase></a></td>
                                </tr>
                                <tr>
                                        <td>
                                                Links Contributed: <strong>$userlinks[count]</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="http://www.trackpads.com/media/browseimages.php?c=500&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_links_by_x]</phrase></a></td>
                                </tr>
                                </table>
                        </fieldset>

                       
                        <!-- / Photos and Links Hack -->


I had to create the 2 new phrases 'find_all_photos_by_x' & 'find_all_links_by_x'.

The only problem I have is what the heck is the code to search the links by username? Above I have the same search string for both. Any ideas?

Thanks again,

-Jason

http://www.vbadvanced.com/forum/showthread.php?t=11534

trackpads 11-12-2005 11:05 PM

Quote:

Originally Posted by Michelle

Psychic, eery really :) :) :) :)

THANKS!!!!!!

trackpads 11-12-2005 11:10 PM

Quote:

Originally Posted by trackpads
Will do!

No luck, there is no postbit_complete, I tried the postbit_display_complete but got an error when I tried to view a thread

Lea Verou 11-12-2005 11:13 PM

Quote:

Originally Posted by trackpads
No luck, there is no postbit_complete, I tried the postbit_display_complete but got an error when I tried to view a thread

Try all the other postbit hook locations :)

What error did you get?

dieselpowered 11-12-2005 11:26 PM

I do not have the link software, however, do have the gallery. Anyway to add it just for gallery?

Thanks!

Lea Verou 11-12-2005 11:34 PM

Quote:

Originally Posted by xtremeoff-road
I do not have the link software, however, do have the gallery. Anyway to add it just for gallery?

Thanks!

Read ALL the first post please. :)

trackpads 11-12-2005 11:44 PM

Quote:

Originally Posted by Michelle
Try all the other postbit hook locations :)

What error did you get?

Ok no luck I tried all four postbit locations and here was the error on the postbit_start and postbit_factory hooks:

Fatal error: Call to a member function on a non-object in /home/trackpad/public_html/forum/includes/class_postbit.php(97) : eval()'d code on line 2

Lea Verou 11-12-2005 11:50 PM

Quote:

Originally Posted by trackpads
Ok no luck I tried all four postbit locations and here was the error on the postbit_start and postbit_factory hooks:

Fatal error: Call to a member function on a non-object in /home/trackpad/public_html/forum/includes/class_postbit.php(97) : eval()'d code on line 2

Darn, I'll look into the code later as currently I am on the phone :p

dieselpowered 11-12-2005 11:52 PM

LOL I will have another drink...sorry.

trackpads 11-12-2005 11:52 PM

Quote:

Originally Posted by Michelle
Darn, I'll look into the code later as currently I am on the phone :p

Np, thanks!!!

Lea Verou 11-13-2005 12:22 AM

Quote:

Originally Posted by trackpads
Np, thanks!!!

Just finished the phone call :)
Try changing $userinfo['userid'] to $post['userid'].
If this doesn't work (and probably it won't) then I can't help you with that. I had that issue in one of my other hacks (thread count in profile) and I couldn't make it to work with the postbit because I don't know what I should write to get the userid in a plugin that is on the postbit hook. :(

trackpads 11-13-2005 12:32 AM

Quote:

Originally Posted by Michelle
Just finished the phone call :)
Try changing $userinfo['userid'] to $post['userid'].
If this doesn't work (and probably it won't) then I can't help you with that. I had that issue in one of my other hacks (thread count in profile) and I couldn't make it to work with the postbit because I don't know what I should write to get the userid in a plugin that is on the postbit hook. :(

drats no luck, thanks anyway!

-Jason

Lea Verou 11-13-2005 12:52 AM

Quote:

Originally Posted by trackpads
drats no luck, thanks anyway!

-Jason

Ask spongebobrox for it. He certainly can do it as he made the modification with the thread count in postbit that I couldn't :)

Snake 11-13-2005 11:46 AM

Nice and thanks!

Tradjick 11-13-2005 11:16 PM

Would it possible to integrate AndrewD´ Links and Download Manager instead of Brian´s?

Lea Verou 11-14-2005 04:05 AM

Quote:

Originally Posted by Tradjick
Would it possible to integrate AndrewD? Links and Download Manager instead of Brian?s?

Nope, I am not familiar with those.

dieselpowered 11-20-2005 06:48 PM

Works great!!!

**clicks install**

I did edit the .xml seeing as I do not have the links directory.

You can see what I did with it HERE

dieselpowered 12-07-2005 03:24 PM

Michelle, just wanted to let you know that this works with 3.5.2, incase you wanted to change the version at the top of the thread :)

Lea Verou 12-07-2005 09:33 PM

Quote:

Originally Posted by xtremeoff-road
Michelle, just wanted to let you know that this works with 3.5.2, incase you wanted to change the version at the top of the thread :)

Thank you :)

aksi78 01-25-2006 10:39 AM

Thanks for this mod!

Will it be possible to integrate it into postbit some time later?

Lea Verou 01-25-2006 08:28 PM

Quote:

Originally Posted by aksi78
Thanks for this mod!

Will it be possible to integrate it into postbit some time later?

Do not try this at home :p

At least not with some optimization. It would add 2 queries per post which would mean 100 more queries in a page with 50 posts...

Aken 02-20-2006 03:52 AM

Is it possible this plugin could be setup to allow it's use for somebody with ONLY the Gallery or Links?

I just attempted to install on vB 3.5.3, and got a database error because it could not find the Links table. This would be a cool little addition to my website, but I don't intend on using vBa's Links system.

Not a big deal, but could be a nice feature to use one or both of the counts. :)

Lea Verou 02-20-2006 02:35 PM

Quote:

Originally Posted by first post
If you only have vba Gallery or vba Links then delete (or comment) the other section of the plugin.

:rolleyes:

djjeffa 03-08-2006 01:33 AM

I installed and now when i go to my profile I get this

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT COUNT(*) AS count FROM vb_links WHERE userid = '3' AND valid = 1;

MySQL Error  : Table 'djjeffa_djjeffavb.vb_links' doesn't exist
Error Number : 1146
Date        : Tuesday, March 7th 2006 @ 07:30:46 PM
Script      : http://www.djjeffa.com/vb/member.php?u=3
Referrer    :
IP Address  : 69.141.31.247
Username    : djjeffa
Classname    : vb_database


Lea Verou 03-08-2006 02:43 AM

Do you have vba links installed? If not, comment out that section of the plugin ;)

iChambers 03-12-2006 05:58 PM

I had a issue adding the xml file to mine it said invalid file so I had to enter it into the Product Manager by hand without the [CDATA thing in it.

Dsyn11 03-26-2006 05:55 AM

I have photopost instead of vBa gallery. How do I change the product to pull the count from there?

Also, I'm using ReviewsPost for my Links manager... same question as above. If this is a problem, I can pay for your services, if that's possible. Thanks very much!

Lea Verou 03-26-2006 05:58 AM

I need to know the database structure of the photopost tables. Can you look into it via phpmyadmin and tell me?
About paid services: I don't accept international projects at the moment :)

jarcher 04-17-2006 06:20 PM

Quote:

This modification will add to a member's profile the number of pictures and links he has contributed. It needs vbadvanced links and vbadvanced gallery installed.
so I cannot use this without vbadvanced links and vbadvanced gallery already installed?
and I cannot install vbadvanced links and vbadvanced gallery unless I purchase a PhotoPost board?

Lea Verou 04-17-2006 09:22 PM

You need to have at least one of them installed.
I'm not sure what you mean by "Photopost board". These work with vbulletin, there is no such thing as a "photopost forum software".

jarcher 04-18-2006 03:39 AM

all I know is that when I went looking for vbadvanced gallery, I was led to many discussions of it being sold to photopost.
so, where can I find it to install?

MorrisMcD 04-18-2006 02:21 PM

Quote:

Originally Posted by jarcher
all I know is that when I went looking for vbadvanced gallery, I was led to many discussions of it being sold to photopost.
so, where can I find it to install?

vbadvanced.com will have a link to where you can find it..

jarcher 04-18-2006 05:01 PM

so. .there is nothing "free" for vb board owners

MorrisMcD 04-20-2006 01:22 PM

Quote:

Originally Posted by jarcher
so. .there is nothing "free" for vb board owners

Those 2 cost money.. But there is another one on this board somewhere.. I cant remember the name of it.. That one is free


All times are GMT. The time now is 04:53 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.01446 seconds
  • Memory Usage 1,844KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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