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)
-   -   Webpage & Guestbook Script (https://vborg.vbsupport.ru/showthread.php?t=71065)

T3MEDIA 12-13-2004 08:32 AM

Is there anyone out there that could make a mod or show me how to refuse some types of HTML? ie z-index. using that you could cover the whole vbulletin screen.

and I would love to force the webpage to be a certain size. I did a page and it was huge. You know there is going to be that idiot member.

Let me know if it is possable! Thanks.

Snow 12-13-2004 11:04 AM

Quote:

Originally Posted by T3MEDIA
Is there anyone out there that could make a mod or show me how to refuse some types of HTML? ie z-index. using that you could cover the whole vbulletin screen.

In the options (adminCP) for the webpage, there's a box where you may list the html tags that are allowed (anything else shouldn't work although I haven't tested this). However, allowing html is risky so you could try adding some more custom BBcode for your members to use instead.

Quote:

and I would love to force the webpage to be a certain size. I did a page and it was huge. You know there is going to be that idiot member.

Let me know if it is possable! Thanks.
In the file webgbset.php, the following two lines control the sizes of the guestbook and webpage
Code:

$wghtml['webpagewidth'] = '60%'; //Default 60%
$wghtml['gbwidth'] = '30%'; //Default 40%

I assume it should work if you wanted to use fixed values e.g. 500px instead of percentages. I don't think users can override these values.

docvader 12-13-2004 04:52 PM

Quote:

Originally Posted by Snow
That would be a very handy feature. :) In the meantime I've had to make do with a modified version of what frage posted...... I added the profile field as frage states then replaced
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
with
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] <if condition="$post[field6] = Yes"><a href="member.php?$session[sessionurl]userid=$post[userid]"><img src="$stylevar[imgdir_misc]/guestbook_yes.gif" border="none" alt="Guestbook" /></a> </if></div>
This should show a small guestbook_yes.gif next the ICQ/msn icons.

Awesome idea. But for some reason, everyone has "Guestbook" next to their name in their postbit, even though "undisclosed" is set up as default in that user profile. What did I do wrong? I have the appropriate field listed, and have created a user profile to go along with this.

Thanks!
rich
x.russbo.com/vb/index.php

Snow 12-13-2004 05:16 PM

Quote:

Originally Posted by docvader
Awesome idea. But for some reason, everyone has "Guestbook" next to their name in their postbit, even though "undisclosed" is set up as default in that user profile. What did I do wrong? I have the appropriate field listed, and have created a user profile to go along with this.

Thanks!
rich
x.russbo.com/vb/index.php

You did nothing wrong, I missed a = It should be
PHP Code:

<div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon] <if condition="$post[field6] == Yes"><a href="member.php?$session[sessionurl]userid=$post[userid]"><img src="$stylevar[imgdir_misc]/guestbook_yes.gif" border="none" alt="Guestbook" /></a> </if></div

Sorry :o

T3MEDIA 12-13-2004 05:46 PM

Quote:

Originally Posted by Snow
In the file webgbset.php, the following two lines control the sizes of the guestbook and webpage
Code:

$wghtml['webpagewidth'] = '60%'; //Default 60%
$wghtml['gbwidth'] = '30%'; //Default 40%

I assume it should work if you wanted to use fixed values e.g. 500px instead of percentages. I don't think users can override these values.

Hummm good looking out. This seems to be width though. I am more into the hight. Let me look and see if that is there as well.

Oh BTW I put any code I wanted. bypassed what was "allowed"

Wordplay 12-13-2004 10:11 PM

Quote:

okay i messed up, i couldn't upgrade the query. and couldn't just insert the new one. so i figured i'd just delete the old sql structure and then replace it. which i did. bad idea, just lost all my guestbook entries and webpages. now, i inserted the new one, but got an error about setting_allowguestbook_desc duplicate. now, the guestbooks and webpages do work. but they don't show any 'phrases', meaning if people go in to edit the guestbook they just see radio buttons. how can i fix this?
Quote:

want to inhance my guestbook script:
-is there anyway to change the actual font face and size for all guestbooks?
-how would i set using avatars in the guestbook defaultly to yes?
help!

kikosho 12-14-2004 08:41 AM

Sorry if I missed it --- but can someone tell me how to include somewhere in the postbit that a user actually has an active "webpage" so users will know which ones to check out if they wish?

Anyone that knows how or can repost the code (if they found a solution), I'd really appreciate it! :)

ChuanSE 12-14-2004 09:30 AM

Swedie mate,

I still can't find out why a member that cannot have gb or wp has a width problem in my style on his memberpage ( http://community.ddance.fm/member.php?u=38 )

allthough fixed width with gb/wp ( http://community.ddance.fm/member.php?u=1 )

Seems even that it is ok with only a gb... ( http://community.ddance.fm/member.php?u=5 )
Code:

//This file includes settings for Webpage and Guestbook script
$wghtml['webgbtotalwidth'] = '735';
$wghtml['webpagewidth'] = '65%'; //Default 60%
$wghtml['gbwidth'] = '35%'; //Default 40%
$wghtml['gbpagelimit'] = '10';
$wghtml['gbpagestoshow'] = '10';

:/

docvader 12-14-2004 03:22 PM

Quote:

Originally Posted by kikosho
Sorry if I missed it --- but can someone tell me how to include somewhere in the postbit that a user actually has an active "webpage" so users will know which ones to check out if they wish?

Anyone that knows how or can repost the code (if they found a solution), I'd really appreciate it! :)

Look at Snow's response a few posts up. Works great!
rich

PixelFx 12-14-2004 03:48 PM

is the first zip updated to work find on first install on 3.0.3? I'd love to try this out :)


All times are GMT. The time now is 05:05 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.01581 seconds
  • Memory Usage 1,760KB
  • 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
  • (5)bbcode_code_printable
  • (1)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
  • (3)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