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)

ACentral 12-05-2004 06:05 PM

Would it be too much trouble for someone to whip up a quick mod to show an icon or link in postbit for those users who have webpages? I tried myself but with no luck.

frage 12-05-2004 07:58 PM

Quote:

Originally Posted by ACentral
Would it be too much trouble for someone to whip up a quick mod to show an icon or link in postbit for those users who have webpages? I tried myself but with no luck.

http://www.vbulletintemplates.com/mo...ead.php?t=5957

this is the +gender hack+
I think you can modify it for your problem---
AdminCP > Profile Fields > Add new proofile field > Single Select Menu >
Title > Homempage (or any other one)
Description > Please select
Options:
Undisclosed
yes
no
Default Option: No, but not blank

make note of the field id

Template edit:
in postbit(_legacy)
find
HTML Code:


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

add under
HTML Code:


<if condition="$post[fieldX] != Undisclosed"><div>Homepage: $post[fieldX] <img src="$stylevar[imgdir_misc]/homepage_$post[fieldX].gif" alt="$post[fieldX]" /> </div></if>

x is the ID of your homepage profile fields


For the images to work you would need to upload

images/misc/homepage_yes.gif and homepage_no.gif

++++++++++++++++
I don?t try this...

frage

Swedie 12-05-2004 08:53 PM

Quote:

Originally Posted by Nordinho
Hey Swedie, by removing a table I managed to get it displayed, without really breaking the layout...

Have you looked after the 'more link' on the smilie box?? Would it otherwise be possible to just remove the more link and only show the default smilies??

By the way, I've just noticed that there are quite some templates not being cached...

Greets,

I got that "more" link working a while ago, but I must've not included it in the update. I'll check into it.

Nordinho 12-06-2004 01:14 AM

Quote:

Originally Posted by Swedie
I got that "more" link working a while ago, but I must've not included it in the update. I'll check into it.

Oke thanks...

ACentral 12-06-2004 07:20 AM

Quote:

Originally Posted by frage
http://www.vbulletintemplates.com/mo...ead.php?t=5957

this is the +gender hack+
I think you can modify it for your problem---
.......

Thanks! I may do it this way. I was hoping for something to automatically recognize webpage content added and display the icon, rather than the user having to select a profile field saying they've filled it out, but this should do. Thanks again

If anyone knows how to have it automatically recognize when a user's webpage has content, I'm sure more than a few people would appreciate it.

Wordplay 12-07-2004 09:07 AM

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?

lakers6473 12-07-2004 10:57 PM

Quick question.. is there any way that i can add a music background in the profile through this hack? I have this hack but when i add backgroud sound in the html, it does not play.. just a question..

Tchrin 12-08-2004 07:56 AM

Great hack, thanks a lot. A few comments/bugs -

In the installation_READ_THIS_ONLY.txt file (I haven't looked at the upgrade one so not sure if this is true there as well)....

-In the 2nd important part you say to Click "Update". This should read Click "Save"

-Also in the 2nd important part you say apply new General Permissions settings for all the usergroup you have!. This isn't necessary, you only need to update the permissions for any groups that have primary users in them. Which for most people will probably only be Registered Users, Users Awaiting Email Confirmation & Administrators.

-Clicking the [more] link in the smilies box doesn't work. It just refeshes the edit webpage you're on. I have some 330 smilies on my forum (at ATITD.net btw) so it'd be good if my users could use them on their MiniSites.

ogetbilo 12-08-2004 01:01 PM

Quote:

Originally Posted by Wordplay
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?

Just remove all the phrases from database and reinstall just the phrases. After this you have to search for one of your phrase and save the phrase again. After that your problem should be solved.

Wordplay 12-08-2004 01:46 PM

how do i remove ALL the phrases? you mean one by one?

i don't even know how to do that, i can just find an edit option in my phrases in the ac.

Swedie 12-09-2004 09:48 PM

Quote:

Originally Posted by Wordplay
how do i remove ALL the phrases? you mean one by one?

i don't even know how to do that, i can just find an edit option in my phrases in the ac.

sorry guys for leaving you. But I am here to tell you that I will leave once again (going to spain for pre-season track riding) and won't be back in game until around christmas or maybe new years.

I hope you all can give eachother support.

T3MEDIA 12-10-2004 03:32 AM

On the top of my page I get this:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /nfs/cust/3/18/41/514813/web/forums/profile.php on line 449

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /nfs/cust/3/18/41/514813/web/forums/profile.php on line 455

IF ANYONE can help that would be nice.
------------------------------------------------------------
edit missed a whole table.... whoah. It looks sooooo good.
Thank you.

docvader 12-10-2004 05:26 AM

As per the instructions above:
Quote:

PLEASE DOWNLOAD THE NEW VERSION AND GO OVER IT AGAIN! THIS ONE WORKS! I JUST TRIED IT!
Talk about instilling fear in the hearts of us hacker wanna be's.

But, I installed the thing. It took me quite a bit of time, compared to all the other hacks I've loaded onto my boards, upwards of thirty to sixty minutes, depending upon how cautious you want to be. And while you're installing it, you just sit back and wonder at the complexity of the thing. Swedie is to be congratulated. Truly.

And quite to my surprise, it does work. Rather nicely in fact. I haven't tested all the features yet, but so far, I am truly very impressed. And glad I spent the time installing this.

Donations on the way man. Have a good time in Spain. Watch out for the women with the hair under their arms...

mariannet 12-10-2004 09:55 PM

**BUMP**

Quote:

Originally Posted by KTBleeding
I have it running on my "upcoming" site.. you can check it out though..
http://www.keepthembleeding.net/forums/member.php?u=1

I don't have a use for the webpage mod, so I don't have that up, just the guestbook.
Works/looks good, IMO. The guestbook HTML could use a little cleaning up/vb3 look, but it looks fine the way it is.


Swedie, I found a bug.. I'm not sure if anyone has reported it. If I edit a guestbook message, it doesn't update.. still stays the same. Just thought I'd report that.

Gone through all 29 pages and ended up here. A lot of you could do with doing the same as a lot of questions are already covered.

First off.. Installed fresh on 3.0.3 no problems.
Managed to change style to match users choice.

As in this post, I cannot delete a post in the guestbook and editing does nothing. No errors rapported.

Anyone can help a Danish Lady in need? :)

kikosho 12-10-2004 11:17 PM

This feature is awesome. Installed it the other night. Only thing which would make it even more awesome -- the abilty to log multiple log entries like a standard "blog"

Snow 12-12-2004 08:07 AM

Quote:

Originally Posted by ACentral
Thanks! I may do it this way. I was hoping for something to automatically recognize webpage content added and display the icon, rather than the user having to select a profile field saying they've filled it out, but this should do. Thanks again

If anyone knows how to have it automatically recognize when a user's webpage has content, I'm sure more than a few people would appreciate it.

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.

Snow 12-12-2004 08:14 AM

Quote:

Originally Posted by mariannet
As in this post, I cannot delete a post in the guestbook and editing does nothing. No errors rapported.

I've got this same problem, does anyone know how to fix it?
:confused:

I did find another small bug, I don't know if its already been mentioned and corrected. In the email notification of a new guestbook entry, the link points to [link removed] instead of my forum. The problem was in member.php
Code:

<a href=\"[link removed]/member.php?u=".GBUSERID."\">".$vbphrase['wg_click_here_to_view_guestbook']."</a>";

fleccy 12-12-2004 09:53 AM

works great for me, thanks :D

Wordplay 12-12-2004 06:40 PM

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?

T3MEDIA 12-13-2004 08:13 AM

Quote:

Originally Posted by Snow
I've got this same problem, does anyone know how to fix it?
:confused:

I did find another small bug, I don't know if its already been mentioned and corrected. In the email notification of a new guestbook entry, the link points to [link removed] instead of my forum. The problem was in member.php
Code:

<a href=\"[link removed]member.php?u=".GBUSERID."\">".$vbphrase['wg_click_here_to_view_guestbook']."</a>";

didnt even see that.

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 :)

Nordinho 12-14-2004 05:41 PM

Quote:

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

it works for me on 3.03, but there a some small errors left...and the creator of the hack is not back until Christmas/New Year...

T3MEDIA 12-15-2004 01:27 PM

Now I have nothing to do with this code just want to update people
it works on 3.0.3 I tried it.

There is a odd thing though.
If you post in the guestbook you can edit it. ok
but why would the owner of the guest book be allowed to edit? That is odd. A guest book is like a email that sticks. Users will change what people post to the guest book to what ever they like. A girl could say nice page and a owner of that page can change it to I am a hore dont talk to me if they got into a fight. Get my point? any idea how to change that?

Thanks. Also still looking on a way to have the website a FIXED size. so people dont put up 800x800 web pages

Also z-index works on this. in otherwords if a user has a webpage they can cover thier whole profile with HTML. that is a security bug. They could mimic the site this way.

Just to let you guys know.

ChuanSE 12-17-2004 06:22 AM

Quote:

Originally Posted by T3MEDIA
Now I have nothing to do with this code just want to update people
it works on 3.0.3 I tried it.

There is a odd thing though.
If you post in the guestbook you can edit it. ok
but why would the owner of the guest book be allowed to edit? That is odd. A guest book is like a email that sticks. Users will change what people post to the guest book to what ever they like. A girl could say nice page and a owner of that page can change it to I am a hore dont talk to me if they got into a fight. Get my point? any idea how to change that?

Thanks. Also still looking on a way to have the website a FIXED size. so people dont put up 800x800 web pages

Also z-index works on this. in otherwords if a user has a webpage they can cover thier whole profile with HTML. that is a security bug. They could mimic the site this way.

Just to let you guys know.

I don't agree here

EVERY site with a guestbook has the possibility to edit those msgs.

So why not in this one ;)

theArchitect 12-17-2004 09:04 PM

I am not having much luck in getting this working. I have checked the instructions carefully, but nothing is displaying and when I go to user groups to check the preferences they are not being remembered by the system.

I thought that it may be to do with the last two steps, one of which doesn't seem to be working as there is no update button in vBulletin Options > Guestbook / Webpage Preferences only a save button. I have clicked this but am still getting blank pages in the User CP.

Your assistance would be appreciated.

tobkat 12-18-2004 09:27 AM

Is there a option to autodelete guestbook entrys after a specified period of time. for example, all entrys older than 15 days are being deleted automatically ?

and...

does anyone know why the image tag does not work if i use [imagetag]url[/imagetag] it only shows the url to the image but not the image itself.

T3MEDIA 12-18-2004 10:56 PM

I am using this so dont think I dont like it. But there are somethings that are not good about it as well.

1. There is no way at all for an admin to delete a webpage. So if I put porn on my page the admin can not close it delete it edit it nothing. (yes... I know... before you jump at the reply) You can delete the account but that is just too much sometimes.

same goes for the guestbook. yet the user can do all they feel.... ;) at ChuanSE

2. You can not set a auto size for the guestbook. (like a character limit) and say I want it to stop at 3 entrys and flip over. right now I belive its 10.

besides that. AWSOME.

kikosho 12-19-2004 01:28 AM

I love it too. However, it would be cool if the user could create additional multi-pages too. Right now, it's limited to pruning older entries or simply dealing with an extremely long webpage should the user decide to retain ALL of their entries. Is there anyway to probably incorporate some added changes?

PixelFx 12-19-2004 09:38 AM

it looks like a nice hack, I think I'll wait till the new year when its more stable, a lot of the sugguestions above sound great as well.

Swedie 12-20-2004 06:55 PM

hey all! I am back from Spain! Had a great time! If ya wanna see what I did, check out this video:
http://www.sporthoj.com/stuff/filmer/spanien_low.wmv 60mb

Anyhow, back to the script.

* What about removing the "Edit" part for messages on a users guestbook page? But keep Edit for his own messages. That should make things a bit better don't it? Administrators will still be able to edit ALL messages though.

* Admin removal of a webpage... I can make that happen. Small "Delete" button will appear.. umh somewhere on the user's page.

ChuanSE: Please change in wbgbset.php:
$wghtml['webgbtotalwidth'] = '100%';
you have it set to 735 = forced width... not good.
ALSO, appears the HTML code is broken. Try downloading the latest copy of this script and update the contet of "memberinfo" and member.php.

I will make it so that it won't appear at all if no webpage is set. that is in a future release though.

Christmas is coming up and I gotta spend time with da girl soon... but I should have something nice for you all soon.

T3MEDIA 12-20-2004 07:56 PM

have fun!


All times are GMT. The time now is 09:02 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.02122 seconds
  • Memory Usage 1,879KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (21)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
  • (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