Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-15-2011, 01:00 PM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default viewing page

After creating a custom page, which works fine i would like to know whos "viewing it"

Im assuming the "whos currently viewing this thread" box would do the trick if i can add it to page if possible.

I have tried the following but to no avail

PHP Code:
<div id="thread_info" class="thread_info block">
    <
vb:if condition="$show['activeusers']">
    <
h4 class="threadinfohead blockhead">Currently In The Match Live Stream Area</h4>
    <
div id="thread_onlineusers" class="thread_info_block blockbody formcontrols">
        <
div class="inner_block">
            <
h5>Currently In The Match Live Stream Area</h5>
            <
div>
                <
p>{vb:rawphrase users_currently_browsing_x_y_z, {vb:raw totalonline}, {vb:raw numberregistered}, {vb:raw numberguest}}</p>
                <
ol class="commalist">
                    {
vb:raw activeusers}
                </
ol>
            </
div>
        </
div>
    </
div>
    </
vb:if> 

You can see the page ,............http://www.tabletennistalk.co.uk/forum/ttt-stream.php

username: msn
password: pass123

any help would be appreciated on this
Reply With Quote
  #2  
Old 02-19-2011, 06:36 AM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Id really like some help on this guys if poss ........ struggling
Reply With Quote
  #3  
Old 02-19-2011, 05:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is for vB3, but you should be able to follow it and get it to work for vB4 - https://vborg.vbsupport.ru/showthread.php?t=187388
Reply With Quote
  #4  
Old 02-20-2011, 08:49 PM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your a star as ever "flowers on the way"
Reply With Quote
  #5  
Old 02-24-2011, 12:28 PM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well still cant get this to work grrrrrrrrrrrrrrrrrrrrrrrrrrrr

Objective: whos viewing the custom page box at the bottom like "whos viewing thread" (custom page is within forum)

Help if poss
Reply With Quote
  #6  
Old 02-24-2011, 01:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post *exactly* waht you have done so far. Please put your page and template code in code tags so it is easier to read. And then post a link to the page so we can see the results.
Reply With Quote
  #7  
Old 02-24-2011, 02:16 PM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okey kokey

The custom page is located as follows: http://www.tabletennistalk.co.uk/forum/ttt-stream.php

The php coding in the page is:
PHP Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('THIS_SCRIPT''streaming');
define('CSRF_PROTECTION'true);  
// change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array('ttt-stream',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbits construct_navbits(array('' => 'table tennis talk ittf-tv'));
$navbar render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle 'Table Tennis Talk Streaming';

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater vB_Template::create('ttt-stream');
$templater->register_page_templates();
$templater->register('navbar'$navbar);
$templater->register('pagetitle'$pagetitle);
print_output($templater->render());

?>


The template its calling : ttt-steam ..............
HTML Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
<style type="text/css"> 
		.sharing-cl{
		  overflow:hidden;
		  margin:0;
		  padding:0;
		  list-style:none;
		}
                 .sexy{
		  top:128px;
		  right:50px;
                  position:absolute;
                  z-index:200;
		}
		.sharing-cl a{
		  overflow:hidden;
		  width:75px;
		  height:30px;
		  float:left;
		  margin-right:5px;
		  text-indent:-200px;
		  background:url("http://www.tabletennistalk.co.uk/share-sprite.png") no-repeat;
		}
		a.sh-su{background-position:-210px -40px;}
		a.sh-feed{background-position:-70px -40px;}
		a.sh-tweet{background-position:-140px -40px;}
		a.sh-mail{background-position:0 -40px;}
		a.sh-digg{background-position:-280px -40px;}
		a.sh-face{
		  margin-right:0;
		  background-position:-350px -40px;
		}
		a.sh-mail:hover{background-position:0 1px;}
		a.sh-feed:hover{background-position:-70px 1px;}
		a.sh-tweet:hover{background-position:-140px 1px;}
		a.sh-su:hover{background-position:-210px 1px;}
		.sh-digg:hover{background-position:-280px 1px;}
		a.sh-face:hover{
		  background-position:-350px 1px;
		}
		 
		#text{
		  margin-top:3em;
		  font-weight:bold;
		  font-family:helvetica,arial,sans-serif;
		}
		#text a{
		  text-indent:0;
		  height:auto;
		  text-align:center;
		  font-size:11px;
		  padding-top:35px;
		  color:#999;
		  text-decoration:none;
		}
		  </style> 
  </head>
  <body>
    <div class="sexy">               
<ul class="sharing-cl"id="text">
	<a class="sh-mail" title="E-mail Us" href="mailto:dave@tabletennistalk.co.uk"></a> 
	<a class="sh-feed" title="RSS Feed" href="http://www.tabletennistalk.co.uk/forum/external.php?type=RSS2"target=_blank></a>
	<a class="sh-tweet" title="Twitter" href="http://www.twitter.com/TableTennisTalk"target=_blank></a> 
	<a class="sh-face" title="Facebook" href="http://www.facebook.com/profile.php?id=1788101807"target=_blank></a> 
	<a class="sh-su" title="Stumbleupon" href="http://www.stumbleupon.com/stumbler/tabletennistalk/"target=_blank></a>
	<a class="sh-digg" title="Digg" href="http://digg.com/tabletennist"target=_blank></a>
</ul>
</div>
    {vb:raw header}
    
    {vb:raw navbar}

<vb:if condition="$show['member']">


    <h2 class="blockhead">Table Tennis Talk Livestream | ITTF TV Plus Other Matches</h2>

<div class="blockbody">
      <div class="blockrow">
   
		<div class="cms_widget_content_restore_widget_content">
<center>			
<font face="century gothic" size="2"><b>
Welcome to the ITTF TV Channel area where you can see every match the ITTF load into the site directly. Easy and effective with full view available also. All matches are in flash and loaded from the ITTF, with live matches being shown too. This is a member service only. You will see the list on the left of the control panel. 
</b><br /></font>
<font color="#ff0000"><b>Feel free to use the chat box below whilst viewing matches</b></font>
</center>			
<br />
<center>
<iframe src="http://cdn.laola1.tv/ittf/iframe/frame_1.html" name="frame1" scrolling="auto" frameborder="no" align="center" height = "410px" width = "902px">
</iframe>
<br /><br />
<font color="#000000" size="1"><b><i>Full list of scheduled events and livestream on Table Tennis Talk <a href="/forum/content.php?443-ITTF-Events"target=_blank"><font color="#ff0000">HERE</a></i></b></font>
<br /><br />
<font color="#000000" size="2"><b><i>German Open 2011 Live Stream Match Schedule PDF ........<a href="http://www.ittf.com/Protour_new/pdf/2011GER/ScheduleGER.pdf"target=_blank"><font color="#ff0000">HERE</a></i></b></font>
</center>

{vb:raw mgc_cb_evo_var}
</vb:if>

{vb:raw footer}
</body>
</html>

Id like to achieve the attached pic below with whoever is viewing the page in the box as below (if it is achievable)

It is member only but
username: msn
password: pass123
Attached Images
File Type: jpg Untitled-1.jpg (31.9 KB, 0 views)
Reply With Quote
  #8  
Old 02-24-2011, 02:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You didn't follow any of the instructions from the articles I linked you to. You said you can't get it to work - so post what you tried and then we can see what is going on.
Reply With Quote
  #9  
Old 02-26-2011, 10:13 PM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried all the links and other things but sadly nothing

No worries

Thanks for all the help
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:06 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.04253 seconds
  • Memory Usage 2,298KB
  • 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_html
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete