vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Portal Software - SmEdD's Portal (https://vborg.vbsupport.ru/showthread.php?t=123501)

MjrGaelic 09-20-2007 03:47 PM

I'm typically a lurker and don't post much. but I had to say thanks for this script. Since phpBB became crap I lost fetchall which I LOVED.

This script is exactly what I was looking for giving me the flexibility to bring news to the portal but otherwise do what I want with the portal.

I've only been working on my new site (re-vamp) for a couple days and the only thing I'm lost on is adding additional content pages. Do I just create new templates and then call the templates out of the index? (sorry, I'm new to working on the guts in VB).

Thank you for this script and the time you vested into it.

dooch 09-20-2007 05:37 PM

rename the index.php and alter the templates it calls.

so yes, create new templates and creatre a new index and call the new templates from the new php file.

This mod is a good mod for creating custom pages.

Look at the way the index pulls templates and copy the way it does for new pages.

HTMMinion 09-21-2007 01:17 AM

Thanks dooch, you're right it does make adding content pages a snap. :)

Thanks for the great portal SmEdD ! :up:

MjrGaelic 09-22-2007 05:40 AM

Yea, that part was no problem. But now I have a bunch of individual pages where I'd rather just have "index.php?page=pagename" which would call to the template file.

Brandje 12-08-2007 12:17 PM

Great mod, thanx alot, I do have a few questions tho:

-The news block does not show up, am i missing somthing? I did add the forum id's, ran the cron, but still nothing.

-Also I would like to know how to create a latest image block as seen on the sample sites.

Thanks in advance

Goomzee 05-08-2008 05:08 AM

this Portal is work with 3.7x

|Jordan| 06-16-2008 01:20 AM

Doesn't completely work in 3.7.1 PL1 for me. The news displays, but BBCode doesn't parse (eg. links).

D-Manthing 08-09-2009 01:42 AM

Quote:

Originally Posted by MjrGaelic (Post 1344384)
Yea, that part was no problem. But now I have a bunch of individual pages where I'd rather just have "index.php?page=pagename" which would call to the template file.



edit index.php - replace:

PHP Code:

eval('print_output("' fetch_template('smedd_index') . '");');
?> 

with

PHP Code:

if ($_REQUEST['do'] == 'page1')
{
    eval(
'print_output("' fetch_template('page1') . '");');
}
else
{
    eval(
'print_output("' fetch_template('smedd_index') . '");');
}
?> 

in admin cpanel create new template called page1 and put this as code:

PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    
$headinclude
    
<title>$vboptions[hometitle]</title>
</
head>
<
body>
$header
$navbar
<br />

<
table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
  <
tr valign="top">
    <
td>$left_side</td>
<
td>&nbsp;&nbsp;</td>

    <
td width="100%">


<
table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
  <
tr>
    <
td align="center" class="tcat">



<
strong>TITLE GOES HERE</strong></td>



  </
tr>
  <
tr>
    <
td class="alt1">


        
INSERT YOUR CODE HERE



    
</td>
  </
tr>
</
table>

<
br />

</
td>
    <
td>&nbsp;&nbsp;</td>

    
  </
tr>
</
table>

$footer
</body>
</
html

finally add link to this page in sidebar template (left or right):

PHP Code:

<a href="?do=page1">&nbsp;&raquo;LINK TITLE</a><br /> 



All times are GMT. The time now is 06:31 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.01193 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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