Page 1 of 3

Twit Profile Link

Posted: Fri Feb 05, 2010 8:08 am
by Extensions Robot
Modification name: Twit Profile Link
Author: Metzle
Modification description: Adds a link to the users twitter profile next to www-button.
Modification version: 1.0.6
Tested on phpBB version: 3.0.8

Download file: twitter_profile_link_1.0.6.zip
File size: 142.59 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

Twitter Profile Link

Posted: Fri Feb 05, 2010 8:08 am
by DavidIQ
Modification validated/released

Notes:

Twitter Profile Link

Posted: Fri Feb 05, 2010 8:08 am
by Metzle
Thanks for the validation of the Mod!

For subsilver based styles have a look at this posting: http://www.phpbb.com/community/viewtopi ... #p11973865

Re: Twitter Profile Link

Posted: Fri Feb 05, 2010 3:29 pm
by vonhazey
Just installed and working great, been waiting for this one for ages, thanks.

Re: Twitter Profile Link

Posted: Fri Feb 05, 2010 3:31 pm
by Dil1880
seems great! thanks! I'll test it and of course use it :D

Re: Twitter Profile Link

Posted: Fri Feb 05, 2010 3:32 pm
by PinoyEngineâ„¢
anyways, any possibility that it will extract user's last twitter post and put it under his username in viewtopic?

thanks.

Re: Twitter Profile Link

Posted: Fri Feb 05, 2010 3:57 pm
by Metzle
PinoyEngineâ„¢ wrote:anyways, any possibility that it will extract user's last twitter post and put it under his username in viewtopic?
Hi,

I think there's no easy way to do this with this mod. It seems easier to me to write a new mod to do this request but I can't write this mod because of lack of time.

Thanks to the others for your feedback.

Re: Twitter Profile Link

Posted: Fri Feb 05, 2010 11:16 pm
by d33j4y
On the Viewing Profile page, in the contacts section, under Twitter: nothing shows up!?!

I have been able to modify this to be used on a subsilver based style but perhaps it would've been nice to have this included with the mod as not everyone uses styles based on prosilver!!! Not to sound like complaining, this is still a great mod but I cant get the image to show in the view profile page under where it says Twitter:

Any help would be appreciated and I am using the AeroBlack theme (Subsilver) 8-)

Re: Twitter Profile Link

Posted: Fri Feb 05, 2010 11:58 pm
by Metzle
d33j4y wrote: I have been able to modify this to be used on a subsilver based style but perhaps it would've been nice to have this included with the mod as not everyone uses styles based on prosilver!!!
Hi,

that's right, but I haven't the capacities to modify it on subsilver based styles. There are too much things I have to do in my real life and there are some private projects which wait for me ;)
Sorry, but atm I'm not able to accomplish this. But I'm sure there are many people outside there to give you the help you need.

Re: Twitter Profile Link

Posted: Sat Feb 06, 2010 7:20 am
by d33j4y
Thats ok, i can relate to that all actually as I am constantly busy working on several projects at once myself!!! I can probably provide input for anyone eager to know what to do to subsilver edits, I just have that one small issue to resolve in the viewing profile page but I did manage to get everything else converted!!! ;)

Re: Twitter Profile Link

Posted: Sat Feb 06, 2010 8:20 am
by d33j4y
I have fixed the problem on the Viewing Profile page and below are the edits I have done to subsilver...

*These were done to AeroBlack style which is based on subsilver and could help those with subsilver edits as a reference...

Open: styles/AeroBlack/imageset/en/imageset.cfg

Look for: img_icon_contact_www = icon_contact_www.png

Add after: img_icon_contact_twit = icon_contact_twit.png
*Note that I used a png image instead of the gif image that came with the mod
If using the gif image: img_icon_contact_twit = icon_contact_twit.gif

Open: styles/AeroBlack/template/memberlist_view.html

Look for:
<tr>
<td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_JABBER}:</td>
<td><!-- IF U_JABBER --><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false">{JABBER_IMG}</a><!-- ELSEIF USER_JABBER -->{USER_JABBER_IMG}<!-- ENDIF --></td>
</tr>

Add after:
<tr>
<td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_TWITTER}:</td>
<td><!-- IF USER_TWITTER --><a href="http://www.twitter.com/{USER_TWITTER}">{TWITTER_IMG}</a><!-- ELSEIF U_TWITTER -->{USER_TWITTER}<!-- ENDIF --></td>
</tr>

Open: styles/AeroBlack/template/memberlist_search.html

Look for:
<td class="row1"><input class="post" type="text" name="msn" value="{MSNM}" /></td>
</tr>

Add after:
<tr>
<td class="row1"><b class="genmed">{L_TWITTER}:</b></td>
<td class="row1"><input class="post" type="text" name="twitter" value="{TWITTER}" /></td>
</tr>

Open: styles/AeroBlack/template/ucp_profile_profile_info.html

Look for:
<tr>
<td class="row1" width="35%"><b class="genmed">{L_WEBSITE}: </b></td>
<td class="row1"><input class="post" type="text" name="website" size="30" maxlength="255" value="{WEBSITE}" /></td>
</tr>

Add after:
<tr>
<td class="row1" width="35%"><b class="genmed">{L_TWITTER}: </b></td>
<td class="row1"><input class="post" type="text" name="twitter" size="30" maxlength="255" value="{TWITTER}" /></td>
</tr>

Open: styles/AeroBlack/template/viewtopic_body.html

Look for:
<td colspan="2"><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};">&nbsp;<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{PROFILE_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_PM --><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->

In line after: <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->
Add: <!-- IF postrow.U_TWITTER --><a href="http://www.twitter.com/{postrow.U_TWITT ... ER_IMG}</a> <!-- ENDIF -->

Purge cache, Refresh template in styles tab in acp as usual 8-)

Re: Twitter Profile Link

Posted: Sat Feb 06, 2010 7:55 pm
by Stryker-RaVeN
Thanks! Good mod, Was hoping it included memberlist and it does. :lol:

Re: Twitter Profile Link

Posted: Sat Feb 06, 2010 8:36 pm
by Metzle
d33j4y wrote:I have fixed the problem on the Viewing Profile page and below are the edits I have done to subsilver...
Hi,

thanks for the edits to subsilver based styles. I will include it in a probably next version of the mod. Great work! :)

Re: Twitter Profile Link

Posted: Sat Feb 06, 2010 9:50 pm
by d33j4y
Not a problem... I didnt want to seem like I was stepping on your shoes as they say as its your mod but I always try to pass on information where I can! These are probably not the best edits so Im sure people will improvise on the idea if nothing else... :)

Re: Twitter Profile Link

Posted: Sat Feb 06, 2010 9:53 pm
by d33j4y
Also wanted to add that I had added "Facebook Profile Link" alongside the Twitter Profile Link based on the coding edits of this mod and all tested out and works nicely!!! 8-)