davidbishop
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: CubePoints] Adding link to user authors page from top users widget@alvbayu yeah the second one works, you just need to make sure the author url has the correct link structure.
Forum: Plugins
In reply to: import links from html page?nm, found a solution. For anyone in the future or present for that matter who finds themselves in a similar position in tools > import you can import to blogroll from an opml file. This site (the sites very broken, tools at the bottom of the page I think) lets you convert html to opml then you just import it using the tool in wordpress import, simpels!
Forum: Themes and Templates
In reply to: different author templates for different roles[deleted] was being stupid, worked it out:
<?php $var = get_the_author_meta('user_level'); if ($var == 1) { ?> <b>Ranking:</b> <?php echo cp_module_ranks_getRank($authordata->ID); ?></br> <?php }?>
Forum: Themes and Templates
In reply to: different author templates for different roleshi keesiemeijer,
thanks for the reply, but was wanting templates by user role rather then indivduly applying templates
Forum: Plugins
In reply to: [Plugin: CubePoints] Adding link to user authors page from top users widgetah cool cool, I look forward to seeing this implemented!
Forum: Themes and Templates
In reply to: different author templates for different rolesSorry, here’s the code with pastebin
Forum: Themes and Templates
In reply to: different author templates for different rolesI found the following what I thought would do exact what I wanted but seems to do the exact opposite which I don’t think it’s supposed to! It shows contents by the role of whom ever is logged in and displays the logged in usernot the user on the authors page! I put this in fucntions then called it on the authors opage:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Plugins
In reply to: [CubePoints] [Plugin: CubePoints] Showing avatars with scoreboardI know this is old but I thought I’d just post the answer as I’ve found it a nightmare findings stuff out about this very useful (and frustrating) plugin, so would like to get as many answer out there as possible!
in the cp_hook.php within the plugins folder put this code under the fucntion ‘cp_displayUserInfo($string,$y,$place)’:
$y['avatar'] = get_avatar($user->ID); $string = str_replace('%avatar%', $y['avatar'], $string);
then in the top user widget in text use
%avatar%
and should work!Forum: Plugins
In reply to: List of new authorsHi Marventus,
thanks for the reply but still get the same issue
David