Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2011, 07:42 AM
Loversama Loversama is offline
 
Join Date: Nov 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Notices on custom pages

Hello all,
I am having a few problems getting notices on other pages, I am using the articles plugin but I have transformed it into my main page, I am trying to inclide things from the forum onto the articles.php but its not working.

I have added {vb:raw notices} into the template and I have even added $templater->register('notices', $notices); into the script, it already has navbar included, so I am not sure why its not calling it, am I missing something?

thanks in advanced.
Reply With Quote
  #2  
Old 06-28-2011, 12:14 PM
Loversama Loversama is offline
 
Join Date: Nov 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

or 50 people could view the tread and everyone could ignore it..
Reply With Quote
  #3  
Old 06-28-2011, 12:55 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loversama View Post
...and I have even added $templater->register('notices', $notices); into the script,
Where are you adding that? It's hard (for me anyway) to get what's happening without seeing more of it. The only thing I can think of off hand is that maybe you need to add global $notices; before you register it.
Reply With Quote
  #4  
Old 06-28-2011, 01:10 PM
Loversama Loversama is offline
 
Join Date: Nov 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<?php
error_reporting
(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT''articles');
$phrasegroups = array('forumdisplay');
$specialtemplates = array('navbar'
);
$globaltemplates = array(
    
'af_articlebit',
    
'af_articles',
    
'af_catbit',
    
'af_center',
    
'af_right',
    
'af_left',
    
'shell_blank',
    
'af_articlesmallbit',
    
'af_authorsmallbit',
    
'af_letter',
    );
$actiontemplates = array(
);

require_once(
'./global.php');

require_once(
DIR '/includes/functions.php');
require_once(
DIR '/includes/functions_forumdisplay.php');
$custom_global_css_reference ',vbcms.css,postbit-lite.css,postlist.css,lightbox.css';
if (
$vbulletin->options['af_parsebbcode'])
{
    require_once(
DIR '/includes/class_bbcode.php'); 
}
//require_once(DIR . '/includes/functions_forumlist.php');

/*$navbits = construct_navbits(array(
        'articles.php' . $vbulletin->session->vars['sessionurl_q'] => $vbphrase[articles],
        '' => construct_phrase('Error')
    ));
    eval('$navbar = "' . fetch_template('navbar') . '";');*/

    
$sort = array($sortfield => 'selected="selected"');
    
$selectedletter =& $ltr;
    
$ltr $vbulletin->input->clean_gpc('r''ltr'TYPE_NOHTML);
    if (
$ltr != '')
    {
        if (
$ltr == '#')
        {
            
$condition .= " AND thread.title NOT REGEXP(\"^[a-zA-Z]\")";
        }
        else
        {
            
$ltr chr(intval(ord($ltr)));
            
$condition .= " AND thread.title LIKE(\"" $db->escape_string_like($ltr) . "%\")";
        }
    }
    if (
$vbulletin->options['af_letterbit'])
    {
        
$currentletter '#';
        
$linkletter urlencode('#');
        
$show['selectedletter'] = $selectedletter == '#' true false;
        
$templater vB_Template::create('af_letter');
            
$templater->register('currentletter'$currentletter);
            
$templater->register('linkletter'$linkletter);
            
$templater->register('i'$i);
            
$templater->register('c'$c);
            
$templater->register('perpage'$perpage);
            
$templater->register('sortorder'$sortorder);
            
$templater->register('sortfield'$sortfield);
            
$templater->register('usergrouplink'$usergrouplink);
            
$templater->register('ltrurl'$ltrurl);
        
$letterbits .= $templater->render();
        
// now do alpha-characters
        
for ($i=65$i 91$i++)
        {
            
$currentletter chr($i);
            
$linkletter =& $currentletter;
            
$show['selectedletter'] = $selectedletter == $currentletter true false;
            
$templater vB_Template::create('af_letter');
                
$templater->register('currentletter'$currentletter);
                
$templater->register('linkletter'$linkletter);
                
$templater->register('i'$i);
                
$templater->register('c'$c);
                
$templater->register('perpage'$perpage);
                
$templater->register('sortorder'$sortorder);
                
$templater->register('sortfield'$sortfield);
                
$templater->register('usergrouplink'$usergrouplink);
                
$templater->register('ltrurl'$ltrurl);
            
$letterbits .= $templater->render();
        }
    }
    
$threadscount $db->query_first_slave("
        SELECT COUNT(*) AS threads, SUM(IF(thread.lastpost > 
$lastread AND open <> 10, 1, 0)) AS newthread
        FROM " 
TABLE_PREFIX "thread AS thread
        WHERE forumid IN( 
$forumids )
        
$visiblethreads $authorids $condition
    "
);
    
$totalthreads $threadscount['threads'];
    if (
$totalthreads == 0)
    {
        
$a_breaking .= $vbphrase['no_articles_found'];
        if (
$ltr || $c)
        {
            
$a_breaking .= construct_phrase($vbphrase['try_expanding_article_search'], 'articles.php'.($c "?c=$c""));
        }
    }
    
$newthreads $threadscount['newthread'];
    
sanitize_pageresults($totalthreads$pagenumber$perpage200$vbulletin->options['maxthreads']);
    
$limitlower = ($pagenumber 1) * $perpage;
    
$limitupper = ($pagenumber) * $perpage;

    if (
$limitupper $totalthreads)
    {
        
$limitupper $totalthreads;
        if (
$limitlower $totalthreads)
        {
            
$limitlower = ($totalthreads $perpage) - 1;
        }
    }
    if (
$limitlower 0)
    {
        
$limitlower 0;
    }
    if (
is_array($postforums) && !empty($postforums))
    {
        
$f = array($c => 'selected="selected"');
        foreach (
$postforums as $pforumid => $pforumtitle)
        {
            if (
$pforumid && $pforumtitle)
            {
                
$depth count(explode(","$vbulletin->forumcache[$pforumid][parentlist])) - 3;
                
$i 0;
                
$spacing '';
                while (
$i $depth)
                {
                    
$spacing .= " - ";
                    
$i++;
                }
                
$f_options .= '<option value="'.$pforumid.'" '.$f[$pforumid].'>'.$spacing $pforumtitle.'</option>';
            }
        }
    }
    elseif (
$foruminfo['allowposting'] && ($forumperms $vbulletin->bf_ugp_forumpermissions['canpostnew']))
    {
        
$f_options .= '<option value="'.$forumid.'" '.$f[$forumid].'>'.$spacing $foruminfo[title_clean].'</option>';
    }
    
$pagenav construct_page_nav($pagenumber$perpage$totalthreads'articles.php?' $vbulletin->session->vars['sessionurl'], ""
    
. (!empty($c) ? "&amp;c=$c'')
    . (!empty(
$vbulletin->GPC['perpage']) ? "&amp;pp=$perpage'')
    . (!empty(
$vbulletin->GPC['prefixid']) ? "&amp;prefixid=" $vbulletin->GPC['prefixid'] : '')
    . (!empty(
$vbulletin->GPC['sortfield']) ? "&amp;sort=$sortfield"")
    . (!empty(
$vbulletin->GPC['sortorder']) ? "&amp;order=" $vbulletin->GPC['sortorder'] : '')
    . (!empty(
$vbulletin->GPC['daysprune']) ? "&amp;daysprune=$daysprune'')
    . (!empty(
$vbulletin->GPC['aid']) ? "&amp;aid=$authorid'')
    . (!empty(
$ltr) ? "&amp;ltr=".urlencode($ltr) : '')
    );
    
$mostreadlink 'articles.php?' $vbulletin->session->vars['sessionurl']
    . (!empty(
$c) ? "&amp;c=$c'')
    . (!empty(
$vbulletin->GPC['perpage']) ? "&amp;pp=$perpage'')
    . (!empty(
$vbulletin->GPC['prefixid']) ? "&amp;prefixid=" $vbulletin->GPC['prefixid'] : '')
    . 
"&amp;sort=views"
    
. (!empty($vbulletin->GPC['sortorder']) ? "&amp;order=" $vbulletin->GPC['sortorder'] : '')
    . (!empty(
$vbulletin->GPC['daysprune']) ? "&amp;daysprune=$daysprune'');
    
$mostcommentedlink 'articles.php?' $vbulletin->session->vars['sessionurl']
    . (!empty(
$c) ? "&amp;c=$c'')
    . (!empty(
$vbulletin->GPC['perpage']) ? "&amp;pp=$perpage'')
    . (!empty(
$vbulletin->GPC['prefixid']) ? "&amp;prefixid=" $vbulletin->GPC['prefixid'] : '')
    . 
"&amp;sort=replycount"
    
. (!empty($vbulletin->GPC['sortorder']) ? "&amp;order=" $vbulletin->GPC['sortorder'] : '')
    . (!empty(
$vbulletin->GPC['daysprune']) ? "&amp;daysprune=$daysprune'');
    if (
$vbulletin->options['af_widththumb'])
    {
        
$thumbdivstyle "text-align: center; width: ".$vbulletin->options['attachthumbssize']."px;";
    }
    
$threads $db->query_read("
        SELECT thread.*,thread.title AS threadtitle,thread.forumid AS forumid, post.dateline AS postdateline, post.pagetext AS preview, MIN(attachment.attachmentid) AS attachmentid, fd.extension AS extension, thread.prefixid 
        FROM " 
TABLE_PREFIX "thread AS thread
        LEFT JOIN " 
TABLE_PREFIX "post AS post
            ON (post.postid = thread.firstpostid)
        LEFT JOIN " 
TABLE_PREFIX "attachment AS attachment
            ON (attachment.contentid = thread.firstpostid AND attachment.contenttypeid = 1) 
        LEFT JOIN " 
TABLE_PREFIX "filedata AS fd ON (fd.filedataid = attachment.filedataid AND fd.extension IN('jpg', 'gif', 'png', 'jpeg', 'bmp'))
        WHERE thread.forumid IN (
$forumids)
        
$visiblethreads $authorids $condition
        GROUP BY thread.threadid
        ORDER BY 
$sqlsortfield $sqlsortorder
        " 
. (!empty($sqlsortfield2) ? ", $sqlsortfield2 $sqlsortorder'') . "
        LIMIT 
$limitlower$perpage
    "
);
    
$show['threads'] = true;
    
$row 0;
    
$foruminfo['allowicons'] = 1;
    while(
$thread $db->fetch_array($threads))
    {
        if (
$thread['prefixid'])
        {
            
$thread['prefix_rich'] = $vbphrase["prefix_$thread[prefixid]_title_rich"];
        }
        
$thread['pagetext'] = $thread['preview'];
        
$thread['altimage'] = false;
        
$row++;
        
$post[date] = vbdate($vbulletin->options['dateformat'],$thread['postdateline']) . " " vbdate($vbulletin->options['timeformat'],$thread['postdateline']);
        if (!(
$thread['attachmentid'] && $thread['extension']) && $vbulletin->options['af_altthumb'] && !$vbulletin->options[af_parsebbcode])
        {
            
            
$thread['images'] = preg_match_all('#\[img\]\s*(https?://([^*\r\n]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'$thread['preview'], $thread['matches']);
            if (
$thread['images'] !== false)
            {
                
$thread['altimage'] = true;
            }
            
$thread['image'] = $thread['matches'][1][0];
        }
        
        if (!
$vbulletin->options['af_parsebbcode'])
        {
            if (
$vbulletin->options['af_threadpreview'] == -1)
            {
                
$vbulletin->options['af_threadpreview'] = $vbulletin->options['threadpreview'];
            }
            if (
$vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'])
            {
                
$thisforuminfo['forumread'] = $vbulletin->forumcache["$thread[forumid]"]['forumread'];
                
$lastread max($thisforuminfo['forumread'], TIMENOW - ($vbulletin->options['markinglimit'] * 86400));
            }
            else
            {
                
$thisbbforumview intval(fetch_bbarray_cookie('forum_view'$thread['forumid']));
                
$lastread max($thisbbforumview$vbulletin->userinfo['lastvisit']);
            }
            
$thread['preview'] = preg_replace(array("/\[attach\](\d*)\[\/attach]/i""/\[attach=(left|right)\](\d*)\[\/attach]/i"), ""$thread['preview']);
            
$thread['preview'] = preg_replace('#\[img\]\s*(https?://([^*\r\n]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'''$thread['preview']);
            
$thread['preview'] = str_replace('  ',' '$thread['preview']);
            
//$thread['preview'] = str_replace(array("\n", "\r"), " ", trim($thread['preview'])); 
            
$thread process_thread_array($thread$lastread$foruminfo['allowicons']);
            if (
strlen($thread['preview'])>$vbulletin->options['af_threadpreview'])
            {
                
$thread['preview'] = trim(substr($thread['preview'], 0$vbulletin->options['af_threadpreview']))."...";
            }
            
//$thread['preview'] = nl2br($thread['preview']);
        
}
        else
        {
            
$bbcode_parser = new vB_BbCodeParser($vbulletinfetch_tag_list());
            if (
$vbulletin->options['af_threadpreview'] > -&& strlen($thread['pagetext'])>$vbulletin->options['af_threadpreview'])
            {
                
$thread['pagetext'] = substr($thread['pagetext'], 0$vbulletin->options['af_threadpreview'])."...";
            }
            elseif (
strlen($thread['pagetext'])>$vbulletin->options['threadpreview'])
            {
                
$thread['pagetext'] = substr($thread['pagetext'], 0$vbulletin->options['threadpreview'])."...";
            }
            
$thread['preview'] = $bbcode_parser->parse($thread['pagetext']);
        }
        
$templater vB_Template::create('af_articlebit');
            
$templater->register('post'$post);
            
$templater->register('thread'$thread);
            
$templater->register('row'$row);
            
$templater->register('foruminfo'$foruminfo);
            
$templater->register('thumbdivstyle'$thumbdivstyle);
        
$a_breaking .= $templater->render();
    }
    if (
$totalthreads || $row 0)
    {
        
$limitlower++;
    }
    
$daysprunesel iif($daysprune == -1'all'$daysprune);
    
$daysprunesel = array($daysprunesel => 'selected="selected"');
    if (
in_array('mostread'$af_modules))
    {
        
$row 0;
        
$af_mrpp $vbulletin->options[af_mrpp];
        
$threads $db->query_read("
            SELECT thread.threadid,thread.title AS threadtitle
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "post AS post
                ON (post.postid = thread.firstpostid)
            WHERE thread.forumid IN (
$forumids)
            
$visiblethreads $authorids $condition
            ORDER BY views DESC
            LIMIT 0, 
$af_mrpp");
        while(
$thread $db->fetch_array($threads))
        {
            
$row++;
            
$thread process_thread_array($thread$lastread$foruminfo['allowicons']);
            
$thread[threadtitle] = substr($thread[threadtitle], 0$vbulletin->options[af_maxtitle]);
            
$templater vB_Template::create('af_articlesmallbit');
            
$templater->register('row'$row);
            
$templater->register('thread'$thread);
            
$templater->register('foruminfo'$foruminfo);
            
$a_most_read .= $templater->render();
        }
    }
    if (
in_array('mostcommented'$af_modules))
    {
        
$row 0;
        
$af_mcpp $vbulletin->options[af_mcpp];
        
$threads $db->query_read("
            SELECT thread.threadid,thread.title AS threadtitle
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "post AS post
                ON (post.postid = thread.firstpostid)
            WHERE thread.forumid IN (
$forumids)
            
$visiblethreads $authorids $condition
            ORDER BY replycount DESC
            LIMIT 0, 
$af_mcpp");
        while(
$thread $db->fetch_array($threads))
        {
            
$row++;
            
$thread process_thread_array($thread$lastread$foruminfo['allowicons']);
            
$thread[threadtitle] = substr($thread[threadtitle], 0$vbulletin->options[af_maxtitle]);
            
$templater vB_Template::create('af_articlesmallbit');
            
$templater->register('row'$row);
            
$templater->register('thread'$thread);
            
$templater->register('foruminfo'$foruminfo);
            
$a_most_commented .= $templater->render();
        }
    }
    if (
in_array('topauthors'$af_modules))
    {
        
$af_tapp $vbulletin->options[af_tapp];
        
$threads $db->query_read("
            SELECT COUNT(*) AS threads, postusername AS username, postuserid AS userid
            FROM " 
TABLE_PREFIX "thread AS thread
            WHERE thread.forumid IN (
$forumids)
            
$visiblethreads $condition
            GROUP BY postuserid
            ORDER BY threads DESC
            LIMIT 0, 
$af_tapp");
        while(
$thread $db->fetch_array($threads))
        {
            
$row++;
            
$thread[username] = substr($thread[username], 025);
            
$templater vB_Template::create('af_authorsmallbit');
            
$templater->register('row'$row);
            
$templater->register('thread'$thread);
            
$templater->register('foruminfo'$foruminfo);
            
$a_top_authors .= $templater->render();
        }
    }
    
$templater vB_Template::create("af_left");
        
$templater->register('foruminfo'$foruminfo);
        
$templater->register('a_cats'$a_cats);
        
$templater->register('af_search'$af_search);
        
$templater->register('gobutton'$gobutton);
        
$templater->register('c'$c);
        
$templater->register('sort'$sort);
        
$templater->register('order'$order);
        
$templater->register('daysprunesel'$daysprunesel);
        
$templater->register('limitlower'$limitlower);
        
$templater->register('limitupper'$limitupper);
        
$templater->register('totalthreads'$totalthreads);
        
$templater->register('af_displayoptions'$af_displayoptions);
        
$templater->register('f_options'$f_options);
        
$templater->register('af_modules'$af_modules);
        
$templater->register('c_count'$c_count);
        
$templater->register('prefix_options'$prefix_options);
    
$a_left $templater->render();
    
$templater vB_Template::create("af_center");
        
$templater->register('foruminfo'$foruminfo);
        
$templater->register('a_breaking'$a_breaking);
        
$templater->register('pagenav'$pagenav);
    
$a_center $templater->render();
    
$templater vB_Template::create("af_right");
        
$templater->register('foruminfo'$foruminfo);
        
$templater->register('a_most_read'$a_most_read);
        
$templater->register('a_most_commented'$a_most_commented);
        
$templater->register('mostreadlink'$mostreadlink);
        
$templater->register('mostcommentedlink'$mostcommentedlink);
        
$templater->register('a_top_authors'$a_top_authors);
    
$a_right $templater->render();
    
$templater vB_Template::create("af_articles");
        
$templater->register('a_left'$a_left);
        
$templater->register('a_center'$a_center);
        
$templater->register('a_right'$a_right);
        
$templater->register('letterbits'$letterbits);
        
$templater->register('a_most_read'$a_most_read);
        
$templater->register('a_most_commented'$a_most_commented);
        
$templater->register('a_top_authors'$a_top_authors);
        
$templater->register('foruminfo'$foruminfo);
        
$templater->register('title'$title);
        
$templater->register('sort'$sort);
        
$templater->register('ltr'$ltr);
        
$templater->register('perpage'$perpage);
        
$templater->register('pagenumber'$page);
        
$templater->register('order'$order);
        
$templater->register('daysprunesel'$daysprunesel);
        
$templater->register('totalthreads'$totalthreads);
        
$templater->register('prefix_options'$prefix_options);
        
$templater->register('pagenav'$pagenav);
    
$html $templater->render();
    if (
$vbulletin->options['storecssasfile'])
    {
        
$vbcsspath 'clientscript/vbulletin_css/style' str_pad($style['styleid'], 5'0'STR_PAD_LEFT) . $vbulletin->stylevars['textdirection']['string'][0] . '/';
    }
    else
    {
        
// textdirection var added to prevent cache if admin modified language text_direction. See bug #32640
        
$vbcsspath 'css.php?styleid=' $style['styleid'] . '&langid=' LANGUAGEID '&d=' $style['dateline'] . '&td=' $vbulletin->stylevars['textdirection']['string'] . '&sheet=';
    }
    
$headinclude .= '<link rel="stylesheet" type="text/css" href="css.php?styleid='.$vbulletin->userinfo['styleid'].'&amp;langid='.$vbulletin->userinfo['langid'].'&amp;d='.$vbulletin->userinfo['dateline'].'&amp;td='.$vbulletin->userinfo['td'].'&amp;sheet=vbcms.css,postbit-lite.css,postlist.css,lightbox.css" />';
    
$navbits = array();
    if (!
$c)
    {
        
$c $vbulletin->options['af_forumids'];
    }
    
/*if ($c)
    {*/
        
$cforuminfo $vbulletin->forumcache["$c"];
        
$cparentlist array_reverse(explode(','substr($cforuminfo['parentlist'], 0, -3)));
        foreach (
$cparentlist AS $cforumID)
        {
            if (
$vbulletin->options['af_forumids'] == $cforumID)
            {
                
$navbits['articles.php' $vbulletin->session->vars['sessionurl_q']] = $vbphrase['articles'];
                continue;
            }
            if (
$c == $cforumID)
            {
                continue;
            }
            
$cforumTitle $vbulletin->forumcache["$cforumID"]['title'];
            
//$navbits[fetch_seo_url('articles', array('cforumid' => $cforumID, 'title' => $cforumTitle))] = $cforumTitle;
            
if (in_array($vbulletin->options['af_forumids'], explode(','$vbulletin->forumcache["$cforumID"]['parentlist'])))
            {
                
$navbits['articles.php?' $vbulletin->session->vars['sessionurl'] . 'c=' $cforumID] = $cforumTitle;
            }
            else
            {
//forumdisplay.php
                
$s fetch_seo_url('forum'$vbulletin->forumcache["$cforumID"]);
                
$navbits["$s"] = $cforumTitle;
            }
        }
        
//$navbits[''] = construct_phrase($title);
        
if ($c != $vbulletin->options['af_forumids'])
        {
            
$navbits[''] = $thread['prefix_rich'] . ' ' $title;
        }
    
/*}
    else
    {
        $navbits[''] = construct_phrase($vbphrase['articles']);
    }*/
    
$headinclude .= "\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css.php?d=" TIMENOW "&amp;td=" vB_Template_Runtime::fetchStyleVar('textdirection') . "&amp;styleid=" $vbulletin->userinfo['styleid'] . "&amp;sheet=memberlist.css\" />";
    
$navbits construct_navbits($navbits);

    
    if (
$vbulletin->options['storecssasfile'])
    {
        
$headinclude .= "\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css.php?d=" TIMENOW "&amp;td=" vB_Template_Runtime::fetchStyleVar('textdirection') . "&amp;styleid=" $vbulletin->userinfo['styleid'] . "&amp;sheet=forumdisplay-rollup.css\" />";
    }
    else
    {
        
$headinclude .= "\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css.php?d=" TIMENOW "&amp;td=" vB_Template_Runtime::fetchStyleVar('textdirection') . "&amp;styleid=" $vbulletin->userinfo['styleid'] . "&amp;sheet=toolsmenu.css,forumbits.css,forumdisplay.css,threadlist.css,options.css\" />";
    }
    
$templater vB_Template::create('shell_blank');
        
$templater->register_page_templates();
        
$templater->register('navbar'$navbar);
        
$templater->register('headinclude'$headinclude);
        
$templater->register('pagetitle'"SinfulShadows Gaming Community");
        
$templater->register('html'$html);
$templater->register('sidebarext'$sidebarext);
$templater->register('sidebaropen'$sidebaropen);
    
print_output($templater->render());
}

?>
I added Notices on the bottom, I have also tried to include Everywhere sidebar and wasn't able to, my website is www.SinfulShadows.com I am using the Articles plugin, and and trying to include things like notices and other things (as I am using the articles.php as the homepage for my website.

P.S the script was to big to quote al, so I cut some out..
Reply With Quote
  #5  
Old 06-28-2011, 01:14 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loversama View Post
P.S the script was to big to quote al, so I cut some out..
You COULD attach it as a file
Reply With Quote
  #6  
Old 06-28-2011, 01:34 PM
Loversama Loversama is offline
 
Join Date: Nov 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tada!

The calls for them are obviously:

{vb:raw sidebaropen}
{vb:raw sidebarext_temp}
{vb:raw notices}

but it seems they are just not being included for some reason, unable to figure it out..
Attached Files
File Type: php articles.php (25.9 KB, 2 views)
Reply With Quote
  #7  
Old 06-28-2011, 01:42 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't see why it shouldn't work (which doesn't mean a whole lot, unfortunately).

I see that sidebaropen and sidebar ext are included in the af_left template, do those work or are those part of the problem? I assumed you were trying to add to the shell_blank template?

BTW I know you were responding to the post above about attaching the file, but it looks like there's a copyright notice at the top so you should probably delete that attachment.
Reply With Quote
  #8  
Old 06-28-2011, 01:51 PM
Loversama Loversama is offline
 
Join Date: Nov 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, I noticed that they are present in the left template thingy, I dont want to include them in a particular template, just over all..
Reply With Quote
  #9  
Old 06-28-2011, 01:55 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I was just wondering because if the same variables are showing in other templates then they really should show up in any of them.
Reply With Quote
  #10  
Old 06-28-2011, 02:11 PM
Loversama Loversama is offline
 
Join Date: Nov 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Well I was just wondering because if the same variables are showing in other templates then they really should show up in any of them.
Thats what I thought..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:14 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.05189 seconds
  • Memory Usage 2,562KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete