vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [Release vB Links 1.0 | vB2bx (https://vborg.vbsupport.ru/showthread.php?t=12815)

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

Quote:

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:
Code:

<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?:
Code:

<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:

Quote:

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:

PHP Code:

//################### 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:

PHP Code:

//################### 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:

Code:

<option value="$link_category[id]" $optionselected>$link_category[name]</option>
change the following in the "links template"

Code:

<select name="category">
to:

Code:

<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 !


All times are GMT. The time now is 04:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02976 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete