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)

rootnik 12-07-2005 12:45 PM

I'm wanting to only allow people who have filled out a certain optional profile field to be able to create or edit pages.

PHP Code:

<if condition="$show['createuserpagelink'] && $userinfo['field7']">
    <
tr>
        <
td class="$navclass[signature]nowrap="nowrap"><class="smallfont" href="userpage.php?$session[sessionurl]do=create">Create Your Userpage</a></td>
    </
tr>
</if>
<if 
condition="$show['edituserpagelink'] && $userinfo['field7']">
    <
tr>
        <
td class="$navclass[signature]nowrap="nowrap"><class="smallfont" href="userpage.php?$session[sessionurl]do=edit">Edit Your Userpage</a></td>
    </
tr>
</if> 

That is what I have tried, and it doesn't want to work for me. (it doesn't show the link regardless)

Any suggestions?

dboogie2288 12-07-2005 02:59 PM

Uh oh..bad bad things happened. I dont know what I did, but its trying to call this table that doesnt exist......

Code:

MySQL Error  : Table 'XXXXX.userpage' doesn't exist
Error Number : 1146

and

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:
DROP TABLE userpage_rate;

MySQL Error  : Unknown table 'userpage_rate'
Error Number : 1051

When I try to uninstall it from AdminCP

dboogie2288 12-07-2005 03:36 PM

Yikes...that was an ugly one. Had to modify the uninstall code to get it finally uninstalled, then reinstalled the product...and thankfully it worked.

waza 12-07-2005 04:40 PM

Quote:

Originally Posted by rootnik
I'm wanting to only allow people who have filled out a certain optional profile field to be able to create or edit pages.

PHP Code:

<if condition="$show['createuserpagelink'] && $userinfo['field7']">
    <
tr>
        <
td class="$navclass[signature]nowrap="nowrap"><class="smallfont" href="userpage.php?$session[sessionurl]do=create">Create Your Userpage</a></td>
    </
tr>
</if>
<if 
condition="$show['edituserpagelink'] && $userinfo['field7']">
    <
tr>
        <
td class="$navclass[signature]nowrap="nowrap"><class="smallfont" href="userpage.php?$session[sessionurl]do=edit">Edit Your Userpage</a></td>
    </
tr>
</if> 

That is what I have tried, and it doesn't want to work for me. (it doesn't show the link regardless)

Any suggestions?

Try this:
PHP Code:

<if condition="$show[createuserpagelink] AND $userinfo[field7]">
    <
tr>
        <
td class="$navclass[signature]nowrap="nowrap"><class="smallfont" href="userpage.php?$session[sessionurl]do=create">Create Your Userpage</a></td>
    </
tr>
</if>
<if 
condition="$show[edituserpagelink] AND $userinfo[field7]">
    <
tr>
        <
td class="$navclass[signature]nowrap="nowrap"><class="smallfont" href="userpage.php?$session[sessionurl]do=edit">Edit Your Userpage</a></td>
    </
tr>
</if> 


dboogie2288 12-09-2005 07:23 PM

Hey all, I've got a weird issue with the templates...they are getting created just as the script says, but it creates 3 different tables (essentially) each for views, ratings, and last updated...anyone have a similar issue, or that can paste in their template for me....

http://www.beginnerbikers.org/userpage.php

BiReL41r 12-10-2005 03:07 AM

How much extra bandwith does this use?

waza 12-11-2005 10:36 AM

@dboogie: I can't see it (no permissons error), but it doesn't sound like a error, this is just a home page for the userpages, maybe you were looking for this:
https://vborg.vbsupport.ru/attachmen...chmentid=32268
then you have to go to:
userpage.php?do=list

@birel41r: We can't really say that as we don't know how much visitors you have, and how much images you layout and your members use.
But this actually is kind of the size of a normal page like a thread or something.

dboogie2288 12-12-2005 04:40 PM

Quote:

Originally Posted by waza
@dboogie: I can't see it (no permissons error), but it doesn't sound like a error, this is just a home page for the userpages, maybe you were looking for this:
https://vborg.vbsupport.ru/attachmen...chmentid=32268
then you have to go to:
userpage.php?do=list

You're exactly right...I was missing the action do=list portion. Thanks for the assistance.

djnth 12-15-2005 09:49 AM

This looks like an amazing plugin! Suggestions for a future version:

1. The option to make each user fill in some custom fields so that each page is similar. I would like to allow certain users to have a special profile for themselves. I would like each user to answer certain questions such as "DJ Name", "Style of Music", "When did you begin DJing".

2. Picture Field, a field where the user is prompted to upload 2 or 3 pictures that would show up as thumbnails and could be clicked on for the larger version.

Everything else is great!! Keep up the good work!! I'll definitely donate if you get these features included.

Pharkas 12-15-2005 12:18 PM

Hi,

Great hack, just installed it.

I'm fairly new at this so I apologize if this is a stupid question.

When I go to create/edit my personnal page, I don't have the icon to add images as I normally have when adding posts.

Is this a general option in vB or something I need to change for this hack ?

Thanks !


All times are GMT. The time now is 09:32 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.01913 seconds
  • Memory Usage 1,772KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)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