PDA

View Full Version : [Release vB Links 1.0 | vB2bx


the_sisko
01 Apr 2001, 20:43
UPDATE!!! NEW DOWNLOADFILE | 02. April 2001
Release vB Links 1.0

So here it is, the final version of my link hack is available to download.
Here are some features for this version: showing links with the following information: Name, URL, Email, Banner, Banner ALT Text, Description, Forumlink, Hitcounter (outgoing), Categories main page shows all links, but you can: a:sort by category and b:search for a site registrated user can add new links, but admin or mod must confirm the links in the CP an email is sent to you when there is a new link to approve Links can be ordered over pages. Limit for links per page can be set outgoing links will be redirect over a redirect page with information that you're leaving the forum...and outgoing counter will be set plus 1 Category is show on each link CP: you can easy add new site on your own or edit a site CP:can add or edit categories CP: Categories can be reordered CP:confirm and edit new sites CP:upload banners to let them load fasterMore:
There are about 13 new templates and 2 new tables on the database which will be created over an easy installscript.

How to install?
Just download the attached file and unzip it, then open install.txt and follow the instructions. Need any help or find any bugs, please report them here. And don't hate me for the code, I tried my best!

Future:
As I like my script and need it anyway, there will be a next version of it, with more features. Some of the following features I am working on: New startpage with a overview of all categories and the ability to add subcategories as well automatic post of a new post in a specific. thread when admin / mod approved a link logging user who's add the link (its easy but don't had the time for this version categories and subcategories in Navbar get used of the vB rate feature and try to integrate it code clean up better translation and more...
INstall and upgrade
For those of you who will install the script the first time, just download the attached file and read firsttime_install.txt.
For those of you who allready updated the templates, just reupload "links.php" and do step 1. and 2. in upgrade_install.txt, and also open CP and add the links_redirect_add & links_redirect_url template which is attached to this message. This will fix all your probs For those fo you who do not change the templates yet, but installed the hack, just do whats in upgrade_install.txt

DOWNLOAD vB Links Hack 1.3 (http://www.vbulletin.org/forum/attachment.php?s=&postid=219791)

01 Apr 2001, 20:54
he dude thx awesome hack really usefull ;-)

01 Apr 2001, 21:16
i will try this tomorrow
one thing i will need asap is subcategories.....when you plan to do this?
if it's far i will do myself....lemme know :)

thanks for now!

01 Apr 2001, 21:27
Attached a new download file! Just some hardcoded german I forgot! If you allready installed it, just reupload the adminlinks.php

01 Apr 2001, 21:42
works great!
easy installation!!
Great job! thanks very much..

01 Apr 2001, 22:15
where can we see a online demo ?

01 Apr 2001, 22:22
shouldn't be more "clean" to change this

<tr><td><hr></td></tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>Links</b>
</font></td></tr></table>
<a href="../links/adminlinks.php?action=add"> Add</a> |
<a href="../links/adminlinks.php?action=modify"> Modify</a> |
<a href="../links/adminlinks.php?action=offline"> Approve </a><br>
<font color="#BCB6CD"><b>Category</b></font><br>
<a href="../links/adminlinks.php?action=addcat"> Add</a> |
<a href="../links/adminlinks.php?action=modifycat"> Modify</a> |
<a href="../links/adminlinks.php?action=ordercat"> Arrange</a><br><br>
</td></tr>

to

<tr><td><hr></td></tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>Links</b>
</font></td></tr></table>
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=add"> Add</a> |
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=modify"> Modify</a> |
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=offline"> Approve </a><br>
<font color="#BCB6CD"><b>Category</b></font><br>
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=addcat"> Add</a> |
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=modifycat"> Modify</a> |
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=ordercat"> Arrange</a><br><br>
</td></tr>


?

01 Apr 2001, 22:35
@ marl : RIGHT I forgot about that!!!

FOR ALL OF YOU WHO INSTALLED THE SCRIPT ALLREADY, please update your templates by downloading the attached templates and add them manually!!!

How do you know you need to change it!? Lets say if you installed the script before 30min after midnight on monday April 2. CET!

01 Apr 2001, 22:40
I apologize for all the mistakes I made and promise to make an update script for those you already installed it.
Also will make an upgrade script for all the other think that will come up! Its my first hack so please forgive me!

01 Apr 2001, 23:09
Great Hack!
They should add this to the next beta!

01 Apr 2001, 23:14
is it in english man?

01 Apr 2001, 23:49
When I installed/upgraded the new templates the category: all sites just brings up top site only.

Also the url that people put in like www.smith.com won't work instead the http:// prefix has to be added. Just another step in the link addition to worry about.

I like the hack though....good job.

02 Apr 2001, 00:32
Originally posted by snyx
is it in english man?

yes it's in english.. ;)

02 Apr 2001, 00:41
This is really cool, The_Sisko! Congrats- what a great first hack. Thanks for sharing it with us! This is a really neat idea- I'm wondering if it's possible to do other kinds of databases like this besides just links, such as a recipe database. I've got a very active group of moms who like to cook, and they would go nuts over a database where they could add their recipes!
TigerLily:)

02 Apr 2001, 00:45
Originally posted by mkilty

Also the url that people put in like www.smith.com won't work instead the http:// prefix has to be added. Just another step in the link addition to worry about.


add this:

if (!eregi("http://",$url)) $url = "http://".$url;


under:

$time = time();

02 Apr 2001, 01:30
Originally posted by marl


add this:

if (!eregi("http://",$url)) $url = "http://".$url;


under:

$time = time();



Thanks that work. Now it is just the category pull down list. If I click on top sites none of my top sites come up. Also the "All sites" category brings up the top sites instead.

Is this happening to anyone else with the updated templates?

Thanks,

Michael

02 Apr 2001, 01:40
i didn't use the updated template: did the necessary changes manually.

i found only a <body> tag overlapped with htmldocumenttype wrong, tough.

can you posto your html output and template here?

02 Apr 2001, 01:44
Hey I got an error after the install. I tested the install to see what it looked like and I like it. but I am getting the following error.

Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/gmforums.com/forum1/links.php on line 31

any insight I would appreciate it.

Thanks.

BTW no hacks on the forum except this one.

John

02 Apr 2001, 01:45
Originally posted by marl
i didn't use the updated template: did the necessary changes manually.

i found only a <body> tag overlapped with htmldocumenttype wrong, tough.

can you posto your html output and template here?

02 Apr 2001, 01:53
the template looks fine, check links.php

also give asnap of the output sent to browser...

02 Apr 2001, 02:15
Thanks for the help. By the way if you do that voicechat hack I will definately use it. Will it take a while to do the hack?

Here is the output from the browser:

02 Apr 2001, 02:23
how about adding links hits-in counter?? just like for most topsites feature..

rank &nbsp; &nbsp; link title &nbsp; &nbsp; hits out (today) &nbsp; &nbsp; hits in (today)
----------------------------------------------------------------
1. &nbsp; &nbsp; ur sitename &nbsp; &nbsp; &nbsp; &nbsp; 101 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 57
----------------------------------------------------------------
2. &nbsp; &nbsp; sitename2 &nbsp; &nbsp; &nbsp; &nbsp; 99 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 34
----------------------------------------------------------------
.
.
.


something like this..

02 Apr 2001, 02:40
I guess mine was overlook. :(

I guess I will post it again.

Hey I got an error after the install. I tested the install to see what it looked like and I like it. but I am getting the following error.

Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/gmforums.com/forum1/links.php on line 31

any insight I would appreciate it.

Thanks.

BTW no hacks on the forum except this one.

02 Apr 2001, 03:24
Why were the templates added into the original templates instead of the custom template area. will they get removed on the next upgrade of vbulletin.

The install went great but when I click on a link it just redirects me back to my own site. Any Ideas?

02 Apr 2001, 07:48
mkilty: all seem fine.....at this point, check mysql table structure.

also try adding more links and removign old ones

02 Apr 2001, 07:53
@marl: Will add your changes tonight when I am at home and upload a new set of php files!

- Yes it is english, but need help with it!
- Yes it was the missing < body > TAG in the first place but links_forumlink and links_redirect_add where the other way round as well!
- topsiteproblem found, I changed some code before release, as well as the category ids for all sites and topsites, need to change this in top of link.php! Tonight!
-In Counter will come, but first I'll have to think about a good loggin of user, so there where no big manipulating in and out hits
- @tigerlily: just send me a PM with more Infos!

02 Apr 2001, 10:50
Hey there!

My webspace does not support file upload via users onto my space so is there any way I can remove the any trace of the banner upload stuff?

Fantastic hack btw!

02 Apr 2001, 12:07
Just delete it in the template!

02 Apr 2001, 12:20
Found everything and will put it together when I'm at home....before my boss is watching over my shoulder and see what I am doing right noe *G* :D

02 Apr 2001, 21:42
So look at the top, I've added a new zip file and some instruction to it!

More to come, hope it worked now for all

03 Apr 2001, 03:10
Downloaded the latest version and still getting the same error message anyone interested in giving me any insight?


Please I really would like to impliment this on the site but keep getting the error message.

John

03 Apr 2001, 03:21
Sorry no idea. I didnīt get that error.

@The_Sisko

This hack is really great. :D:D

thanks

03 Apr 2001, 08:24
Originally posted by GMTalk
Hey I got an error after the install. I tested the install to see what it looked like and I like it. but I am getting the following error.

Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/gmforums.com/forum1/links.php on line 31

any insight I would appreciate it.

Thanks.

BTW no hacks on the forum except this one.

John

Sorry for the late answer but here it comes:
Looks like there are some troubles with the new tables! Can you take a look at your database structure and can confirm if the two new tables were created? They called: vb_links and vb_links_category!

If not tell and contect me over PM ,ICQ , MNS!!!

03 Apr 2001, 08:51
Forgot to post a demo link :D:

http://www.studenten-city.de/stf/links.php4

03 Apr 2001, 11:52
Howbout you allow users the ability to edit their links, or the admin may also?

Just an idea. :)

03 Apr 2001, 14:17
I've made a quick install of this since it's exactly what I was looking for. And so far it looks great. (Not going for final install untill vB final is out...)

But I do have a question about the security...
Does the adminlinks.php file have to be out in the open? I mean, can anyone who stumbles on the url open it and start editing the entries (or delete them)?
Or asked differently: can adminlinks be moved to the admin directory :)

03 Apr 2001, 15:05
Originally posted by Sean
Howbout you allow users the ability to edit their links, or the admin may also?

Just an idea. :)
At the mom only the admin can edit the Links, but the script is written so you can add the links admin links in the mod CP as well, because it uses the mod global.php file.
But when I have integrated to log the users, there will be a possibility for the users to edit the links.
Originally posted by Pingu
I've made a quick install of this since it's exactly what I was looking for. And so far it looks great. (Not going for final install untill vB final is out...)

But I do have a question about the security...
Does the adminlinks.php file have to be out in the open? I mean, can anyone who stumbles on the url open it and start editing the entries (or delete them)?
Or asked differently: can adminlinks be moved to the admin directory :)
The file is secure as the other admin files as well, the mod global.php is included and only if you are an mod or admin you access the file. Just log out and test it on your own!

Pingu
03 Apr 2001, 23:06
Ok :)

Now this:
I saw something about a max file size, can that be set by admins?

And how many banners can one person upload? Will he overwrite the same banner over and over again, or will he be able to swamp the place with more and more uploads?

Yeah, I'm whining :D

the_sisko
04 Apr 2001, 08:10
Nearly got me :D

The max file size is hardcoded set to about 100 KB, because I think thats a good size. In the next version I could easy make thsi an variable or make it an option (btw: I am think about puting all of the other option like, email, max links per site .....to be change in CP)

Banners could be uploaded by user one time only, when thex submit a banner. You as admin can upload an dupload them again. So I think user can do x uploads but with what effect?
Anyway, will think about a bannerlist in CP to choose to delete them if thats an need option? Also we can make use of php to include banners an htaccess the directory they located in? but not sure if it works without any modules???

So if anyone can help me with the option to have a URL and save the image in that url I can strip out the banner upload and the script will download the selected banner it self and a user cannot upload anything to our place?!

Steggy
04 Apr 2001, 16:09
You know what would be great: a link to translate the link. You can make a link to Babelfish on Altavista.. That shouldn't be too hard to add..

RobAC
10 Apr 2001, 14:20
I was just wondering what the current status of this hack is before I decide to implement on my beta 5 Forums? Anyone?

urbanways
10 Apr 2001, 14:23
im running it on beta five and have had no problems with it

RobAC
10 Apr 2001, 19:59
Very cool hack. I like it. However, what's the "Test" link do that appears in the upper right hand corner of an added link/banner?

jojo85
10 Apr 2001, 20:01
Oh :)
Good job

the_sisko
10 Apr 2001, 21:57
Originally posted by RobAC
Very cool hack. I like it. However, what's the "Test" link do that appears in the upper right hand corner of an added link/banner?

The Test category!

RobAC
10 Apr 2001, 22:00
Sisko,

From what I can tell, there is no way to pull a link out of the "Test Category". I'm in the admin panel now and in the category dropdown menu, "TEST" is the only option regardless of what you check below for "Top Sites". Am I not looking at the right thing?

the_sisko
10 Apr 2001, 22:31
Don't realy know what you mean? What do you want to do?

RobAC
10 Apr 2001, 22:35
Never mind. I added an "ALL" category to the list of categories. When you add a link, before, you had no choice but to put it in the "Test Category" so that the "Test" link always appears at the upper right hand corner of the link box. Maybe it's me, but what is the purpose of that "Test" link on each of the links? If I press the link, it just refreshes the page.

gmtalk
11 Apr 2001, 00:02
Sisko: Did you ever get my email? I was curious if you had any insight on my issue?

GMTalk

Raptor
11 Apr 2001, 01:18
I recommend pasting the admin cp code into the MOD/LINKS.PHP too as this gives your moderators access to approve the links - so you don't have to give them access to your admin section

I have to do this as we have 30 mods and 20,000 users on our boards

Works fantastic - well done !

Steggy
11 Apr 2001, 15:05
I added a translation option, maybe someone likes this to add.

Edit the linksbits template like this:

Insert this line <a href="links.php?action=redirect&url=http://jump.altavista.com/trans.go?urltext=$link[url]&language=en" target="_blank">[Translate]</a>

Between <div align="right">$counter$forumlink</div>

So you'll get this :

<div align="right">$counter$forumlink<a href="links.php?action=redirect&url=http://jump.altavista.com/trans.go?urltext=$link[url]&language=en" target="_blank">[Translate]</a></div>

That should do it..

RobAC
11 Apr 2001, 15:11
What's the purpose of the "translation option"??

Steggy
11 Apr 2001, 15:37
On my site I get a lot of foreign visitors and I have a lot of Japanese links. Therefore a translation option is very handy.

the_sisko
11 Apr 2001, 17:58
The test category is there so there must be at least one category to begin working with the script. You can esay change the name of it to fit your needs!

Steggy
16 Apr 2001, 20:38
Hi,

I've got some ideas for you to add.

Within the CP:

A search option
Search for duplicate links
When modifying links it would be handy to have them listed alphabetical and in their corresponding categories

Pingu
16 Apr 2001, 22:45
What if I want to link to specific categories, how would I do that?

Let's say I have a computer forum and a gardening forum and in vB Links I have made the same categories.
From the computer forum I want to have a link directly to the computer category, and from the gardeniong forum I want to link directly to the gardening category.
What would be the correct syntax for the URL to go directly to those categories?

And while I'm at it, how would I set up that linking feature in vBulletin???

RobAC
18 Apr 2001, 00:19
I'm not sure if anyone else has had this problem, but as expected, the upgrade to RC1 basically removes parts of the Links hack. The links are gone and the addition of a link is impossible. Looks like this will be a rehack each time the software is upgraded, however, I can't verify if the links/banners still exist yet.

tubedogg
18 Apr 2001, 00:50
Um actually Rob assuming you have to make changes to any PHP files for this hack they will be overwritten every time. Surely you've been around here long enough you know that. ;) Just reedit the PHP files and you should be fine.

Assuming the links are stored in the database, yes they still exist. The upgrade doesn't delete anything from the database that vB didn't originally create itself.

RobAC
18 Apr 2001, 00:53
Yeah I know.....and I did something I know I shouldn't....but did it anyway...I did back up my files, so I need re-hacking will be a little harder than it should be. Lesson learned. :)

Reminds me of when my hard drive crashed a year ago and I hadn't backed anything up when I knew I should have. :D

gmtalk
18 Apr 2001, 01:09
Rob,

Just go and upload the file install_vblinks.php to the admin dir. Run that. Make the necessary change in the admin/index.php file to reflect the CP changes.

It will keep your links and banners. It will add the "StarTrek" Default banner link in there. You can delete or leave that in there, whichever you see fit.

It is real simple. Took a matter of 1 minute to do the whole thing. If you have any questions you can email me ot IM me. You have my email address


John

LunaticSS < GMForums.com>

RobAC
18 Apr 2001, 01:38
Thanks John. I figured that's all I needed to do. :)

RobAC
18 Apr 2001, 02:38
Actually, the code that is supposed to be replaced in the admin/index.php file can't be found in the new version. I'm not sure what to replace....

Pingu
18 Apr 2001, 07:27
At the bottom of index.php there's:
</td></tr>

</table>


You'll need to replace </td></tr>

the_sisko
18 Apr 2001, 09:42
The templates still a prob after upgrade to a new vb Version. I don't have that much time at the moment. BUt I will make an easier and better version 2.0 out of it. In the near future.
It was my first hack, so please don't kill me for it....:rolleyes:

TechTalk
22 Apr 2001, 01:15
Whats the chance of getting this added into vb 2.1? This is the best hack ive seen in a while!

eva2000
22 Apr 2001, 03:32
Originally posted by The_Sisko
The templates still a prob after upgrade to a new vb Version. I don't have that much time at the moment. BUt I will make an easier and better version 2.0 out of it. In the near future.
It was my first hack, so please don't kill me for it....:rolleyes: so how long before the better version is released :D

Pingu
26 May 2001, 19:50
Still waiting for this one!

Jyaki
30 May 2001, 15:52
Sisko, awsome hack! This is exactly what I'm looking for. Is the latest version still in the works?
Thanks

TigerLily
05 Jul 2001, 04:10
Bumping this up! Does the code work with version 2.0.1? I'd love to install it, but it looks like there were some bugs being worked on. Just wondering if a new version was still being worked on-looks like a great hack!
TigerLily:)

Pingu
05 Jul 2001, 10:59
I've got it up and running in vB 2.01, and it works...

However, I have noticed before that sometimes all the links output just turn to a white page. Running the install file again fixes that. But I'm not sure if that does anything with the data that's already stored. Guess I'lll know when it happens again.
Or maybe then I'll know what goes wrong and how to fix it. Will see...

Too bad it's gone quite around this hack :(
It's one of the best add ons, umm, ever :D

Ed FvC
06 Jul 2001, 08:03
This is a great idea, but needs a bit more fine-tuning...not to mention a full translation. Makes me wish I knew German. :D

Oh, another recommendation... Instead of this:<tr><td><hr></td></tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>Links</b>
</font></td></tr></table>
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=add"> Add</a> |
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=modify"> Modify</a> |
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=offline"> Approve </a><br>
<font color="#BCB6CD"><b>Category</b></font><br>
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=addcat"> Add</a> |
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=modifycat"> Modify</a> |
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=ordercat"> Arrange</a><br><br>
</td></tr>

Wouldn't this be even cleaner?:<tr><td><hr></td></tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Links"); ?>
</table>
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add</a> |
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify</a> |
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=offline"> Approve </a><br>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Link Categories"); ?>
</table>
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=addcat"> Add</a> |
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=modifycat"> Modify</a> |
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=ordercat"> Arrange</a><br>
</td></tr> I know it's not a big deal, but whatever. :)

willi_007
09 Jul 2001, 20:51
This is a very nice hack !! Gratulation !!

But is time to tell you about my problems, i have install your hack and all parts of the installation looks like OK, but when i follow the Link to the Link-Page i get these Errors:

Warning: Undefined index: HTTP_POST_VARS in c:\apache\htdocs\vbulletin\global.php on line 58

Warning: Undefined index: action in c:\apache\htdocs\vbulletin\global.php on line 58

Warning: Undefined index: action in c:\apache\htdocs\vbulletin\global.php on line 61

the rest of the Site looks OK !!

Have you a Solution !!! Please help me quickly

THX

The Realist
29 Jul 2001, 12:22
Installed VB links all worked fine, but know if I click on a link within vb links it does not take me to the site in question but in fact back to the main page of vb links.

Whats going on and can anyone help?

veedee
01 Aug 2001, 09:53
Installed it and it works really well

http://www.visordown.com/forums/links


2 things I would like to know

can we have a drop down box that can sort the links out ALPHABETICALLY ie A--------->Z

can we have it so then email adress submitted, recieves an automatic email something like:

your website $linkedwebsite has been added to $mysite please can you link back etc



Any feedback would be great :)

eva2000
01 Aug 2001, 10:39
okay it seems the upgrade to vB 2.0.2 and 2.0.3 wiped out some of this hacks templates which were added :(

I now only see 3 custom templates for this hack remaining

links
linksbits
links_add
links_counter

the following templates have been wiped by the upgrade and can not be found hence the redirect to the front page when i click one of the banner links

linkspages
links_category
links_emailsub_newsite
links_email_newsite
links_redirect_add
links_forumlink
links_redirect_url
links_upload
links_upload_done

RobAC
01 Aug 2001, 12:47
eva2000,

Each time you upgrade your forum software, you need to re-install the links installation script and run the script all over again. I've had to do this each time I upgraded my forums and just did it last night. :) Good luck.

EXCHANGE
01 Aug 2001, 12:58
canīt agree with that. Iīm running this hack since beta 5 now without any reinstall

Delhaze
01 Aug 2001, 19:02
I changed the templates and made them "Custom Templates".
Now when I upgrade VB there is no need to redo everything, apart from the admin part.

I've also made a few other changes that make it more in keeping with the feel of VB itself.

The category select auto jumps, and remembers where you have jumped to. (code taked from VB itself)

Also made the buttons the default "Go" ones from VB.

Added a "New Link" button

Changed the tables to look more VB like.

You can have a look at http://www.ckcsforums.com/links.php

If any of you want the changes needed for the Auto Jump/Remember here it is:

about line 81 find:


//################### Kategorien < ###################
$links_categorys = $DB_site->query("SELECT vb_links_category.* FROM vb_links_category ORDER by sortorder");

while ($link_category = $DB_site->fetch_array($links_categorys))
{


eval("\$links_category .= \"".gettemplate("links_category")."\";");
}


replace with:


//################### Kategorien < ###################
$links_categorys = $DB_site->query("SELECT vb_links_category.* FROM vb_links_category ORDER by sortorder");

while ($link_category = $DB_site->fetch_array($links_categorys))
{
if ($link_category[id]==$category) {
$optionselected='selected';
} else {
$optionselected='';
}
eval("\$links_category .= \"".gettemplate("links_category")."\";");
}


change the "links_category" template to:


<option value="$link_category[id]" $optionselected>$link_category[name]</option>


change the following in the "links template"


<select name="category">


to:


<select name="category" onchange="window.location=('links.php?funktion=bereich&category='+this.options[this.selectedIndex].value)">


enjoy! :D

SteveK
01 Aug 2001, 19:24
Nice changes Delhaze.

Has anyone thought about adding the ability to run the categories through the forum permissions settings so certain categories could be private?

veedee
01 Aug 2001, 22:56
I still would love to see:


auto email to webmaster of new site
newest link to be featured at the top
maybe a CP add on where admin can add suitable images for link back and it creates auto URL and alt text


need to get good at PHP !

Steggy
12 Aug 2001, 12:08
Isn't there someone who'd like to take over the project from Sisko. Because it's clear that he hasn't had the time to work on a new version. It's clear that it still needs a lot of work. For example the admin function. It's very hard to find links because there is no sort order and I'd like a function to see if there are duplicate links.

This is one of the best hacks for vBulletin..!

the_sisko
13 Aug 2001, 14:52
I must a apology myself, but I realy don't have the time.
If there is someone who likes to go on with the hack, can do so.
And I will do my best to get in contact with this person, if there is any question about my code.

DevilsMania.com
13 Aug 2001, 16:17
the first ZIP file (post 1) is NOT COMPLETE, there are missing texts in tsome of the templates, so when you install it you have some problems not seeying something

could you please post all the templates, with the right texts to put inside ?

thanks
(all the tempates)

Pingu
19 Aug 2001, 23:55
Is there a way to change/move the templates I already have to custom templates?

SirSteve
22 Aug 2001, 20:46
Running 2.0.3 and here are a few bugs (ADMIN FUNCTIONS):

When editing a link, the: "To upload a banner click here" or "Banner 1" link does not provide the pop-up to upload.
Suggestions:

The URL of the site awaiting approval needs to be hot linked to the corresponding site.

Banner needs displayed if it was uploaded.

A file size restriction needs added.

Still unsure why that "Forums Link" field is in there...

MApI
24 Aug 2001, 22:57
SirSteve , did u installed the hack on the 2.0.3 ? 'couse when i call the first file (install_vblinks.php can't go over the first one msg & then re-ask my login ...
Someone with this prob ?
Cya

SirSteve
25 Aug 2001, 02:01
Originally posted by MApI
SirSteve , did u installed the hack on the 2.0.3 ? 'couse when i call the first file (install_vblinks.php can't go over the first one msg & then re-ask my login ...
Someone with this prob ?
Cya

Yes I did. Not sure what is going on with yours though...

MApI
25 Aug 2001, 11:42
Yes I did Upgrade or first inst. ?

SirSteve
27 Aug 2001, 13:53
First install.

A few suggestions as well:

The links on the main page, could this be set to look sorta like yahoo? ie.

Toys
* Star Wars (25)
* GI Joe (4)

Trading Cards
* Poke Mon (2)
* Star Wars (5)

get it? The current way has ALL the links on the main page with banners. Not sure if it cuts off and goes to another page and even so, it would look even better going with my suggestion.

MApI
27 Aug 2001, 23:23
My prob. is different; I can't continue with install hack 'couse install_vblinks.php loops around my username and pwd. In other words, in can read only this page:
vB Links (version 1.0)

This script will help you to install the vB Links hack.
It will tell you what changes you need to make to your vBulletin and insert the necessary templates
and create the necessary new tables for the vB Links hack to work.



Do you want to continue? and the Install button. When I click Install , my username & pwd are required. When I re-input what asked, I've again first one page as quoted above.

One more thing; just finished installing stars hack with the same method (install_****.php), so cannot be cookies.
Help pleeease. :( :( :(
Sorry for bothering u but this is a very important hack for me.

Thx again.

Kengan
30 Aug 2001, 01:15
Any demo please ?

MApI
30 Aug 2001, 11:28
Any demo please ? Here (http://www.ckcsforums.com/links.php) and hope early in mine if have help. :p :p :p

byezzz

Kengan
09 Sep 2001, 13:25
After Installed ! I can not see anything on the links.php pages.
blank.

I can not see any files in CP too....... what is the problem ?

SirSteve
30 Sep 2001, 16:52
Originally posted by Delhaze
I changed the templates and made them "Custom Templates".
Now when I upgrade VB there is no need to redo everything, apart from the admin part.

I've also made a few other changes that make it more in keeping with the feel of VB itself.

The category select auto jumps, and remembers where you have jumped to. (code taked from VB itself)

Also made the buttons the default "Go" ones from VB.

Added a "New Link" button

Changed the tables to look more VB like.

You can have a look at http://www.ckcsforums.com/links.php

If any of you want the changes needed for the Auto Jump/Remember here it is:

about line 81 find:


//################### Kategorien < ###################
$links_categorys = $DB_site->query("SELECT vb_links_category.* FROM vb_links_category ORDER by sortorder");

while ($link_category = $DB_site->fetch_array($links_categorys))
{


eval("\$links_category .= \"".gettemplate("links_category")."\";");
}


replace with:


//################### Kategorien < ###################
$links_categorys = $DB_site->query("SELECT vb_links_category.* FROM vb_links_category ORDER by sortorder");

while ($link_category = $DB_site->fetch_array($links_categorys))
{
if ($link_category[id]==$category) {
$optionselected='selected';
} else {
$optionselected='';
}
eval("\$links_category .= \"".gettemplate("links_category")."\";");
}


change the "links_category" template to:


<option value="$link_category[id]" $optionselected>$link_category[name]</option>


change the following in the "links template"


<select name="category">


to:


<select name="category" onchange="window.location=('links.php?funktion=bereich&category='+this.options[this.selectedIndex].value)">


enjoy! :D

I really like the changes. Can you send the code so I can make mine as nice as yours?

:)

SirSteve
30 Sep 2001, 16:53
A small bug... when you go to the Who's Online? page, it shows "Unknown Location" when visitors are viewing the Links pages. Can someone fix this?

PogeR
30 Sep 2001, 18:09
Originally posted by DevilsMania.com
the first ZIP file (post 1) is NOT COMPLETE, there are missing texts in tsome of the templates, so when you install it you have some problems not seeying something

could you please post all the templates, with the right texts to put inside ?

thanks
(all the tempates)

thats my prob too!!!!....i missing some templates!!!...i cant see anything about categorys, but i made some!!:confused:

YourHostSucks
30 Sep 2001, 20:23
I installed it just fine, but ti does not seem to use my forums
colors, yet it uses its own..
anyone know what files to edit to get it to look like the forums
defaults?

Seems to be working.. will test more and get back with you :-)
I like this thou..

YourHostSucks
30 Sep 2001, 21:00
Well I already started by fixing the admin CP look of the links,

I am sure eveyone knows how to do this, but I will post what i did just incase...


<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("vB Links"); ?>
</table>
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a>|
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>|
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=offline"> Approve </a>
</td></tr>

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("vB Links Category's"); ?>
</table>
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=addcat"> Add </a>|
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=modifycat"> Modify </a>|
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=ordercat"> Arrange </a>
</td></tr>

<tr><td><hr></td></tr>


I added this above


<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Announcements"); ?>
</table>
<a href="announcement.php?s=<?php echo $session[sessionhash]; ?>&action=add" class="newa"> Add </a> |
<a href="announcement.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>

afterlab
01 Oct 2001, 01:21
Originally posted by SirSteve
A small bug... when you go to the Who's Online? page, it shows "Unknown Location" when visitors are viewing the Links pages. Can someone fix this?

I need help with this too.. Can anyone do this?

Delhaze
01 Oct 2001, 02:13
Originally posted by SirSteve
A small bug... when you go to the Who's Online? page, it shows "Unknown Location" when visitors are viewing the Links pages. Can someone fix this?

Look in online.php:

Around the 200 lines mark your see lots of "case" statements

You need to add something like this:

case 'links':
$userinfo[where] = "Viewing the <a href='links.php?s=$session[sessionhash]'>Links</a>";
break;

Also around the 500 lines mark you see more "case" statements

You need to add something like this:

case 'links.php':
$userinfo[activity] = 'links';
break;

SirSteve
01 Oct 2001, 02:34
Originally posted by Delhaze


Look in online.php:

Around the 200 lines mark your see lots of "case" statements

You need to add something like this:

case 'links':
$userinfo[where] = "Viewing the <a href='links.php?s=$session[sessionhash]'>Links</a>";
break;

Also around the 500 lines mark you see more "case" statements

You need to add something like this:

case 'links.php':
$userinfo[activity] = 'links';
break;

Worked great! Thanks!

afterlab
01 Oct 2001, 02:37
Yup worked here too! Thanks for helping me with this.. I now figured how to work this with my other hacks. Thanks again! :)

PogeR
01 Oct 2001, 16:32
WHAT ABOUT THE TEMPLATES????? IT STILL DOESN'T WORK

YourHostSucks
01 Oct 2001, 17:21
Here are the templates...

RyanGatewood
23 Oct 2001, 02:54
Whats the latest version with all the fixes and is it avail. in one zip file??

Pk
23 Oct 2001, 11:57
Originally posted by marl


add this:

if (!eregi("http://",$url)) $url = "http://".$url;


under:

$time = time();




Anyone got a pic for this? =)

Sadie Frost
22 Dec 2001, 21:01
Could someone tell me which file I need to edit with the code that YourHostSucks suggested to change the admin cp look?

Thanks!

And Ryan, I used the zip in the first post and it worked fine for me (I'm running 2.2.1).

:)

FWC
24 Dec 2001, 23:01
I love this hack. I have one problem. The redirection breaks if there is a & in the URL. Does anyone know how to fix that?

Lionel
26 Dec 2001, 04:47
Display a list of the categories on two or three columns instead of having a drop down box?

Lionel
26 Dec 2001, 13:02
in admin cp. I think it is because I am missing this code in header
<script language="javascript">function upload(upload) { var MainWindow = window.open (upload,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=320,height=150,resizeable= no,status=no");}</script>

where can I place it?

mvigod
02 Jan 2002, 16:39
Changing admin cp for 2.2.1

The admin control panel should be changed as follows:

Go into admin/index.php

Find:

makenavselect("Statistics & Logs","<hr>",$df);

and below it place this:

//**** Links.php Nav Section
makenavoption("Add","../links/adminlinks.php?&action=addcat","<br>");
makenavoption("Modify","../links/adminlinks.php?&action=modifycat","<br>");
makenavoption("Arrange","../links/adminlinks.php?&action=ordercat");
makenavselect("vB Links Category's");
makenavoption("Add","../links/adminlinks.php?action=add","<br>");
makenavoption("Modify","../links/adminlinks.php?action=modify","<br>");
makenavoption("Approve","../links/adminlinks.php?action=offline");
makenavselect("Vb Links","<hr>");



That's it.

Lionel
02 Jan 2002, 17:14
it is a javascript error when you try to click on banner to upload one. line 1 character 1 ../linksupload.php

Dalius
02 Jan 2002, 17:44
whats the point of the hack?

Lionel
02 Jan 2002, 17:49
In adminlinks.php, I had to ad this under cpheader();

echo "<script language=\"javascript\">function upload(upload) { var MainWindow = window.open (upload,\"_blank\",\"toolbar=no,location=no,menubar=no,scrollbars=no,width=320,height=150,resizeable= no,status=no\");}</script>";

Okiewan
02 Jan 2002, 19:14
Humm... get
"Fatal error: Failed opening required './global.php' (include_path='') in /home2/public_html/forums/links/links.php on line 3"

Path is correct too... any ideas?

FWC
02 Jan 2002, 20:54
Originally posted by Okiewan
Humm... get
"Fatal error: Failed opening required './global.php' (include_path='') in /home2/public_html/forums/links/links.php on line 3"

Path is correct too... any ideas? links.php should be in your forums directory, not the links directory.

Okiewan
02 Jan 2002, 21:10
DOH!!
Thanks.

FWC
02 Jan 2002, 21:15
You're welcome. :)

xug
03 Jan 2002, 04:12
When I entered the right information into the forum link erea the script cuts the 'ht' off 'http://..."

So the link looks like this :

http://www.xboxusersgroup.com/forums/showthread.php?threadid=tp://www.xboxclubhouse.com

What could be the problem here !!

Moonwolf
06 Jan 2002, 03:31
I'm trying to download the .zip file but the link in post #1 is showing 404 ... anyone know where this has gone?

Kathi

Aaow AnD wHiTe
09 Jan 2002, 14:07
Just wanted to say that we trully love this hack!!

Would it be posible for users to rate the link? That would be a great adittion!

Thanx for this hack!

SaintDog
09 Jan 2002, 17:26
The link is dead, I could really use this hack, could someone please tell me where I can download it (maybe I overlooked it in a thread).

Anyhow, could someone please direct me to a place to where I can get it?

SaintDog
10 Jan 2002, 01:06
Someone has to have it (I would think :)).

If you have it, please post it up for others to download (as well as me).

SaintDog
11 Jan 2002, 05:48
Ok, I will take it that this hack just is no more?

Sadie Frost
11 Jan 2002, 12:31
I checked for the files on my puter, but I don't have the files saved, sorry :(

Aaow AnD wHiTe
11 Jan 2002, 12:58
Guess that's it :)

Enjoy it, it's trully a wonderful hack ^^

SaintDog
11 Jan 2002, 20:18
Thanks Aaow AnD wHiTe, I appreciate it.

Going to check it out now. :)

DelusionalMind
12 Jan 2002, 07:34
/me throws away my project

was working on it but bleh, i suck at hacking

hehe. awesome. first on on my to-do list when i wake up :)

PhotoGenie
17 Jan 2002, 23:33
The Link to the download on the first post is broken.. I found a few files like the install file and the templates but they dont have all the files. Can someone put it up again.. Thanks

PhotoGenie
18 Jan 2002, 02:48
Now I feel stupid.. it was right under my nose..

TechTalk
20 Jan 2002, 21:59
Anyone got this working on the latest version of VB?

FWC
20 Jan 2002, 23:41
Originally posted by TechTalk
Anyone got this working on the latest version of VB? Sure, it works fine. Use the following in admin/index.php//vbLinks
makenavoption("Add","../links/adminlinks.php?action=add","|");
makenavoption("Modify","../links/adminlinks.php?action=modify","|");
makenavoption("Approve","../links/adminlinks.php?action=offline");
makenavselect("Links");
makenavoption("Add","../links/adminlinks.php?action=addcat","|");
makenavoption("Modify","../links/adminlinks.php?action=modifycat","|");
makenavoption("Arrange","../links/adminlinks.php?action=ordercat");
makenavselect("Category","<hr>");
// *************************************************

TechTalk
21 Jan 2002, 01:13
Hrmmmm....

The link in this post is broken. Is there a new link to download the hack?

Thanks

FWC
21 Jan 2002, 03:11
Originally posted by TechTalk
Hrmmmm....

The link in this post is broken. Is there a new link to download the hack?

Thanks Look in post #126. :)

Ninth Dimension
24 Jan 2002, 09:43
Hi guys, i'm really sorry to sound dumb here, but does anyone have a demo of this hack up and running?

I'm interested in installing it, but I don't want to until i've seen it.

Thanx.

mvigod
24 Jan 2002, 14:06
Demo here:

http://www.rcuniverse.com/links.php


Also, I probably still have the original zip file for this hack if it's missing...

marc

Ninth Dimension
24 Jan 2002, 14:16
Thank you for the link to the demo, but i've decided that i'm going to build my own non-vB links engine :)

slideboxer
11 Feb 2002, 19:34
I just upgraded to v222. All went well (thankfully!) but I'm now missing my category drop down menu... anyone else have this problem?

FWC
11 Feb 2002, 20:16
Originally posted by slideboxer
I just upgraded to v222. All went well (thankfully!) but I'm now missing my category drop down menu... anyone else have this problem? No, but I modified all the templates in hacks that inserted themselves into the default set. They all moved to custom during the upgrade. If there is an upgrade function in the install script for vBLinks, run that. It will put back whatever you are missing in the templates. Otherwise, figure out from the install script what templates you are missing and manually add them as custom templates.

the_sisko
11 Feb 2002, 21:42
Here is the old zip file.

slideboxer
12 Feb 2002, 04:49
Right, had to run the install again. The upgrade removed some of the templates and not others, weird. Still had a problem with the categories not working, had to change the category template from

<option value=\"\$link_category[id]\">\$link_category[name]</option>

to

<option value="$link_category[id]">$link_category[name]</option>


No more problems. :D

FWC
12 Feb 2002, 04:54
Originally posted by slideboxer
Right, had to run the install again. The upgrade removed some of the templates and not others, weird. Still had a problem with the categories not working, had to change the category template fromAny template you modified got moved into custom templates during the upgrade. Any unmodified templates got deleted because the default template set gets deleted and replaced during the upgrade.

Shadowwalker
13 Feb 2002, 07:38
*Bows to creator.*

I'm not worthy.

Steph2k
21 Feb 2002, 16:34
I downloaded this hack and the files are from April. Just checking to see if it works with 2.2.2 and if not, what changes need to be made for it to work.

Thanks.

Saiyan XL
26 Feb 2002, 04:41
can you guys like correct all the mistakes and post the newest zip file or something? because I am a total newbie

mewgood
05 Mar 2002, 06:57
does anyone have a new version
that fixed every thing?

slideboxer
06 Mar 2002, 05:21
I have it 0n 2.2.2 and no problems.

sccr410
06 Mar 2002, 20:35
Has anyone figured out how to list all the links in categories, in a Yahoo! like fashion? For me, there is no point in this hack unless I can do this :(

Floris
22 Mar 2002, 11:24
Download link = 404 :/

The Keeper
23 Mar 2002, 05:47
broken link!
I would love to integrate this hack into my site.

FWC
23 Mar 2002, 06:07
Originally posted by xiphoid
Download link = 404 :/ Look in Post #126.

Rheinblitz
06 Apr 2002, 00:02
does anybody already added tableborders? :rolleyes:

KarateKid
06 Apr 2002, 13:42
@FWC: It's not in this post.

I need this hack too! :cross-eyed:

FWC
06 Apr 2002, 16:38
Originally posted by KarateKid
@FWC: It's not in this post.

I need this hack too! :cross-eyed: I just looked and it's still there. Post #126 in this thread.

KarateKid
06 Apr 2002, 16:57
ups, you're right :D

Floris
14 Apr 2002, 07:27
This thread is weird :D

Anyway,
In Post #1 I downloaded the .zip and applied the hack.

The instructions for the admin/index.php are not so good for vB 2.2.5 and here is how I changed it.

in vBulletin 2.2.5 admin/index.php find:
makenavselect("Templates","<hr>");
// *************************************************
?>
</table>
and replace with:
makenavselect("Templates","<hr>");
// *************************************************
// ***
makenavoption("Add","../links/adminlinks.php?action=add","|");
makenavoption("Modify","../links/adminlinks.php?action=modify","|");
makenavoption("Approve","../links/adminlinks.php?action=offline");
makenavselect("Links");
// ***
makenavoption("Add","../links/adminlinks.php?action=addcat","|");
makenavoption("Modify","../links/adminlinks.php?action=modifycat","|");
makenavoption("Arrange","../links/adminlinks.php?action=ordercat");
makenavselect("Category");
// ***
?>
</table>


One of the things I wanted to know when someone submits a new link. Who submitted this? I added the below code to the links_email_newsite template:
Submitted by: $bbuserinfo[username](you can place that anywhere between the two long lines in the template)


Hope this helps anybody.

Floris
14 Apr 2002, 08:32
The counter shows $counter$bblink or something , and it doesn't show up a number! I think you should use "$link[counter]" on this spot instead.

indiamike
20 Apr 2002, 01:46
Okay after fishing through all the threads and changing what needed to be changed I have this running.

I have one problem and was wondering if anyone can help with this, when I try to use the banner upload on the users side (I can upload in the admin screen) I get
Parse error: parse error in /home/indiamik/public_html/india/linksupload.php on line 8

These are the lines 5,6,7, and 8 from my linksupload.php where I believe the problem lies.

// ###################### Start variables #######################
// Path to link directory with a / at the end
$path = "/home/indiamik/public_html/india/links/"
http://www.indiamike.com/india/links/";


Can anybody see what I did wrong? Help.

http://www.indiamike.com/india/links.php

FWC
20 Apr 2002, 04:47
You're missing a ; at the end of the $path line. I don't have line 8 there at all. Add the missing ; and try commenting out line 8.

indiamike
20 Apr 2002, 09:51
Originally posted by FWC
You're missing a ; at the end of the $path line. I don't have line 8 there at all. Add the missing ; and try commenting out line 8.

That was it!

Thanks FWC for taking the time to answer, works great now.

:D

Mike

dimitr|
09 May 2002, 23:51
I have a question about this hack. I have no need for top sites or all sites to be in category menu so I deleted them from the table. Now I'm wondering how I would have the links.php show one of my categories by default instead of listing all links by order of hits. Is there an easy way of doing this?

Webmasta XT
11 May 2002, 23:11
ok, I installed this hack, but in the Admin CP, when i click anyone one of these,


// ***
makenavoption("Add","../links/adminlinks.php?action=add","|");
makenavoption("Modify","../links/adminlinks.php?action=modify","|");
makenavoption("Approve","../links/adminlinks.php?action=offline");
makenavselect("Links");
// ***
makenavoption("Add","../links/adminlinks.php?action=addcat","|");
makenavoption("Modify","../links/adminlinks.php?action=modifycat","|");
makenavoption("Arrange","../links/adminlinks.php?action=ordercat");
makenavselect("Category");
// ***

anyone of those links in admin cp, they don't work, it goes to a blank page, can anyone help me??

Webmasta XT
12 May 2002, 12:45
HELP PLZ!!!!!!!!!!

*EDIT*if this hack doesn't work for me, than how do I remove the templates? they are not custom so the only link i see is the change orignal beside them, can someone plz guide me on how to remove them?*EDIT*

Floris
29 May 2002, 07:53
I guess you just didn't install it properly.
You sure you uploaded the files to the right directory, made the right templates, and run the install script from the admin dir ? (and followed the onscreen instructions?)

www.tourc.ca
29 May 2002, 21:14
ok... first of all, nice hack! I changed the links.php so that all the banners would be a certain size, and changed all the templates to be more matching to my site!... you can demo below.. you don't have to be a member to view the links

http://www.tourc.com/forums/links.php?funktion=bereich&category=1

I have only one problem.
this was a problem before I made any edits to the hack

the field counter in the table vb_links doesn't update or count numbers for some of the links! it's strange because some of the links counters work and some don't

any ideas! otherwise excellent hack!


NERVER MIND! I just figured it out.. it's when the url doesn't include the http:// and I can see that there are posts regarding the http:// url probelm which I'm about to read! anyways

awesome hack...

Birdie501
31 May 2002, 17:05
Originally posted by www.tourc.ca
ok... first of all, nice hack! I changed the links.php so that all the banners would be a certain size, and changed all the templates to be more matching to my site

Hi,

can you post your changes? Would be really nice. or pm me.

;)

www.tourc.ca
31 May 2002, 17:58
Originally posted by Birdie501


Hi,

can you post your changes? Would be really nice. or pm me.

;)

just look for the following: (do a search for $banner) in the links.php file and in the img src tag add

width='468' height='60'


like so:


if ($link[banner] == "") {
$banner = "";
} else {
$banner = "<div align='left'><a href='links.php?action=redirect&url=$link[url]' target='_blank'><img src='links/$link[banner]' border='0' alt='$link[banner_text]' width='468' height='60'></a></div>";
}
if ($link[banner_url] == "") {
$banner_url = "";
} else {
$banner_url = "<div align='left'><a href='links.php?action=redirect&url=$link[url]' target='_blank'><img src='$link[banner_url]' border='0' alt='$link[banner_text]' width='468' height='60'></a></div>";




this stretches or shrinks the banner to the size 468x60 or anything you want by changing these numbers but doesn't look good if the banner isn't designed for that size....

I'm going to rewrite it so that if it is larger than x by x it will shrink it so that users cannot abuse the size, but if it is smaller than x by x to just leave it alone.... but this will do for now!

I had to implement it because the suzuki swift banner that is on the page now (under other auto interest section in drop down box on links page) was absolutley huge before! it took over the whole page!

Birdie501
01 Jun 2002, 10:32
Thanks for now, i am lookng forward to your new version :-))
Maybe it is possibe to use the code of the avatarcreator hack to resize the banners to a specific size?

pran
12 Jun 2002, 09:03
Any plans to make it look more consistent with the rest of the pages?

Smoothie
04 Jul 2002, 19:50
Question, here in the install file it says:Open adminlinks.php and change the $limit to your prefer limit of pages to show on main link page. In the adminlinks.php file it has:$limit = 25; // number of records to displayIs that links per page? If so, what do i cahnge to show only 5 links per page?

Webmasta XT
20 Aug 2002, 13:58
when is the new version coming out? or is there any other hack like this one?!?!

FFMania
26 Aug 2002, 10:05
Is it possible for guests to submit links as well???

bouncer18
08 Oct 2002, 07:42
great hack

no probs on 2.2.8

yzztik
28 May 2003, 13:12
This hack still being supported?

I was wondering, in the vb_links_category table, there is a sortorder field. However, I cannot seem to call that in the ORDER by functions because it does not exist in the vb_links table. I can only order by category_id but that is not the same as sortorder, can anyone help?

vdich
15 Dec 2003, 20:09
Thanks for now, i am lookng forward to your new version :-))
Maybe it is possibe to use the code of the avatarcreator hack to resize the banners to a specific size?

New Version ?

NSeXcellent
26 Dec 2003, 04:11
Im just kinda curious what I'd have to do to have the top 10 links listed on Forum Home, or in the Header, for that matter