vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Gadu-gadu ver. 1.0.1a (https://vborg.vbsupport.ru/showthread.php?t=90976)

MaTraX 06-23-2005 10:00 PM

Gadu-gadu ver. 1.0.1a
 
Hi
I just add to my forum support for the Gadu-gadu (on vB 3.5 b2)

This is mainly for the Polish users but it may be also usefull for the others. This hack will show the user status in the profile and after clicking on it it should start your GG client and open window to send the message.

I must add that this hack is removing support for the AIM. That`s because in Poland this messenger isn`t that much popular so I thought it can be replaced by more popular here.

Step 1
Enter the administration panel:
ACP / Styles & Templates / Search in Templates
and in the dafaule template search for the folowing:
PHP Code:

<td>$userinfo[aimicon]</td>
                    <
td><a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)">$userinfo[aim]</a></td

If the search could not manage you can find it manualy here::
ACP / Styles & Templates / Style Manager / (default forum template) / (on the menu) Edit Templates / (on the left) Member Info Templates / (and there is) MEMBERINFO

replace it with this:
PHP Code:

<td><img src="http://www.gadu-gadu.pl/users/status.asp?id=$userinfo[aim]border="0"></td>
                    <
td><a href="GG:$userinfo[aim]">$userinfo[aim]</a></td

Save the changes

Step 2
Enter the administration panel:
ACP / Styles & Templates / Style Manager / (default forum template) / (on the menu) Edit Templates / (on the left) Instant Messaging Templates / (and there is) im_aim

Remove this code:
PHP Code:

<a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)"><img src="$stylevar[imgdir_misc]/im_aim.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_aim_to_x]</phrase>" border="0" /></a

And paste there this one:
PHP Code:

<a href="GG:$userinfo[aim]"><img src="http://www.gadu-gadu.pl/users/status.asp?id=$userinfo[aim]border="0"></a

Save the changes

Step 3
Enter the administration panel:
ACP / Languages & Phrases / Search in Phrases
and search for the:
AIM
It should be found in group: User Tools (global)
Click the edit button and change in the language you are using "AIM" to "GG" and of course save the changes.

Step 4
Now every user will have in the profile editing field "GG" field.

ps.
This is my first modification and I know my method may be a bit weird but I will learn :) Of course.. sorry for any of my langage mistakes.

You can find the same instruction in Polish at: http://www.vbulletin.pl
Znajdziesz ta instrukcje po Polsku pod adresem: http://www.vbulletin.pl

Method/hack shoul also work on every vB 3.x.x

Marco van Herwaarden 06-24-2005 07:35 AM

Thank you for sharing this.

Would you please be so kind to put the instructions also in a (zipped) textfile. This makes it easier for those who install this to save as a reference for future upgrades.

PS Moved to Template Modifications.

nkt 06-24-2005 08:36 AM

Spoko Spoko :D

akanevsky 06-24-2005 11:36 AM

Nice hack, although why don't you make it pop up a window that is similar to the one vB has for other messengers? That way you keep the style ;)

Snake 07-05-2005 10:40 AM

Screenshot?

sensimilla 07-07-2005 07:43 AM

great hack MaTraX works like a charm on vb 3.0.7 too

thansk alot!

DjTaz 10-20-2005 11:53 PM

I just took this page and a link and made it a zip file for anyone who wanted to modify while offline - thanks for this - its something i was looking for .... if u have any other polish specific hacks , id appreciate them, i dont speak polish myself so making a site for polish people is a bit trickier .. ill take any help i can get :D

CDRlab 11-05-2005 03:23 PM

Matrax, you have to define GG's image width and height atributes (both 18px), because sometimes when GG servers are lagged or offline page including GG information will not be displayed correctly... The tables will be move and etc.

Sir_Yaro 03-03-2007 12:17 PM

A nie bylo by lepiej skopiowac wszystkie templaty i dorobic osobna obsluge GG?
Znacznie lepiej wykonane i nie bylo by podatne na uszkodzenia tak latwo...

ThorstenA 08-03-2007 02:28 PM

Can you make a "only product" out of this template edit? I'd prefer to update without hassling updating changed templates.


All times are GMT. The time now is 06:13 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.02966 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete