vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBadvanced Homepage (https://vborg.vbsupport.ru/showthread.php?t=59803)

Zachery 01-09-2004 07:35 PM

Quote:

Originally Posted by scottct1
Ok, for my users who are not logged in / not registered I would like to display a box ie "custom 1" which will display ads from google.

However if they are registered and logged in I do not want them to see these ads.

I know VB has usergroup options, how do I setit up so if the usergroup is the unregistered/not logged in to show custom1 but for any other usergroup to not display it?

Any TECHNICAL detail on how to do this would be great. (like actual code) :)

Thanks in advance.

just to unregistered users?

<if condition="$bbuserinfo[userid] == 0"> $custom1</if>

just find $custom1 in the main index template and replace it with that :)

(site note 1,000th post :) )

Blackbeard 01-09-2004 07:49 PM

iam having a small problem at moment, i use custome box 1 for a site nav box and now things are not playing, it is more than likely me, so i will post what i did and attach a screenie.

<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet] Site Navigation</b></span></td>
</tr>
<tr>
<td class="alt1"><span class="smallfont">

<li><a href="http://Myweb site/index.php">Home</a></li>
<li><a href="http://Myweb site/forums/index.php">Forum Home</a></li>
<li><a href="http://Myweb site/chat.html">Chatroom</a></li>

</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />

could someone help please

Acido 01-09-2004 08:17 PM

Can you tell me how avoid that the unknow Location legend apears in Online Users when a visitor is looking at index.php ?

Thanx in advance ;)

Dark Jim 01-09-2004 08:26 PM

Nice hack but I'm having a problem. I created a template index_project_Oz. But when I go to index.php?page=project_Oz I get the error:
Quote:

Fatal error: Call to undefined function: parse_bbcode() in /home/thegamin/public_html/beta/index.php on line 555
Also the news avatar is not working. I have a custom avatar (custom avatars are stored as files, not in the database) and it's not showing because the url is http://beta.thegaminguniverse.com/fo...ine=1070663498. In the welcome box the url is correct (http://beta.thegaminguniverse.com/fo.../avatar1_0.gif).

What did I do wrong?

Dark_Wizard 01-09-2004 09:12 PM

Quote:

Originally Posted by Dark Jim
Nice hack but I'm having a problem. I created a template index_project_Oz. But when I go to index.php?page=project_Oz I get the error:
Also the news avatar is not working. I have a custom avatar (custom avatars are stored as files, not in the database) and it's not showing because the url is http://beta.thegaminguniverse.com/fo...ine=1070663498. In the welcome box the url is correct (http://beta.thegaminguniverse.com/fo.../avatar1_0.gif).

What did I do wrong?


Check all the threads prior to posting...this answers your error --> https://vborg.vbsupport.ru/showpost....4&postcount=53

gc1 01-09-2004 09:25 PM

is there anyway to insert your whole index.php where the news section is supposed to go?
Great hack BTW, I love it
TIA

gc

kneesparx 01-09-2004 09:52 PM

will this work with gamma?

Zachery 01-09-2004 10:17 PM

Quote:

Originally Posted by kneesparx
will this work with gamma?

it should, but you need to upgrade as vB.com no longer supports previous beta version

Zachery 01-09-2004 10:18 PM

Quote:

Originally Posted by Blackbeard
iam having a small problem at moment, i use custome box 1 for a site nav box and now things are not playing, it is more than likely me, so i will post what i did and attach a screenie.

<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet] Site Navigation</b></span></td>
</tr>
<tr>
<td class="alt1"><span class="smallfont">

<li><a href="http://Myweb site/index.php">Home</a></li>
<li><a href="http://Myweb site/forums/index.php">Forum Home</a></li>
<li><a href="http://Myweb site/chat.html">Chatroom</a></li>


</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />

could someone help please

remove <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
see if it works after that

restless 01-09-2004 11:51 PM

crap... i got this:
Code:

Invalid SQL:
                SELECT
                userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
                IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
                        language.phrasegroup_calendar AS phrasegroup_calendar,
                        language.phrasegroup_advindex AS phrasegroup_advindex,
                        language.phrasegroup_postbit AS phrasegroup_postbit,
                        language.phrasegroup_global AS phrasegroup_global,
                        language.options AS lang_options,
                        language.languagecode AS lang_code,
                        language.charset AS lang_charset,
                        language.locale AS lang_locale,
                        language.imagesoverride AS lang_imagesoverride,
                        language.dateoverride AS lang_dateoverride,
                        language.timeoverride AS lang_timeoverride,
                        language.decimalsep AS lang_decimalsep,
                        language.registereddateoverride AS lang_registereddateoverride,
                        language.calformat1override AS lang_calformat1override,
                        language.calformat2override AS lang_calformat2override,
                        language.logdateoverride AS lang_logdateoverride,
                        language.thousandsep AS lang_thousandsep
                FROM user AS user
                INNER JOIN userfield AS userfield ON (user.userid = userfield.userid)
                INNER JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))
                WHERE user.userid = 1
       
mysql error: Unknown column 'language.phrasegroup_advindex' in 'field list'

mysql error number: 1054



All times are GMT. The time now is 08:07 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.02031 seconds
  • Memory Usage 1,757KB
  • 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_code_printable
  • (5)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