vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Album Link in Postbit (https://vborg.vbsupport.ru/showthread.php?t=198477)

h2ojunkie 12-08-2008 10:00 PM

Album Link in Postbit
 
1 Attachment(s)
Adds a link to the userinfo section of showthread and showpost only if user has public albums.

Uses postbit_userinfo_right template hook for position of the link, so there are no template edits.

Uses one sub query.

I have not tested this on any version other than 3.8.0 RC 1

I have only tested on a small site, and while I don't expect there to be a performance issue, I can not confirm it's performance effect on large sites with a large number of user albums.

SEOvB 12-09-2008 10:01 PM

isn't it going to add a query to every post on the page?

h2ojunkie 12-09-2008 10:20 PM

No, it's one query for the entire page no matter how many posts are on that page, and it's actually a left join sub query on the main VB query that grabs the posts for that page. So in theory it may actually be a little less load than a stand alone query would be.

SEOvB 12-09-2008 10:47 PM

Quote:

Originally Posted by h2ojunkie (Post 1681968)
No, it's one query for the entire page no matter how many posts are on that page, and it's actually a left join sub query on the main VB query that grabs the posts for that page. So in theory it may actually be a little less load than a stand alone query would be.

Awesome job then :up:

Daryn 12-09-2008 11:57 PM

Would there be a way to get this to work on the postbit_legacy?

SEOvB 12-10-2008 11:26 AM

Quote:

Originally Posted by Daryn (Post 1682010)
Would there be a way to get this to work on the postbit_legacy?

Make sure you have: $template_hook['postbit_userinfo_right'] in your postbit_legacy template.

Works good for me in both postbit and postbit_legacy

alqloob alsahya 12-11-2008 07:33 PM

1 Attachment(s)
Excellent

Thank you for your beautiful theme

I've change instead of a simple text link and replace them with the adjustment method is easy, the way language and words

Search Member's Picture Albums
B replace them

Code:

<a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="Member's Picture Albums" border="0"/></a>
And easily change the language of the text explanation as a state language only change Member's Picture Albums shown in red

Image upload to your site


https://vborg.vbsupport.ru/



Just a slight change to the participation of your themes beautiful

Thank you again :up:

joh 12-12-2008 06:58 AM

Can this be made to show the number of images the users have in his/her album/albums?

Sweeks 12-12-2008 11:44 AM

Not working in 3.7.4 PL1, tried changing the hook to $template_hook[postbit_userinfo_right_after_posts], didnt show still in postbit_legacy for me. Would appreciate if anyone else knows how to get this working in 3.7.4PL1 Thanks
________
Fix ps3

h2ojunkie 12-12-2008 03:37 PM

Quote:

Originally Posted by joh (Post 1683686)
Can this be made to show the number of images the users have in his/her album/albums?

It may be possible, but that would require extra queries. Not something I plan to do as I have no need for the image count at the cost of extra queries.

ejbreeze 12-30-2008 08:39 PM

Quote:

Originally Posted by Ultimate Teen Forums (Post 1683778)
Not working in 3.7.4 PL1, tried changing the hook to $template_hook[postbit_userinfo_right_after_posts], didnt show still in postbit_legacy for me. Would appreciate if anyone else knows how to get this working in 3.7.4PL1 Thanks

Please share if you get it working ...Thanks

anestetic 12-31-2008 10:09 AM

haw many picture in album in postbit

xTerMn8R 01-08-2009 12:31 AM

Can someone explain to me the difference between Postbit and Postbit_legecy
I'm a Beginner at coding php and vBulletin

Thanks...
Tom

rolandogomez 01-09-2009 03:57 AM

For the non-coders, can you tell me where to put this code (after we loaded the product xml)? I'm using postbit legacy. Thanks!

SonicGT 01-09-2009 08:47 PM

Quote:

Originally Posted by xTerMn8R (Post 1704658)
Can someone explain to me the difference between Postbit and Postbit_legecy
I'm a Beginner at coding php and vBulletin

Thanks...
Tom

Postbit_legacy is the older vb style where the user info is on the left and the post the right of the thread, the postbit is the newer look where it has all the user info on the top then the post below, so a horizontal seperator rather then verticle basically if that makes sense

I have 2 sites one with legacy use and 1 with newer
Here is an example of legacy (modded slightly)
http://www.nextgenmusclecars.com/for...ead.php?t=3371

and an example of the normal postbit (modded slightly)
http://windycitystangs.com/forums/showthread.php?t=4

Idawg 01-10-2009 10:48 PM

Quote:

Originally Posted by rolandogomez (Post 1705896)
For the non-coders, can you tell me where to put this code (after we loaded the product xml)? I'm using postbit legacy. Thanks!

Im with him

Quote:

Originally Posted by SonicGT (Post 1706726)
Postbit_legacy is the older vb style where the user info is on the left and the post the right of the thread, the postbit is the newer look where it has all the user info on the top then the post below, so a horizontal seperator rather then verticle basically if that makes sense

I have 2 sites one with legacy use and 1 with newer
Here is an example of legacy (modded slightly)
http://www.nextgenmusclecars.com/for...ead.php?t=3371

and an example of the normal postbit (modded slightly)
http://windycitystangs.com/forums/showthread.php?t=4

I think he wants to know WHERE to put the $template_hook['postbit_userinfo_right'] code in postbit_legacy. I am having the same problem as Roland is

glennybee 01-18-2009 01:41 PM

Find the following code and add it before it:

Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
So it should look like this:

Code:

<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>


Marvin Hlavac 01-20-2009 11:30 AM

Other than importing the .xml file, do I need to do anything else to enable this feature? I just imported the file, but I don't see it working for members who do have albums. Could it just be that I'm using an older vbulletin 3.7.3?

wottech 01-20-2009 04:21 PM

I installed it on a 3.7.3 forum and it did not work. I upgraded to 3.8.0 and it worked just fine without me having to do anything. So I am assuming that it does not work pre-3.8.

DieselMinded 03-06-2009 10:51 PM

<a href="https://vborg.vbsupport.ru/showthread.php?p=1762109#post1762109" target="_blank">https://vborg.vbsupport.ru/showt...09#post1762109</a>

Allan 03-08-2009 10:27 AM

Thank you :)

Work on vB 3.8.1.

Redzzand 03-12-2009 06:14 PM

great mod but is there any way to change it to use $template_hook[postbit_userinfo_left]?

DobieGillis? 03-12-2009 06:37 PM

Quote:

Originally Posted by alqloob alsahya (Post 1683360)
Excellent

Thank you for your beautiful theme

I've change instead of a simple text link and replace them with the adjustment method is easy, the way language and words

Search Member's Picture Albums
B replace them

Code:

<a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="Member's Picture Albums" border="0"/></a>
And easily change the language of the text explanation as a state language only change Member's Picture Albums shown in red

Image upload to your site


http://forums.ql-b.com/images/buttons/add_album.png



Just a slight change to the participation of your themes beautiful

Thank you again :up:

where did you edit this to add a picture to replace the text? Anyone?

Markos 03-12-2009 07:27 PM

Quote:

Originally Posted by DobieGillis? (Post 1766659)
where did you edit this to add a picture to replace the text? Anyone?

search in Phrase's

Markos 03-12-2009 07:29 PM

hmm ive just installed this and wen i click on it i go to my own album :S

Redzzand 03-12-2009 07:34 PM

if you want to change the template_hook; simply edit the XML file and change $template_hook['postbit_userinfo_right'] to $template_hook['postbit_userinfo_left']

re-import XML and allow overwrite

BigDog56 03-12-2009 07:37 PM

Very nice! Works great and Thank You!

DobieGillis? 03-12-2009 08:11 PM

Quote:

Originally Posted by Markos (Post 1766700)
search in Phrase's

thanks

Markos 03-12-2009 08:19 PM

Quote:

Originally Posted by DobieGillis? (Post 1766737)
thanks

np anytime

can anyone tell me if it takes them to there own album instead of the user who u click on ???

Redzzand 03-12-2009 08:46 PM

it takes me to the proper user's album... working properly on my board

Markos 03-12-2009 10:49 PM

did you do the edit with the image ??

DobieGillis? 03-12-2009 10:52 PM

Quote:

Originally Posted by Markos (Post 1766856)
did you do the edit with the image ??

not good with phrases, thats new to me. I guess I have to install the mod forst to find the phrase?

Markos 03-13-2009 12:04 PM

Search for Member's Picture Albums

and wen u click edit it will open it and in the empty box place this in it

PHP Code:

<a href="album.php?u=$post[userid]title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="Member's Picture Albums" border="0"/></a

and save it

woffie 03-16-2009 12:18 AM

Tried it, did not work.

MikesSite 04-02-2009 11:15 PM

1 Attachment(s)
After toying with this I got it to work properly w/ the image in postbit. I've attached the modified XML version of the developers original post. If he minds I will remove it, but I dont see why he would.

You need images/buttons/add_album.png

RedHacker 04-06-2009 06:45 AM

Its work fine thanks.....

bbau01 04-11-2009 02:50 PM

Marked as installed, 2 sec install - working perfectly - thanks!

asabet 04-15-2009 10:28 PM

Works great, thanks!

DobieGillis? 04-15-2009 11:58 PM

Quote:

Originally Posted by MikesSite (Post 1782759)
After toying with this I got it to work properly w/ the image in postbit. I've attached the modified XML version of the developers original post. If he minds I will remove it, but I dont see why he would.

You need images/buttons/add_album.png

well done, mate! Worked like a charm!

woffie 04-16-2009 03:06 PM

Installed now that there is a version for Legacy.


All times are GMT. The time now is 02:42 AM.

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.01343 seconds
  • Memory Usage 1,827KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)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