Jump to content


[IPB 1.3] Custom Profile URL Buttons 1.1


15 replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 30 July 2004 - 11:43 PM

File Name :: Custom Profile URL Buttons 1.1.1
Author :: visiblesoul
Category :: Invision Power Board Mods
Description ::


Custom Profile URL Buttons
Version: 1.1.1
Author: visiblesoul (www.visiblesoul.net)
Last update: 14.11.2004
IPB: 1.3.x (tested on 1.3.1 Final)
----------------------------------------------

Create button links to member blogs and eBay pages or easily customize for other user websites.

This Mod adds:
1. Custom profile button in topic view (PM, E-Mail, WWW, AOL button section).
2. New profile field in User CP.
3. Active URL link displayed in User's Profile.
4. Ability to edit new fields in Admin CP.
5. [Optional] Custom profile button in Personal Message view (PM, E-Mail, WWW, AOL button section).
6. Mod does not use custom profile fields.


Included Files:
1. Read Me
2. eBay Button Install Instructions
3. Blog Button Install Instructions
4. Custom Button Install Instructions
5. Custom Button "mod_me.txt" file
6. IPB Default style buttons (eBay, Blog)
7. caliSkinV6 style buttons (eBay, Blog)


I made this mod to create links to member blogs and eBay stores/"me" pages but it can be easily customized for other user websites by following the enclosed tutorial. Installed on this board. All content ? 2004 visiblesoul.com.

-=DKC=-


ChangeLog:
----------------------------------------------
Version 1.1.0 (17.08.2004): Added ability to edit new fields in Admin CP (sources/Admin/ad_member.php)

Version 1.1.1 (14.11.2004): Fixed typo in /sources/Profile.php edit so that the text "No Information" is displayed in User profile when no custom button info has been entered.


----------------------------------------------
Now available for download at invisionize.com

Mod database:
http://mods.invision...ndex.php/f/3416

Support topic:
http://forums.invisi...showtopic=51264


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#2 Nneel

  • Members
  • 1 posts

Posted 20 September 2004 - 12:56 AM

Itz nice.

Im thinking about to use to..

My idea..Blog is okay..and the ebay button i wanna convert it to "Chat" and that chat button will be default link forewarded to our chat network [button linked to java chat ]


u have any kool idea ?

B)

#3 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 20 September 2004 - 10:43 AM

The "chat" link is a good idea. The instructions in the zip file show how to use it for any button you like.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#4 DeGrijze

  • Members
  • 5 posts

Posted 01 November 2004 - 05:30 PM

I have the Blog button running in my forum.
Installing went realy fine and simpel B)
But i still have al bit off a' problem with this addon.
And the problem is that the Blug button info just cuts a' bit off my blog url
My blog url is http://www.wireless-emmercompascuum.nl/ind...g&op=home&idu=1 and wen i put dat in de URL box of the blog addon and save it
De BLOg button just links me to http://www.wireless-emmercompascuum.nl/ind...d=blog&op=home& so i?m missing the last pease off the url.
Howe can i fix this?
Please can some one help me with this problem?

Thanks Gerard

#5 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 01 November 2004 - 10:55 PM

DeGrijze said:

And the problem is that the Blug button info just cuts a' bit off my blog url
My blog url is http://www.wireless-emmercompascuum.nl/ind...g&op=home&idu=1 and wen i put dat in de URL box of the blog addon and save it
De BLOg button just links me to http://www.wireless-emmercompascuum.nl/ind...d=blog&op=home& so i?m missing the last pease off the url.
Howe can i fix this?
Please can some one help me with this problem?
Welcome DeGrijze. I'm guessing there is a max characters setting somewhere.

Have you noticed the same issue with the default "www" (member website) button?

I'll try to have a look at it tonight or tomorrow and let you know what I find.

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#6 DeGrijze

  • Members
  • 5 posts

Posted 02 November 2004 - 01:55 AM

visiblesoul said:

Welcome DeGrijze. I'm guessing there is a max characters setting somewhere.

Have you noticed the same issue with the default "www" (member website) button?

I'll try to have a look at it tonight or tomorrow and let you know what I find.

-=DKC=-
First off all thanks for welcomming me on this forum.
And yes when i set de url string voor my blog in the www-button box its come out with the same result als in de addon blog butting box.
Its just cuts of a bit off the url sting
So iam guesing your right that there is a max of characters settings somewhere, iam hoping that this can be fixst.

Thanks for your help .

Geard

#7 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 02 November 2004 - 03:58 PM

OK DeGrijze, I found the problem. If you have php myadmin or know how to use ssh the solution is simple.

Look in the forum database for the "ibf_members" table. Look for the field for which you want to change the length. For example "website". There is a default "Length/Values" set at "70" characters. Change this to 100 or whatever length you need. Do the same thing for any other profile fields that you want to change.

Let me know if you have any problems or if you don't understand my instructions.

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#8 DeGrijze

  • Members
  • 5 posts

Posted 03 November 2004 - 03:00 AM

Dear sire,
Thanks for the info its is working perfectley now.

Keep up the good work B)

Gerard

#9 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 14 November 2004 - 01:00 AM

Update:

Thanks to the keen eye and the much appreciated email of XaviorX at Ize (thanks Xavior) I have fixed a typo in the /sources/Profile.php edit so that the text "No Information" is displayed in User profile when no custom button info has been entered. It's a minor thing but quality is in the details. B)

Download has been updated.

For the eBay button the change is

FIND:
$info['ebay'] = $ibforums->lang['no_info'];
REPLACE WITH:
$info['ebaypage'] = $ibforums->lang['no_info'];
For the Blog button the change is

FIND:
$info['blog'] = $ibforums->lang['no_info'];
REPLACE WITH:
$info['blogpage'] = $ibforums->lang['no_info'];
That's it. :lol:


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#10 DeGrijze

  • Members
  • 5 posts

Posted 17 November 2004 - 04:32 PM

?? iam puzzeld becouse I can not find those lines in the /sources/Profile.php of the IPB forum.

The only line i have there is:
$info['blogpage'] = "<a href='{$member['blog']}' target='_blank'>{$member['blog']}
So i wonder do i mis a line and if this is so ware shut i put this line then in my /sources/Profile.php file?

Joop

#11 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 17 November 2004 - 07:47 PM

So are you DeGrijze and Joop?

The corrected instructions for /forums/sources/Profile.php are...


FIND:
		if ( $member['website'] and preg_match( "/^http://S+$/", $member['website'] ) )

		{

	  $info['homepage'] = "<a href='{$member['website']}' target='_blank'>{$member['website']}</a>";

  }

  else

  {

	  $info['homepage'] = $ibforums->lang['no_info'];

  }
ADD BELOW:
		if ( $member['blog'] and preg_match( "/^http://S+$/", $member['blog'] ) )

		{

	  $info['blogpage'] = "<a href='{$member['blog']}' target='_blank'>{$member['blog']}</a>";

  }

  else

  {

	  $info['blogpage'] = $ibforums->lang['no_info'];

  }
B)


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#12 DeGrijze

  • Members
  • 5 posts

Posted 18 November 2004 - 03:26 AM

visiblesoul said:

So are you DeGrijze and Joop?
Nope Sorry let me exsplane DeGrijze is my son.
And we make both use of the different computers here in my home And his place when i?m baby sitting on my granddochter en son.
And becouse I don't have a count here I just made juse of his one, (soory i know its wrong and afther this explanasion I wil make a acount for my self.
I?m Joop 70 years old, and DeGrijze (Gerard) is my son 45 years old.

Hope that this explanesion settels all?

#13 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 18 November 2004 - 03:43 AM

DeGrijze said:

Hope that this explanesion settels all?
Yes, I understand now. B)


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#14 Joop

  • Members
  • 2 posts
  • Netherlands

Posted 18 November 2004 - 03:48 AM

visiblesoul, on 17th November 2004, 07:47 PM, said:

So are you DeGrijze and Joop?

The corrected instructions for /forums/sources/Profile.php are...


FIND:
		if ( $member['website'] and preg_match( "/^http://S+$/", $member['website'] ) )

		{

	  $info['homepage'] = "<a href='{$member['website']}' target='_blank'>{$member['website']}</a>";

  }

  else

  {

	  $info['homepage'] = $ibforums->lang['no_info'];

  }
ADD BELOW:
		if ( $member['blog'] and preg_match( "/^http://S+$/", $member['blog'] ) )

		{

	  $info['blogpage'] = "<a href='{$member['blog']}' target='_blank'>{$member['blog']}</a>";

  }

  else

  {

	  $info['blogpage'] = $ibforums->lang['no_info'];

  }
B)
Oke done that, but I think iam missing a nother line.
Please correct my if I?m wrong.
Must there by not a line ?lso for the blog addon in this Profile.php file like the one's here under.
		$info['aim_name']	= $member['aim_name']   ? $member['aim_name']   : $ibforums->lang['no_info'];

		$info['icq_number']  = $member['icq_number'] ? $member['icq_number'] : $ibforums->lang['no_info'];

		$info['yahoo']	   = $member['yahoo']	  ? $member['yahoo']	  : $ibforums->lang['no_info'];

		$info['location']	= $member['location']   ? $member['location']   : $ibforums->lang['no_info'];

		$info['interests']   = $member['interests']  ? $member['interests']  : $ibforums->lang['no_info'];

		$info['msn_name']	= $member['msnname']	? $member['msnname']	: $ibforums->lang['no_info'];

		$info['integ_msg']   = $member['integ_msg']  ? $member['integ_msg']  : $ibforums->lang['no_info'];
Iam asking becouse ithere is no line like this for the blog addon in the Profile.php file.

Jopp (as my self this time. :lol: )

#15 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 18 November 2004 - 04:20 AM

Joop, on 18th November 2004, 04:48 AM, said:

Oke done that, but I think iam missing a nother line.
Please correct my if I?m wrong.
Must there by not a line ?lso for the blog addon in this Profile.php file like the one's here under.
		$info['aim_name']	= $member['aim_name']   ? $member['aim_name']   : $ibforums->lang['no_info'];

		$info['icq_number']  = $member['icq_number'] ? $member['icq_number'] : $ibforums->lang['no_info'];

		$info['yahoo']	   = $member['yahoo']	  ? $member['yahoo']	  : $ibforums->lang['no_info'];

		$info['location']	= $member['location']   ? $member['location']   : $ibforums->lang['no_info'];

		$info['interests']   = $member['interests']  ? $member['interests']  : $ibforums->lang['no_info'];

		$info['msn_name']	= $member['msnname']	? $member['msnname']	: $ibforums->lang['no_info'];

		$info['integ_msg']   = $member['integ_msg']  ? $member['integ_msg']  : $ibforums->lang['no_info'];
Iam asking becouse ithere is no line like this for the blog addon in the Profile.php file.

Jopp (as my self this time. :lol: )
No. One added section of code is all that is needed. I duplicated the "website" button for the mod, not the instant messenger buttons. If you search Profile.php for "website" you will see what I mean. B)


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#16 Joop

  • Members
  • 2 posts
  • Netherlands

Posted 18 November 2004 - 07:07 AM

Oke Thank.
I?m verry happy with this hack cq addon.
It works like a charm no problems wath so ever with it.
Thanks

Joop




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users