vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - MySpace & FaceBook buttons in member profile and postbit (https://vborg.vbsupport.ru/showthread.php?t=160232)

Spank 10-26-2007 03:39 PM

I've installed these but it the data in the filed is not getting put after the / so it just goes to the main myspace/facebook page =/

iardon 10-26-2007 06:32 PM

Installed, thanks!

ChU v2 10-27-2007 02:57 PM

Quote:

Originally Posted by Spank (Post 1369161)
I've installed these but it the data in the filed is not getting put after the / so it just goes to the main myspace/facebook page =/

check to see if the URL is typed correctly and also make sure your that 1. you have the field filled out meaning your username/id saved in your member profile and 2. that you replaced the XX in the code with the field number you set up in the ACP.

jmurrayhead 10-28-2007 03:36 PM

Quote:

Originally Posted by mcyates (Post 1366947)
My images don't show up, strange!!!!

Make sure you correct the URL to go to the exact location your images are stored. For example, I don't have a folder called "forum" so I had to modify the URL to:

http://www.mypage.com/images/mics/myspace.gif

instead of

http://www.mypage.com/forum/images/misc/myspace.gif

yoyoyoyo 10-28-2007 03:43 PM

You forgot to close the facebook if statement...
Code:

<!-- ChU's MySpace & FaceBook Icon's -->
<if condition="$post[fieldXX]">
<a href ="http://www.myspace.com/$post[fieldXX]"target="_blank"><img src ="http://www.YOURFORUM.com/forum/images/misc/myspace.gif"border="0"alt="View Member's MySpace Profile"></a>
</if>
<if condition="$post[fieldXX]">
<a href ="http://www.facebook.com/profile.php?id=$post[fieldXX]"target="_blank"><img src ="http://www.YOURFORUM.com/forum/images/misc/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a>
<!-- End ChU's MySpace & FaceBook Icon's -->

should be:
Code:

<!-- ChU's MySpace & FaceBook Icon's -->
<if condition="$post[fieldXX]">
<a href ="http://www.myspace.com/$post[fieldXX]"target="_blank"><img src ="$stylevar[imgdir_misc]/myspace.gif"border="0"alt="View Member's MySpace Profile"></a>
</if>
<if condition="$post[fieldXX]">
<a href ="http://www.facebook.com/profile.php?id=$post[fieldXX]"target="_blank"><img src ="$stylevar[imgdir_misc]/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a>
</if>
<!-- End ChU's MySpace & FaceBook Icon's -->

I also changed the www.YOURFORUM.com/forum/images/misc/ to $stylevar[imgdir_misc]/

also- the reason that many people are not seeing the myspace and facebook icons in their forum is that they go in the misc images folder, and if you simply upload the "Images" folder it will not go there. It would be better if you didn't capitalize the "Images" folder and also added a "misc" folder with the icons inside of that so people could just upload the contents of the "upload" folder.

There is no editprofile template - it is modifyprofile.

jmurrayhead 10-28-2007 04:08 PM

I also noticed that if a user doesn't have an Instant Messenger listed, then the links won't show up like they should and the user ID's will just display in the regular profile section.

ChU v2 10-28-2007 05:14 PM


UPDATES:


v2.0:

- Added stylevar so that it cuts down 2 temp edits.
- Changed image directory to /forum/images/YOURSKIN/misc instead of /forum/images/misc.
- Fixed </if> coding error.

No real need to update or re download if you have it working already! This update is mainly for user's that have never installed or can't get it working.

ChU v2 10-28-2007 05:17 PM

Quote:

Originally Posted by yoyoyoyo (Post 1370452)

There is no editprofile template - it is modifyprofile.

Where in the instructions is this? I could not find it. The only template edits are in postbit/postbit legacy and MEMBERINFO. Unless I forgot and am missing it.

Quote:

Originally Posted by jmurrayhead (Post 1370475)
I also noticed that if a user doesn't have an Instant Messenger listed, then the links won't show up like they should and the user ID's will just display in the regular profile section.

You mean, if they don't AIM, MSN, Yahoo, or Skype in the one of the other profile fields, the myspace and facebook images don't work? I tried this and didn't have a problem.

jmurrayhead 10-28-2007 05:37 PM

Quote:

Originally Posted by ChU v2 (Post 1370532)
You mean, if they don't AIM, MSN, Yahoo, or Skype in the one of the other profile fields, the myspace and facebook images don't work? I tried this and didn't have a problem.

If they don't have either of those, then nothing appears under "Contact" in the user profile.

I worked on it for a while and was able to fix it by changing this in MEMBERINFO:

Code:

<if condition="$show['hasimicons']">
to this:

Code:

<if condition="$show['hasimicons'] OR $userinfo['field7'] OR $userinfo['field8']">
Now it works as it should. Thanks!

ChU v2 10-28-2007 07:40 PM

Oh I see what you are saying, ya that fixes it thank you.


All times are GMT. The time now is 02:21 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.01240 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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