vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Add link to user albums in postbit (https://vborg.vbsupport.ru/showthread.php?t=168428)

SEOvB 01-21-2008 10:00 PM

Add link to user albums in postbit
 
////////////////////////////////
/// From Dave at Madden Strategy
///////////////////////////////

This will add a link to user albums in the postbit or postbit_legacy template (depending which you use)

1.Open either your postbit or postbit_legacy template
2. Search for
Code:

$post[onlinestatus]
3. Above add
Code:

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

Screenshot and install instruction included

You are free to re-use this code for any non-commerical purposes

BlizzardHQ 01-22-2008 02:28 AM

Can this be set to only link if they have photos in their album?

rob30UK 01-22-2008 07:44 AM

I would agree with that - no point in sending most people to a page with nothing on it. I think this would need to be a plugin.

abroad 01-22-2008 07:46 AM

doesnt work. just opens a menu like when you click on the username

Magnumutz 01-22-2008 04:05 PM

Use an <if> condition dude... Donno which yet, i'll check :D

SEOvB 01-22-2008 07:46 PM

Quote:

Originally Posted by Magnumutz (Post 1426734)
Use an <if> condition dude... Donno which yet, i'll check :D

If you find it, feel free to share it with all of us :D I'm no programmer so I didn't have a clue of where to look

SEOvB 01-22-2008 07:47 PM

Quote:

Originally Posted by abroad (Post 1426485)
doesnt work. just opens a menu like when you click on the username

Are you sure you did the template edit correctly? There isn't any code there that would show a drop down menu.

Do you have a link to your site where you tried it?

twitch 01-22-2008 07:50 PM

the username popup link seems to interfere

jaks 01-25-2008 10:21 AM

I added mine to the other side of the postbit in text just below the users post count and says "See username's photo albums"

Find in postbit template
Code:

</td>
                </tr>
                </table>
                <!-- / user info -->
        </td>

Add above
Code:

<a href="album.php?$session[sessionurl]u=$post[userid]"> See $post[musername]'s photo albums</a>
Not the prettiest thing but it works and I haven't figured out the if statement either though.

Triky 01-25-2008 04:06 PM

I suggest you to add to the <img> tag style this code:

style="vertical-align: middle"

;)


All times are GMT. The time now is 11:05 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.01049 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)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
  • (10)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