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)

MarkB 10-31-2002 02:50 PM

I had a fix for this (found it on my own version)... lemme grab the code :)

MarkB 10-31-2002 02:55 PM

(I'm assuming this is the cause for YOUR problem, since it was the cause for mine...)

Find this in links.php:

PHP Code:

// #################### Do Add New ####################
if ($HTTP_POST_VARS['action']=="doaddnew") {
$result mysql_query("INSERT INTO gportal_weblinkslink (catagoryid, linkname, linkurl, linkdesc) 
VALUES ('
$catid', '$linkname', '$linkurl', '$linkdesc')");

eval(
"dooutput(\"".gettemplate('drkslinks_doneaddlink')."\");");


Change it to:

PHP Code:

// #################### Do Add New ####################
if ($HTTP_POST_VARS['action']=="doaddnew") {
$result mysql_query("INSERT INTO gportal_weblinkslink (catagoryid, linkname, linkurl, linkdesc) 
VALUES ('
$catid', '".addslashes(htmlspecialchars($linkname))."', '$linkurl', '".addslashes(htmlspecialchars($linkdesc))."')");
    
eval(
"dooutput(\"".gettemplate('drkslinks_doneaddlink')."\");");


That should work...

adriandaz 10-31-2002 03:07 PM

This is cool, thanks :)

Visionray 10-31-2002 05:32 PM

MarkB

Yep! You're code worked. Thanks!!!

One more question...do the links spill over into muliple pages after a certain amount, or do they all remain on the same page?

Thanks

MarkB 10-31-2002 05:35 PM

Glad it worked!
:)

All single page at the moment, AFAIK... not sure about v2 though. We'll have to see :)

Chris M 10-31-2002 05:45 PM

Version 2 has a few surprises;)

Its all im letting out:)

Satan

Visionray 10-31-2002 05:51 PM

Can't wait! This is a great hack which opens a lot of possibilities. I was looking for a way to do this exact same thing and now my users can do it too which is great.

I was thinking about another thing...don't know if this is going to be in version 2. My links don't display in alphabetical order. The first link entered remains at the top, second link underneath etc...

I think from a user standpoint, it should either be the other way around, or they should be alphabetical, because down the road when someone adds a link and it goes all the way to the bottom its not as efficient. If thats something being worked on then disregard that.

One more thing which would really be cool. I wonder if there is a way to break up the categories...for example on my site I have film links and then web links. It would be nice if I could make a divider between the two sections to differentiate them from each other, know what I mean? Just like on the vB forum home page how major sections are split up. Just an idea. I don't know anything about php, I just follow the instructions in the hacks lol.

Thanks guys this works great so far.

DrkFusion 10-31-2002 07:27 PM

Visionray, the code should display in alphabetical order by default. It was added later on, but I will take all your suggestions, and other peoples suggestion into thought as I finish it up.

MarkB, thanks for helping :) have been a very big help.

Hellsatan, You don't know the new features ;)

Anyways have a nice day, I will possibly post new screenshots later on.

-Arunan

DrkFusion 10-31-2002 08:25 PM

vB Links Directory 2.0
.:: Main

DrkFusion 10-31-2002 08:25 PM

vB Links Directory 2.0
.:: Link In Catagory


All times are GMT. The time now is 08:35 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.01508 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)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