vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - [DBTech] User Status & Moods v1 (vB3) (https://vborg.vbsupport.ru/showthread.php?t=243753)

DragonByte Tech 10-10-2010 01:22 PM

Quote:

Originally Posted by Tyran1 (Post 2108704)
How do I get the input field in an own templates?

In German:

Wie bekomme ich das Eingabefeld in ein eigenes Templates?

It already is in its own template - dbtech_status_postbit / dbtech_status_memberinfo.

- David

Tyran1 10-10-2010 04:21 PM

Quote:

Originally Posted by DragonByte Tech (Post 2108707)
It already is in its own template - dbtech_status_postbit / dbtech_status_memberinfo.

- David

Yes, i have a new Template "status", there I would like to have it.

The Template Code from dbtech_status_postbit / dbtech_status_memberinfo not work in status.

Alfa1 10-10-2010 09:25 PM

This isn't working for me. Not because there is some bug, but because I can not allow usergroups to use this. I can only disallow usergroups to use this.
This means that you can not use this hack for additional usergroups. I use additional usergroups. Previously I used vbstatus to give them status fucntionality.

Could you consider to add a function to specify which usergroups are allowed to use the status function?

onealien 10-10-2010 09:29 PM

i already have a mood mod that i like running...can this be just used for the 'short message'?

or maybe there is smth else better for that part only?

thanks....

DragonByte Tech 10-10-2010 11:59 PM

Quote:

Originally Posted by Tyran1 (Post 2108781)
Yes, i have a new Template "status", there I would like to have it.

The Template Code from dbtech_status_postbit / dbtech_status_memberinfo not work in status.

Where are you outputting the status template?

Quote:

Originally Posted by Alfa1 (Post 2108871)
This isn't working for me. Not because there is some bug, but because I can not allow usergroups to use this. I can only disallow usergroups to use this.
This means that you can not use this hack for additional usergroups. I use additional usergroups. Previously I used vbstatus to give them status fucntionality.

Could you consider to add a function to specify which usergroups are allowed to use the status function?

I'll consider doing this for the next release.

Quote:

Originally Posted by onealien (Post 2108872)
i already have a mood mod that i like running...can this be just used for the 'short message'?

or maybe there is smth else better for that part only?

thanks....

I guess you could edit the input box and set a maxlength attribute to it.

- David

Tyran1 10-11-2010 04:55 PM

1 Attachment(s)
Quote:

Originally Posted by DragonByte Tech (Post 2108897)
Where are you outputting the status template?
- David

Edit.

Alfa1 10-11-2010 08:06 PM

Quote:

Originally Posted by DragonByte Tech (Post 2108897)
I'll consider doing this for the next release.

- David

Thanks David. I'll be waiting for the next release then.

DragonByte Tech 10-12-2010 11:04 AM

Quote:

Originally Posted by Tyran1 (Post 2109120)
This Code ist my Template "status"

PHP Code:

<p>$stylevar[htmldoctype]
<
title>$vboptions[bbtitle]</title>
$headinclude
$header
$navbar
</p>

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

<
table height="99%" width="100%" border="0" cellspacing="0" cellpadding="10" style="border-collapse: collapse" bordercolor="#111111">
  <
tr>
    <
td bgcolor="#B2B2FF" valign="middle">
    <
div align="center">
    </
div>
    </
td>
  </
tr>
  <
tbody id="collapseobj_forumhome_dbtechstatus" style="$vbcollapse[collapseobj_forumhome_dbtechstatus]">
    <
tr>
      <
td class="thead" colspan="2">
      <
table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
        <
tr>
          <
td width="50%">$vbphrase[dbtech_status_updates$vbphrase[dbtech_alle_statusmeldungen]</td>
          <
td width="50%">
          <
p align="right">
          <
img align="absMiddle" src="images/misc/stift.png" width="10" height="10">&nbsp;<a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]&quot;&gt;">$vbphrase[dbtech_statusmeldung_eintragen]</td
        </
tr>
      </
table>                      
      </
td>
    </
tr>
    <
tr>
      <
td class="alt1" width="100%">
      <
div class="smallfont">
        
$statuses
      
</div>
      </
td>
    </
tr>
</
table>
<
p></p>
<else />

<
div class="smallfont" align="center">
<
p style="font-size : 0.9em;">
<
img src="$stylevar[imgdir_misc]/nur_mitglieder.png" width="110" height="100" alt="Nur f?r Mitglieder" border="0" />
</
p>
</
div>
</if>
<
p>$footer</p>
</
body>
</
html

and this is my status.php:

PHP Code:

<?php 

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

// #################### DEFINE IMPORTANT CONSTANTS ####################### 
define('THIS_SCRIPT''dbtech_status'); // Dies sollte in den dateinamen der PHP datei ge?ndert werden. Wenn die Datei test.php heisst, sollte dort test stehen, be test2.php test2 usw usw
   
// ################### 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( 
    
'dbtech_status'
); 
//Hier schreibt ihr den Namen des Templates herein, welches auf der Seite angezeigt werden soll. ACHTUNG!! Gross und Klein-Schreibung beachten !

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

// #################### DEFINE IMPORTANT CONSTANTS ####################### 
define('THIS_SCRIPT''dbtech_status'); // Dies sollte in den dateinamen der PHP datei ge?ndert werden. Wenn die Datei test.php heisst, sollte dort test stehen, be test2.php test2 usw usw
define('CSRF_PROTECTION'true); 

// ######################### REQUIRE BACK-END ############################ 
require_once('./global.php'); 

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

$navbits = array(); 
$navbits[$parent] = 'Wer macht was?'

$navbits construct_navbits($navbits); 
eval(
'$navbar = "' fetch_template('navbar') . '";'); 
eval(
'print_output("' fetch_template('dbtech_status') . '");'); //Auch hier muss der Template in einwandfreier Gross un Klein SChreibung angegeben werden.

?>

see you:

https://vborg.vbsupport.ru/attachmen...1&d=1286819855

Have you taken a look at the status.js file?

- David

Tyran1 10-12-2010 03:41 PM

I don't know what I must change...

Tyran1 10-15-2010 06:20 PM

Can I help you?


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