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)

Blue Storm 01-07-2004 08:25 AM

Everytime I try to log in on the page, using the nav bar log in it tell me Im logged in and then returns me to the main page still not logged in. If I use the block's log in bit I just get taken back to the main page not logged in.

Any ideas why I can't log in?

Tigga 01-07-2004 11:52 AM

Snowbot - What version of vBulletin are you running? The names of the days are not showing on your regular calendar either, so my guess would be that you're missing some calendar phrases...

Forkman - Yes, that was the correct place to modify the functions_calendar.php file. Apparently they added some new global variables to that function... Thanks for pointing that out - I just updated the zip. ;)

Blue Storm - Try changing your cookie domain under the main vBulletin options section to ".yoursite.com" (without the quotes). The default setting seems to work for most people, but that seems to be necessary for some (which is why it's covered in the FAQ section in the readme ;)).

Blue Storm 01-07-2004 12:30 PM

Ah, good-o it worked. I take it you wont be wanting your account there?

Just another thing, any chance of adding some stuff to a later version such as the ability to have all blocks to one side, a forum link somewhere on the main page, explanation on how to make and use the new template stuff it keeps refering too?

Tigga 01-07-2004 12:39 PM

Glad that worked. And no, I probably won't be needed the account there. ;)
As far as moving the blocks to one side, that should be fairly easy to do by modifying the index template. Everything in that template is commented, so it shouldn't be too hard to move things around. Adding a forum link somewhere can be done by modifying the templates as well... I'm not sure if that will ever be something standard since everyone has a different style and would most likely want the link in a different place.

Quote:

explanation on how to make and use the new template stuff it keeps refering too?
Are you talking about the feature that allows you to replace the news posts with other content? If so, there's a small section in the readme file (under the "Setting the Options" section) that covers that. If it doesn't make sense or you're having problems figuring that out let me know... Or if I'm just missing your point completely and you're talking about something else let me know as well. ;)

paratek 01-07-2004 02:20 PM

Hey Tigga, just a couple of things. I didn't see it in the instructions, but you need to modify the links in index_footer for admincp and modcp or they won't work.

Second, I think the latest threads are displaying posts for an admin group that regular users are able to see and respond to. I only noticed, because i received a few responses to a post i sent to other admins. I have disables the group from displaying, but i did like the fact you are only supposed to see what your permissions allow.

Any one else have this problem?

Blue Storm 01-07-2004 02:29 PM

I've been dedicated to doing C++ and thus know little to no HTML or PHP so muddling though fairly complex code is a bit daunting. Ill get there though. Cheers.

Tigga 01-07-2004 02:50 PM

paratek - Thanks for pointing out the incorrect links in the footer. I'll be sure to fix that in the next version. ;)
I'm not sure I follow you about the permissions thing... You said that regular users are able to see and respond to the posts, so what would be the problem with them being displayed on the homepage?

tgmorris 01-07-2004 02:51 PM

Quote:

Originally Posted by ForKmaN
that dont make much sence :p

where exactly?

In the ACP open up the vbadvanced index template. Do a search for mini calendar. A bit further down is a table declaration with a cellpadding=4. Change the 4 to a 2.

SnowBot 01-07-2004 03:27 PM

Quote:

Originally Posted by Tigga
Snowbot - What version of vBulletin are you running? The names of the days are not showing on your regular calendar either, so my guess would be that you're missing some calendar phrases...
.

Im using RC2

The Quibbler 01-07-2004 03:31 PM

Installed it; everything's working wonderfully, although I did have a question: how would I make more than one custom side block? It's probably really obvious, but I didn't see it in the Read Me file.

Quote:

Originally Posted by ForKmaN
Also, I was just thinking, when I was reading the instructions, it sais in there:


But I cant actuly find that exact wording. I did find:

Code:

function construct_calendar_output($today, $usertoday, $calendarinfo, $fullcalendar = 0, $weekrange = '')
{
        global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar, $show, $offset, $colspan, $days, $months, $show;

Is it the same thing? Just maybe instruction from an older version or somthing? It kinda confused me :p

I saw the same thing with mine, so what what I did is look closely at the changes between the two and add whatever's new. So I'd add $dontshowweek = '0' on the first line and $vboptions on the second, making sure it's in the same style as the rest of the stuff. Worked for me.

Tigga 01-07-2004 03:43 PM

Snowbot - Try uploading an un-hacked version of functions_calendar.php into your forum/includes folder and see if that makes a difference. That will add the arrows back and make the calendar slightly wider than the rest of the blocks, but you should try that to test and see if it's a problem with the file, or if you are somehow missing the calendar phrases.

The Quibbler - To add more custom blocks, just copy the content from one of the other custom blocks and then paste it into your index template where you would like it to appear. ;)

The Quibbler 01-07-2004 03:44 PM

I guess I do have one other problem with it that I just discovered. I made a new template called 'index_links', to try making a page for the site; when I go to adv_index.php?page=links, I get this error:

Quote:

Fatal error: Call to undefined function: parse_bbcode() in /home/quibbler/public_html/adv_index.php on line 553

Tigga 01-07-2004 04:09 PM

Ahh, good find... If you'll look in your adv_index.php file for this line of code:

include('./includes/functions_bbcodeparse.php');

Remove that and paste it right below this line instead:

require_once('./global.php');

That should fix the problem. :)

The Quibbler 01-07-2004 04:21 PM

Ah, that fixed it :)

One last question: if I was going to link to a page of content in a side block, what would I link to? Just "?page=links"? That's what I do for my current non-vbulletin home page; it's got a similar content system. But with vB, if someone came to adv_index.php?referrerid=1, wouldn't going to ?page=links and taking off the ?referrerid=1 cause the referrer to not get the credit if they register later?

Or is that not how it works?

SnowBot 01-07-2004 04:48 PM

Quote:

Originally Posted by Tigga
Snowbot - Try uploading an un-hacked version of functions_calendar.php into your forum/includes folder and see if that makes a difference. That will add the arrows back and make the calendar slightly wider than the rest of the blocks, but you should try that to test and see if it's a problem with the file, or if you are somehow missing the calendar phrases.

That fixed it :) but like you say its abit wide now, wonder what i did wrong ?

SnowBot 01-07-2004 05:11 PM

In the install file it says


Find:
function construct_calendar_output($today, $usertoday, $calendarinfo, $fullcalendar = 0, $weekrange = '')
{
global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar;

Replace it with:
function construct_calendar_output($today, $usertoday, $calendarinfo, $fullcalendar = 0, $weekrange = '', $dontshowweek = '0')
{
global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar, $vboptions;


But that code isnt there, its now changed to
global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar, $show, $offset, $colspan, $days, $months, $show, $vboptions;

so what do i change the file to now? Can you update the install instructions also so other know? :)

SnowBot 01-07-2004 05:18 PM

Quote:

Originally Posted by Tigga
Forkman - Yes, that was the correct place to modify the functions_calendar.php file. Apparently they added some new global variables to that function... Thanks for pointing that out - I just updated the zip. ;)
.

nevermind :) THANKS

Tigga 01-07-2004 05:22 PM

Quibbler - I'm not quite sure what you mean by the content in side blocks... Could you maybe give me an example of what you're talking about?
I'm honestly not too familiar with the way the referrer system works since that's not something I use. I'm pretty sure though that as long as the visitor uses the link containing "referrerid=X" when they first visit your site that everything will still work. I know a visitor can visit the site, browse threads, and then sign up, so it shouldn't be a problem if they visit other parts as well. It may not hurt to test it out though. ;)

SnowBot - Ok, I figured that was it. I assume you saw that the zip file was updated earlier today, so if you download that and re-apply the file change to functions_calendar.php it should fix the problem.

Hotte 01-07-2004 05:28 PM

great hack,
but i?ve a problem with the calendar :/
as you can see on the attached screenshot, my calendar has 8 columns :(
I?ve set "Monday" as start of week in vb-options and profile

The Quibbler 01-07-2004 05:36 PM

Tigga - I was talking about using a sideblock to have links to the pages of content, but never mind. It works fine, so I'm not going to make things more complicated by bothering with the "correct" way to do it, as long as it works.

Tigga 01-07-2004 05:36 PM

Apparently I missed a small part in one of the temlate modifications. I know I had it fixed and working before, but I guess I forgot to update the template.txt file, included the wrong one with the zip, or something... Either way, if you'll change your calendar_smallmonth_header template to the following it will fix the problem.

PHP Code:

<if condition="$dontshowweek">
<
td class="tcat" colspan="$colspanalign="left"><span class="smallfont"><b>$vboptions[blockbullet
<else />
<
td class="tcat" colspan="$colspanalign="center"><b>
</if><
a href="calendar.php?$session[sessionurl]month=$month&amp;year=$year&amp;c=$calendarid&amp;do=displaymonth">$monthname $year</a></td>
</
tr>
<
tr align="center">
    <if 
condition="!$dontshowweek"><td class="thead">&nbsp;</td></if>
    <if 
condition="$show['day1']"><td class="thead">$day1</td></if>
    <if 
condition="$show['day2']"><td class="thead">$day2</td></if>
    <if 
condition="$show['day3']"><td class="thead">$day3</td></if>
    <if 
condition="$show['day4']"><td class="thead">$day4</td></if>
    <if 
condition="$show['day5']"><td class="thead">$day5</td></if>
    <if 
condition="$show['day6']"><td class="thead">$day6</td></if>
    <if 
condition="$show['day7']"><td class="thead">$day7</td></if>
</
tr>
$calendarrowbits 


sarge0087 01-07-2004 05:39 PM

I'm having a problem also on my site.

http://www.nextdictator.com/

For some reason, all the links are pointing to my cgi-bin and I'm not sure why. How can I change the directories of where the links are pointing?

Tigga 01-07-2004 05:41 PM

Um... What do you have set for your "Homepage URL" in your main vBulletin options section?

Hotte 01-07-2004 05:44 PM

Thx Tigga,
looks good now :)

sarge0087 01-07-2004 05:46 PM

God, I'm such an idiot. I'm a little inexperienced with VBB I guess. Thanks Tigga.

sarge0087 01-07-2004 05:51 PM

Damn, now when I change it to the right directory I get this:

"Warning: offset not contained in string in /www.nextdictator.com/forums/includes/init.php on line 561

vBulletin Options"

Tigga 01-07-2004 05:56 PM

I actually posted the wrong setting anyways (sorry, trying to do too many things at once ;)). You should make sure that your "Homepage URL" is set to "http://www.nextdictator.com/" and your "Forum URL" is set to "http://www.nextdictator.com/forums/". As long as those settings are correct you shouldn't have any problems.

sarge0087 01-07-2004 06:18 PM

Now when I try and access my website, I get this:

"Warning: offset not contained in string in /www.nextdictator.com/forums/includes/init.php on line 561


Unable to add cookies, header already sent.
File: N/A
Line: 0"

Zachery 01-07-2004 06:23 PM

you have extra space somewhere after ?> or before <?php

paratek 01-07-2004 06:55 PM

Quote:

Originally Posted by Tigga
I'm not sure I follow you about the permissions thing... You said that regular users are able to see and respond to the posts, so what would be the problem with them being displayed on the homepage?

Because regular users don't have access to those forums so they should not be able to see those posts on the latest post page.

Also, when i click on the calendar it is pointing to the wrong url. where would i change that?

and lastly, how would i go about putting php code in the custom box? Something like a server status block for a gaming server etc.

Great program

Zachery 01-07-2004 06:56 PM

Quote:

Originally Posted by paratek
Because regular users don't have access to those forums so they should not be able to see those posts on the latest post page.

Also, when i click on the calendar it is pointing to the wrong url. where would i change that?

and lastly, how would i go about putting php code in the custom box? Something like a server status block for a gaming server etc.

Great program

have you logged out to check to see if there generating posts from a pirvet forum to regular / unregistered members?

if it is you havent setup your permissions correctly

paratek 01-07-2004 07:08 PM

All permissions set correctly. they do not have access to these forums. I just excluded the forums i don't want to be seen....i'll have to live with that for now.

Zachery 01-07-2004 07:12 PM

if permissions are set correctly via the forum manager no user that cant see it would see it. YOU can see it because your permissions to see it

Tigga 01-07-2004 07:31 PM

Sarge - I have no idea how that could have happened... All you did was modify the URL's in the vB options section? About the best thing I could suggest would be to upload the original, unhacked files to your site and see if that makes a difference. If not, the only other thing I could think of is something you put in one of those fields is causing it. If that's the case, about the only way to fix it would be to manually edit those things in the datastore table in your database.

paratek - I'm about to send you a PM regarding the permissions...
The calendar URL can be fixed by looking in your calendar_smallmonth_header template, finding calendar.php, and adding $vboptions[bburl]/ in front of it.
You can't put php code in any of the custom templates... You can put the code in the adv_index.php file and use the variables in the custom templates though, or you can use vBulletin's conditionals.

sarge0087 01-07-2004 07:32 PM

Quote:

Originally Posted by Faranth
you have extra space somewhere after ?> or before <?php

The first line in the file says: "<?php"

Without the quotes of course.

Zachery 01-07-2004 07:33 PM

what about at the end of the file is there anywhite space after ?>

Tigga 01-07-2004 07:36 PM

It's affecting his entire forum, so it wouldn't have anything to do with an error in the index.php file... I would almost put money on my guess that he entered something into the value for those settings and that's what's causing the problem... Either that, or another file had to have been changed.

sarge0087 01-07-2004 07:36 PM

It started to happen after I changed the homepage URL for my site. Now I can't get back to my admincp

sarge0087 01-07-2004 07:50 PM

Nope, no space at the end of that.

sarge0087 01-07-2004 08:00 PM

What file could I go into to manually change the homepage settings?


All times are GMT. The time now is 08:29 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.02064 seconds
  • Memory Usage 1,851KB
  • 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
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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