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)

DrkFusion 12-31-2002 06:08 AM

Here are some basic information about vB Links Directory 3.0
vB Links Directory 3.0 Features
Administration:
? Better Category Management
? Better Link Management
? Full Management of settings (Name, fields, extras)
? --->You can set the name of your links directory, and fields, for example, instead of showing the word hits: you can put visits, or views, and instead of having a standard name of "Site Links Directory" you can set it in the vB options to be "Site Link Database" or "Site Links" or "Site Plugin", you can disable and enable features such as ratings, add links, user editing, user viewing.
? Advanced Link Validation System (better then current)
? Button/Banner Management
? New Sub Category Management
...(Will list more as finish date nears)

Links Directory (Public):
Main::
? Categories
? Sub Categories
? Number of Links in each Category
? Descriptions
? Search
Category View::
? Sub Categories
? Link Name
? Link Description
? Link Rating (Average)
? Admin Options (Viewable to admins, and others you specify)
? Search
? Link Hits
Extras::
? Built in Mini-Topsites (Can be disabled)
? Top 10 Visited Links (Can be disabled)
? Last 10 Added Links (Can be disabled)
? Banner Rotator (Can be disabled)
? Full Mas view (Can be disabled)

These are just some features of 3.0, which will be released with it:)

Dean C 12-31-2002 09:03 AM

Yes but it's not released yet :p

nighteyes 01-01-2003 01:49 PM

Quote:

Originally posted by DrkFusion

Hopefully next year.

Any idea when 3.0 might be released at all? :)

Units 01-02-2003 01:31 AM

Quote:

Originally posted by kastle
For those who are interested in catagory counts, this might help some...

1. Edit your vB Links Directory Templates > drkslinks_catbit file as such (for example) -- I've added a [$linkcounted] to mine, more on what it is ....

PHP Code:

<tr valign="top">
<
td bgcolor="#F1F1F1"><normalfont><b><a href="links.php?action=viewlinks&catid=$catid">$catname</a></b> [$linkcounted] </smallfont></normalfont></td>
<
td bgcolor="#DFDFDF"><normalfont>$catdesc</normalfont></td>
</
tr


2. In the links.php, change
PHP Code:

// #################### Links Home ####################
if ($action=="main") {
$ebg $DB_site->query("SELECT * FROM gportal_weblinkscat ORDER BY catname");
if (
$DB_site->num_rows($ebg)) {
  while (
$myrow=$DB_site->fetch_array($ebg)) {
            
$hasattach=1;
            
$catid=$myrow["webcatid"];
            
$catname=$myrow["catname"];
            
$catdesc=$myrow["catdesc"];
                        eval(
"\$catlistbit .= \"".gettemplate('drkslinks_catbit')."\";");
  }
}
eval(
"dooutput(\"".gettemplate('drkslinks_main')."\");");


TO

PHP Code:

// #################### Links Home ####################
if ($action=="main") {
$ebg $DB_site->query("SELECT * FROM gportal_weblinkscat ORDER BY catname");
if (
$DB_site->num_rows($ebg)) {
  while (
$myrow=$DB_site->fetch_array($ebg)) {
            
$hasattach=1;
            
$catid=$myrow["webcatid"];
            
$catname=$myrow["catname"];
            
$catdesc=$myrow["catdesc"];
            
$linkcount=$DB_site->query_first("select count(*) 
                        as linkcounted from `gportal_weblinkslink` 
                        where catagoryid=
$catid[webcatid]");
            
$linkcounted=$linkcount[linkcounted];                        
                        eval(
"\$catlistbit .= \"".gettemplate('drkslinks_catbit')."\";");
  }
}
eval(
"dooutput(\"".gettemplate('drkslinks_main')."\");");



Thanks alot dude

Units 01-02-2003 05:24 PM

Dude.. My members are saying that they add there link, and it doesnt show up. I checked the link validation thing, and it said its off..

Im an admin, so i could see the link.. But they cant, any suggestions?

Elvis 01-03-2003 10:57 PM

Hi,

This is a very cool hack.... but lacks a couple things, namely in the category functionality.

Does anyone know how to add the category into the form when validating or editing a link?

Any help would be appreciated.

Thanks,

Elvis

Elvis 01-04-2003 05:53 PM

Well,

This isn't anything fancy... but it's my first hack (and of a hack), so go easy on me. ;)

Replace weblinksadmin.php with the one attached here (weblinksadmin.php.txt), and you'll be able to change categories in both the Link Edit and when you Validate New Links. I also sorted View ALL Links by linkid.

Again, it's quick and dirty, but it works. All my changes are commented... just search the file for ' Elvis '.

Lemme know what you think... perhaps someone else can clean it up, and make it more efficient.

Elvis

JakeC 01-04-2003 07:30 PM

I gave it a try and I got an error when I tried to validate a link. Here is the error:

Quote:

Fatal error: Call to undefined function: phprequire() in /home/jakec/public_html/forums/admin/weblinksadmin.php on line 1
I really would like this addition. All I did was rename the file to weblinksadmin.php and uploaded it to the admin folder, overwriting the old weblinksadmin.php file. Did I miss a step? Thanks in advance.

JakeC

Elvis 01-04-2003 07:35 PM

Quote:

Originally posted by JakeC
I gave it a try and I got an error when I tried to validate a link. Here is the error:



I really would like this addition. All I did was rename the file to weblinksadmin.php and uploaded it to the admin folder, overwriting the old weblinksadmin.php file. Did I miss a step? Thanks in advance.

JakeC

Make sure the first 2 lines look like:
PHP Code:

<?php
require("./global.php");


JakeC 01-04-2003 07:52 PM

Ok, I got it. For some reason when I saved the file everything was run together and not in any structure of any kind. So, I just copied and pasted into a php file and it works great. I haven’t been able to test it thoroughly but it works great so far. Thanks for a great update. I really like it.

JakeC


All times are GMT. The time now is 12:41 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.01861 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
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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