vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $pagenav - Help, i thought that this would be easy! (https://vborg.vbsupport.ru/showthread.php?t=52945)

trafix 05-14-2003 03:10 PM

$pagenav - Help, i thought that this would be easy!
 
Ok i thought that adding pages to a hack would be easy ... i cant seem to work it out from existing coding :( could someone explaine how to add this to a hack. A tut would be great:)

Thanks in advance

Dean C 05-14-2003 03:36 PM

Same here - pagination is so much harder than it looks :(

- miSt

colicab-d 05-14-2003 05:22 PM

pagination would be handy... maybe someone could write a good tutorial and post it in the hacking hints and tips..

please :D lol

N!ck 05-14-2003 11:52 PM

It's pretty easy with that pagenav() function. You just feed it your result.

Boofo 05-15-2003 12:27 AM

Can you post an example or something?

trafix 05-15-2003 04:03 AM

OK, here is the piece of coding that i require pagenav on. It comes from vbtrader.php and the primary db column is itemid,

please use this as the example ... :)

ooops wrong piece ... see next post

trafix 05-15-2003 04:06 AM

sorry this is the right bit of code

PHP Code:

// ###################### Start Get Listings #######################
if ($action=="getlist") {
   
   eval(
"\$navbar .= \"".gettemplate("trader_navbar")."\";");
   
   
$getinfo2 $DB_site->query_first("SELECT * FROM traderclasssublist WHERE subid=$subid");
     
$catmain=$getinfo2[parentname];
    
$catmainid=$getinfo2[parentid];
    
$catsub=$getinfo2[subname];
    
$getinfo3 $DB_site->query_first("SELECT * FROM traderclassmainlist WHERE id=$catmainid");
     
$getlist $DB_site->query("SELECT * FROM traderlisting WHERE itemsubcatid=$subid and active=1 ORDER BY datelisted DESC");
while (
$list4 mysql_fetch_array($getlist)) {
    
$list4[finish]=vbdate($dateformat,$list4[dateexpire]);
    
    
$newlist="";
    if (
$list4[datelisted] > $bbuserinfo[lastvisit]) {
    
$newlist="color=red";
    }
    
    if ((
$counter++ % 2) != 0) {
                
$backcolor="{firstaltcolor}";
                
$bgclass="alt1";
            } else {
                
$backcolor "{secondaltcolor}";
                
$bgclass="alt2";
            }
        
            
eval(
"\$itemlist .= \"".gettemplate("trader_itemlist_bit")."\";");
}

eval(
"dooutput(\"".gettemplate("trader_item_list")."\");");
  




All times are GMT. The time now is 01:01 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.01091 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete