PDA

View Full Version : LinkMe Hack


.Tim
12 Mar 2006, 20:36
This is a port of this hack:

http://www.vbulletin.org/forum/showthread.php?t=64615

Instructions:

1) Unzip and overwrite the 'banner03_468x60.gif' file with your own banner (keeping the same name, obviously). Then upload the files to your site, keeping the same directory structure. (http://www.sitename.com/images/banners/banner03_468x60.gif)


2) Upload product.


3) Then add:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In the navbar where ever you want the link to appear.



Right now it only shows one banner but you can manually add more by editing the LinkMe template. Soon I'll try and make it where you can add banners via the admincp. Enjoy. :D

.Tim
12 Mar 2006, 20:44
If you installed the previous version for vb3.0, you will no longer use the www.sitename.com/linkme.php link anymore. The link will now be http://www.sitename.com/misc.php?do=linkme and also, you will need to revert/delete your linkme template before uploading the product.

And make sure you have the site url in your admincp -> vboptions is set properly or else your images will not appear.

jawinn
12 Mar 2006, 20:48
I've been looking for something like this.

Downloaded, will install on test forum this evening.

CSS59
12 Mar 2006, 20:55
You are the man!! THANK YOU!

CSS59
12 Mar 2006, 21:02
well it does not override the one I had installed in 3.0 :(

.Tim
12 Mar 2006, 21:14
well it does not override the one I had installed in 3.0 :(
See link (http://www.cobaltss.net/forums/LinkMe.php)

This port doesn't use the php file. The page is now at:

http://www.xxxxxxx.net/forums/misc.php?do=linkme

CSS59
12 Mar 2006, 21:18
can you help me make it use that file?

.Tim
12 Mar 2006, 21:20
can you help me make it use that file?

I'll see what I can do.

.Tim
12 Mar 2006, 21:26
Okay, backup your LinkMe.php file and then replace the contents with this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

CSS59
12 Mar 2006, 21:37
Okay, backup your LinkMe.php file and then replace the contents with this:

[/code]

done. My images don't show up. I have them all saved in forums/images/banners ?

.Tim
12 Mar 2006, 21:46
done. My images don't show up. I have them all saved in forums/images/banners ?

It's looking in root/images/banners. Try changing:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



And



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



in your LinkMe.php file.

CSS59
12 Mar 2006, 21:49
[quote]Warning: opendir(./forums/images/banners): failed to open dir: No such file or directory in /LinkMe.php on line 24

Warning: readdir(): supplied argument is not a valid Directory resource in /LinkMe.php on line 25

Warning: asort() expects parameter 1 to be array, null given in /LinkMe.php on line 28

Warning: Variable passed to each() is not an array or object in /LinkMe.php on line 29

.Tim
12 Mar 2006, 21:52
In your vboptions what do you have the url set to?

CSS59
12 Mar 2006, 21:57
In your vboptions what do you have the url set to?


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

.Tim
12 Mar 2006, 22:02
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



No I meant in your admincp in your options. What is your site url set to?

CSS59
12 Mar 2006, 22:10
No I meant in your admincp in your options. What is your site url set to?

http://domain.com

.Tim
12 Mar 2006, 22:12
http://domain.com

Change it to http://domain.com/forums

and then redo what I posted here:

http://www.vbulletin.org/forum/showpost.php?p=923277&postcount=9

Barakat
13 Mar 2006, 03:13
works great thanks

dodgechargerfan
14 Mar 2006, 19:00
Neat!

How tough would it be to make the link work from a portal page like drupal (with the vBdrupal integration product)?

derfelix
15 Mar 2006, 11:29
well with me it doesn't work as is..

$vboptions[bburl] is empty in a php file!

i have to use $vbulletin->options['bburl'] instead!!!

actually i have to replace:

<IMG SRC=\"$vboptions[bburl]/forums/images/banners/".$file."\">

with

<IMG SRC=\"".$vbulletin->options['bburl']."/forums/images/banners/".$file."\">

and so on....

arer u sure this is for 3.54???????

Felix

.Tim
16 Mar 2006, 05:50
Worked fine on my test board that is 3.5.4.

EricaJoy
28 Mar 2006, 21:17
well with me it doesn't work as is..

$vboptions[bburl] is empty in a php file!

i have to use $vbulletin->options['bburl'] instead!!!

actually i have to replace:

<IMG SRC=\"$vboptions[bburl]/forums/images/banners/".$file."\">

with

<IMG SRC=\"".$vbulletin->options['bburl']."/forums/images/banners/".$file."\">

and so on....

arer u sure this is for 3.54???????

FelixThanks for this...it helped me figure out how to get my old LinkMe hack working on 3.5. It may not be the right way but it friggin works. Woot.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Snake
28 Mar 2006, 21:20
Just what I've been looking for.

/me clicks on the install button

rrr
11 Jul 2006, 01:33
Thanks for posting the updated php code for the old version, EricaJoy. Works perfect!

EricaJoy
16 Jul 2006, 18:01
No problem, glad I could help. :)

Kihon Kata
28 Aug 2006, 21:12
Possible to adjust this for 3.6?

.Tim
29 Aug 2006, 04:57
I haven't looked but I'll check it out as soon as I can. I don't see why not though.

PoetJA-1975
27 Nov 2006, 07:46
Thanks for this...it helped me figure out how to get my old LinkMe hack working on 3.5. It may not be the right way but it friggin works. Woot.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



THANX VERY MUCH FOR SUPPLYING THIS CODE!
Got the original mod to work on my forum - much appreciation ;)

Jacquii.

btw - http://jpicforum.info/LinkMe.php