MyBB Community Forums

Full Version: OUGC Pages & MentionMe
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

Hopefully someone is able to assist me :)

I'm looking to make the MentionMe @"Name Here" activate into profile links in the OUGC Pages when viewed.

I don't know if its possible, or how to make it work if it is.

Any assistance is greatly appreciated!

Thank you
This would only be possible if your page is a PHP page.
Aah, bummer. I'm not sure how to turn my page into a PHP version and keep it the same. Not that good at coding xD
Please check the page examples provided within the page or the following page:
https://ougc.network/module?pages

Unless you want to share your page content.
Hey Omar,

I'm happy to share the page content. I've included both the html and the css as I wasn't sure if both were needed or not.

Thanks for your help :)

<template guidebook_navigation><style>@import url('https://fonts.googleapis.com/css?family=Bellefair|Bilbo+Swash+Caps|Fondamento|Indie+Flower');</style><div class="GBOutside"><div class="GBInside"><div class="GBSection"><div class="top"><div class="GBTitleMain">Pack Name
<div class="GBTitleMini">The Something Pack</div></div></div>
<div id="grid">
  <div id="areaA"><div class="GBTitle">Alpha:</div><div class="singleheight"> Asher Bishop, Adoptable</div></div>
  <div id="areaB"><div class="GBTitle">Beta:</div><div class="singleheight"> Name</div></div>
   <div id="areaA"><div class="GBTitle">Gamma:</div><div class="singleheight">  Name</div></div>
  <div id="areaB"><div class="GBTitle">Omega:</div><div class="singleheight"> Cassidy Douglass, Adoptable</div></div>
</div>
<br />
  <div class="GBTitle">Pack Members</div> <div class="fullheight">@"Audrey Mason", Name,</div>
  
  <br />
  <div class="GBTitleMain">Pack Details</div>
  <div class="fullheight">Information</div>
  
  <br />
  <div class="GBTitleMain">Pack History</div>
  <div id="grid">
  <div id="areaA"><div class="GBTitle">Pre-RP:</div><div class="setheight"> History Goes Here</div></div>
  <div id="areaB"><div class="GBTitle">Pack Secrets:</div><div class="setheight"> Shhh</div></div>
  </div>
  <br />
    <div class="fullheight">Detailed History
          ·
          ·
          ·
          ·
          ·
          ·</div>
    
  </div>
  </div>
</div>
<br /><br />
<br />

<div class="guideblocks"><div class="guideblockheader"><if in_array($GLOBALS['mybb']->user['usergroup'], array(3,4,23)) then><a href="https://xxx/admin/index.php?module=config-ougc_pages&manage=pages&cid=4&action=edit&pid=18">Edit Page</a><else>Last Update: 2020.10.03</if></div></div></div>

</td>
</tr>
</table>
<br />

.guideheader {
	background: #232424;
	border-right: 1px solid #1D1E1E;
	color: #F3DAC1;
	padding: 0.5vw;
    margin-right: 1vw;
	margin-bottom: 0.25vw;
    text-transform: uppercase;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
	text-align: right;
}

.guidecontent {
   padding-bottom: 0.5vw;
	padding-left: 1.0vw;
	padding-right: 0.5vw;
}

.guideblocks {
    border: 1px solid #C3C3C3;
	outline: 1px solid #EBEBEB;
margin-right: 3vw;
    padding: 0.75vw;
	text-align: justify;
}

.guideblockheader {
	background: #232424;
	border-right: 1px solid #1D1E1E;
	color: #F3DAC1;
	padding: 0.5vw;
	margin-bottom: 0.25vw;
    text-transform: uppercase;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
	text-align: right;
}


    @import url('https://fonts.googleapis.com/css?family=Bellefair|Bilbo+Swash+Caps|Fondamento|Indie+Flower');
    .GBOutside {width: 90%; height: auto; padding: 10px; border: 1px solid #C3C3C3; outline: 1px solid #EBEBEB; line-height: 160%; color: #171717; font-family: calibri; font-size: 1VW; margin-left: auto; margin-right: auto; background-color:#D7D7D7; background-image: url("http://blood-ties.net/rp/images/eyeforaneye/texture-noise.png"); background-repeat: repeat;}
    .GBInside {width: auto; padding: 5px; height: auto; /*border: 1px solid #C3C3C3; outline: 1px solid #EBEBEB;*/ margin-left: auto; margin-right: auto; background-color: rgba(215, 215, 215, .9);}

.GBTitleMain {font-family: 'Bilbo Swash Caps', cursive; letter-spacing: 3px; font-size: 1.5vw; color: #a37140; text-align: right; background-color:#232424; border: 1px solid #C3C3C3; outline: 1px solid #EBEBEB; padding:8px; padding: 20px 30px 20px 0px; text-shadow: 0 -2px 3px #373737,0 3px 4px #373737;}

  .GBTitleMini {font-family: 'Bilbo Swash Caps', cursive; letter-spacing: 3px; font-size: 1.5vw; color:#DFDAC1; text-align: right; background-color:#232424; 5px; padding: 15px 0px 0px 0px}

.GBTitle {font-family: 'Bilbo Swash Caps', cursive; letter-spacing: 3px; font-size: 2vw; color:#DFDAC1; text-align: right; background-color:#232424; 5px; border: 1px solid #C3C3C3; padding: 7px 20px 7px 0px; /*margin: 0px 5px;*/}

.singleheight {height:50px; overflow:auto; padding:7px; border: 1px solid #C3C3C3; outline: 1px solid #EBEBEB;}
.setheight {height:250px; overflow:auto; padding:7px; border: 1px solid #C3C3C3; outline: 1px solid #EBEBEB;}
.fullheight {padding:7px; border: 1px solid #C3C3C3; outline: 1px solid #EBEBEB;}

#grid {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
}

#areaA {
}

#areaB {
}
Hi, now I'm confused about the reasoning for your request. What exactly do you want to display? It seems to me that you simply want to display the formatted name for specific users. If so try the following:

(I'm assuming you have Template Conditionals installed as per your page content.)

<setvar user_audrey>get_user(1)</setvar>

<?=build_profile_link(format_name(htmlspecialchars_uni($GLOBALS['tplvars']['user_audrey']['username']), $GLOBALS['tplvars']['user_audrey']['usergroup'],$GLOBALS['tplvars']['user_audrey']['displaygroup']), $GLOBALS['tplvars']['user_audrey']['uid'])?>

Replace 1 in get_user(1) for the UID and modify the user_audrey key as required. The first line has to be added only once at the beginning of your page content, the second line is just one of multiple stuff you could do.

Please read the plugin page for more information:
http://mybbhacks.zingaburga.com/showthread.php?tid=464
\o/ thank you so much, that's exactly what I wanted!