Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
LinkMe Hack Details »»
LinkMe Hack
Version: 1.00, by Pseudomizer Pseudomizer is offline
Developer Last Online: Feb 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 04-30-2004 Last Update: 05-03-2004 Installs: 151
 
No support by the author.

OR
How-To-Link-us in a nutshell

I have created a PHP file and one template which creates a new page in the look and feel of your domain. This file searches the directory ./images/banners/ and creates for each file which is found there an image and the appropriate source code in html. This source code can be copied via double click into the clipboard.

The aim of this mini-hack would be, to make it easier for your members to link your homepage/domain. In addition it will make your life easier because every graphic that you copy into /images/banners will automatically be translated into your LinkMe page. Once installed you just add more banners and graphics and you do not have to care any more about any HTML code. :devious:

Installation instructions are in the zip file. Install time estimated: 2 mins

I will only give support if you click on the install button on the right upper corner or you click on this INSTALL link.

If you want to see it live in action please visit:

Example

But it is in german. :nervous:

Update:
Changes for functions_online.php implemented into the ZIP file and posted below.

Cheers,

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-09-2004, 05:37 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx for this nice hack.

I have a question wich is not directly regarding your hack but maybe someone can help me anyway.

I have a hack wich shows "unknown location" in user online and I tried to edit functions_online.php

The second option is clear but how is the the first "case" determant?

case 'LinkMe': (the LinkMe)

It cant be define('THIS_SCRIPT','....'); cause you have "chat" entered in the LinkMe.php (should be fixed )

I realy can?t figure that out.

Can anyone help?

StarBuG
Reply With Quote
  #23  
Old 05-09-2004, 06:10 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iKwak
Just what I needed! Thanks mate. Clicked Install.

edit: On the source code (inside the textbox), how can we change the HTML format?

Code:
        <!-- http://www.calpolyonline.com/forums Advertising Start -->

        <A HREF="http://www.calpolyonline.com/forums">
<IMG SRC="http://www.calpolyonline.com/forums/images/banners/calpolyonlinemain.gif"></A>

        <!-- http://www.calpolyonline.com/forums Advertising End -->

I want to change the above code to:

Code:
        <a href="http://www.calpolyonline.com/forums/">
<img src="http://www.calpolyonline.com/forums/images/banners/calpolyonlinemain.gif" alt="ALT"></a>

Notice the change? I have removed the <!-- --> brackets, removed capitalization, added a backward slash on the URL and added a "ALT" code. How would you be able to do that? Thank you for the support. Just the hack I was waiting for. :up:
Hi iKwak,

you talk about this section in the php file:

PHP Code:
        <code style=\"white-space:nowrap\">
        &lt;!-- 
$vboptions[bburl] Advertising Start --&gt;<BR>
        &lt;A HREF=\"
$vboptions[bburl]\"&gt;<BR>&lt;IMG SRC=\"$vboptions[bburl]/images/banners/".$file."\"&gt;&lt;/A&gt;<BR>
        &lt;!-- 
$vboptions[bburl] Advertising End --&gt;
        </code></pre> 
Change it for your particular request to:

PHP Code:
        <code style=\"white-space:nowrap\">
                &lt;A HREF=\"
$vboptions[bburl]/\"&gt;<BR>&lt;IMG SRC=\"$vboptions[bburl]/images/banners/".$file."\" alt=\"ALT\"&gt;&lt;/A&gt;<BR>
        </code></pre> 
Cheers,
Reply With Quote
  #24  
Old 05-09-2004, 06:16 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG
Thx for this nice hack.

I have a question wich is not directly regarding your hack but maybe someone can help me anyway.

I have a hack wich shows "unknown location" in user online and I tried to edit functions_online.php

The second option is clear but how is the the first "case" determant?

case 'LinkMe': (the LinkMe)

It cant be define('THIS_SCRIPT','....'); cause you have "chat" entered in the LinkMe.php (should be fixed )

I realy can?t figure that out.

Can anyone help?

StarBuG
Thanks StarBug for pointing this out. But regardless of this it should work with the appropriate changes.

But ok. With the next update i will change the header in the PHP file from:

PHP Code:
   define('THIS_SCRIPT','chat'); 
to

PHP Code:
   define('THIS_SCRIPT','LinkMe'); 
And for your first request:

It is very easy to define unknown locations. You have to create 2 entries. One entry like this:

PHP Code:

        
case 'LinkMe':
            
$userinfo['action'] = 'LinkMe';
            
$userinfo['where'] = "<a href=\"LinkMe.php\">$vboptions[bbtitle] LinkMe</a>";
            break; 
and then a second entry like this:

PHP Code:


    
case 'LinkMe.php':
        
$userinfo['activity'] = 'LinkMe';
        break; 
And if you would like to know where to place these please look into my install.html from this hack. This should help.

Cheers,
Reply With Quote
  #25  
Old 05-09-2004, 06:22 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Thanks StarBug for pointing this out. But regardless of this it should work with the appropriate changes.

But ok. With the next update i will change the header in the PHP file from:

PHP Code:
   define('THIS_SCRIPT','chat'); 
to

PHP Code:
   define('THIS_SCRIPT','LinkMe'); 
And for your first request:

It is very easy to define unknown locations. You have to create 2 entries. One entry like this:

PHP Code:

        
case 'LinkMe':
            
$userinfo['action'] = 'LinkMe';
            
$userinfo['where'] = "<a href=\"LinkMe.php\">$vboptions[bbtitle] LinkMe</a>";
            break; 
and then a second entry like this:

PHP Code:


    
case 'LinkMe.php':
        
$userinfo['activity'] = 'LinkMe';
        break; 
And if you would like to know where to place these please look into my install.html from this hack. This should help.

Cheers,
You missunderstood me.

I know where I should place this but I need to know where:

case 'LinkMe':

the 'LinkMe' is taken from.

Hope you know what I mean

Ah and one more thing to fixe:

In LinkMe.php

find:
PHP Code:
eval('$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('LinkMe') . '");'); 
above it add:
PHP Code:
$navbits = array('' => "LinkMe");
$navbits construct_navbits($navbits); 



StarBuG
Reply With Quote
  #26  
Old 05-09-2004, 06:59 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG
You missunderstood me.

I know where I should place this but I need to know where:

case 'LinkMe':

the 'LinkMe' is taken from.

Hope you know what I mean

Ah and one more thing to fixe:

In LinkMe.php

find:
PHP Code:
eval('$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('LinkMe') . '");'); 
above it add:
PHP Code:
$navbits = array('' => "LinkMe");
$navbits construct_navbits($navbits); 



StarBuG

Hi,

the location is the key. In this line you define what should happen:

PHP Code:
$userinfo['where'] = "<a href=\"YOUR.php\ 
If the user is on this php file you define the action.

And thanks for the hint ( it is not a fix ) but it works as it is. Or it doesn't ?

Cheers,
Reply With Quote
  #27  
Old 05-09-2004, 07:15 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have tried that

the file is called: vb_jukebox.php

i have in functions_online.php

case 'Jukebox':
$userinfo['action'] = 'vB Jukebox';
$userinfo['where'] = "<a href=\"vb_jukebox.php\">$vboptions[bbtitle] vB Jukebox</a>";
break;

case 'vb_jukebox.php':
$userinfo['activity'] = 'vB Jukebox';
break;


But it still shows unknown location
(I added it below your LinkMe code)

Any idea?

And without my "fix" you don?t have a location in the navbar

Greetings

StarBuG
Reply With Quote
  #28  
Old 05-09-2004, 07:20 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG
I have tried that

the file is called: vb_jukebox.php

i have in functions_online.php

case 'Jukebox':
$userinfo['action'] = 'vB Jukebox';
$userinfo['where'] = "<a href=\"vb_jukebox.php\">$vboptions[bbtitle] vB Jukebox</a>";
break;

case 'vb_jukebox.php':
$userinfo['activity'] = 'vB Jukebox';
break;


But it still shows unknown location
(I added it below your LinkMe code)

Any idea?

And without my "fix" you don?t have a location in the navbar

Greetings

StarBuG
Your code is correct. So you either have a comma wrong or you placed it into the wrong section.

And thanks for the navbar hint. I will build this into the next version.

Cheers,
Reply With Quote
  #29  
Old 05-09-2004, 07:23 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Your code is correct. So you either have a comma wrong or you placed it into the wrong section.

And thanks for the navbar hint. I will build this into the next version.

Cheers,
I put it exactly below your code infact I copied your code and just replaced the needed parts.

here:

case 'LinkMe':
$userinfo['action'] = 'LinkMe';
$userinfo['where'] = "<a href=\"LinkMe.php\">$vboptions[bbtitle] LinkMe</a>";
break;
case 'Jukebox':
$userinfo['action'] = 'vB Jukebox';
$userinfo['where'] = "<a href=\"vb_jukebox.php\">$vboptions[bbtitle] vB Jukebox</a>";
break;
default:
if ($permissions['wolpermissions'] & CANWHOSONLINEBAD)


AND:

case 'LinkMe.php':
$userinfo['activity'] = 'LinkMe';
break;
case 'vb_jukebox.php':
$userinfo['activity'] = 'vB Jukebox';
break;
default:
$userinfo['activity'] = 'unknown';
}

Can it be that there is something that needs to be in the file vb_jukebox.php too to work?

Star
Reply With Quote
  #30  
Old 05-09-2004, 07:29 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG
I put it exactly below your code infact I copied your code and just replaced the needed parts.

here:

case 'LinkMe':
$userinfo['action'] = 'LinkMe';
$userinfo['where'] = "<a href=\"LinkMe.php\">$vboptions[bbtitle] LinkMe</a>";
break;
case 'Jukebox':
$userinfo['action'] = 'vB Jukebox';
$userinfo['where'] = "<a href=\"vb_jukebox.php\">$vboptions[bbtitle] vB Jukebox</a>";
break;
default:
if ($permissions['wolpermissions'] & CANWHOSONLINEBAD)


AND:

case 'LinkMe.php':
$userinfo['activity'] = 'LinkMe';
break;
case 'vb_jukebox.php':
$userinfo['activity'] = 'vB Jukebox';
break;
default:
$userinfo['activity'] = 'unknown';
}

Can it be that there is something that needs to be in the file vb_jukebox.php too to work?

Star
It can't be THIS_SCRIPT because i had this wrong and it worked for me. :surprised:

So it is either the globaltemplate or the include of the global.php. I did nothing else.

Cheers,
Reply With Quote
  #31  
Old 05-09-2004, 07:39 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YES

I solved it!!! hehe

The second entry

$userinfo['activity'] = 'Jukebox';

determens the location-
The first entry handles the display in the useronline view
where

case 'Jukebox':

is definded by "activity"

Just in case anyone wants to know

Thx for the quick help and for this nice hack

If you want to have some suggestions to improve your hack:

It would be good to be able to define folders outside of the forum cause I store my banners outside the forum and like it is now I have to update both folders when I add banners

Greetings

StarBuG
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05351 seconds
  • Memory Usage 2,366KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (15)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete