![]() |
LinkMe Hack
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. :o 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, |
There! I clicked install, now where's my support?! ;)
|
Quote:
Cheers, |
Good Job:D
I like this:D |
Cool. :)
|
Quote:
|
Cool hack!
|
Nice one
|
Quote:
Cheers, |
Boofo, your a silly little critter lol
Thanks for the hack keep coding :P |
Hi @LL,
i forgot to change the function_online.php for the correct view on the online.php. Please do the following: IN: includes/functions_online.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
is the above change updated in the zip? cool system by the way :)
|
Quote:
Cheers, |
@Pseudomizer
Great hack, thanks. This was exactly what we were looking for :banana: Install is clicked and install was piece a cake |
Quote:
can you publish this expansion at vbulletin-Germany, too or does it adapt to the forum language? is only no asks ( ist ja nur ne frage:) ) |
Quote:
i know that problem with vbulletin germany and com. I am not a member of the germany one and the license transfer something i do not like personally. Aber schau Dir mal bitte mein erstes Posting in diesem Thread GENAU an und Du wirst f?ndig. :devious: Cheers, |
Quote:
|
Oh this is pretty!
*installs* |
Oh wow, very nice.
*clicks Install* |
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 --> I want to change the above code to: Code:
<a href="http://www.calpolyonline.com/forums/"> 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: |
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 |
Quote:
you talk about this section in the php file: PHP Code:
PHP Code:
|
Quote:
But ok. With the next update i will change the header in the PHP file from: PHP Code:
PHP Code:
It is very easy to define unknown locations. You have to create 2 entries. One entry like this: PHP Code:
PHP Code:
Cheers, |
Quote:
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:
PHP Code:
StarBuG |
Quote:
Hi, the location is the key. In this line you define what should happen: PHP Code:
And thanks for the hint ( it is not a fix ) but it works as it is. Or it doesn't ? Cheers, |
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 |
Quote:
And thanks for the navbar hint. I will build this into the next version. Cheers, |
Quote:
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 |
Quote:
So it is either the globaltemplate or the include of the global.php. I did nothing else. Cheers, |
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 |
Quote:
And for the directory: You change it to whatever diretory you want in ( total path if you wish): PHP Code:
PHP Code:
Cheers, |
Quote:
I replaced the url in the link so the users wich copy the code use our right banner directory but the automated display in linkme.php of the images does not work. Only the header is generated. But never mind it is not that important ;) StarBuG ps: I wanted this because my forum is not the center of my project. You can have a look if you want (see my sig) ;) |
Thanks for the support Pseudomizer. :up:
|
May i reccomend something....
PHP Code:
PHP Code:
Why am i getting a blank page? Really wierd. |
Quote:
can you tell me why you are suggesting this please ? I would like to know your intention for this change. And the reason for getting a blank page is 99% not having the template in the correct style implemented. Cheers, |
I was just cleaning up your code....
[php]if ($file == "." || $file == ".." || $file == "index.htm" || $file == "CVS") { } else {[php] Means.... IF $file = any of those.... { } do nothing. I simply did IF ($file != those... then do . As said, just cleaning your code up :p:D |
I have installed..works great...thanks!! :)
|
Good idea! :)
|
Great Hack!..thanks for this one
Clicks the install |
Quote:
|
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|