PDA

View Full Version : [Release vB Links 1.0 | vB2bx


the_sisko
03-31-2001, 10:00 PM
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 (https://vborg.vbsupport.ru/attachment.php?s=&postid=219791)

04-01-2001, 07:54 PM
he dude thx awesome hack really usefull ;-)

04-01-2001, 08:16 PM
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!

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

04-01-2001, 08:42 PM
works great!
easy installation!!
Great job! thanks very much..

04-01-2001, 09:15 PM
where can we see a online demo ?

04-01-2001, 09:22 PM
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>


?

04-01-2001, 09:35 PM
@ 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!

04-01-2001, 09:40 PM
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!

04-01-2001, 10:09 PM
Great Hack!
They should add this to the next beta!

04-01-2001, 10:14 PM
is it in english man?

04-01-2001, 10:49 PM
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.

04-01-2001, 11:32 PM
Originally posted by snyx
is it in english man?

yes it's in english.. ;)

04-01-2001, 11:41 PM
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:)

04-01-2001, 11:45 PM
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();

04-02-2001, 12:30 AM
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

04-02-2001, 12:40 AM
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?

04-02-2001, 12:44 AM
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

04-02-2001, 12:45 AM
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?

04-02-2001, 12:53 AM
the template looks fine, check links.php

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

04-02-2001, 01:15 AM
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:

04-02-2001, 01:23 AM
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..

04-02-2001, 01:40 AM
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.

04-02-2001, 02:24 AM
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?

04-02-2001, 06:48 AM
mkilty: all seem fine.....at this point, check mysql table structure.

also try adding more links and removign old ones

04-02-2001, 06:53 AM
@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!

04-02-2001, 09:50 AM
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!

04-02-2001, 11:07 AM
Just delete it in the template!

04-02-2001, 11:20 AM
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

04-02-2001, 08:42 PM
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

04-03-2001, 02:10 AM
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

04-03-2001, 02:21 AM
Sorry no idea. I didn?t get that error.

@The_Sisko

This hack is really great. :D:D

thanks

04-03-2001, 07:24 AM
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!!!

04-03-2001, 07:51 AM
Forgot to post a demo link :D:

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

04-03-2001, 10:52 AM
Howbout you allow users the ability to edit their links, or the admin may also?

Just an idea. :)

04-03-2001, 01:17 PM
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 :)

04-03-2001, 02:05 PM
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
04-03-2001, 10:06 PM
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-04-2001, 07:10 AM
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-04-2001, 03:09 PM
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
04-10-2001, 01:20 PM
I was just wondering what the current status of this hack is before I decide to implement on my beta 5 Forums? Anyone?

urbanways
04-10-2001, 01:23 PM
im running it on beta five and have had no problems with it

RobAC
04-10-2001, 06:59 PM
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
04-10-2001, 07:01 PM
Oh :)
Good job

the_sisko
04-10-2001, 08:57 PM
[QUOTE]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?

RobAC
04-10-2001, 09:00 PM
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
04-10-2001, 09:31 PM
Don't realy know what you mean? What do you want to do?

RobAC
04-10-2001, 09:35 PM
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
04-10-2001, 11:02 PM
Sisko: Did you ever get my email? I was curious if you had any insight on my issue?

GMTalk

Raptor
04-11-2001, 12:18 AM
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
04-11-2001, 02:05 PM
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
04-11-2001, 02:11 PM
What's the purpose of the "translation option"??

Steggy
04-11-2001, 02:37 PM
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
04-11-2001, 04:58 PM
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
04-16-2001, 07:38 PM
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
04-16-2001, 09:45 PM
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
04-17-2001, 11:19 PM
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
04-17-2001, 11:50 PM
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
04-17-2001, 11:53 PM
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
04-18-2001, 12:09 AM
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
04-18-2001, 12:38 AM
Thanks John. I figured that's all I needed to do. :)

RobAC
04-18-2001, 01:38 AM
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
04-18-2001, 06:27 AM
At the bottom of index.php there's:
</td></tr>

</table>

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

the_sisko
04-18-2001, 08:42 AM
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
04-22-2001, 12:15 AM
Whats the chance of getting this added into vb 2.1? This is the best hack ive seen in a while!

eva2000
04-22-2001, 02:32 AM
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
05-26-2001, 06:50 PM
Still waiting for this one!

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

TigerLily
07-05-2001, 03:10 AM
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
07-05-2001, 09:59 AM
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
07-06-2001, 07:03 AM
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
07-09-2001, 07:51 PM
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
07-29-2001, 11:22 AM
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
08-01-2001, 08:53 AM
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
08-01-2001, 09:39 AM
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
08-01-2001, 11:47 AM
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
08-01-2001, 11:58 AM
can´t agree with that. I´m running this hack since beta 5 now without any reinstall

Delhaze
08-01-2001, 06:02 PM
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
08-01-2001, 06:24 PM
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
08-01-2001, 09:56 PM
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
08-12-2001, 11:08 AM
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
08-13-2001, 01:52 PM
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
08-13-2001, 03:17 PM
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
08-19-2001, 10:55 PM
Is there a way to change/move the templates I already have to custom templates?

SirSteve
08-22-2001, 07:46 PM
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
08-24-2001, 09:57 PM
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
08-25-2001, 01:01 AM
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
08-25-2001, 10:42 AM
Yes I did Upgrade or first inst. ?

SirSteve
08-27-2001, 12:53 PM
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
08-27-2001, 10:23 PM
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
08-30-2001, 12:15 AM
Any demo please ?

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

byezzz

Kengan
09-09-2001, 12:25 PM
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
09-30-2001, 03:52 PM
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
09-30-2001, 03:53 PM
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
09-30-2001, 05:09 PM
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
09-30-2001, 07:23 PM
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
09-30-2001, 08:00 PM
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
10-01-2001, 12:21 AM
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
10-01-2001, 01:13 AM
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
10-01-2001, 01:34 AM
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
10-01-2001, 01:37 AM
Yup worked here too! Thanks for helping me with this.. I now figured how to work this with my other hacks. Thanks again! :)

PogeR
10-01-2001, 03:32 PM
WHAT ABOUT THE TEMPLATES????? IT STILL DOESN'T WORK

YourHostSucks
10-01-2001, 04:21 PM
Here are the templates...

RyanGatewood
10-23-2001, 01:54 AM
Whats the latest version with all the fixes and is it avail. in one zip file??

Pk
10-23-2001, 10:57 AM
Originally posted by marl


add this:

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


under:

$time = time();




Anyone got a pic for this? =)

Sadie Frost
12-22-2001, 08:01 PM
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
12-24-2001, 10:01 PM
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
12-26-2001, 03:47 AM
Display a list of the categories on two or three columns instead of having a drop down box?

Lionel
12-26-2001, 12:02 PM
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,wi dth=320,heig ht=150,resizeable=no,status=no");}</script>

where can I place it?

mvigod
01-02-2002, 03:39 PM
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
01-02-2002, 04:14 PM
it is a javascript error when you try to click on banner to upload one. line 1 character 1 ../linksupload.php

Dalius
01-02-2002, 04:44 PM
whats the point of the hack?

Lionel
01-02-2002, 04:49 PM
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,wi dth=320,h eight=150,resizeable=no,status=no\");}</script>";

Okiewan
01-02-2002, 06:14 PM
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
01-02-2002, 07:54 PM
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
01-02-2002, 08:10 PM
DOH!!
Thanks.

FWC
01-02-2002, 08:15 PM
You're welcome. :)

xug
01-03-2002, 03:12 AM
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
01-06-2002, 02:31 AM
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
01-09-2002, 01:07 PM
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
01-09-2002, 04:26 PM
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
01-10-2002, 12:06 AM
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
01-11-2002, 04:48 AM
Ok, I will take it that this hack just is no more?

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

Aaow AnD wHiTe
01-11-2002, 11:58 AM
Guess that's it :)

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

SaintDog
01-11-2002, 07:18 PM
Thanks Aaow AnD wHiTe, I appreciate it.

Going to check it out now. :)

DelusionalMind
01-12-2002, 06:34 AM
* DelusionalMind 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
01-17-2002, 10:33 PM
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
01-18-2002, 01:48 AM
Now I feel stupid.. it was right under my nose..

TechTalk
01-20-2002, 08:59 PM
Anyone got this working on the latest version of VB?

FWC
01-20-2002, 10:41 PM
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
01-21-2002, 12:13 AM
Hrmmmm....

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

Thanks

FWC
01-21-2002, 02:11 AM
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
01-24-2002, 08:43 AM
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
01-24-2002, 01:06 PM
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
01-24-2002, 01:16 PM
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
02-11-2002, 06:34 PM
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
02-11-2002, 07:16 PM
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
02-11-2002, 08:42 PM
Here is the old zip file.

slideboxer
02-12-2002, 03:49 AM
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
02-12-2002, 03:54 AM
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
02-13-2002, 06:38 AM
*Bows to creator.*

I'm not worthy.

Steph2k
02-21-2002, 03:34 PM
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
02-26-2002, 03:41 AM
can you guys like correct all the mistakes and post the newest zip file or something? because I am a total newbie

mewgood
03-05-2002, 05:57 AM
does anyone have a new version
that fixed every thing?

slideboxer
03-06-2002, 04:21 AM
I have it 0n 2.2.2 and no problems.

sccr410
03-06-2002, 07:35 PM
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
03-22-2002, 10:24 AM
Download link = 404 :/

The Keeper
03-23-2002, 04:47 AM
broken link!
I would love to integrate this hack into my site.

FWC
03-23-2002, 05:07 AM
Originally posted by xiphoid
Download link = 404 :/ Look in Post #126.

Rheinblitz
04-05-2002, 11:02 PM
does anybody already added tableborders? :rolleyes:

KarateKid
04-06-2002, 12:42 PM
@FWC: It's not in this post.

I need this hack too! :cross-eyed:

FWC
04-06-2002, 03:38 PM
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
04-06-2002, 03:57 PM
ups, you're right :D

Floris
04-14-2002, 06:27 AM
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
04-14-2002, 07:32 AM
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
04-20-2002, 12:46 AM
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
04-20-2002, 03:47 AM
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
04-20-2002, 08:51 AM
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|
05-09-2002, 10:51 PM
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
05-11-2002, 10:11 PM
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
05-12-2002, 11:45 AM
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
05-29-2002, 06:53 AM
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
05-29-2002, 08:14 PM
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
05-31-2002, 04:05 PM
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
05-31-2002, 04:58 PM
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
06-01-2002, 09:32 AM
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
06-12-2002, 08:03 AM
Any plans to make it look more consistent with the rest of the pages?

Smoothie
07-04-2002, 06:50 PM
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
08-20-2002, 12:58 PM
when is the new version coming out? or is there any other hack like this one?!?!

FFMania
08-26-2002, 09:05 AM
Is it possible for guests to submit links as well???

bouncer18
10-08-2002, 06:42 AM
great hack

no probs on 2.2.8

yzztik
05-28-2003, 12:12 PM
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
12-15-2003, 07:09 PM
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
12-26-2003, 03:11 AM
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