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)

drex 01-25-2006 01:25 PM

another problem--

admins, mods can post.

regular users can view, not post.

secondary usergroup (custom) which is a subset of regular users, is supposed to be able to post. but they can't.

the permissions are set right. usergroup (9) can create, edit, view and not moderate; but in reality, they can't edit or create...

help!

drex 01-25-2006 05:41 PM

ok.

now everything seems to be working with permissions, except for the delete.....

i can seem to delete a page....

which fix do i apply?

also, still no working translation to username with the vbseo rewrites.. help, amy?

amykhar 01-25-2006 06:46 PM

That post from Oleg is old. I am pretty sure I posted my rewrite rules for vbseo in this thread.

drex 01-25-2006 07:16 PM

okay.

to fix the double delete thread confirmation screen, look in the template:userpage_delete_confirm

delete $header and $footer between the <body> and </body> tags and there you go! (also had an extra $stylevar[htmldoctype] at the top which I deleted).

The correct template should read:


HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>

<br />
<br />

<form action="userpage.php?do=dokillpage" method="post">
<input type="hidden" name="ownerid" value="$ownerid" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr class="alt1"><td>
<div><label for="confirm"><input type="checkbox" name="confirm" id="confirm" value="1" /><strong>Do you really want to delete this user's page?</strong></label></div>
</td>
</tr>
<tr class="alt1"><td>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
</div>
</td>
</tr>
</table>

</form>

<br />
<br />

</body>
</html>


Don't forget to change :
HTML Code:

       
        // Check to see if the page exists.
  $pageexists = $db->query_first("SELECT * FROM ".TABLE_PREFIX."userpage WHERE userid = ".$ownerid);
 if ($pageexists)  {
          print_no_permission();
  }


to

HTML Code:

        // Check to see if the page exists.
  $pageexists = $db->query_first("SELECT * FROM ".TABLE_PREFIX."userpage WHERE userid = ".$ownerid);
  if (!$pageexists)
  {
          print_no_permission();
  }

this was posted earlier, somewhere, around post 360ish.........

drex 01-25-2006 07:23 PM

amy, i used the ones i found in this thread....

and they don't seem to work...

HTML Code:

'userpage\.php\?do=list' => 'userpage-list.html'

'userpage\.php\?do=main&userid=(\d+)' => 'userpage-user$1.html'

'userpage\.php\?do=main&username=(\w+)' => 'userpage/$1.html'

also not @ vbseo.com............

i'll look again............ :)

drex 01-25-2006 07:33 PM

found this here:

https://vborg.vbsupport.ru/showthrea...seo#post759579

HTML Code:

'userpage\.php\?do=list' => 'userpage-list.html'
'userpage\.php\?do=main&userid=(\d+)' => 'userpage-user$1.html'
'userpage\.php\?do=shoutarchive&ownerid=(\d+)' => 'userpage-shouts$1.html'
'userpage\.php\?do=main&username=(\w+)' => 'userpage/$1.html'


help!

apparently, someone else on vbseo never had this resolved, either...

thanks..

amykhar 01-25-2006 07:36 PM

These are the ones I'm using.
Code:

'^userpage\.php\?do=list' => 'userpages.html'
'^userpage\.php\?do=main&username=(\w+)$' => 'userpage/$1.html'

I don't bother with a userid on, but it wouldn't be hard to do.

amykhar 01-25-2006 07:38 PM

Yours seem to work for me:

http://www.x5world.com/userpage/ekaz.html

http://www.x5world.com/userpage-list.html
http://www.x5world.com/userpage-user774.html

drex 01-25-2006 10:06 PM

amy, i'm missing something here.

when i click on the list and select ekaz, the link is: http://www.x5world.com/userpage-user774.html

the url at the top of the info page is: http://www.x5world.com/userpage-user774.html

where did you see the /userpage/ekaz.html link? it does work though, that's what i was looking for......

but i was hoping on the list of users, they would see/use this as their link, instead of the user=# syntax....

drex 01-25-2006 11:29 PM

ps this mod rocks......... thanks!


All times are GMT. The time now is 12:46 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.02401 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_html_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