vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

edytwinky 02-17-2010 10:05 PM

Quote:

Originally Posted by Gary King (Post 482619)
1) correct
2) replace $bbuserinfo[usergroupid] == 6 with $bbuserinfo[usergroupid] == 7 or $bbuserinfo[usergroupid] == 8 or $bbuserinfo[usergroupid] == 9
3) Replace eval('print_output("' . fetch_template('TEST') . '");'); with your PHP stuff.

In while file do I edit to allow the article to be viewed by only certain usergroups?

gcc.programmer 02-18-2010 04:49 AM

Hello:

I'm a vB noob, trying to create a static page w/ vB 3.8.4 I placed the test.php file in the forums folder, and created the template as a new template in the admincp, but am getting a "page not found" when I type in the url for the page. Obviously, I'm not doing something right!

Could someone offer me some advice?

Thanks.

cellarius 02-18-2010 08:16 AM

If you're getting a 404, you either did not upload the file, did not upload to the correct place, did not enter the correct URL or have a typo.

gcc.programmer 02-22-2010 05:25 PM

LOL!

The site I was working on is not my own, and though I thought I was in the right place, the owner has over 100 web properties, and at this point has lost track of many of them. Luckily, the servers he uses are managed. When I spoke with them, I found that the document root I was using, though it looked correct, was not in fact the correct one.

Thank you, Cellarius for taking the time to respond to me.

Abdullah SZ 03-01-2010 06:25 AM

Quote:

Now if you want to show who is browsing this new page of yours, just open up includes/functions_online.php and find:
PHP Code:

    case 'bugs.php':
        
$userinfo['activity'] = 'bugs';
        break; 

Below, add:
I can't find it.

Quote:

PHP Code:

    case 'test.php':
        
$userinfo['activity'] = 'test';
        break; 

(Be sure to change the values to your own!)
I know the first test is file name, what about the second one?

Digital Jedi 03-02-2010 04:33 PM

Quote:

Originally Posted by Abdullah SZ (Post 1994289)
I can't find it.

It's not in there anymore. Just look for the area with that same syntax structure. There are a bunch of blocks of code with that same format.

Quote:

I know the first test is file name, what about the second one?
Same name. In his tutorial all lowercase tests are the file name and all uppercase TESTs are the template name.

SoloX 03-20-2010 03:57 PM

Hi all ...

Which templates do I need to include to get a list of latest threads?
Similar to what we get by going to /forums/search.php?do=getnew

I am sure his has been asked before but I could not find an answer.

Thanks

Simon Lloyd 03-20-2010 06:33 PM

This question has nothing to do with this mod, however dump this in your new template:
HTML Code:

<!-- show latest active threads -->
<table>
<tbody>
<tr>
<td>

<b>Latest Active Threads</b>
</td>
</tr>
</tbody>
<tbody>
<tr>
 
<td width="100%">
 
<div>
<script type="text/javascript" src="http://www.YOURSITE.COM/external.php?forumids=49,71,11,78,12,14,13,79&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 15; x++)
{
document.writeln("<a href=\"http://www.YOURSITE.COM/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <br>(Posted By: "+threads[x].poster+")<br><br />");
}
//-->

</script></div>
 
</td>

Change YOURSITE.COM, the forum ID's and the 15 to as many threads as you would like to show!

Dan! 03-21-2010 08:53 AM

I've followed your guide and its worked pretty well, apart from I have the following error at the top of my page:

Quote:

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/class_core.php on line 2552
any ideas at all?

Simon Lloyd 03-21-2010 07:22 PM

Quote:

Originally Posted by Dan! (Post 2007457)
I've followed your guide and its worked pretty well, apart from I have the following error at the top of my page:



any ideas at all?

Are you trying to use it on VB4.0.x?, i imagine thats why you are getting the error.


All times are GMT. The time now is 04:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05527 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
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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