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)
-   -   vB Links Directory 2.0 *NEW VERSION* (https://vborg.vbsupport.ru/showthread.php?t=44551)

David_McPherson 11-07-2002 10:42 PM

New Link works great on the main page.... !!! :)

And MY Directory is installed (Test board for now)!!!!!! Working great on vb 2.2.8 :D:D:D

Thank you very much!!

auz1111 11-07-2002 11:30 PM

Awesome hack! It is working fine on vb 2.2.7 :) Thanks

NuclioN 11-07-2002 11:32 PM

After upgrading i get this error when i click on a category

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT * FROM gportal_weblinkslink WHERE catagoryid=3 AND valid='1' ORDER BY linkname
mysql error: Unknown column 'valid' in 'where clause'

mysql error number: 1054


----oops, problem solved! old links en cats removed, upgrade again, all went well. Great update ;) -----

DrkFusion 11-08-2002 12:24 AM

Thanks, hope you enjoy this!

-Arunan:)

kreftt 11-08-2002 12:42 AM

ouch

03:40 am and ive just seen 2.0 is out

goodbye sleep ;)

thx

kreftt

FleaBag 11-08-2002 12:42 AM

Ditto. Hehe. :D

kreftt 11-08-2002 12:46 AM

works fine on 2.2.8.

one little addition:

in the main view you sort the categories by catname.
in the add new link dialogue the categorie select-list isnt sorted and gets shown by catid because of that.
you might want to change

PHP Code:

// #################### Add Link ####################
if ($action=="addlink") {
  if (
$bbuserinfo[usergroupid]=="1" or $bbuserinfo[usergroupid]=="3" or $bbuserinfo[usergroupid]=="0") {
      eval(
"dooutput(\"".gettemplate('drkslinks_error1')."\");");
      }else{

$result1 $DB_site->query("SELECT * FROM gportal_weblinkscat"); 

to
PHP Code:

// #################### Add Link ####################
if ($action=="addlink") {
  if (
$bbuserinfo[usergroupid]=="1" or $bbuserinfo[usergroupid]=="3" or $bbuserinfo[usergroupid]=="0") {
      eval(
"dooutput(\"".gettemplate('drkslinks_error1')."\");");
      }else{

$result1 $DB_site->query("SELECT * FROM gportal_weblinkscat ORDER BY catname"); 

and in browselinks and in main template i think you closed one

PHP Code:

</td></tr></table

too much right above the navigational links. it at least broke my layout...

in doneaddlink template a

PHP Code:

</normalfont></td>
</
tr>
</
table>
</
td>
</
tr>
</
table

right after

PHP Code:

The link you had submitted has been added to the database successfully!! 

thx for this fine hack

kreftt

DrkFusion 11-08-2002 01:29 AM

Hehe, these small little thing ;)

-Arunan

WoodiE 11-08-2002 01:49 AM

My links page is having a problem...

http://www.rcnitrotalk.com/forum/links.php

Notice it uses the white background, then where the text links it uses the sites background, why? and how can i change it?

DrkFusion 11-08-2002 01:50 AM

try replacing the drkslink_main template with
Code:

{htmldoctype}
<!-- DRK'S LINK DIRECTORY -->
<!-- PROGRAMMED BY removed on request -->
<!-- HTTP://WWW.NOXMEDIA,NET-->
<html>
<head>
    <!-- no cache headers -->
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="no-cache">
    <meta http-equiv="Expires" content="-1">
    <meta http-equiv="Cache-Control" content="no-cache">
    <!-- end no cache headers -->
    <meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
    <meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ .">
    <title>$bbtitle - Link Database</title>
    $headinclude
</head>
<body>
$header
 
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
    <td bgcolor="{categorybackcolor}" colspan="6"><center><normalfont color="{categoryfontcolor}"><b>$bbtitle - Links Database</b></normalfont></center></td>
</tr>
<tr align="center">
  <td bgcolor="{tableheadbgcolor}" width="40%" align="center"><smallfont color="{tableheadtextcolor}"><b>Catagory</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}" align="center"><smallfont color="{tableheadtextcolor}"><b>Description</b></smallfont></td>
</tr>
$catlistbit
<form action="links.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="results" value="doaddnew">
<tr>
    <td colspan="2" bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Search Links Database By Keyword</b></smallfont></td></tr>
<tr valign="top">
    <td colspan="2" bgcolor="{firstaltcolor}" align="center"><smallfont><input type="text" class="bginput" name="string" size="35"><br>Enter a Keyword above (ex: vbulletin, php. webhost etc)</td>
</tr>
</table>
</td></tr></table>
<table cellpadding="0" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
    <td align="center"><normalfont>
    <input type="hidden" name="action" value="results">
    <input type="submit" class="bginput" name="Submit" value="Perform Search" accesskey="s">
    <input type="reset" class="bginput" name="Reset" value="Reset Fields">
    </normalfont></td>
</tr>
</table>
<center>
<normalfont>
<a href="links.php?action=main">Link Directory Home</a> | <a href="links.php?action=addlink">Submit a Link</a> | <a href="links.php?action=search">Search</a> | <a href="links.php?action=top10visited">Top 10 Visited Links</a> | <a href="links.php?action=top10last">Last 10 Added Links</a>
</normalfont>
</center>
<br>
<br>
<center>
<normalfont>
vB Links Directory 2.0<br>
Written By: <a href="http://www.vbulletin.com/forum/member.php?s=&action=getinfo&userid=22303">Removed on request</a><br>
<a href="http://www.noxmedia.net">http://www.noXmedia.net</a>
</normalfont>
</center>
<br>
<br>
</td></tr></table>
$footer
</body>
</html>



All times are GMT. The time now is 10:36 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.01648 seconds
  • Memory Usage 1,771KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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