vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

Colossal31 09-24-2015 08:29 PM

Quote:

Originally Posted by Dave (Post 2555704)
You could simply copy the "showgroups.php" script for this and make some modifications to it so it only shows the usergroup you want to display:
- Removing the $groupcache/$modcache functionality.
- Select the right usergroupid's.

If however your usergroup contains a lot of members, you should copy the memberlist.php script and make your modifications to it.
Or just simply hook into memberlist_fetch its $hook_query_where variable and make sure it only selects specific usergroup's based on a GET variable.

Ok so how would I identify the specific usergroups. I am not the strongest at this I am learning as I go. SO any help would be appreciated. Thanks.

Lynne 09-25-2015 02:55 PM

Quote:

Originally Posted by Colossal31 (Post 2555706)
Ok so how would I identify the specific usergroups. I am not the strongest at this I am learning as I go. SO any help would be appreciated. Thanks.

If you look at admincp > Usergroups > Usergroup Manager, then you will see the usergroupid in the dropdown next to the usergroup name.

Colossal31 09-27-2015 07:11 PM

Quote:

Originally Posted by Lynne (Post 2555751)
If you look at admincp > Usergroups > Usergroup Manager, then you will see the usergroupid in the dropdown next to the usergroup name.

What I am meaning is in the code how do I identify the usergroup I wanna display? Like what do I need to change to show just that one usergroup.

I.G.O.T.A. 10-21-2015 10:56 AM

If I wanted to add a custom description and keywords would I add that to the your custom code goes here?

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'Test Page';
<meta name="description" content="Testing page" />
<meta name="keywords" content="testing, page," />

Lynne 10-21-2015 04:53 PM

Quote:

Originally Posted by I.G.O.T.A. (Post 2557379)
If I wanted to add a custom description and keywords would I add that to the your custom code goes here?

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'Test Page';
<meta name="description" content="Testing page" />
<meta name="keywords" content="testing, page," />

You would just add it to the template you are creating for the page.

I.G.O.T.A. 10-21-2015 08:06 PM

Quote:

Originally Posted by Lynne (Post 2557396)
You would just add it to the template you are creating for the page.

Ok when I added it to the template I now have two meta descriptions and tags. How do I override the vB one that is pulling from the database?

Lynne 10-21-2015 08:50 PM

You would need to put some sort of condition around the 'other' tags so that they won't show on your custom page.

I.G.O.T.A. 10-21-2015 09:05 PM

Can you point me in the right direction? I don't even know what to do first, lol.

Thank you.

Lynne 10-22-2015 12:18 AM

Quote:

Originally Posted by I.G.O.T.A. (Post 2557413)
Can you point me in the right direction? I don't even know what to do first, lol.

Thank you.

user the variable THIS_SCRIPT which you define at the top of your custom page.

HTML Code:

<vb:if condition="THIS_SCRIPT != 'yourscript'">
meta tag stuff here in global template (header?)
</vb:if>


I.G.O.T.A. 10-22-2015 08:57 AM

Quote:

Originally Posted by Lynne (Post 2557418)
user the variable THIS_SCRIPT which you define at the top of your custom page.

HTML Code:

<vb:if condition="THIS_SCRIPT != 'yourscript'">
meta tag stuff here in global template (header?)
</vb:if>


So would it look like this?

<vb:if condition="custom_page != 'custom page'">
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<title>test</title>
<meta charset="UTF-8">
<meta name="description" content="test">
<meta name="keywords" content="test">
<meta name="author" content="I.G.O.T.A.?">
</vb:if>


All times are GMT. The time now is 10:48 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.02466 seconds
  • Memory Usage 1,744KB
  • 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_html_printable
  • (7)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