php forum
php mysql forum
php mysql smarty
 
Topic Options
#225571 - 09/29/02 08:23 AM User List - Add to Address book Link
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria

   User List - Add to Address book Link to Del.icio.us Add to del.icio.us
  Digg User List - Add to Address book Link Digg it
Mod Name / Version User List Add to Address Book 1.0<br />Description This hack adds a 'Add to Address book' on the user list<br />Working under UBB.threads 6.1<br />Any pre-requisites None<br />Author(s) dimopoulos<br />Credits threadsdev.com who taught me how to do things in php and ubb threads<br />Demo None.<br />Files Altered showmembers.php, /templates/default/showmembers.tmpl<br />Database Altered No<br />New Files None<br />Any other info Please report any problems you might have and I'll try to fix them as soon as possible. Sorry but I have tested this only in version 6.1.<br /><br /><br />INSTALL<br />STEP 1<br />Open the file showmembers.php<br /><br />STEP 1.1 find this:<br /><br /><pre><font class="small">code:</font><hr><br /> $userrow[$i]['Posts'] = $Posts;<br /> $userrow[$i]['ICQ'] = $ICQ;<br /> $userrow[$i]['Reged'] = $Reged;<br /></pre><hr><br /><br />BELOW it, add this:<br /><br /><pre><font class="small">code:</font><hr><br />// 20020929 Member List Add To Address Book 1.0 New Start<br /> $encoded = rawurlencode($Username);<br /> $userrow[$i]['AddToAddressbook'] = "<a href=\"{$config['phpurl']}/addaddress.php?Cat=$Cat&amp;User=$encoded\"><img src=\"{$config['images']}/addtobook.gif\" alt=\"{$ubbt_lang['ADD_BOOK']}\" border=\"0\"></a>";<br />// 20020929 Member List Add To Address Book 1.0 New End<br /></pre><hr><br /><br /><br /><br />STEP 2 <br />In your /templates/default/showmembers.tmpl file<br /><br />STEP 2.1 find this:<br /><br /><pre><font class="small">code:</font><hr><br /><td align="left" width="15%" nowrap="nowrap"><br /><a href="{$config['phpurl']}/showmembers.php?Cat=$Cat&amp;sb=$sortuser&amp;page=$page"><br />{$ubbt_lang['USERNAME_TEXT']} $UserS<br /></a><br /></td><br /></pre><hr><br /><br />BELOW it, add this (the comments are optional. I personally find them usefull but you can remove them if you wish):<br /><br /><pre><font class="small">code:</font><hr><br /><!-- 20020929 Member List Add To Address Book 1.0 New Start --><br /><td align="left" width="3%" nowrap="nowrap"><br />+ AB<br /></td><br /><!-- 20020929 Member List Add To Address Book 1.0 New End --><br /></pre><hr><br /><br /><br />STEP 2.1 find this:<br /><br />Find this:<br /><br /><pre><font class="small">code:</font><hr><br />{$userrow[$i]['Username']}<br /></a><br /></td><br /></pre><hr><br /><br />BELOW it, add this (the comments are optional. I personally find them usefull but you can remove them if you wish):<br /><br /><pre><font class="small">code:</font><hr><br /><!-- 20020929 Member List Add To Address Book 1.0 New Start --><br /><td><br />{$userrow[$i]['AddToAddressbook']}<br /></td><br /><!-- 20020929 Member List Add To Address Book 1.0 New End --><br /></pre><hr><br /><br />STEP 2.3 find this:<br /><br />Find this:<br /><br /><pre><font class="small">code:</font><hr><br /><td align="center" colspan="6" class="cleartable"><br /><font class="onbody"><br />{$ubbt_lang['PAGE_TEXT']}:<br /></pre><hr><br /><br />CHANGE it, to this (the comments are optional. I personally find them usefull but you can remove them if you wish):<br /><br /><pre><font class="small">code:</font><hr><br /><!-- 20020929 Member List Add To Address Book 1.0 New Start --><br /><td align="center" colspan="7" class="cleartable"><br /><!-- 20020929 Member List Add To Address Book 1.0 New End --><br /><font class="onbody"><br />{$ubbt_lang['PAGE_TEXT']}:<br /></pre><hr><br /><br />That's it.<br /><br />There is something that I don't like here. When you click the 'Add to Addressbook' link the user profile is shown. Since I did this very late at night I am too tired to find an alternative, say navigate again to the user list or show the address book. Any suggestions will be more than welcome.<br /><br />Warm regards<br /><br />Nikos


Attachments
57958-UserListAddtoAddressBook1_0.zip (11 downloads)

_________________________
Nikos

Top


Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
0 Registered (), 21 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks