vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [Tweak] Make Your Member Profile A Popup Window (https://vborg.vbsupport.ru/showthread.php?t=83857)

mashby 07-16-2002 10:00 PM

[Tweak] Make Your Member Profile A Popup Window
 
Author: mashby

Description: This will teach you how to make the username in your postbit a link. When selected, it opens the Member Profile page in a pop-up window.

Demo: NPUG.org Demo - Click on the user name, or avatar in the postbit.

Note: This template mod can be modified to work in other templates as well. :)

corsacrazy 07-17-2002 05:46 PM

nice one !

DestyNova 07-17-2002 06:00 PM

nice :thumb up:

==install==

mashby 07-17-2002 08:48 PM

Thanks! Glad you guys like it. :)

Andromeda 07-18-2002 06:22 AM

I have a quation my profile looks diff not the same as u does in the pop out code will it change it like u have that the avatar is in the upper left the al the info are to the right

if not can u please tell me what to change

10x

mashby 07-18-2002 10:20 AM

Andromeda - actually, the layout of my Member Profile (getinfo template) is based on another template mod. You can find it at this link.

All my template mod does is make the link a popup window.

Hagi 07-22-2002 11:27 PM

that is nice. will install soon.

Heineken 07-27-2002 09:06 PM

Man this is a BEAUTIFUL modification :) Thank you very much!

Is it possible you can show us what to do exactly to change the links from Send user email & Send user PM from the text that is there now to buttons?

Thank you! :D

mashby 07-27-2002 09:57 PM

Quote:

Originally posted by Heineken
Is it possible you can show us what to do exactly to change the links from Send user email & Send user PM from the text that is there now to buttons?
Glad you like the tempate mod. :)

For the e-mail button, I had to hard code it. Meaning that I simply included a an <img> tag for the button itself. I wanted to make it conditional, like the PM button, but I can't do it without a hack.

For the PM button, this is the code in the "getinfo" template

$userinfo[sendpm]

and in the "getinfo_pm" template I have the following:

<a href="private.php?s=$session[sessionhash]&action=newmessage&userid=$userinfo[userid]">
<img src="http://www.yourdomain.com/forum/images/sendpm.gif" border="0"></a>
<a href="private.php?s=$session[sessionhash]&action=newmessage&userid=$userinfo[userid]">
Send a Private Message!</a>

Cassandra Cain 07-28-2002 02:26 AM

OT but cute buttons in the profile :)


All times are GMT. The time now is 01:56 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.01096 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)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