![]() |
LinkMe Hack
This is a port of this hack:
https://vborg.vbsupport.ru/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/banne...r03_468x60.gif) 2) Upload product. 3) Then add: Code:
<td class="vbmenu_control"><a href="/misc.php?do=linkme">Link Me</a></td> 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 |
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. |
I've been looking for something like this.
Downloaded, will install on test forum this evening. |
You are the man!! THANK YOU!
|
well it does not override the one I had installed in 3.0 :(
|
Quote:
http://www.xxxxxxx.net/forums/misc.php?do=linkme |
can you help me make it use that file?
|
Quote:
|
Okay, backup your LinkMe.php file and then replace the contents with this:
Code:
<?php |
Quote:
|
Quote:
Code:
$direktory = "./images/banners"; Code:
$direktory = "./forums/images/banners"; Code:
$bild = "./images/banners/$file"; Code:
$bild = "./forums/images/banners/$file"; |
[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 |
In your vboptions what do you have the url set to?
|
Quote:
Code:
<IMG SRC=\"$vboptions[bburl]/forums/images/banners/".$file."\"> |
Quote:
|
Quote:
|
Quote:
and then redo what I posted here: https://vborg.vbsupport.ru/showpost....77&postcount=9 |
works great thanks
|
Neat!
How tough would it be to make the link work from a portal page like drupal (with the vBdrupal integration product)? |
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 |
Worked fine on my test board that is 3.5.4.
|
Quote:
PHP Code:
|
Just what I've been looking for.
/me clicks on the install button |
Thanks for posting the updated php code for the old version, EricaJoy. Works perfect!
|
No problem, glad I could help. :)
|
Possible to adjust this for 3.6?
|
I haven't looked but I'll check it out as soon as I can. I don't see why not though.
|
Quote:
Got the original mod to work on my forum - much appreciation ;) Jacquii. btw - http://jpicforum.info/LinkMe.php |
All times are GMT. The time now is 01:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|