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)

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 10:58 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.01326 seconds
  • Memory Usage 1,760KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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