View Full Version : [Release vB Links 1.0 | vB2bx
The_Sisko
Sun 1st Apr '01, 5:43pm
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.studenten-city.de/stf/vblinks_install.zip)
Charon
Sun 1st Apr '01, 5:54pm
he dude thx awesome hack really usefull ;-)
marl
Sun 1st Apr '01, 6:16pm
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!
The_Sisko
Sun 1st Apr '01, 6:27pm
Attached a new download file! Just some hardcoded german I forgot! If you allready installed it, just reupload the adminlinks.php
n3n
Sun 1st Apr '01, 6:42pm
works great!
easy installation!!
Great job! thanks very much..
dubucm
Sun 1st Apr '01, 7:15pm
where can we see a online demo ?
marl
Sun 1st Apr '01, 7:22pm
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>
?
The_Sisko
Sun 1st Apr '01, 7:35pm
@ 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!
The_Sisko
Sun 1st Apr '01, 7:40pm
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!
Sarge
Sun 1st Apr '01, 8:09pm
Great Hack!
They should add this to the next beta!
snyx
Sun 1st Apr '01, 8:14pm
is it in english man?
mkilty
Sun 1st Apr '01, 8:49pm
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.
n3n
Sun 1st Apr '01, 9:32pm
Originally posted by snyx
is it in english man?
yes it's in english.. ;)
TigerLily
Sun 1st Apr '01, 9:41pm
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:)
marl
Sun 1st Apr '01, 9:45pm
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();
mkilty
Sun 1st Apr '01, 10:30pm
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
marl
Sun 1st Apr '01, 10:40pm
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?
GMTalk
Sun 1st Apr '01, 10:44pm
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
mkilty
Sun 1st Apr '01, 10:45pm
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?
marl
Sun 1st Apr '01, 10:53pm
the template looks fine, check links.php
also give asnap of the output sent to browser...
mkilty
Sun 1st Apr '01, 11:15pm
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:
n3n
Sun 1st Apr '01, 11:23pm
how about adding links hits-in counter?? just like for most topsites feature..
rank link title hits out (today) hits in (today)
----------------------------------------------------------------
1. ur sitename 101 57
----------------------------------------------------------------
2. sitename2 99 34
----------------------------------------------------------------
.
.
.
something like this..
GMTalk
Sun 1st Apr '01, 11:40pm
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.
wajones
Mon 2nd Apr '01, 12:24am
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?
marl
Mon 2nd Apr '01, 4:48am
mkilty: all seem fine.....at this point, check mysql table structure.
also try adding more links and removign old ones
The_Sisko
Mon 2nd Apr '01, 4:53am
@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!
Matt*is*thick
Mon 2nd Apr '01, 7:50am
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!
The_Sisko
Mon 2nd Apr '01, 9:07am
Just delete it in the template!
The_Sisko
Mon 2nd Apr '01, 9:20am
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
The_Sisko
Mon 2nd Apr '01, 6:42pm
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
GMTalk
Tue 3rd Apr '01, 12:10am
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
EXCHANGE
Tue 3rd Apr '01, 12:21am
Sorry no idea. I didnīt get that error.
@The_Sisko
This hack is really great. :D:D
thanks
The_Sisko
Tue 3rd Apr '01, 5:24am
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!!!
The_Sisko
Tue 3rd Apr '01, 5:51am
Forgot to post a demo link :D:
http://www.studenten-city.de/stf/links.php4
Sean
Tue 3rd Apr '01, 8:52am
Howbout you allow users the ability to edit their links, or the admin may also?
Just an idea. :)
Pingu
Tue 3rd Apr '01, 11:17am
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_Sisko
Tue 3rd Apr '01, 12:05pm
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
Tue 3rd Apr '01, 8:06pm
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
Wed 4th Apr '01, 5:10am
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
Wed 4th Apr '01, 1:09pm
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
Tue 10th Apr '01, 11:20am
I was just wondering what the current status of this hack is before I decide to implement on my beta 5 Forums? Anyone?
urbanways
Tue 10th Apr '01, 11:23am
im running it on beta five and have had no problems with it
RobAC
Tue 10th Apr '01, 4:59pm
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
Tue 10th Apr '01, 5:01pm
Oh :)
Good job
The_Sisko
Tue 10th Apr '01, 6:57pm
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
Tue 10th Apr '01, 7:00pm
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
Tue 10th Apr '01, 7:31pm
Don't realy know what you mean? What do you want to do?
RobAC
Tue 10th Apr '01, 7:35pm
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
Tue 10th Apr '01, 9:02pm
Sisko: Did you ever get my email? I was curious if you had any insight on my issue?
GMTalk
Raptor
Tue 10th Apr '01, 10:18pm
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
Wed 11th Apr '01, 12:05pm
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
Wed 11th Apr '01, 12:11pm
What's the purpose of the "translation option"??
Steggy
Wed 11th Apr '01, 12:37pm
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
Wed 11th Apr '01, 2:58pm
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
Mon 16th Apr '01, 5:38pm
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
Mon 16th Apr '01, 7:45pm
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
Tue 17th Apr '01, 9:19pm
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
Tue 17th Apr '01, 9:50pm
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
Tue 17th Apr '01, 9:53pm
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
Tue 17th Apr '01, 10:09pm
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
Tue 17th Apr '01, 10:38pm
Thanks John. I figured that's all I needed to do. :)
RobAC
Tue 17th Apr '01, 11:38pm
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
Wed 18th Apr '01, 4:27am
At the bottom of index.php there's:
</td></tr>
</table>
You'll need to replace </td></tr>
The_Sisko
Wed 18th Apr '01, 6:42am
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
Sat 21st Apr '01, 10:15pm
Whats the chance of getting this added into vb 2.1? This is the best hack ive seen in a while!
eva2000
Sun 22nd Apr '01, 12:32am
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
Sat 26th May '01, 4:50pm
Still waiting for this one!
Jyaki
Wed 30th May '01, 12:52pm
Sisko, awsome hack! This is exactly what I'm looking for. Is the latest version still in the works?
Thanks
TigerLily
Thu 5th Jul '01, 1:10am
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
Thu 5th Jul '01, 7:59am
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
Fri 6th Jul '01, 5:03am
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
Mon 9th Jul '01, 5:51pm
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
Sun 29th Jul '01, 9:22am
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
Wed 1st Aug '01, 6:53am
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
Wed 1st Aug '01, 7:39am
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
Wed 1st Aug '01, 9:47am
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
Wed 1st Aug '01, 9:58am
canīt agree with that. Iīm running this hack since beta 5 now without any reinstall
Delhaze
Wed 1st Aug '01, 4:02pm
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
Wed 1st Aug '01, 4:24pm
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
Wed 1st Aug '01, 7:56pm
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
Sun 12th Aug '01, 9:08am
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
Mon 13th Aug '01, 11:52am
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
Mon 13th Aug '01, 1:17pm
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
Sun 19th Aug '01, 8:55pm
Is there a way to change/move the templates I already have to custom templates?
Steve_C
Wed 22nd Aug '01, 5:46pm
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
Fri 24th Aug '01, 7:57pm
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
Steve_C
Fri 24th Aug '01, 11:01pm
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
Sat 25th Aug '01, 8:42am
Yes I did Upgrade or first inst. ?
Steve_C
Mon 27th Aug '01, 10:53am
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
Mon 27th Aug '01, 8:23pm
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
Wed 29th Aug '01, 10:15pm
Any demo please ?
MApI
Thu 30th Aug '01, 8:28am
Any demo please ? Here (http://www.ckcsforums.com/links.php) and hope early in mine if have help. :p :p :p
byezzz
Kengan
Sun 9th Sep '01, 10:25am
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 ?
Steve_C
Sun 30th Sep '01, 1:52pm
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?
:)
Steve_C
Sun 30th Sep '01, 1:53pm
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
Sun 30th Sep '01, 3:09pm
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
Sun 30th Sep '01, 5:23pm
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
Sun 30th Sep '01, 6:00pm
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
Sun 30th Sep '01, 10:21pm
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
Sun 30th Sep '01, 11:13pm
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;
Steve_C
Sun 30th Sep '01, 11:34pm
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
Sun 30th Sep '01, 11:37pm
Yup worked here too! Thanks for helping me with this.. I now figured how to work this with my other hacks. Thanks again! :)
PogeR
Mon 1st Oct '01, 1:32pm
WHAT ABOUT THE TEMPLATES????? IT STILL DOESN'T WORK
YourHostSucks
Mon 1st Oct '01, 2:21pm
Here are the templates...
RyanGatewood
Mon 22nd Oct '01, 11:54pm
Whats the latest version with all the fixes and is it avail. in one zip file??
Pk
Tue 23rd Oct '01, 8:57am
Originally posted by marl
add this:
if (!eregi("http://",$url)) $url = "http://".$url;
under:
$time = time();
Anyone got a pic for this? =)
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights