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 07-11-2003 04:31 PM

AuthorZone, please read the readme.txt file.

Quote:

++----------------------------------------------------------
// ###################### Start maketableheader #######################
function maketableheader ($title,$anchor="",$htmlise=1,$colspan=2) {
// makes a two-cell spanning bar with a named <A> and a title
// then reinitialises the bgcolor counter.
global $bgcounter;
echo "<tr class='tblhead'><td colspan='$colspan'><a name=\"$anchor\"><font size='1'><b><span class='tblhead'>".iif($htmlise,htmlspecialchars($t itle),$title)."</span></b></font></a></td></tr>";
$bgcounter = 0;
}
++----------------------------------------------------------
++ REPLACE the above code with:
++----------------------------------------------------------
// ###################### Start maketableheader #######################
function maketableheader ($title,$anchor="",$htmlise=1,$colspan=2) {
// makes a two-cell spanning bar with a named <A> and a title
// then reinitialises the bgcolor counter.
global $bgcounter;
echo "<tr class='tblhead'><td colspan='$colspan'><a name=\"$anchor\"><font size='1'><b><span class='tblhead'>".iif($htmlise,htmlspecialchars($t itle),$title)."</span></b></font></a></td></tr>";
$bgcounter = 0;
}

// ###################### Start maketableheaderview #######################
function maketableheaderview ($title,$anchor="",$htmlise=1,$colspan=6) {
// makes a two-cell spanning bar with a named <A> and a title
// then reinitialises the bgcolor counter.
global $bgcounter;
echo "<tr class='tblhead'><td colspan='$colspan'><a name=\"$anchor\"><font size='1'><center><span class='tblhead'>".iif($htmlise,htmlspecialchars($t itle),$title)."</span></center></font></a></td></tr>";
$bgcounter = 0;
}


DrkFusion 07-11-2003 04:32 PM

Quote:

Today at 05:43 AM Russ_T said this in Post #498
Hi,

This hack is very useful thank you, can be viewed at


Anyway I made a little mod, I don't know how this will be affected by the update.

Original code



Modified code


Basically I can now count the number of items in each category so if you see I get a total links in category.

If you haven't already done this thought it would make a nice addition, can you let me know if your db update php will affect my mod please?

Regards

Russ

Yes, this is in the 2.0 updated version. I will be posting screenshots in a sec. Just it has minor updates.

DrkFusion 07-11-2003 04:33 PM

Quote:

Today at 06:47 AM AuthorZone.Com said this in Post #499
Can someone help please?

I have registered members and Premium (Group) members.

I only want to allow the Premium group members to be able to submit links.

How can I get this done?

Somebody please help?

Max

I've decided to let the user define which groups can add links. This will be added in Build 250 of v2.

AuthorZone.Com 07-11-2003 04:39 PM

I did that but just noticed a typo.. lol

DrkFusion 07-11-2003 04:45 PM

Hope its fixed. I added that to the admin functions file so the table can be stretched so it looks nicer :)

Gutspiller 07-11-2003 11:16 PM

How soon is the next version coming? I didn't want to publish and tell my users about the link directory until I got my small text problem fixed.

Will it be an easy upgrade?

Russ_T 07-12-2003 12:53 PM

Hi,

Not being ungrateful and maybe your nationality isn't English but its category not catagory here. Maybe its a US spelling? Either way I went through and replaced it all myself and now it gives me a db_fix error lol :D

Excellent mod though thanks, you've saved me weeks of coding.

DrkFusion 07-12-2003 09:44 PM

Quote:

Today at 09:53 AM Russ_T said this in Post #507
Hi,

Not being ungrateful and maybe your nationality isn't English but its category not catagory here. Maybe its a US spelling? Either way I went through and replaced it all myself and now it gives me a db_fix error lol :D

Excellent mod though thanks, you've saved me weeks of coding.

Yes actually I am not the original coder of this hack.

That spelling error though is fixed in the new version. DB_Fix error? Anything that is in the templates and is not variablized can be fixed through chaning of the template. You cannot change the database tables though.

DrkFusion 07-12-2003 09:48 PM

Quote:

Yesterday at 08:16 PM Gutspiller said this in Post #506
How soon is the next version coming? I didn't want to publish and tell my users about the link directory until I got my small text problem fixed.

Will it be an easy upgrade?

Right now the upgrade is manual, I want to test it out. It was given to SaintDog of spyderwire for testing. It is not up as of yet, but it should be soon. If everything goes ok, I will automate it and release it. The upgdate is VERSION 2 : BUILD 250. Not version 3. I can post the manual upgrade few hours after the SpyderWire one is put up though, if anyone wants to install it manually.

Also some good news, queries are reduced, not as many templates, not as many spelling errors, not as many code errors. Most of it is all fixed :)

M@rkus 07-13-2003 01:43 PM

Is there any german translation of that hack??


All times are GMT. The time now is 04:53 PM.

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.01753 seconds
  • Memory Usage 1,746KB
  • 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_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