vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Give Your Users a Custom Page on Your Site (https://vborg.vbsupport.ru/showthread.php?t=91903)

kadafi_alive 01-09-2006 09:44 AM

Hey waza, is there a way to add other features. For example, at CF (Christianforums), when the user clicks on Create/Edit Userpage, it gives them the ability to add a Title of userpage and it gives them the url of their userpage.

In addition, a preview tool and the current userpage.

Is it possible to add these?

waza 01-09-2006 03:17 PM

Quote:

Originally Posted by MissKalunji
got a little time :-) now?

Hehe, srry, I have been (and will be) very busy for the past/coming few weeks.
However, this is the way you can do it:

I looked a while ago @ showthread.php and you can add things to the query that calls the post.
So what you basicly will have to do is add something like
LEFT JOIN ".TABLE_PREFIX."userpages AS userpages ON (post.userid=userpages.userid)

And then a condition like <if condition="$post['userpage']">He got one<else />Nope</if>

However you will have to look for yourself now, these are basic instructions I now just typed without looking something up.

groberthall 01-09-2006 05:18 PM

I cannot pretend I have read all 57 pages of posts but I cannot find this problem in the first ten or so and I would have thought others had it to.

Changing permissions does not stick and I am getting this message

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

any ideas ?

groberthall 01-10-2006 08:36 AM

Ok :)
More reading, then some more reading, then some more reading......
Post 566 sorted it all out for me :)

amandad 01-11-2006 02:20 AM

Hiya

It's a wonderful Extension, installed with no problems at all!

I do have two questions though...

1. For some reason, my voting looks all weird on the user pages, I'm assuming this has something to do with my templates, but I'm not sure. Can you please let me know what I have to do to either fix it or remove it from the pages? http://www.adultforums.com.au/forums...age.php?u=2951

2. Is there anyway there can be a link put on the members profiles page and next to their avatar on their posts which points to their userpage if they have one?

Thanks...

Amanda

PS... I had a look through all the other posts, did about 40 pages before deciding to post the question, I couldn't find where to search through the post, so please forgive me if these questions have already been asked!

waza 01-11-2006 10:39 AM

for your first problem:
https://vborg.vbsupport.ru/showpost....&postcount=832

for the second:
not an easy way at this time.

EasyTarget 01-11-2006 10:59 AM

my voting is all messed up as well, but I don't have a table tag that's not closed in my usercp shell or usercp template. In fact there's nothing really resembling that code from post 832 in either of those templates.

I'm using 3.5.3 but I had this problem in 3.5.2 as well.

*edit*
its in userpage template not usercp template as that post states

croportal 01-11-2006 11:02 AM

can u tell me hove to cmpletely remove this hack

EasyTarget 01-11-2006 11:10 AM

I assume you just uninstall the product, delete the files you uploaded and undo the template edit?

croportal 01-11-2006 11:44 AM

but its problem with the templates, and i dont want to do anything wrong

Club3G 01-11-2006 08:19 PM

[high]* Club3G clicks install.
[/high]

One thing I really don't like - How do I go about moving the rating box below the page content? Thanks! :D

yayvb 01-11-2006 09:52 PM

One thing I really don't like.. I uninstall using uninstall product and then I remove from templates and now my site is down saying:

Database error in vBulletin 3.5.2:

Invalid SQL:
SELECT * FROM userpage WHERE userid=1;

MySQL Error : Table 'youradul_420.userpage' doesn't exist
Error Number : 1146
Date : Wednesday, January 11th 2006 @ 05:42:41 PM
Script : http://www.420boards.com/
Referrer :
IP Address : 94.252.250.213
Username : 420kid
Classname : vb_database

Please hurry, I was expecting the product to easily be uninstalled!!! Yes thats if I go to the site www.420boards.com see for yourself.. What is all of a sudden trying to find that table? What do I remove? Help please.

yayvb 01-11-2006 10:02 PM

I also just tried to uninstall using the installuserpage.php old file and nothing. I am feeling desperate now and should apparently be doing any changes on a dev board. :( Anyone know how to uninstall this thing so I don't keep having database errors?

yayvb 01-11-2006 10:31 PM

OK if anyone else has this problem you can atleast get your site back up by just adding the table userpage and adding the 8 rows. This of course is for the older version so you may want to look at your .xml files to see what database tables are trying to be opened.

If someone would please let me know the correct way to remove this hack. Apparently something still tries to find the database tables after various uninstallation attempts.

Club3G 01-11-2006 11:35 PM

Small issue - everything's working great (aside from the extremely ugly rank-this-page-box), but I can't delete pages. All of my Usergroup permissions are set to yes.

kadafi_alive 01-12-2006 08:54 AM

Quote:

Originally Posted by Club3G
Small issue - everything's working great (aside from the extremely ugly rank-this-page-box), but I can't delete pages. All of my Usergroup permissions are set to yes.

To fix that rank-this-page-box issue in IE, do this:

Before <if condition="$show['popups']"> in template usercp the table is not closed.

So replace this:

</tr>
</table
<if condition="$show['popups']">

with

</tr>
</table>
<if condition="$show['popups']">

Club3G 01-12-2006 02:07 PM

I don't have that statement in my usercp - I'm fine with the way the box is displayed, I just want it below the actual page content - or removed altogether. :)

Keyser S?ze 01-12-2006 10:05 PM

u should make it so IF someone has a custom page, a link is displayed in their profile, and in the user dropdown in the postbit

also once someone votes the vote thing should disappear, and u must be logged in to vote, kind of like how the poll is

just an idea

animate 01-13-2006 08:10 AM

when comes the next update of this script? with any of the planned features?

Totti 01-13-2006 08:56 AM

would be cool to be able to disable shoutboxes as controlling thousands of them is quite hard :D

Totti 01-13-2006 08:59 AM

Quote:

Originally Posted by Club3G
I can't delete pages. All of my Usergroup permissions are set to yes.

ye, lol ... even my own page cannot be deleted? :o

groberthall 01-14-2006 09:14 AM

Ok. I have read through all 58 pages, twice. IThis problem has only been mentioned once and went unanswered :)

If I try to report a users page it goes to a page that just shows the navbar and footer. Nothing in between.

Reporting is working ok on the forum.

Any Ideas ?

EasyTarget 01-14-2006 03:39 PM

as far as I remember you have to set the forum id where you want the reports to go in one of the files/templates.

groberthall 01-14-2006 04:28 PM

I have done that :)
The problem is not where the report goes but how you make one in the first place. There is no text box or anything, just a navbar and the footer on the page that comes when you click report this page.

Club3G 01-14-2006 04:45 PM

Still trying to figure out two things:

- Why Administrators can't delete pages, I get a no permission message.
- How to remove the rank box, or at least move it the bottom. (It looks a little rediculous up top)

groberthall 01-14-2006 06:13 PM

The inability to delete pages is caused by a missing ! in the userpage.php file. If you look back through the threads it is mentioned several times.

The rating box can be simply commented out in the userpage template.

Totti 01-14-2006 07:13 PM

Quote:

Originally Posted by ChrisBaktis
Mine has been corrected. In the userpage.php file on line 862 look for

PHP Code:

if ($pageexists

Change to:

PHP Code:

 if (!$pageexists

The ! is what the problem was on mine. I now can delete pages with no problem.

great, thanks for the tip :)
there's some crazy frame/pop-up issue showing our forumheader twice though, but it disappears again after deleting :D

Club3G 01-14-2006 09:53 PM

^^ Hah, I have that on my clipboard, was just about to post it. Thank you grobert. :)

Club3G 01-14-2006 09:56 PM

Just so it's here, to remove the ranking box, in the userpage template, remove or comment out this code:

Code:

<if condition="$canrate">
<td class="tcat" id="rate" nowrap="nowrap" width="25%" align="right"><a href="#rate">$vbphrase[rate_userpage]</a>
<script type="text/javascript"> vbmenu_register("rate"); </script>
</td>
<else />
<td class="tcat" nowrap="nowrap" width="25%" align="right">
<img src="$stylevar[imgdir_rating]/rating_$rating.gif" border="0">
</td>
</if>


</tr>
</table
<if condition="$show['popups']">
<div class="vbmenu_popup" id="rate_menu" style="display:none">
<form action="userpage.php" method="post">
<input type="hidden" name="do" value="rate">
<input type="hidden" name="userid" value="$userinfo[userid]">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[rate_userpage]<a name="goto_threadrating"></a></td>
        </tr>
       


        <tr>
                <td class="vbmenu_option" title="nohilite">
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="rating" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="rating" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="rating" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="rating" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></div>
                <div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="rating" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite" align="center">
                        <input type="hidden" name="s" value="$session[dbsessionhash]" />
                        <input type="hidden" name="t" value="$threadid" />
                        <input type="hidden" name="pp" value="$perpage" />
                        <input type="hidden" name="page" value="$pagenumber" />
                        <input type="submit" class="button" value="$vbphrase[vote_now]" />
                </td>
        </tr>

        </table>
</form>
</div>
</if>


Dark_D 01-15-2006 01:27 AM

OK first please understand there are 58 pages and no way for me sit in one place long enough to read all of them....

That said, I load the hack as per instructions and get a "500 Internal Server Error". When I remove the .htaccess file I can now make a personal page but get a "Can't find phase" error and the same error with the shout out....

What can be done to fix this?

Club3G 01-15-2006 02:45 AM

A minimum character limit would be nice. As soon as users click Create User Page, it makes a blank page regardless if they've done anything to it. I have about two dozen members with blank pages now.

Club3G 01-15-2006 02:46 AM

Quote:

Originally Posted by Dark_D
OK first please understand there are 58 pages and no way for me sit in one place long enough to read all of them....

That said, I load the hack as per instructions and get a "500 Internal Server Error". When I remove the .htaccess file I can now make a personal page but get a "Can't find phase" error and the same error with the shout out....

What can be done to fix this?

Is it listing which phrase it can't find?

Dark_D 01-15-2006 02:50 AM

O yes sorry, "Could not find phrase 'shout_posted'."

Club3G 01-15-2006 03:22 AM

Quote:

Originally Posted by Dark_D
O yes sorry, "Could not find phrase 'shout_posted'."

Is the phrase there?

If not, try adding it. AdminCP -> Languages and Phrases -> Add New Phrase.

The text is just, coincidentally, Shout Posted. ;)

Dark_D 01-15-2006 03:33 AM

Quote:

Product Userpages by amykhar
Varname $vbphrase[shout_posted]
Text Shout Posted
Yup it's there.....any other ideas? Does taht have anything to do with the .haccess that I can get to work?

Club3G 01-15-2006 03:58 AM

I don't think so, I didn't bother with the htaccess file at all. From what I can tell all it does is rewrite the URL so that you can put in the user's name instead of the user ID to link it.

Total stab in the dark, but perhaps try reuploading bitfield_userpage to the includes/xml folder.

Dark_D 01-15-2006 04:08 AM

I reinstalled the whole thing and not any different....
So I can live with out the "htaccess" file???
The phase, It looks like I can live without them also.

Thanks for the input....

Club3G 01-15-2006 04:17 AM

Yeah, not needed at all.

What's the URL that's throwing the 500, if you don't mind posting it? It might be a file permissions problem - try setting the .php file to 755 and see if that does it - sometimes 500's are a server config deal.

Dark_D 01-15-2006 04:30 AM

I changed the htaccess to the 755.
The link would be my forum + admincp/index.php

Still get, o'yeah its on all site pages not just admin:
Quote:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
No biggie, I'll play with it tomorrow.

Club3G 01-15-2006 04:58 AM

I'm confused, but I'm on your time standard so we're probably in the same boat. ;)

What's giving you the 500? I don't get why you're going to the admincp instead of forum/userpage.php.

I'd kill that htaccess if I were you, sounds like something's not jivin' with your setup.


All times are GMT. The time now is 06:15 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.02357 seconds
  • Memory Usage 1,842KB
  • 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
  • (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
  • (2)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