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-21-2002 05:47 PM

Quote:

Originally posted by Mist
Have you included ratings because this is the only thing thats stopping me from installing?

- miSt

Yes, its on the to do, its actually in the code, I am doing the math functions for it right now.

Smoothie 12-21-2002 05:53 PM

One small request, heh, maybe not too small. How about allowing banners. Uploaded, or linked.

Dean C 12-21-2002 06:50 PM

Lil one's tho :)

arracing 12-21-2002 07:15 PM

you know how you can exlude domains from the site referrer list. Well I want to know how I can bring back those domains I excluded?

Smoothie 12-22-2002 08:19 AM

DrkFusion-

I need to replace "catagory" with "category", but its not so easy. I have way too many styles to do this manually. Any suggestions?
I tried the find and replace, but its only listing one template, and I know there are more.

DrkFusion 12-22-2002 01:47 PM

Smoothie, there should be 2 ways you can do this, one way is set your board to debug (be careful) and edit the global template, which will affect all styles. (I would say this is the most effective way) but be careful

or

you can go into a database administration software like phpmyadmin, first go to your admin, find out the template ids for the global templates, and then run
[SQL]SELECT * FROM `template` WHERE templateid=globaltemplateidonly[/SQL]

I would really suggest the first one, because you have so many styles, you might want to look into closing yourboard while doing these jobs to be on the safe side, we really do not know how many stuff debug mode opens to the public if any, so be safe, but it is the easier way, the 2.X update will have this.

Sorry, and good luck Smoothie

DrkFusion 12-22-2002 01:53 PM

Quote:

Originally posted by Smoothie
One small request, heh, maybe not too small. How about allowing banners. Uploaded, or linked.
I am sure you wouldn't want to allow viewing of other sites banners off of yours, I think it would be wise if the user who adds links have the banner uploaded and link to it :)

Also the standard banner (468x60) will not fit in any of the current tables, so if you want those sorts of banners then for the mod, I can add a new <tr> if you want buttons thats ok, but to benifit all, I will include instructions for both :)

Smoothie 12-22-2002 08:03 PM

DrkFusion,

You say the next release will fix the spelling errors? Ok, I just checked, out of the 13 templates, 3 of them have the word catagory, with a total of 5 instances. So, 9 styles x 5=45 changes I have to make. :(

DrkFusion 12-22-2002 09:01 PM

Did you try the first way above?

:)

Smoothie 12-22-2002 10:57 PM

What I did was find and replace in the templates with a text editor. Then debug mode on, edited the vblinks global templates. Replaced drkslinks_main, drkslinks_error and drkslinks_addnewlink templates.

DrkFusion 12-22-2002 11:04 PM

So everything is fixed?
I see the html problem was fixed too.
Note, the same html problem is on browselinks, Top 10 visisted, and top 10 last added
Sorry about the template errors, I focused alot on the code for the release, and really did not revise the templates.

Smoothie 12-23-2002 12:15 AM

Quote:

Originally posted by DrkFusion
So everything is fixed?
I see the html problem was fixed too.
Note, the same html problem is on browselinks, Top 10 visisted, and top 10 last added
Sorry about the template errors, I focused alot on the code for the release, and really did not revise the templates.

Yep!

JakeC 12-27-2002 02:51 AM

I’m not sure if this has been covered yet but for some reason whenever I try to admin the links directory in the admin panel I must submit my username and password each step of the way. Sometimes to do one function such as remove a link, it asks me for my username and password 3 times. Any ideas? Great hack by the way. Are you planning to add a deeper directory structure and the ability to move links? Just wondering. Thanks in advance.

JakeC

Axe 12-27-2002 03:31 AM

Quote:

All copyright notices must stay intact, all links, and messages in templates must be included in order for legal use of this modification.
Bummer, such a shame we're under restriction not to advertise other hosting companies on the site.

Ahhh well, never mind.

XrayHead 12-27-2002 02:18 PM

OK, after some messing around and forgetting to upload the links.php (i was a bit merry on boxing day) file i got the hack working on 2.8.

Nice hack, thanks.

DrkFusion 12-28-2002 01:01 AM

@Axe, we do not do hosting anymore, the site will go up soon, no hosting :-/ (plans changed) we lost one of the business locations.

DrkFusion 12-28-2002 01:01 AM

@Axe, we do not do hosting anymore, the site will go up soon, no hosting :-/ (plans changed) we lost one of the business locations.

Units 12-29-2002 12:51 AM

No vb codes?
I want to bold something.. <b> and [b] doesnt work :(

DrkFusion 12-29-2002 03:23 AM

Units, currently no, but if its something you would like to see in the 3.0 version (which by the way is nearing completion) you are welcome to confirm a suggestion.

ethics 12-29-2002 04:48 AM

Great hack! Installed and rolling with it. Works really nice. :)

Units 12-29-2002 06:38 AM

Quote:

Originally posted by DrkFusion
Units, currently no, but if its something you would like to see in the 3.0 version (which by the way is nearing completion) you are welcome to confirm a suggestion.
Also, I was wondering.. My designer is trying to make it so that, for each category it displays how many links are inside.. Any hints/tips for him?

Dean C 12-29-2002 12:04 PM

Ratings for version 3.0 drk!

DrkFusion 12-29-2002 05:36 PM

Mist, its in

Units, the number of links is not done through design, but through coding, it is in vB links 3

Units 12-29-2002 08:59 PM

I understand that.
But thats one feature all my members are requesting at the moment.

Chris M 12-29-2002 10:01 PM

Version 3.0 is very near to completion...

Satan

SS9267547 12-29-2002 10:48 PM

Look forward to the release of Version 3.0, so going to be released in this year or next year? :)

DrkFusion 12-30-2002 01:06 PM

Quote:

Originally posted by Units
I understand that.
But thats one feature all my members are requesting at the moment.

Sorry, its something I can't do right now.
Please don't think I am not supporting this hack, hopefully you can look at it my way, alot of unhappy clients...alot of them, design, code, network, server building and stuff.

Sorry Again, you are welcome to add it manually, but it is standard in vB Links 3.0 and I will provide full upgrade information, so you won't have to worry about loosing data.

DrkFusion 12-30-2002 01:07 PM

Quote:

Originally posted by SS9267547
Look forward to the release of Version 3.0, so going to be released in this year or next year? :)
Hopefully next year.

I am planning to make 2 versions of vB Links Directory 3.0
[One for vBulletin 3.0 and another for the vBulletin 2.2.x]

kastle 12-30-2002 11:15 PM

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')."\");");



JakeC 12-31-2002 04:53 AM

I'm running into the apostrophe problem like Visionray was on page 10. Basically when I try to add a link with a ' in it, it will not upload. There was a fix given but it appears it was for an earlier version or something because the code looks different. Any help you could give would be very much appreciated. Thanks.

JakeC

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 04:07 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.01634 seconds
  • Memory Usage 1,873KB
  • 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
  • (7)bbcode_php_printable
  • (11)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
  • (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