Example #1
0
 public function getInboxLink($text)
 {
     if (!$text) {
         $text = JText::_('COM_KUNENA_PMS_INBOX');
     }
     return CKunenaLink::GetHrefLink(CRoute::_('index.php?option=com_community&view=inbox'), $text, '', 'follow');
 }
Example #2
0
 public function getInboxLink($text)
 {
     if (!$text) {
         $text = JText::_('COM_KUNENA_PMS_INBOX');
     }
     return CKunenaLink::GetHrefLink(JRoute::_($this->uddeim->getLinkToBox('inbox', false)), $text, '', 'follow');
 }
Example #3
0
	public function getInboxLink ($text) {
		if (!$text) $text = JText::_('COM_KUNENA_PMS_INBOX');
		global $_CB_framework;

		$cbpath = JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php';
		if (file_exists($cbpath)) require_once($cbpath);
		else return;

		$userid = $_CB_framework->myId();

		$cbUser =& CBuser::getInstance( (int) $userid );
		if($cbUser === null) return;

		$itemid = getCBprofileItemid();

		return CKunenaLink::GetHrefLink ( cbSef ('index.php?option=com_comprofiler&task=userProfile&user='******'', 'follow');
	}
Example #4
0
	function GetThreadPageLink($view, $catid, $id, $limitstart, $limit, $name, $anker = '', $rel = 'follow', $class = '') {
		$kunena_config = KunenaFactory::getConfig ();
		$pagelink = CKunenaLink::GetHrefLink ( self::GetThreadPageURL($view, $catid, $id, $limitstart, $limit, $anker), $name, '', $rel, $class );
		return $pagelink;
	}
Example #5
0
							<input type="checkbox" name="remember" alt="" value="yes" />
							<?php endif; ?>
							<input type="submit" name="submit" class="kbutton" value="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGIN'); ?>" />
						</span>
					</div>
					<div class="klink-block">
						<span class="kprofilebox-pass">
							<?php echo CKunenaLink::GetHrefLink($this->lostpassword, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_PASSWORD')) ?>
						</span>
						<span class="kprofilebox-user">
							<?php echo CKunenaLink::GetHrefLink($this->lostusername, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_USERNAME')) ?>
						</span>
						<?php
						if ($this->register) : ?>
						<span class="kprofilebox-register">
							<?php echo CKunenaLink::GetHrefLink($this->register, JText::_('COM_KUNENA_PROFILEBOX_CREATE_ACCOUNT')) ?>
						</span>
						<?php endif; ?>
					</div>
				</form>
				<?php endif; ?>
			</td>
			<?php if ($this->moduleHtml) : ?>
			<td class = "kprofilebox-right">
				<div class="kprofilebox-modul">
					<?php $this->moduleHtml; ?>
				</div>
			</td>
			<?php endif; ?>
		</tr>
	</tbody>
Example #6
0
 function GetProfileLink($fbConfig, $userid, $name, $rel = 'nofollow', $class = '')
 {
     if ($userid > 0) {
         $link = CKunenaLink::GetProfileURL($userid);
         if (!empty($link)) {
             return CKunenaLink::GetHrefLink($link, $name, '', $rel, $class);
         }
     }
     return $name;
 }
 function GetProfileLink($userid, $name = null, $title = '', $rel = 'nofollow', $class = '')
 {
     if (!$name) {
         $profile = KunenaFactory::getUser($userid);
         $name = htmlspecialchars($profile->getName(), ENT_COMPAT, 'UTF-8');
     }
     if ($userid == 0) {
         $uclass = 'kwho-guest';
     } else {
         if (CKunenaTools::isAdmin($userid)) {
             $uclass = 'kwho-admin';
         } else {
             if (CKunenaTools::isModerator($userid, false)) {
                 $uclass = 'kwho-globalmoderator';
             } else {
                 if (CKunenaTools::isModerator($userid)) {
                     $uclass = 'kwho-moderator';
                 } else {
                     $uclass = 'kwho-user';
                 }
             }
         }
     }
     if ($userid > 0) {
         $link = CKunenaLink::GetProfileURL($userid);
         if (!empty($link)) {
             return CKunenaLink::GetHrefLink($link, $name, $title, $rel, $uclass);
         }
     }
     return "<span class=\"{$uclass}\">{$name}</span>";
 }
Example #8
0
							<legend class="klegend"><?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGIN'); ?></legend>
							<label for="kusername"><?php echo JText::_('COM_KUNENA_LOGIN_USERNAME') ?></label>
							<input type="text" name="<?php echo $this->login['field_username']; ?>" id="kusername" class="kinputbox" />
							<label for="kpassword"><?php echo JText::_('COM_KUNENA_LOGIN_PASSWORD') ?></label>
							<input type="password" name="<?php echo $this->login['field_password']; ?>" id="kpassword" class="kinputbox" />
							<label for="kremember"><?php echo JText::_('COM_KUNENA_LOGIN_REMEMBER_ME') ?></label>
							<input type="checkbox" id="kremember" class="kcheckbox" name="remember" value="yes" />
							<button type="submit" value="Log in" class="kbutton"><?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGIN'); ?></button>
							<input type="hidden" name="option" value="<?php echo $this->login['option']; ?>" />
							<?php if (!empty($this->login['view'])) : ?>
							<input type="hidden" name="view" value="<?php echo $this->login['view']; ?>" />
							<?php endif; ?>
							<input type="hidden" name="task" value="<?php echo $this->login['task']; ?>" />
							<input type="hidden" name="<?php echo $this->login['field_return']; ?>" value="[K=RETURN_URL]" />
							[K=TOKEN]
						</fieldset>
					</form>
				</li>
				<li class="klogin-user">
					<ul>
						<li class="klogin-password"><?php echo CKunenaLink::GetHrefLink($this->lostpassword, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_PASSWORD')) ?></li>
						<li class="klogin-username"><?php echo CKunenaLink::GetHrefLink($this->lostusername, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_USERNAME')) ?></li>
						<?php if ($this->register) : ?>
						<li class="klogin-register"><?php echo CKunenaLink::GetHrefLink($this->register, JText::_('COM_KUNENA_PROFILEBOX_CREATE_ACCOUNT')) ?></li>
						<?php endif ?>
					</ul>
				</li>
				<?php endif ?>
			</ul>
		</div>
Example #9
0
 function getLostUserLink()
 {
     $login = KunenaFactory::getLogin();
     if (!$login) {
         return '';
     }
     $url = $login->getRemindURL();
     if (!$url) {
         return '';
     }
     return CKunenaLink::GetHrefLink($url, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_USERNAME'));
 }
Example #10
0
	function getCreditsLink() {
		return CKunenaLink::GetHrefLink ( 'http://www.kunena.org', 'Kunena', 'Kunena', 'follow', NULL, NULL, 'target="_blank"' );
	}
Example #11
0
								</li>
								<li>
							<?php if(JPluginHelper::isEnabled('system', 'remember')) : ?>
							<input type="checkbox" name="remember" alt="" value="yes" />
							<?php echo JText::_('COM_KUNENA_LOGIN_REMEMBER_ME');  ?>
							<?php endif; ?><input type="submit" name="submit" class="tk-login-button" value="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGIN'); ?>" />
								</li>
							</ul>
						</dd>
						<dd class="tk-loginform">
							<ul>
								<li class="tk-lostpwdlink">
									<?php echo CKunenaLink::GetHrefLink($this->lostpassword, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_PASSWORD')) ?>
								</li>
								<li class="tk-lostuserlink">
									<?php echo CKunenaLink::GetHrefLink($this->lostusername, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_USERNAME')) ?>
								</li>
							</ul>
						</dd>
					</dl>
				</li>
			</ul>
		</form>
	</div>
</div>

<?php include dirname ( __FILE__ ) . '/rules.php'; ?>
<?php include dirname ( __FILE__ ) . '/register.php'; ?>

<script type="text/javascript">
//<![CDATA[