vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Affiliates v.2 (https://vborg.vbsupport.ru/showthread.php?t=63044)

Bryan Ex 04-13-2004 05:31 AM

Quote:

Originally Posted by AN-net
do you mean the active status or the approval status?

Active status is what I want to default to YES. Right now I need to approve a new link and then go back and further edit it to "active" to appear on my list.

Bryan Ex 04-13-2004 06:58 AM

As far as the links awaiting approval go... if the query calling up the list of affiliates in the admincp (manage affiliates) was reversed so newest was shown first instead of last it would place anything needing attention on the first page instead of buried several pages back. I just haven't found the right query to make the change yet...

Majik? 04-13-2004 08:37 PM

I changed the sort order to display the sites awaiting approval first, then the sites that are approved but inactive, then the sites that are approved and active.

Bryan Ex 04-13-2004 08:41 PM

Exactly what I'm after... care to share where that query is?

Majik? 04-13-2004 08:42 PM

Quote:

Originally Posted by Bryan Ex
Exactly what I'm after... care to share where that query is?

PHP Code:

$faffiliate$DB_site->query("SELECT affiliate_id,sitename,siteurl,active,approved,email FROM " TABLE_PREFIX "affiliates ORDER BY approved, active, sitename LIMIT $limitvalue,$perpage"); 

I don't remember offhand hat the original line looked like, but just search for $faffiliate= $DB_site->query as I only found that once in the file. ;)

Bryan Ex 04-14-2004 12:09 AM

Exactly what I needed. Much appreciated Majik.

AN-net 04-14-2004 12:27 AM

Quote:

Originally Posted by Majik?
PHP Code:

$faffiliate$DB_site->query("SELECT affiliate_id,sitename,siteurl,active,approved,email FROM " TABLE_PREFIX "affiliates ORDER BY approved, active, sitename LIMIT $limitvalue,$perpage"); 

I don't remember offhand hat the original line looked like, but just search for $faffiliate= $DB_site->query as I only found that once in the file. ;)

thanks:), you saved me alot of work;)

Bryan Ex 04-14-2004 01:31 AM

Last small item for me to sort out... it seems that if the site description text gets too close to the edge of a cell on the affiliate list page I lose the left side border for that cell. Cells affected will change as window size or screen resolution is changed depending on where the text wraps. Any ideas of how to address this?

Bryan Ex 04-16-2004 03:56 PM

Can anyone offer any suggestions on what else I might try because I'm baffled by this one. I've played with cell padding and font sizes to no avail and the left boders continue to disappear where ever text comes within a certain margin width. I just dunno... :disappointed:

AN-net 04-16-2004 06:55 PM

well each cell doesnt have a border, the border you see is the background of the table:) try increasing cellpadding and cellspacing:)


All times are GMT. The time now is 10:57 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.01272 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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