Support Forum

Forum tags

DE Dre Erwin
Dre Erwin
Member

I want to create tags in front of members names like I did in vbulletin.  I want some of my members depending on what group they are in to have  either (SSKM) , (SASK), or (sask) in front of their name.  I also want a way to identify if they are PC, PS3, or XBOX.  If u can help me I would really appretiate it.  These are the things that make this forum not as good as our old one.

19 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Personally I would suggest you look at the Simple:Press ‘Identities’ plugin. Mr Papa or Brandon may have other recommendations and if so, I am sure they will post them here.

But of course Simple:Press will never be the same as vBulletin for the simple reason that it isn’t vBulletin and never will be. Nor do we plan to steer it towards being a ‘copy’ of vBulletin. nd which one you use is, of course, entirely your choice.

MP Mr Papa
Mr Papa
Member

in front of their names where?  everywhere?  or just in their user info area?

I dont think you want to use the identities plugin… that will allow you to create icons (like my twitter or facebook here in user area) that link to a profile somewhere else…

I think you more would want the Custom Profile Fields plugin… that allows you to add an additional entry on a user’s profile for them to enter their info or affiliation… you could then display that in the user info area (topic view for each post) below their avatar…

DE Dre Erwin
Dre Erwin
Member

ok i treid this but no matter what I do, I cant see the tags i made on the profile display  (topic view)

MP Mr Papa
Mr Papa
Member

sorry, can you explain?  cant see the tags?

are you saying you added the custom profile display plugin and added items to user’s profiles?  did you also add the template display function so they show up?

see:  http://codex.simple-press.com/codex/plugins/our-plugins/available-plugins/custom-profile-fields/

and also:

https://simple-press.com/support-forum/sp5-plugin-topics/custom-profile-fields-how-to-display-labels/#p120181

https://simple-press.com/support-forum/sp5-general-topics/custom-profile-fields-4/#p95586

https://simple-press.com/support-forum/sp5-plugin-topics/custom-profile-field-1/#p97699

 

DE Dre Erwin
Dre Erwin
Member

Im lost sorry..lol…I dont know exactly where to put this

sp_CustomProfileFieldsDisplay(
$Platform
,
$spPostUser
->ID)

 

tried to edit sptopicview.php template file and just add this line, but I get errors.  I created a custom profile firled called Platform, were u can schoose which platform you use, xbox, pc, or ps3..and I would like to be able to see it on each profile when they post topics.

 

I might need to be spoon fed on this one lol sorry

MP Mr Papa
Mr Papa
Member

not sure what happened on your code, but does not see you used the code button… looks like ${}…

what is $platform???  if you custom profile field is ‘platform’, then just use it…  the help we reference indicated $name… $ indicates php variable name… but we really want you to replace it with the string of your custom profile field…

DE Dre Erwin
Dre Erwin
Member

Mr Papa said
not sure what happened on your code, but does not see you used the code button… looks like ${}…

what is $platform???  if you custom profile field is ‘platform’, then just use it…  the help we reference indicated $name… $ indicates php variable name… but we really want you to replace it with the string of your custom profile field…

I still have no clue what u mean…this isnt easy for nonregular guys..lol…I created a custom field called Platform…now what exactly do I need to do….ie…go to edit theme and go to…..blank template….underneath this line add exactly this:……….

 

DE Dre Erwin
Dre Erwin
Member

sp_CustomProfileFieldsDisplay(‘Platform spCenter’);

 

seems to work but doesnt centre it

DE Dre Erwin
Dre Erwin
Member

sp_CustomProfileFieldsDisplay(‘tagClass=spPostUserPlatform spCenter&context=user’, $spThisPostUser);

 

this is just blank…

MP Mr Papa
Mr Papa
Member

you want:

sp_CustomProfileFieldsDisplay(‘platform’, $spThisPostUser->ID);

if you want to center it in the available space, use:

<div class='spCenter'><?php sp_CustomProfileFieldsDisplay('platform', $spThisPostUser->ID); ?></div>

or

echo "<div class='spCenter'>".sp_CustomProfileFieldsDisplay('platform', $spThisPostUser->ID)."</div>";

depends on where you are using it and whether in php or html in template file…

DE Dre Erwin
Dre Erwin
Member

Nope doesn’t work nothing he gives me an error message

DE Dre Erwin
Dre Erwin
Member

Now I deleted something from there and I fucked it up completely can you tell me what I did wrong

 

<?php
# ————————————————————————————–
#
# Simple:Press Template
# Theme : css-only
# Template : topic
# Author : Simple:Press
#
# The ‘topic’ template is used to display the Topic/Post Index Listing
#
# ————————————————————————————–

# == ADD POST FORM – OBJECT DEFINITION ========================
$addPostForm = array(
‘tagClass’ => ‘spForm’,
‘hide’ => 1,
‘controlFieldset’ => ‘spEditorFieldset’,
‘controlInput’ => ‘spControl’,
‘controlSubmit’ => ‘spSubmit’,
‘labelHeading’ => __sp(‘Add Reply’),
‘labelGuestName’ => __sp(‘Guest name (required)’),
‘labelGuestEmail’ => __sp(‘Guest email (required)’),
‘labelModerateAll’ => __sp(‘NOTE: new posts are subject to administrator approval before being displayed’),
‘labelModerateOnce’ => __sp(‘NOTE: first posts are subject to administrator approval before being displayed’),
‘labelSmileys’ => __sp(‘Smileys’),
‘labelOptions’ => __sp(‘Options’),
‘labelOptionLock’ => __sp(‘Lock this topic’),
‘labelOptionPin’ => __sp(‘Pin this post’),
‘labelOptionTime’ => __sp(‘Edit post timestamp’),
‘labelMath’ => __sp(‘Math Required’),
‘labelMathSum’ => __sp(‘What is the sum of’),
‘labelPostButtonReady’ => __sp(‘Submit Reply’),
‘labelPostButtonMath’ => __sp(‘Do Math To Save’),
‘labelPostCancel’ => __sp(‘Cancel’),
‘tipSmileysButton’ => __sp(‘Open/Close to Add a Smiley’),
‘tipOptionsButton’ => __sp(‘Open/Close to select Posting Options’),
‘tipSubmitButton’ => __sp(‘Save the New Post’),
‘tipCancelButton’ => __sp(‘Cancel the New Post’)
);

# == EDIT POST FORM – OBJECT DEFINITION ========================
$editPostForm = array(
‘tagClass’ => ‘spForm’,
‘controlFieldset’ => ‘spEditorFieldset’,
‘controlInput’ => ‘spControl’,
‘controlSubmit’ => ‘spSubmit’,
‘labelHeading’ => __sp(‘Edit Post’),
‘labelSmileys’ => __sp(‘Smileys’),
‘labelPostButton’ => __sp(‘Save Edited Post’),
‘labelPostCancel’ => __sp(‘Cancel’),
‘tipSmileysButton’ => __sp(‘Open/Close to Add a Smiley’),
‘tipSubmitButton’ => __sp(‘Save the Edited Post’),
‘tipCancelButton’ => __sp(‘Cancel the Post Edits’)
);
# ==============================================================

# Load the forum header template – normally first thing
# ———————————————————————-
sp_SectionStart(‘tagClass=spHeadContainer’, ‘head’);
sp_load_template(‘spHead.php’);
sp_SectionEnd(”, ‘head’);

sp_SectionStart(‘tagClass=spBodyContainer’, ‘body’);

# Start the ‘topicView’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spListSection’, ‘topicView’);

# Set the Topic
# ———————————————————————-
if (sp_this_topic()):
# Start the ‘pagelinks’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spPlainSection’, ‘pageLinks’);
sp_PostNewButton(‘tagId=spPostNewButtonTop&tagClass=spButton spRight’, __sp(‘Add Reply’), __sp(‘Make a new post in this topic’), __sp(‘This topic is locked’));
sp_PostNewTopicButton(‘tagId=spPostNewTopicButtonTop&tagClass=spButton spRight’, __sp(‘Add Topic’), __sp(‘Start a new topic’), __sp(‘This forum is locked’));
sp_PostIndexPageLinks(”, __sp(‘Page: ‘), __sp(‘Jump to page %PAGE% of this topic’));
sp_SectionEnd(‘tagClass=spClear’, ‘pageLinks’);

# Start the ‘topicHeader’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spTopicViewSection’, ‘topic’);
sp_TopicHeaderRSSButton(‘tagClass=spButton spRight’, __sp(‘Topic RSS’), __sp(‘Subscribe to the RSS feed for this topic’));
if (function_exists(‘sp_RelatedTopicsButton’)) sp_RelatedTopicsButton(‘tagClass=spButton spRight’, __sp(‘Related Topics’), __sp(‘Get a list of related topics based on tags for this topic’));
sp_TopicHeaderIcon(‘tagClass=spHeaderIcon spLeft’);
sp_TopicHeaderName(‘tagClass=spHeaderName’);
if (function_exists(‘sp_TopicHeaderShowBlogLink’)) sp_TopicHeaderShowBlogLink(”, __sp(‘Read the original blog post’), __sp(‘Click to goto original blog post’));

sp_InsertBreak();

if (function_exists(‘sp_TopicIndexRating’) || function_exists(‘sp_TopicTagsList’) || function_exists(‘sp_TopicStatus’)) {
if (function_exists(‘sp_TopicIndexRating’)) sp_TopicIndexRating(‘tagClass=spTopicRating spRight’, __sp(‘Topic Rating:’));
if (function_exists(‘sp_TopicTagsList’)) sp_TopicTagsList(‘tagClass=spTopicTagsList spLeft’, __sp(‘Tags: ‘));
if (function_exists(‘sp_TopicStatus’)) sp_TopicStatus(‘tagClass=spTopicViewStatus spButton spLeft’, __sp(‘Search for other topics with this status’), __sp(‘Status: ‘));
sp_InsertBreak();
}

sp_SectionStart(‘tagClass=spTopicPostContainer’, ‘postlist’);

# Start the Post Loop
# ———————————————————————-
if (sp_has_posts()) : while (sp_loop_posts()) : sp_the_post();

# Start the ‘post’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spTopicPostSection’, ‘post’);

sp_PostIndexAnchor();

sp_PostForumToolButton(”, ”, __sp(‘Open the forum toolset’));

# Column 1 of the post row
# ———————————————————————-
sp_ColumnStart(‘tagClass=spUserSection spLeft&width=15%&height=50px’);
sp_PostIndexUserDate(‘tagClass=spPostUserDate spCenter’);
sp_UserAvatar(‘tagClass=spPostUserAvatar spCenter&context=user’, $spThisMember->user_id);
sp_PostIndexUserName(‘tagClass=spPostUserName spCenter
sp_PostIndexUserLocation(‘tagClass=spPostUserLocation spCenter’);
sp_PostIndexUserRank(‘tagClass=spPostUserRank spCenter’);

sp_PostIndexUserSpecialRank(‘tagClass=spPostUserSpecialRank spCenter’);
sp_PostIndexUserPosts(‘tagClass=spPostUserPosts spCenter’, __sp(‘Forum Posts: %COUNT%’));
sp_PostIndexUserRegistered(‘tagClass=spPostUserRegistered spCenter’, __sp(‘Member Since:<br /> %DATE%’));
sp_PostIndexUserStatus(‘tagClass=spCenter spPostUserStatus’, __sp(‘Online’), __sp(‘Offline’));
sp_SectionStart(‘tagClass=spCenter’, ‘user-identities’);
sp_PostIndexUserWebsite(”, __sp(‘Visit my website’));
sp_PostIndexUserTwitter(”, __sp(‘Follow me on Twitter’));
sp_PostIndexUserFacebook(”, __sp(‘Connect with me on Facebook’));
sp_PostIndexUserMySpace(”, __sp(‘See MySpace’));
sp_PostIndexUserLinkedIn(”, __sp(‘My LinkedIn network’));
sp_PostIndexUserYouTube(”, __sp(‘View my YouTube channel’));
sp_PostIndexUserGooglePlus(”, __sp(‘Interact with me on Google Plus’));
sp_SectionEnd(”, ‘user-identities’);
sp_ColumnEnd();

# Column 2 of the post row
# ———————————————————————-
sp_ColumnStart(‘tagClass=spPostSection spRight&width=84%’);

# Start the ‘post’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spPostActionSection’, ‘action’);
sp_GoToTop(‘tagClass=spRight spGoToTop&iconClass=spIcon’, ”, __sp(‘Go to Top’));
sp_PostIndexPinned(‘tagClass=spStatusIcon spLeft’, __sp(‘This post is pinned’));
if (function_exists(‘sp_PostIndexPostByEmail’)) sp_PostIndexPostByEmail(‘tagClass=spStatusIcon spLeft’, ‘This post was sent by email’);
sp_PostIndexNumber(‘tagClass=spLabelBordered spLeft’);
sp_PostIndexEditHistory(‘tagClass=spButton spLeft’, ”, __sp(‘Edited by %USER% on %DATE%’), __sp(‘View edit history’));
sp_PostIndexPermalink(‘tagClass=spButton spLeft’, ”, __sp(‘The post permalink’));
sp_PostIndexPrint(‘tagClass=spButton spLeft’, ”, __sp(‘Print this post’));
sp_PostIndexNewPost(‘tagClass=spLabelBordered spLeft’, __sp(‘New’));
if (function_exists(‘sp_PostIndexRatePost’)) sp_PostIndexRatePost(‘tagClass=spLabelBordered spPostRating spRight’);
if (function_exists(‘sp_PostIndexReportPost’)) sp_PostIndexReportPost(‘tagClass=spButton spRight’, __sp(‘Report’), __sp(‘Report this post to admin’));
sp_PostIndexQuote(‘tagClass=spButton spRight’, __sp(‘Quote’), __sp(‘Quote this post and reply’));
sp_PostIndexEdit(‘tagClass=spButton spRight’, __sp(‘Edit’), __sp(‘Edit this post’));
sp_PostIndexDelete(‘tagClass=spButton spRight’, __sp(‘Delete’), __sp(‘Delete this post’));
if (function_exists(‘sp_PostIndexSendPm’)) sp_PostIndexSendPm(‘tagClass=spButton spRight’, __sp(‘PM’), __sp(‘Send PM to this user’));

sp_SectionEnd(”, ‘action’);
sp_InsertBreak();

sp_SectionStart(‘tagClass=spPostContentSection’, ‘content’);
sp_PostIndexContent(”, __sp(‘Awaiting Moderation’));
sp_SectionEnd(”, ‘content’);
sp_InsertBreak();
sp_PostIndexUserSignature(‘tagClass=spPostUserSignature spCenter&maxHeightBottom=280’);
sp_InsertBreak();

sp_ColumnEnd();

sp_InsertBreak();

sp_SectionEnd(”, ‘post’);

endwhile; else:
sp_NoPostsInTopicMessage(‘tagClass=spMessage’, __sp(‘There are no posts in this topic’));
endif;

sp_SectionEnd(”, ‘postlist’);

sp_SectionEnd(”, ‘topic’);

# Start the ‘pagelinks’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spPlainSection’, ‘pageLinks’);
sp_PostNewButton(‘tagId=spPostNewButtonBottom&tagClass=spButton spRight’, __sp(‘Add Reply’), __sp(‘Add a new post in this topic’), __sp(‘This topic is locked’));
sp_PostNewTopicButton(‘tagId=spPostNewTopicButtonBottom&tagClass=spButton spRight’, __sp(‘Add Topic’), __sp(‘Start a new topic’), __sp(‘This forum is locked’));
sp_PostIndexPageLinks(”, __sp(‘Page: ‘), __sp(‘Jump to page %PAGE% of this topic’));
sp_InsertBreak();
sp_SectionEnd(”, ‘pageLinks’);

# Start the ‘editor’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spHiddenSection’, ‘editor’);
sp_PostEditorWindow($addPostForm, $editPostForm);
sp_SectionEnd(”, ‘editor’);
else:
sp_NoTopicMessage(‘tagClass=spMessage’, __sp(‘Access denied – you do not have permission to view this page’), __sp(‘The requested topic does not exist’));
endif;

sp_SectionEnd(”, ‘topicView’);

sp_SectionEnd(”, ‘body’);

# Load the forum footer template – normally last thing
# ———————————————————————-
sp_SectionStart(‘tagClass=spFootContainer’, ‘foot’);
sp_load_template(‘spFoot.php’);
sp_SectionEnd(”, ‘foot’);
?>

DE Dre Erwin
Dre Erwin
Member

While trying to delete the code that you gave me that didn’t work I managed to delete something and now avatars don’t work there’s a? 

MP Mr Papa
Mr Papa
Member

would be nice to know what the error message is…  did you use the raw copy?  otherwise you might get mangled quotes…  which one did you try?

since you didnt use the code highlighter on that code, its really hard to read…

what does avatars dont work mean???  that they dont show up??

this is the spTopicView.php template file right?

sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user', $spThisMember->user_id);

would not be correct…  should be

sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user', $spThisPostUser);